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,apc_arg=%p,event=%p}",
249 data
->callback
, data
->iosb
, data
->arg
, data
->apc
, data
->apc_arg
, 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_handles( data_size_t size
)
306 const obj_handle_t
*data
= cur_data
;
307 data_size_t len
= size
/ sizeof(*data
);
309 fputc( '{', stderr
);
312 fprintf( stderr
, "%p", *data
++ );
313 if (--len
) fputc( ',', stderr
);
315 fputc( '}', stderr
);
319 static void dump_varargs_user_handles( data_size_t size
)
321 const user_handle_t
*data
= cur_data
;
322 data_size_t len
= size
/ sizeof(*data
);
324 fputc( '{', stderr
);
327 fprintf( stderr
, "%p", *data
++ );
328 if (--len
) fputc( ',', stderr
);
330 fputc( '}', stderr
);
334 static void dump_varargs_bytes( data_size_t size
)
336 const unsigned char *data
= cur_data
;
337 data_size_t len
= size
;
339 fputc( '{', stderr
);
342 fprintf( stderr
, "%02x", *data
++ );
343 if (--len
) fputc( ',', stderr
);
345 fputc( '}', stderr
);
349 static void dump_varargs_string( data_size_t size
)
351 fprintf( stderr
, "\"%.*s\"", (int)size
, (const char *)cur_data
);
355 static void dump_varargs_unicode_str( data_size_t size
)
357 fprintf( stderr
, "L\"" );
358 dump_strW( cur_data
, size
/ sizeof(WCHAR
), stderr
, "\"\"" );
359 fputc( '\"', stderr
);
363 static void dump_varargs_context( data_size_t size
)
367 fprintf( stderr
, "{}" );
370 dump_context( cur_data
);
374 static void dump_varargs_exc_event( data_size_t size
)
376 const CONTEXT
*ptr
= cur_data
;
380 fprintf( stderr
, "{}" );
383 fprintf( stderr
, "{context=" );
385 fprintf( stderr
, ",rec=" );
386 dump_exc_record( (const EXCEPTION_RECORD
*)(ptr
+ 1) );
387 fputc( '}', stderr
);
391 static void dump_varargs_debug_event( data_size_t size
)
393 const debug_event_t
*event
= cur_data
;
397 fprintf( stderr
, "{}" );
402 case EXCEPTION_DEBUG_EVENT
:
403 fprintf( stderr
, "{exception," );
404 dump_exc_record( &event
->info
.exception
.record
);
405 fprintf( stderr
, ",first=%d}", event
->info
.exception
.first
);
407 case CREATE_THREAD_DEBUG_EVENT
:
408 fprintf( stderr
, "{create_thread,thread=%p,teb=%p,start=%p}",
409 event
->info
.create_thread
.handle
, event
->info
.create_thread
.teb
,
410 event
->info
.create_thread
.start
);
412 case CREATE_PROCESS_DEBUG_EVENT
:
413 fprintf( stderr
, "{create_process,file=%p,process=%p,thread=%p,base=%p,offset=%d,"
414 "size=%d,teb=%p,start=%p,name=%p,unicode=%d}",
415 event
->info
.create_process
.file
, event
->info
.create_process
.process
,
416 event
->info
.create_process
.thread
, event
->info
.create_process
.base
,
417 event
->info
.create_process
.dbg_offset
, event
->info
.create_process
.dbg_size
,
418 event
->info
.create_process
.teb
, event
->info
.create_process
.start
,
419 event
->info
.create_process
.name
, event
->info
.create_process
.unicode
);
421 case EXIT_THREAD_DEBUG_EVENT
:
422 fprintf( stderr
, "{exit_thread,code=%d}", event
->info
.exit
.exit_code
);
424 case EXIT_PROCESS_DEBUG_EVENT
:
425 fprintf( stderr
, "{exit_process,code=%d}", event
->info
.exit
.exit_code
);
427 case LOAD_DLL_DEBUG_EVENT
:
428 fprintf( stderr
, "{load_dll,file=%p,base=%p,offset=%d,size=%d,name=%p,unicode=%d}",
429 event
->info
.load_dll
.handle
, event
->info
.load_dll
.base
,
430 event
->info
.load_dll
.dbg_offset
, event
->info
.load_dll
.dbg_size
,
431 event
->info
.load_dll
.name
, event
->info
.load_dll
.unicode
);
433 case UNLOAD_DLL_DEBUG_EVENT
:
434 fprintf( stderr
, "{unload_dll,base=%p}", event
->info
.unload_dll
.base
);
436 case OUTPUT_DEBUG_STRING_EVENT
:
437 fprintf( stderr
, "{output_string,data=%p,unicode=%d,len=%d}",
438 event
->info
.output_string
.string
, event
->info
.output_string
.unicode
,
439 event
->info
.output_string
.length
);
442 fprintf( stderr
, "{rip,err=%d,type=%d}",
443 event
->info
.rip_info
.error
, event
->info
.rip_info
.type
);
445 case 0: /* zero is the code returned on timeouts */
446 fprintf( stderr
, "{}" );
449 fprintf( stderr
, "{code=??? (%d)}", event
->code
);
455 /* dump a unicode string contained in a buffer; helper for dump_varargs_startup_info */
456 static void dump_inline_unicode_string( const UNICODE_STRING
*str
, const void *data
, data_size_t size
)
458 size_t length
= str
->Length
;
459 size_t offset
= (size_t)str
->Buffer
;
461 if (offset
>= size
) return;
462 if (offset
+ length
> size
) length
= size
- offset
;
463 dump_strW( (const WCHAR
*)data
+ offset
/sizeof(WCHAR
), length
/sizeof(WCHAR
), stderr
, "\"\"" );
466 static void dump_varargs_startup_info( data_size_t size
)
468 const RTL_USER_PROCESS_PARAMETERS
*ptr
= cur_data
;
469 RTL_USER_PROCESS_PARAMETERS params
;
471 if (size
< sizeof(params
.Size
))
473 fprintf( stderr
, "{}" );
476 if (size
> ptr
->Size
) size
= ptr
->Size
;
477 memset( ¶ms
, 0, sizeof(params
) );
478 memcpy( ¶ms
, ptr
, min( size
, sizeof(params
) ));
480 fprintf( stderr
, "{AllocationSize=%x,", params
.AllocationSize
);
481 fprintf( stderr
, "Size=%x,", params
.Size
);
482 fprintf( stderr
, "Flags=%x,", params
.Flags
);
483 fprintf( stderr
, "DebugFlags=%x,", params
.DebugFlags
);
484 fprintf( stderr
, "ConsoleHandle=%p,", params
.ConsoleHandle
);
485 fprintf( stderr
, "ConsoleFlags=%x,", params
.ConsoleFlags
);
486 fprintf( stderr
, "hStdInput=%p,", params
.hStdInput
);
487 fprintf( stderr
, "hStdOutput=%p,", params
.hStdOutput
);
488 fprintf( stderr
, "hStdError=%p,", params
.hStdError
);
489 fprintf( stderr
, "CurrentDirectory.Handle=%p,", params
.CurrentDirectory
.Handle
);
490 fprintf( stderr
, "dwX=%d,", params
.dwX
);
491 fprintf( stderr
, "dwY=%d,", params
.dwY
);
492 fprintf( stderr
, "dwXSize=%d,", params
.dwXSize
);
493 fprintf( stderr
, "dwYSize=%d,", params
.dwYSize
);
494 fprintf( stderr
, "dwXCountChars=%d,", params
.dwXCountChars
);
495 fprintf( stderr
, "dwYCountChars=%d,", params
.dwYCountChars
);
496 fprintf( stderr
, "dwFillAttribute=%x,", params
.dwFillAttribute
);
497 fprintf( stderr
, "dwFlags=%x,", params
.dwFlags
);
498 fprintf( stderr
, "wShowWindow=%x,", params
.wShowWindow
);
499 fprintf( stderr
, "CurrentDirectory.DosPath=L\"" );
500 dump_inline_unicode_string( ¶ms
.CurrentDirectory
.DosPath
, cur_data
, size
);
501 fprintf( stderr
, "\",DllPath=L\"" );
502 dump_inline_unicode_string( ¶ms
.DllPath
, cur_data
, size
);
503 fprintf( stderr
, "\",ImagePathName=L\"" );
504 dump_inline_unicode_string( ¶ms
.ImagePathName
, cur_data
, size
);
505 fprintf( stderr
, "\",CommandLine=L\"" );
506 dump_inline_unicode_string( ¶ms
.CommandLine
, cur_data
, size
);
507 fprintf( stderr
, "\",WindowTitle=L\"" );
508 dump_inline_unicode_string( ¶ms
.WindowTitle
, cur_data
, size
);
509 fprintf( stderr
, "\",Desktop=L\"" );
510 dump_inline_unicode_string( ¶ms
.Desktop
, cur_data
, size
);
511 fprintf( stderr
, "\",ShellInfo=L\"" );
512 dump_inline_unicode_string( ¶ms
.ShellInfo
, cur_data
, size
);
513 fprintf( stderr
, "\",RuntimeInfo=L\"" );
514 dump_inline_unicode_string( ¶ms
.RuntimeInfo
, cur_data
, size
);
515 fprintf( stderr
, "\"}" );
519 static void dump_varargs_input_records( data_size_t size
)
521 const INPUT_RECORD
*rec
= cur_data
;
522 data_size_t len
= size
/ sizeof(*rec
);
524 fputc( '{', stderr
);
527 fprintf( stderr
, "{%04x,...}", rec
->EventType
);
529 if (--len
) fputc( ',', stderr
);
531 fputc( '}', stderr
);
535 static void dump_varargs_rectangles( data_size_t size
)
537 const rectangle_t
*rect
= cur_data
;
538 data_size_t len
= size
/ sizeof(*rect
);
540 fputc( '{', stderr
);
543 dump_rectangle( rect
++ );
544 if (--len
) fputc( ',', stderr
);
546 fputc( '}', stderr
);
550 static void dump_varargs_message_data( data_size_t size
)
552 /* FIXME: dump the structured data */
553 dump_varargs_bytes( size
);
556 static void dump_varargs_properties( data_size_t size
)
558 const property_data_t
*prop
= cur_data
;
559 data_size_t len
= size
/ sizeof(*prop
);
561 fputc( '{', stderr
);
564 fprintf( stderr
, "{atom=%04x,str=%d,handle=%p}",
565 prop
->atom
, prop
->string
, prop
->handle
);
567 if (--len
) fputc( ',', stderr
);
569 fputc( '}', stderr
);
573 static void dump_varargs_LUID_AND_ATTRIBUTES( data_size_t size
)
575 const LUID_AND_ATTRIBUTES
*lat
= cur_data
;
576 data_size_t len
= size
/ sizeof(*lat
);
578 fputc( '{', stderr
);
581 fprintf( stderr
, "{luid=%08x%08x,attr=%x}",
582 lat
->Luid
.HighPart
, lat
->Luid
.LowPart
, lat
->Attributes
);
584 if (--len
) fputc( ',', stderr
);
586 fputc( '}', stderr
);
590 static void dump_inline_sid( const SID
*sid
, data_size_t size
)
595 if ((FIELD_OFFSET(SID
, SubAuthority
[0]) > size
) ||
596 (FIELD_OFFSET(SID
, SubAuthority
[sid
->SubAuthorityCount
]) > size
))
598 fprintf( stderr
, "<invalid sid>" );
602 fputc( '{', stderr
);
603 fprintf( stderr
, "S-%u-%u", sid
->Revision
, MAKELONG(
604 MAKEWORD( sid
->IdentifierAuthority
.Value
[5],
605 sid
->IdentifierAuthority
.Value
[4] ),
606 MAKEWORD( sid
->IdentifierAuthority
.Value
[3],
607 sid
->IdentifierAuthority
.Value
[2] ) ) );
608 for (i
= 0; i
< sid
->SubAuthorityCount
; i
++)
609 fprintf( stderr
, "-%u", sid
->SubAuthority
[i
] );
610 fputc( '}', stderr
);
613 static void dump_varargs_SID( data_size_t size
)
615 const SID
*sid
= cur_data
;
616 dump_inline_sid( sid
, size
);
620 static void dump_inline_acl( const ACL
*acl
, data_size_t size
)
622 const ACE_HEADER
*ace
;
624 fputc( '{', stderr
);
628 if (size
< sizeof(ACL
))
630 fprintf( stderr
, "<invalid acl>}\n" );
634 ace
= (const ACE_HEADER
*)(acl
+ 1);
635 for (i
= 0; i
< acl
->AceCount
; i
++)
637 const SID
*sid
= NULL
;
638 data_size_t sid_size
= 0;
640 if (size
< sizeof(ACE_HEADER
))
642 if (size
< ace
->AceSize
)
644 size
-= ace
->AceSize
;
645 if (i
!= 0) fputc( ',', stderr
);
646 fprintf( stderr
, "{AceType=" );
647 switch (ace
->AceType
)
649 case ACCESS_DENIED_ACE_TYPE
:
650 sid
= (const SID
*)&((const ACCESS_DENIED_ACE
*)ace
)->SidStart
;
651 sid_size
= ace
->AceSize
- FIELD_OFFSET(ACCESS_DENIED_ACE
, SidStart
);
652 fprintf( stderr
, "ACCESS_DENIED_ACE_TYPE,Mask=%x",
653 ((const ACCESS_DENIED_ACE
*)ace
)->Mask
);
655 case ACCESS_ALLOWED_ACE_TYPE
:
656 sid
= (const SID
*)&((const ACCESS_ALLOWED_ACE
*)ace
)->SidStart
;
657 sid_size
= ace
->AceSize
- FIELD_OFFSET(ACCESS_ALLOWED_ACE
, SidStart
);
658 fprintf( stderr
, "ACCESS_ALLOWED_ACE_TYPE,Mask=%x",
659 ((const ACCESS_ALLOWED_ACE
*)ace
)->Mask
);
661 case SYSTEM_AUDIT_ACE_TYPE
:
662 sid
= (const SID
*)&((const SYSTEM_AUDIT_ACE
*)ace
)->SidStart
;
663 sid_size
= ace
->AceSize
- FIELD_OFFSET(SYSTEM_AUDIT_ACE
, SidStart
);
664 fprintf( stderr
, "SYSTEM_AUDIT_ACE_TYPE,Mask=%x",
665 ((const SYSTEM_AUDIT_ACE
*)ace
)->Mask
);
667 case SYSTEM_ALARM_ACE_TYPE
:
668 sid
= (const SID
*)&((const SYSTEM_ALARM_ACE
*)ace
)->SidStart
;
669 sid_size
= ace
->AceSize
- FIELD_OFFSET(SYSTEM_ALARM_ACE
, SidStart
);
670 fprintf( stderr
, "SYSTEM_ALARM_ACE_TYPE,Mask=%x",
671 ((const SYSTEM_ALARM_ACE
*)ace
)->Mask
);
674 fprintf( stderr
, "unknown<%d>", ace
->AceType
);
677 fprintf( stderr
, ",AceFlags=%x,Sid=", ace
->AceFlags
);
679 dump_inline_sid( sid
, sid_size
);
680 ace
= (const ACE_HEADER
*)((const char *)ace
+ ace
->AceSize
);
681 fputc( '}', stderr
);
684 fputc( '}', stderr
);
687 static void dump_inline_security_descriptor( const struct security_descriptor
*sd
, data_size_t size
)
689 fputc( '{', stderr
);
690 if (size
>= sizeof(struct security_descriptor
))
692 size_t offset
= sizeof(struct security_descriptor
);
693 fprintf( stderr
, "control=%08x", sd
->control
);
694 fprintf( stderr
, ",owner=" );
695 if ((sd
->owner_len
> FIELD_OFFSET(SID
, SubAuthority
[255])) || (offset
+ sd
->owner_len
> size
))
697 dump_inline_sid( (const SID
*)((const char *)sd
+ offset
), sd
->owner_len
);
698 offset
+= sd
->owner_len
;
699 fprintf( stderr
, ",group=" );
700 if ((sd
->group_len
> FIELD_OFFSET(SID
, SubAuthority
[255])) || (offset
+ sd
->group_len
> size
))
702 dump_inline_sid( (const SID
*)((const char *)sd
+ offset
), sd
->group_len
);
703 offset
+= sd
->group_len
;
704 fprintf( stderr
, ",sacl=" );
705 if ((sd
->sacl_len
>= MAX_ACL_LEN
) || (offset
+ sd
->sacl_len
> size
))
707 dump_inline_acl( (const ACL
*)((const char *)sd
+ offset
), sd
->sacl_len
);
708 offset
+= sd
->sacl_len
;
709 fprintf( stderr
, ",dacl=" );
710 if ((sd
->dacl_len
>= MAX_ACL_LEN
) || (offset
+ sd
->dacl_len
> size
))
712 dump_inline_acl( (const ACL
*)((const char *)sd
+ offset
), sd
->dacl_len
);
713 offset
+= sd
->dacl_len
;
715 fputc( '}', stderr
);
718 static void dump_varargs_security_descriptor( data_size_t size
)
720 const struct security_descriptor
*sd
= cur_data
;
721 dump_inline_security_descriptor( sd
, size
);
725 static void dump_varargs_token_groups( data_size_t size
)
727 const struct token_groups
*tg
= cur_data
;
728 fputc( '{', stderr
);
729 if (size
>= sizeof(struct token_groups
))
731 size_t offset
= sizeof(*tg
);
732 fprintf( stderr
, "count=%08x,", tg
->count
);
733 if (tg
->count
* sizeof(unsigned int) <= size
)
736 const unsigned int *attr
= (const unsigned int *)(tg
+ 1);
738 offset
+= tg
->count
* sizeof(unsigned int);
740 fputc( '[', stderr
);
741 for (i
= 0; i
< tg
->count
; i
++)
743 const SID
*sid
= (const SID
*)((const char *)cur_data
+ offset
);
745 fputc( ',', stderr
);
746 fputc( '{', stderr
);
747 fprintf( stderr
, "attributes=%08x", attr
[i
] );
748 fprintf( stderr
, ",sid=" );
749 dump_inline_sid( sid
, size
- offset
);
750 if ((offset
+ FIELD_OFFSET(SID
, SubAuthority
[0]) > size
) ||
751 (offset
+ FIELD_OFFSET(SID
, SubAuthority
[sid
->SubAuthorityCount
]) > size
))
753 offset
+= FIELD_OFFSET(SID
, SubAuthority
[sid
->SubAuthorityCount
]);
754 fputc( '}', stderr
);
756 fputc( ']', stderr
);
759 fputc( '}', stderr
);
762 typedef void (*dump_func
)( const void *req
);
764 /* Everything below this line is generated automatically by tools/make_requests */
765 /* ### make_requests begin ### */
767 static void dump_new_process_request( const struct new_process_request
*req
)
769 fprintf( stderr
, " inherit_all=%d,", req
->inherit_all
);
770 fprintf( stderr
, " create_flags=%08x,", req
->create_flags
);
771 fprintf( stderr
, " socket_fd=%d,", req
->socket_fd
);
772 fprintf( stderr
, " exe_file=%p,", req
->exe_file
);
773 fprintf( stderr
, " hstdin=%p,", req
->hstdin
);
774 fprintf( stderr
, " hstdout=%p,", req
->hstdout
);
775 fprintf( stderr
, " hstderr=%p,", req
->hstderr
);
776 fprintf( stderr
, " process_access=%08x,", req
->process_access
);
777 fprintf( stderr
, " process_attr=%08x,", req
->process_attr
);
778 fprintf( stderr
, " thread_access=%08x,", req
->thread_access
);
779 fprintf( stderr
, " thread_attr=%08x,", req
->thread_attr
);
780 fprintf( stderr
, " info=" );
781 dump_varargs_startup_info( cur_size
);
782 fputc( ',', stderr
);
783 fprintf( stderr
, " env=" );
784 dump_varargs_unicode_str( cur_size
);
787 static void dump_new_process_reply( const struct new_process_reply
*req
)
789 fprintf( stderr
, " info=%p,", req
->info
);
790 fprintf( stderr
, " pid=%04x,", req
->pid
);
791 fprintf( stderr
, " phandle=%p,", req
->phandle
);
792 fprintf( stderr
, " tid=%04x,", req
->tid
);
793 fprintf( stderr
, " thandle=%p", req
->thandle
);
796 static void dump_get_new_process_info_request( const struct get_new_process_info_request
*req
)
798 fprintf( stderr
, " info=%p", req
->info
);
801 static void dump_get_new_process_info_reply( const struct get_new_process_info_reply
*req
)
803 fprintf( stderr
, " success=%d,", req
->success
);
804 fprintf( stderr
, " exit_code=%d", req
->exit_code
);
807 static void dump_new_thread_request( const struct new_thread_request
*req
)
809 fprintf( stderr
, " access=%08x,", req
->access
);
810 fprintf( stderr
, " attributes=%08x,", req
->attributes
);
811 fprintf( stderr
, " suspend=%d,", req
->suspend
);
812 fprintf( stderr
, " request_fd=%d", req
->request_fd
);
815 static void dump_new_thread_reply( const struct new_thread_reply
*req
)
817 fprintf( stderr
, " tid=%04x,", req
->tid
);
818 fprintf( stderr
, " handle=%p", req
->handle
);
821 static void dump_get_startup_info_request( const struct get_startup_info_request
*req
)
825 static void dump_get_startup_info_reply( const struct get_startup_info_reply
*req
)
827 fprintf( stderr
, " exe_file=%p,", req
->exe_file
);
828 fprintf( stderr
, " hstdin=%p,", req
->hstdin
);
829 fprintf( stderr
, " hstdout=%p,", req
->hstdout
);
830 fprintf( stderr
, " hstderr=%p,", req
->hstderr
);
831 fprintf( stderr
, " info=" );
832 dump_varargs_startup_info( cur_size
);
833 fputc( ',', stderr
);
834 fprintf( stderr
, " env=" );
835 dump_varargs_unicode_str( cur_size
);
838 static void dump_init_process_done_request( const struct init_process_done_request
*req
)
840 fprintf( stderr
, " module=%p,", req
->module
);
841 fprintf( stderr
, " entry=%p,", req
->entry
);
842 fprintf( stderr
, " gui=%d", req
->gui
);
845 static void dump_init_thread_request( const struct init_thread_request
*req
)
847 fprintf( stderr
, " unix_pid=%d,", req
->unix_pid
);
848 fprintf( stderr
, " unix_tid=%d,", req
->unix_tid
);
849 fprintf( stderr
, " debug_level=%d,", req
->debug_level
);
850 fprintf( stderr
, " teb=%p,", req
->teb
);
851 fprintf( stderr
, " peb=%p,", req
->peb
);
852 fprintf( stderr
, " entry=%p,", req
->entry
);
853 fprintf( stderr
, " ldt_copy=%p,", req
->ldt_copy
);
854 fprintf( stderr
, " reply_fd=%d,", req
->reply_fd
);
855 fprintf( stderr
, " wait_fd=%d", req
->wait_fd
);
858 static void dump_init_thread_reply( const struct init_thread_reply
*req
)
860 fprintf( stderr
, " pid=%04x,", req
->pid
);
861 fprintf( stderr
, " tid=%04x,", req
->tid
);
862 fprintf( stderr
, " info_size=%u,", req
->info_size
);
863 fprintf( stderr
, " server_start=" );
864 dump_timeout( &req
->server_start
);
865 fprintf( stderr
, "," );
866 fprintf( stderr
, " version=%d", req
->version
);
869 static void dump_terminate_process_request( const struct terminate_process_request
*req
)
871 fprintf( stderr
, " handle=%p,", req
->handle
);
872 fprintf( stderr
, " exit_code=%d", req
->exit_code
);
875 static void dump_terminate_process_reply( const struct terminate_process_reply
*req
)
877 fprintf( stderr
, " self=%d", req
->self
);
880 static void dump_terminate_thread_request( const struct terminate_thread_request
*req
)
882 fprintf( stderr
, " handle=%p,", req
->handle
);
883 fprintf( stderr
, " exit_code=%d", req
->exit_code
);
886 static void dump_terminate_thread_reply( const struct terminate_thread_reply
*req
)
888 fprintf( stderr
, " self=%d,", req
->self
);
889 fprintf( stderr
, " last=%d", req
->last
);
892 static void dump_get_process_info_request( const struct get_process_info_request
*req
)
894 fprintf( stderr
, " handle=%p", req
->handle
);
897 static void dump_get_process_info_reply( const struct get_process_info_reply
*req
)
899 fprintf( stderr
, " pid=%04x,", req
->pid
);
900 fprintf( stderr
, " ppid=%04x,", req
->ppid
);
901 fprintf( stderr
, " exit_code=%d,", req
->exit_code
);
902 fprintf( stderr
, " priority=%d,", req
->priority
);
903 fprintf( stderr
, " affinity=%d,", req
->affinity
);
904 fprintf( stderr
, " peb=%p,", req
->peb
);
905 fprintf( stderr
, " start_time=" );
906 dump_timeout( &req
->start_time
);
907 fprintf( stderr
, "," );
908 fprintf( stderr
, " end_time=" );
909 dump_timeout( &req
->end_time
);
912 static void dump_set_process_info_request( const struct set_process_info_request
*req
)
914 fprintf( stderr
, " handle=%p,", req
->handle
);
915 fprintf( stderr
, " mask=%d,", req
->mask
);
916 fprintf( stderr
, " priority=%d,", req
->priority
);
917 fprintf( stderr
, " affinity=%d", req
->affinity
);
920 static void dump_get_thread_info_request( const struct get_thread_info_request
*req
)
922 fprintf( stderr
, " handle=%p,", req
->handle
);
923 fprintf( stderr
, " tid_in=%04x", req
->tid_in
);
926 static void dump_get_thread_info_reply( const struct get_thread_info_reply
*req
)
928 fprintf( stderr
, " pid=%04x,", req
->pid
);
929 fprintf( stderr
, " tid=%04x,", req
->tid
);
930 fprintf( stderr
, " teb=%p,", req
->teb
);
931 fprintf( stderr
, " exit_code=%d,", req
->exit_code
);
932 fprintf( stderr
, " priority=%d,", req
->priority
);
933 fprintf( stderr
, " affinity=%d,", req
->affinity
);
934 fprintf( stderr
, " creation_time=" );
935 dump_timeout( &req
->creation_time
);
936 fprintf( stderr
, "," );
937 fprintf( stderr
, " exit_time=" );
938 dump_timeout( &req
->exit_time
);
939 fprintf( stderr
, "," );
940 fprintf( stderr
, " last=%d", req
->last
);
943 static void dump_set_thread_info_request( const struct set_thread_info_request
*req
)
945 fprintf( stderr
, " handle=%p,", req
->handle
);
946 fprintf( stderr
, " mask=%d,", req
->mask
);
947 fprintf( stderr
, " priority=%d,", req
->priority
);
948 fprintf( stderr
, " affinity=%d,", req
->affinity
);
949 fprintf( stderr
, " token=%p", req
->token
);
952 static void dump_get_dll_info_request( const struct get_dll_info_request
*req
)
954 fprintf( stderr
, " handle=%p,", req
->handle
);
955 fprintf( stderr
, " base_address=%p", req
->base_address
);
958 static void dump_get_dll_info_reply( const struct get_dll_info_reply
*req
)
960 fprintf( stderr
, " size=%lu,", (unsigned long)req
->size
);
961 fprintf( stderr
, " entry_point=%p,", req
->entry_point
);
962 fprintf( stderr
, " filename=" );
963 dump_varargs_unicode_str( cur_size
);
966 static void dump_suspend_thread_request( const struct suspend_thread_request
*req
)
968 fprintf( stderr
, " handle=%p", req
->handle
);
971 static void dump_suspend_thread_reply( const struct suspend_thread_reply
*req
)
973 fprintf( stderr
, " count=%d", req
->count
);
976 static void dump_resume_thread_request( const struct resume_thread_request
*req
)
978 fprintf( stderr
, " handle=%p", req
->handle
);
981 static void dump_resume_thread_reply( const struct resume_thread_reply
*req
)
983 fprintf( stderr
, " count=%d", req
->count
);
986 static void dump_load_dll_request( const struct load_dll_request
*req
)
988 fprintf( stderr
, " handle=%p,", req
->handle
);
989 fprintf( stderr
, " base=%p,", req
->base
);
990 fprintf( stderr
, " size=%lu,", (unsigned long)req
->size
);
991 fprintf( stderr
, " dbg_offset=%d,", req
->dbg_offset
);
992 fprintf( stderr
, " dbg_size=%d,", req
->dbg_size
);
993 fprintf( stderr
, " name=%p,", req
->name
);
994 fprintf( stderr
, " filename=" );
995 dump_varargs_unicode_str( cur_size
);
998 static void dump_unload_dll_request( const struct unload_dll_request
*req
)
1000 fprintf( stderr
, " base=%p", req
->base
);
1003 static void dump_queue_apc_request( const struct queue_apc_request
*req
)
1005 fprintf( stderr
, " thread=%p,", req
->thread
);
1006 fprintf( stderr
, " process=%p,", req
->process
);
1007 fprintf( stderr
, " call=" );
1008 dump_apc_call( &req
->call
);
1011 static void dump_queue_apc_reply( const struct queue_apc_reply
*req
)
1013 fprintf( stderr
, " handle=%p,", req
->handle
);
1014 fprintf( stderr
, " self=%d", req
->self
);
1017 static void dump_get_apc_request( const struct get_apc_request
*req
)
1019 fprintf( stderr
, " alertable=%d,", req
->alertable
);
1020 fprintf( stderr
, " prev=%p,", req
->prev
);
1021 fprintf( stderr
, " result=" );
1022 dump_apc_result( &req
->result
);
1025 static void dump_get_apc_reply( const struct get_apc_reply
*req
)
1027 fprintf( stderr
, " handle=%p,", req
->handle
);
1028 fprintf( stderr
, " call=" );
1029 dump_apc_call( &req
->call
);
1032 static void dump_get_apc_result_request( const struct get_apc_result_request
*req
)
1034 fprintf( stderr
, " handle=%p", req
->handle
);
1037 static void dump_get_apc_result_reply( const struct get_apc_result_reply
*req
)
1039 fprintf( stderr
, " result=" );
1040 dump_apc_result( &req
->result
);
1043 static void dump_close_handle_request( const struct close_handle_request
*req
)
1045 fprintf( stderr
, " handle=%p", req
->handle
);
1048 static void dump_set_handle_info_request( const struct set_handle_info_request
*req
)
1050 fprintf( stderr
, " handle=%p,", req
->handle
);
1051 fprintf( stderr
, " flags=%d,", req
->flags
);
1052 fprintf( stderr
, " mask=%d", req
->mask
);
1055 static void dump_set_handle_info_reply( const struct set_handle_info_reply
*req
)
1057 fprintf( stderr
, " old_flags=%d", req
->old_flags
);
1060 static void dump_dup_handle_request( const struct dup_handle_request
*req
)
1062 fprintf( stderr
, " src_process=%p,", req
->src_process
);
1063 fprintf( stderr
, " src_handle=%p,", req
->src_handle
);
1064 fprintf( stderr
, " dst_process=%p,", req
->dst_process
);
1065 fprintf( stderr
, " access=%08x,", req
->access
);
1066 fprintf( stderr
, " attributes=%08x,", req
->attributes
);
1067 fprintf( stderr
, " options=%08x", req
->options
);
1070 static void dump_dup_handle_reply( const struct dup_handle_reply
*req
)
1072 fprintf( stderr
, " handle=%p,", req
->handle
);
1073 fprintf( stderr
, " self=%d,", req
->self
);
1074 fprintf( stderr
, " closed=%d", req
->closed
);
1077 static void dump_open_process_request( const struct open_process_request
*req
)
1079 fprintf( stderr
, " pid=%04x,", req
->pid
);
1080 fprintf( stderr
, " access=%08x,", req
->access
);
1081 fprintf( stderr
, " attributes=%08x", req
->attributes
);
1084 static void dump_open_process_reply( const struct open_process_reply
*req
)
1086 fprintf( stderr
, " handle=%p", req
->handle
);
1089 static void dump_open_thread_request( const struct open_thread_request
*req
)
1091 fprintf( stderr
, " tid=%04x,", req
->tid
);
1092 fprintf( stderr
, " access=%08x,", req
->access
);
1093 fprintf( stderr
, " attributes=%08x", req
->attributes
);
1096 static void dump_open_thread_reply( const struct open_thread_reply
*req
)
1098 fprintf( stderr
, " handle=%p", req
->handle
);
1101 static void dump_select_request( const struct select_request
*req
)
1103 fprintf( stderr
, " flags=%d,", req
->flags
);
1104 fprintf( stderr
, " cookie=%p,", req
->cookie
);
1105 fprintf( stderr
, " signal=%p,", req
->signal
);
1106 fprintf( stderr
, " timeout=" );
1107 dump_timeout( &req
->timeout
);
1108 fprintf( stderr
, "," );
1109 fprintf( stderr
, " handles=" );
1110 dump_varargs_handles( cur_size
);
1113 static void dump_select_reply( const struct select_reply
*req
)
1115 fprintf( stderr
, " timeout=" );
1116 dump_timeout( &req
->timeout
);
1119 static void dump_create_event_request( const struct create_event_request
*req
)
1121 fprintf( stderr
, " access=%08x,", req
->access
);
1122 fprintf( stderr
, " attributes=%08x,", req
->attributes
);
1123 fprintf( stderr
, " rootdir=%p,", req
->rootdir
);
1124 fprintf( stderr
, " manual_reset=%d,", req
->manual_reset
);
1125 fprintf( stderr
, " initial_state=%d,", req
->initial_state
);
1126 fprintf( stderr
, " name=" );
1127 dump_varargs_unicode_str( cur_size
);
1130 static void dump_create_event_reply( const struct create_event_reply
*req
)
1132 fprintf( stderr
, " handle=%p", req
->handle
);
1135 static void dump_event_op_request( const struct event_op_request
*req
)
1137 fprintf( stderr
, " handle=%p,", req
->handle
);
1138 fprintf( stderr
, " op=%d", req
->op
);
1141 static void dump_open_event_request( const struct open_event_request
*req
)
1143 fprintf( stderr
, " access=%08x,", req
->access
);
1144 fprintf( stderr
, " attributes=%08x,", req
->attributes
);
1145 fprintf( stderr
, " rootdir=%p,", req
->rootdir
);
1146 fprintf( stderr
, " name=" );
1147 dump_varargs_unicode_str( cur_size
);
1150 static void dump_open_event_reply( const struct open_event_reply
*req
)
1152 fprintf( stderr
, " handle=%p", req
->handle
);
1155 static void dump_create_mutex_request( const struct create_mutex_request
*req
)
1157 fprintf( stderr
, " access=%08x,", req
->access
);
1158 fprintf( stderr
, " attributes=%08x,", req
->attributes
);
1159 fprintf( stderr
, " rootdir=%p,", req
->rootdir
);
1160 fprintf( stderr
, " owned=%d,", req
->owned
);
1161 fprintf( stderr
, " name=" );
1162 dump_varargs_unicode_str( cur_size
);
1165 static void dump_create_mutex_reply( const struct create_mutex_reply
*req
)
1167 fprintf( stderr
, " handle=%p", req
->handle
);
1170 static void dump_release_mutex_request( const struct release_mutex_request
*req
)
1172 fprintf( stderr
, " handle=%p", req
->handle
);
1175 static void dump_release_mutex_reply( const struct release_mutex_reply
*req
)
1177 fprintf( stderr
, " prev_count=%08x", req
->prev_count
);
1180 static void dump_open_mutex_request( const struct open_mutex_request
*req
)
1182 fprintf( stderr
, " access=%08x,", req
->access
);
1183 fprintf( stderr
, " attributes=%08x,", req
->attributes
);
1184 fprintf( stderr
, " rootdir=%p,", req
->rootdir
);
1185 fprintf( stderr
, " name=" );
1186 dump_varargs_unicode_str( cur_size
);
1189 static void dump_open_mutex_reply( const struct open_mutex_reply
*req
)
1191 fprintf( stderr
, " handle=%p", req
->handle
);
1194 static void dump_create_semaphore_request( const struct create_semaphore_request
*req
)
1196 fprintf( stderr
, " access=%08x,", req
->access
);
1197 fprintf( stderr
, " attributes=%08x,", req
->attributes
);
1198 fprintf( stderr
, " rootdir=%p,", req
->rootdir
);
1199 fprintf( stderr
, " initial=%08x,", req
->initial
);
1200 fprintf( stderr
, " max=%08x,", req
->max
);
1201 fprintf( stderr
, " name=" );
1202 dump_varargs_unicode_str( cur_size
);
1205 static void dump_create_semaphore_reply( const struct create_semaphore_reply
*req
)
1207 fprintf( stderr
, " handle=%p", req
->handle
);
1210 static void dump_release_semaphore_request( const struct release_semaphore_request
*req
)
1212 fprintf( stderr
, " handle=%p,", req
->handle
);
1213 fprintf( stderr
, " count=%08x", req
->count
);
1216 static void dump_release_semaphore_reply( const struct release_semaphore_reply
*req
)
1218 fprintf( stderr
, " prev_count=%08x", req
->prev_count
);
1221 static void dump_open_semaphore_request( const struct open_semaphore_request
*req
)
1223 fprintf( stderr
, " access=%08x,", req
->access
);
1224 fprintf( stderr
, " attributes=%08x,", req
->attributes
);
1225 fprintf( stderr
, " rootdir=%p,", req
->rootdir
);
1226 fprintf( stderr
, " name=" );
1227 dump_varargs_unicode_str( cur_size
);
1230 static void dump_open_semaphore_reply( const struct open_semaphore_reply
*req
)
1232 fprintf( stderr
, " handle=%p", req
->handle
);
1235 static void dump_create_file_request( const struct create_file_request
*req
)
1237 fprintf( stderr
, " access=%08x,", req
->access
);
1238 fprintf( stderr
, " attributes=%08x,", req
->attributes
);
1239 fprintf( stderr
, " sharing=%08x,", req
->sharing
);
1240 fprintf( stderr
, " create=%d,", req
->create
);
1241 fprintf( stderr
, " options=%08x,", req
->options
);
1242 fprintf( stderr
, " attrs=%08x,", req
->attrs
);
1243 fprintf( stderr
, " filename=" );
1244 dump_varargs_string( cur_size
);
1247 static void dump_create_file_reply( const struct create_file_reply
*req
)
1249 fprintf( stderr
, " handle=%p", req
->handle
);
1252 static void dump_open_file_object_request( const struct open_file_object_request
*req
)
1254 fprintf( stderr
, " access=%08x,", req
->access
);
1255 fprintf( stderr
, " attributes=%08x,", req
->attributes
);
1256 fprintf( stderr
, " rootdir=%p,", req
->rootdir
);
1257 fprintf( stderr
, " sharing=%08x,", req
->sharing
);
1258 fprintf( stderr
, " options=%08x,", req
->options
);
1259 fprintf( stderr
, " filename=" );
1260 dump_varargs_unicode_str( cur_size
);
1263 static void dump_open_file_object_reply( const struct open_file_object_reply
*req
)
1265 fprintf( stderr
, " handle=%p", req
->handle
);
1268 static void dump_alloc_file_handle_request( const struct alloc_file_handle_request
*req
)
1270 fprintf( stderr
, " access=%08x,", req
->access
);
1271 fprintf( stderr
, " attributes=%08x,", req
->attributes
);
1272 fprintf( stderr
, " fd=%d", req
->fd
);
1275 static void dump_alloc_file_handle_reply( const struct alloc_file_handle_reply
*req
)
1277 fprintf( stderr
, " handle=%p", req
->handle
);
1280 static void dump_get_handle_fd_request( const struct get_handle_fd_request
*req
)
1282 fprintf( stderr
, " handle=%p", req
->handle
);
1285 static void dump_get_handle_fd_reply( const struct get_handle_fd_reply
*req
)
1287 fprintf( stderr
, " type=%d,", req
->type
);
1288 fprintf( stderr
, " removable=%d,", req
->removable
);
1289 fprintf( stderr
, " access=%08x,", req
->access
);
1290 fprintf( stderr
, " options=%08x", req
->options
);
1293 static void dump_flush_file_request( const struct flush_file_request
*req
)
1295 fprintf( stderr
, " handle=%p", req
->handle
);
1298 static void dump_flush_file_reply( const struct flush_file_reply
*req
)
1300 fprintf( stderr
, " event=%p", req
->event
);
1303 static void dump_lock_file_request( const struct lock_file_request
*req
)
1305 fprintf( stderr
, " handle=%p,", req
->handle
);
1306 fprintf( stderr
, " offset_low=%08x,", req
->offset_low
);
1307 fprintf( stderr
, " offset_high=%08x,", req
->offset_high
);
1308 fprintf( stderr
, " count_low=%08x,", req
->count_low
);
1309 fprintf( stderr
, " count_high=%08x,", req
->count_high
);
1310 fprintf( stderr
, " shared=%d,", req
->shared
);
1311 fprintf( stderr
, " wait=%d", req
->wait
);
1314 static void dump_lock_file_reply( const struct lock_file_reply
*req
)
1316 fprintf( stderr
, " handle=%p,", req
->handle
);
1317 fprintf( stderr
, " overlapped=%d", req
->overlapped
);
1320 static void dump_unlock_file_request( const struct unlock_file_request
*req
)
1322 fprintf( stderr
, " handle=%p,", req
->handle
);
1323 fprintf( stderr
, " offset_low=%08x,", req
->offset_low
);
1324 fprintf( stderr
, " offset_high=%08x,", req
->offset_high
);
1325 fprintf( stderr
, " count_low=%08x,", req
->count_low
);
1326 fprintf( stderr
, " count_high=%08x", req
->count_high
);
1329 static void dump_create_socket_request( const struct create_socket_request
*req
)
1331 fprintf( stderr
, " access=%08x,", req
->access
);
1332 fprintf( stderr
, " attributes=%08x,", req
->attributes
);
1333 fprintf( stderr
, " family=%d,", req
->family
);
1334 fprintf( stderr
, " type=%d,", req
->type
);
1335 fprintf( stderr
, " protocol=%d,", req
->protocol
);
1336 fprintf( stderr
, " flags=%08x", req
->flags
);
1339 static void dump_create_socket_reply( const struct create_socket_reply
*req
)
1341 fprintf( stderr
, " handle=%p", req
->handle
);
1344 static void dump_accept_socket_request( const struct accept_socket_request
*req
)
1346 fprintf( stderr
, " lhandle=%p,", req
->lhandle
);
1347 fprintf( stderr
, " access=%08x,", req
->access
);
1348 fprintf( stderr
, " attributes=%08x", req
->attributes
);
1351 static void dump_accept_socket_reply( const struct accept_socket_reply
*req
)
1353 fprintf( stderr
, " handle=%p", req
->handle
);
1356 static void dump_set_socket_event_request( const struct set_socket_event_request
*req
)
1358 fprintf( stderr
, " handle=%p,", req
->handle
);
1359 fprintf( stderr
, " mask=%08x,", req
->mask
);
1360 fprintf( stderr
, " event=%p,", req
->event
);
1361 fprintf( stderr
, " window=%p,", req
->window
);
1362 fprintf( stderr
, " msg=%08x", req
->msg
);
1365 static void dump_get_socket_event_request( const struct get_socket_event_request
*req
)
1367 fprintf( stderr
, " handle=%p,", req
->handle
);
1368 fprintf( stderr
, " service=%d,", req
->service
);
1369 fprintf( stderr
, " c_event=%p", req
->c_event
);
1372 static void dump_get_socket_event_reply( const struct get_socket_event_reply
*req
)
1374 fprintf( stderr
, " mask=%08x,", req
->mask
);
1375 fprintf( stderr
, " pmask=%08x,", req
->pmask
);
1376 fprintf( stderr
, " state=%08x,", req
->state
);
1377 fprintf( stderr
, " errors=" );
1378 dump_varargs_ints( cur_size
);
1381 static void dump_enable_socket_event_request( const struct enable_socket_event_request
*req
)
1383 fprintf( stderr
, " handle=%p,", req
->handle
);
1384 fprintf( stderr
, " mask=%08x,", req
->mask
);
1385 fprintf( stderr
, " sstate=%08x,", req
->sstate
);
1386 fprintf( stderr
, " cstate=%08x", req
->cstate
);
1389 static void dump_set_socket_deferred_request( const struct set_socket_deferred_request
*req
)
1391 fprintf( stderr
, " handle=%p,", req
->handle
);
1392 fprintf( stderr
, " deferred=%p", req
->deferred
);
1395 static void dump_alloc_console_request( const struct alloc_console_request
*req
)
1397 fprintf( stderr
, " access=%08x,", req
->access
);
1398 fprintf( stderr
, " attributes=%08x,", req
->attributes
);
1399 fprintf( stderr
, " pid=%04x", req
->pid
);
1402 static void dump_alloc_console_reply( const struct alloc_console_reply
*req
)
1404 fprintf( stderr
, " handle_in=%p,", req
->handle_in
);
1405 fprintf( stderr
, " event=%p", req
->event
);
1408 static void dump_free_console_request( const struct free_console_request
*req
)
1412 static void dump_get_console_renderer_events_request( const struct get_console_renderer_events_request
*req
)
1414 fprintf( stderr
, " handle=%p", req
->handle
);
1417 static void dump_get_console_renderer_events_reply( const struct get_console_renderer_events_reply
*req
)
1419 fprintf( stderr
, " data=" );
1420 dump_varargs_bytes( cur_size
);
1423 static void dump_open_console_request( const struct open_console_request
*req
)
1425 fprintf( stderr
, " from=%p,", req
->from
);
1426 fprintf( stderr
, " access=%08x,", req
->access
);
1427 fprintf( stderr
, " attributes=%08x,", req
->attributes
);
1428 fprintf( stderr
, " share=%d", req
->share
);
1431 static void dump_open_console_reply( const struct open_console_reply
*req
)
1433 fprintf( stderr
, " handle=%p", req
->handle
);
1436 static void dump_get_console_wait_event_request( const struct get_console_wait_event_request
*req
)
1440 static void dump_get_console_wait_event_reply( const struct get_console_wait_event_reply
*req
)
1442 fprintf( stderr
, " handle=%p", req
->handle
);
1445 static void dump_get_console_mode_request( const struct get_console_mode_request
*req
)
1447 fprintf( stderr
, " handle=%p", req
->handle
);
1450 static void dump_get_console_mode_reply( const struct get_console_mode_reply
*req
)
1452 fprintf( stderr
, " mode=%d", req
->mode
);
1455 static void dump_set_console_mode_request( const struct set_console_mode_request
*req
)
1457 fprintf( stderr
, " handle=%p,", req
->handle
);
1458 fprintf( stderr
, " mode=%d", req
->mode
);
1461 static void dump_set_console_input_info_request( const struct set_console_input_info_request
*req
)
1463 fprintf( stderr
, " handle=%p,", req
->handle
);
1464 fprintf( stderr
, " mask=%d,", req
->mask
);
1465 fprintf( stderr
, " active_sb=%p,", req
->active_sb
);
1466 fprintf( stderr
, " history_mode=%d,", req
->history_mode
);
1467 fprintf( stderr
, " history_size=%d,", req
->history_size
);
1468 fprintf( stderr
, " edition_mode=%d,", req
->edition_mode
);
1469 fprintf( stderr
, " title=" );
1470 dump_varargs_unicode_str( cur_size
);
1473 static void dump_get_console_input_info_request( const struct get_console_input_info_request
*req
)
1475 fprintf( stderr
, " handle=%p", req
->handle
);
1478 static void dump_get_console_input_info_reply( const struct get_console_input_info_reply
*req
)
1480 fprintf( stderr
, " history_mode=%d,", req
->history_mode
);
1481 fprintf( stderr
, " history_size=%d,", req
->history_size
);
1482 fprintf( stderr
, " history_index=%d,", req
->history_index
);
1483 fprintf( stderr
, " edition_mode=%d,", req
->edition_mode
);
1484 fprintf( stderr
, " title=" );
1485 dump_varargs_unicode_str( cur_size
);
1488 static void dump_append_console_input_history_request( const struct append_console_input_history_request
*req
)
1490 fprintf( stderr
, " handle=%p,", req
->handle
);
1491 fprintf( stderr
, " line=" );
1492 dump_varargs_unicode_str( cur_size
);
1495 static void dump_get_console_input_history_request( const struct get_console_input_history_request
*req
)
1497 fprintf( stderr
, " handle=%p,", req
->handle
);
1498 fprintf( stderr
, " index=%d", req
->index
);
1501 static void dump_get_console_input_history_reply( const struct get_console_input_history_reply
*req
)
1503 fprintf( stderr
, " total=%d,", req
->total
);
1504 fprintf( stderr
, " line=" );
1505 dump_varargs_unicode_str( cur_size
);
1508 static void dump_create_console_output_request( const struct create_console_output_request
*req
)
1510 fprintf( stderr
, " handle_in=%p,", req
->handle_in
);
1511 fprintf( stderr
, " access=%08x,", req
->access
);
1512 fprintf( stderr
, " attributes=%08x,", req
->attributes
);
1513 fprintf( stderr
, " share=%08x", req
->share
);
1516 static void dump_create_console_output_reply( const struct create_console_output_reply
*req
)
1518 fprintf( stderr
, " handle_out=%p", req
->handle_out
);
1521 static void dump_set_console_output_info_request( const struct set_console_output_info_request
*req
)
1523 fprintf( stderr
, " handle=%p,", req
->handle
);
1524 fprintf( stderr
, " mask=%d,", req
->mask
);
1525 fprintf( stderr
, " cursor_size=%d,", req
->cursor_size
);
1526 fprintf( stderr
, " cursor_visible=%d,", req
->cursor_visible
);
1527 fprintf( stderr
, " cursor_x=%d,", req
->cursor_x
);
1528 fprintf( stderr
, " cursor_y=%d,", req
->cursor_y
);
1529 fprintf( stderr
, " width=%d,", req
->width
);
1530 fprintf( stderr
, " height=%d,", req
->height
);
1531 fprintf( stderr
, " attr=%d,", req
->attr
);
1532 fprintf( stderr
, " win_left=%d,", req
->win_left
);
1533 fprintf( stderr
, " win_top=%d,", req
->win_top
);
1534 fprintf( stderr
, " win_right=%d,", req
->win_right
);
1535 fprintf( stderr
, " win_bottom=%d,", req
->win_bottom
);
1536 fprintf( stderr
, " max_width=%d,", req
->max_width
);
1537 fprintf( stderr
, " max_height=%d", req
->max_height
);
1540 static void dump_get_console_output_info_request( const struct get_console_output_info_request
*req
)
1542 fprintf( stderr
, " handle=%p", req
->handle
);
1545 static void dump_get_console_output_info_reply( const struct get_console_output_info_reply
*req
)
1547 fprintf( stderr
, " cursor_size=%d,", req
->cursor_size
);
1548 fprintf( stderr
, " cursor_visible=%d,", req
->cursor_visible
);
1549 fprintf( stderr
, " cursor_x=%d,", req
->cursor_x
);
1550 fprintf( stderr
, " cursor_y=%d,", req
->cursor_y
);
1551 fprintf( stderr
, " width=%d,", req
->width
);
1552 fprintf( stderr
, " height=%d,", req
->height
);
1553 fprintf( stderr
, " attr=%d,", req
->attr
);
1554 fprintf( stderr
, " win_left=%d,", req
->win_left
);
1555 fprintf( stderr
, " win_top=%d,", req
->win_top
);
1556 fprintf( stderr
, " win_right=%d,", req
->win_right
);
1557 fprintf( stderr
, " win_bottom=%d,", req
->win_bottom
);
1558 fprintf( stderr
, " max_width=%d,", req
->max_width
);
1559 fprintf( stderr
, " max_height=%d", req
->max_height
);
1562 static void dump_write_console_input_request( const struct write_console_input_request
*req
)
1564 fprintf( stderr
, " handle=%p,", req
->handle
);
1565 fprintf( stderr
, " rec=" );
1566 dump_varargs_input_records( cur_size
);
1569 static void dump_write_console_input_reply( const struct write_console_input_reply
*req
)
1571 fprintf( stderr
, " written=%d", req
->written
);
1574 static void dump_read_console_input_request( const struct read_console_input_request
*req
)
1576 fprintf( stderr
, " handle=%p,", req
->handle
);
1577 fprintf( stderr
, " flush=%d", req
->flush
);
1580 static void dump_read_console_input_reply( const struct read_console_input_reply
*req
)
1582 fprintf( stderr
, " read=%d,", req
->read
);
1583 fprintf( stderr
, " rec=" );
1584 dump_varargs_input_records( cur_size
);
1587 static void dump_write_console_output_request( const struct write_console_output_request
*req
)
1589 fprintf( stderr
, " handle=%p,", req
->handle
);
1590 fprintf( stderr
, " x=%d,", req
->x
);
1591 fprintf( stderr
, " y=%d,", req
->y
);
1592 fprintf( stderr
, " mode=%d,", req
->mode
);
1593 fprintf( stderr
, " wrap=%d,", req
->wrap
);
1594 fprintf( stderr
, " data=" );
1595 dump_varargs_bytes( cur_size
);
1598 static void dump_write_console_output_reply( const struct write_console_output_reply
*req
)
1600 fprintf( stderr
, " written=%d,", req
->written
);
1601 fprintf( stderr
, " width=%d,", req
->width
);
1602 fprintf( stderr
, " height=%d", req
->height
);
1605 static void dump_fill_console_output_request( const struct fill_console_output_request
*req
)
1607 fprintf( stderr
, " handle=%p,", req
->handle
);
1608 fprintf( stderr
, " x=%d,", req
->x
);
1609 fprintf( stderr
, " y=%d,", req
->y
);
1610 fprintf( stderr
, " mode=%d,", req
->mode
);
1611 fprintf( stderr
, " count=%d,", req
->count
);
1612 fprintf( stderr
, " wrap=%d,", req
->wrap
);
1613 fprintf( stderr
, " data=" );
1614 dump_char_info( &req
->data
);
1617 static void dump_fill_console_output_reply( const struct fill_console_output_reply
*req
)
1619 fprintf( stderr
, " written=%d", req
->written
);
1622 static void dump_read_console_output_request( const struct read_console_output_request
*req
)
1624 fprintf( stderr
, " handle=%p,", req
->handle
);
1625 fprintf( stderr
, " x=%d,", req
->x
);
1626 fprintf( stderr
, " y=%d,", req
->y
);
1627 fprintf( stderr
, " mode=%d,", req
->mode
);
1628 fprintf( stderr
, " wrap=%d", req
->wrap
);
1631 static void dump_read_console_output_reply( const struct read_console_output_reply
*req
)
1633 fprintf( stderr
, " width=%d,", req
->width
);
1634 fprintf( stderr
, " height=%d,", req
->height
);
1635 fprintf( stderr
, " data=" );
1636 dump_varargs_bytes( cur_size
);
1639 static void dump_move_console_output_request( const struct move_console_output_request
*req
)
1641 fprintf( stderr
, " handle=%p,", req
->handle
);
1642 fprintf( stderr
, " x_src=%d,", req
->x_src
);
1643 fprintf( stderr
, " y_src=%d,", req
->y_src
);
1644 fprintf( stderr
, " x_dst=%d,", req
->x_dst
);
1645 fprintf( stderr
, " y_dst=%d,", req
->y_dst
);
1646 fprintf( stderr
, " w=%d,", req
->w
);
1647 fprintf( stderr
, " h=%d", req
->h
);
1650 static void dump_send_console_signal_request( const struct send_console_signal_request
*req
)
1652 fprintf( stderr
, " signal=%d,", req
->signal
);
1653 fprintf( stderr
, " group_id=%04x", req
->group_id
);
1656 static void dump_read_directory_changes_request( const struct read_directory_changes_request
*req
)
1658 fprintf( stderr
, " filter=%08x,", req
->filter
);
1659 fprintf( stderr
, " handle=%p,", req
->handle
);
1660 fprintf( stderr
, " subtree=%d,", req
->subtree
);
1661 fprintf( stderr
, " want_data=%d,", req
->want_data
);
1662 fprintf( stderr
, " async=" );
1663 dump_async_data( &req
->async
);
1666 static void dump_read_change_request( const struct read_change_request
*req
)
1668 fprintf( stderr
, " handle=%p", req
->handle
);
1671 static void dump_read_change_reply( const struct read_change_reply
*req
)
1673 fprintf( stderr
, " action=%d,", req
->action
);
1674 fprintf( stderr
, " name=" );
1675 dump_varargs_string( cur_size
);
1678 static void dump_create_mapping_request( const struct create_mapping_request
*req
)
1680 fprintf( stderr
, " access=%08x,", req
->access
);
1681 fprintf( stderr
, " attributes=%08x,", req
->attributes
);
1682 fprintf( stderr
, " rootdir=%p,", req
->rootdir
);
1683 fprintf( stderr
, " size_high=%d,", req
->size_high
);
1684 fprintf( stderr
, " size_low=%d,", req
->size_low
);
1685 fprintf( stderr
, " protect=%d,", req
->protect
);
1686 fprintf( stderr
, " file_handle=%p,", req
->file_handle
);
1687 fprintf( stderr
, " name=" );
1688 dump_varargs_unicode_str( cur_size
);
1691 static void dump_create_mapping_reply( const struct create_mapping_reply
*req
)
1693 fprintf( stderr
, " handle=%p", req
->handle
);
1696 static void dump_open_mapping_request( const struct open_mapping_request
*req
)
1698 fprintf( stderr
, " access=%08x,", req
->access
);
1699 fprintf( stderr
, " attributes=%08x,", req
->attributes
);
1700 fprintf( stderr
, " rootdir=%p,", req
->rootdir
);
1701 fprintf( stderr
, " name=" );
1702 dump_varargs_unicode_str( cur_size
);
1705 static void dump_open_mapping_reply( const struct open_mapping_reply
*req
)
1707 fprintf( stderr
, " handle=%p", req
->handle
);
1710 static void dump_get_mapping_info_request( const struct get_mapping_info_request
*req
)
1712 fprintf( stderr
, " handle=%p", req
->handle
);
1715 static void dump_get_mapping_info_reply( const struct get_mapping_info_reply
*req
)
1717 fprintf( stderr
, " size_high=%d,", req
->size_high
);
1718 fprintf( stderr
, " size_low=%d,", req
->size_low
);
1719 fprintf( stderr
, " protect=%d,", req
->protect
);
1720 fprintf( stderr
, " header_size=%d,", req
->header_size
);
1721 fprintf( stderr
, " base=%p,", req
->base
);
1722 fprintf( stderr
, " mapping=%p,", req
->mapping
);
1723 fprintf( stderr
, " shared_file=%p,", req
->shared_file
);
1724 fprintf( stderr
, " shared_size=%d", req
->shared_size
);
1727 static void dump_create_snapshot_request( const struct create_snapshot_request
*req
)
1729 fprintf( stderr
, " attributes=%08x,", req
->attributes
);
1730 fprintf( stderr
, " flags=%d,", req
->flags
);
1731 fprintf( stderr
, " pid=%04x", req
->pid
);
1734 static void dump_create_snapshot_reply( const struct create_snapshot_reply
*req
)
1736 fprintf( stderr
, " handle=%p", req
->handle
);
1739 static void dump_next_process_request( const struct next_process_request
*req
)
1741 fprintf( stderr
, " handle=%p,", req
->handle
);
1742 fprintf( stderr
, " reset=%d", req
->reset
);
1745 static void dump_next_process_reply( const struct next_process_reply
*req
)
1747 fprintf( stderr
, " count=%d,", req
->count
);
1748 fprintf( stderr
, " pid=%04x,", req
->pid
);
1749 fprintf( stderr
, " ppid=%04x,", req
->ppid
);
1750 fprintf( stderr
, " heap=%p,", req
->heap
);
1751 fprintf( stderr
, " module=%p,", req
->module
);
1752 fprintf( stderr
, " threads=%d,", req
->threads
);
1753 fprintf( stderr
, " priority=%d,", req
->priority
);
1754 fprintf( stderr
, " handles=%d,", req
->handles
);
1755 fprintf( stderr
, " filename=" );
1756 dump_varargs_unicode_str( cur_size
);
1759 static void dump_next_thread_request( const struct next_thread_request
*req
)
1761 fprintf( stderr
, " handle=%p,", req
->handle
);
1762 fprintf( stderr
, " reset=%d", req
->reset
);
1765 static void dump_next_thread_reply( const struct next_thread_reply
*req
)
1767 fprintf( stderr
, " count=%d,", req
->count
);
1768 fprintf( stderr
, " pid=%04x,", req
->pid
);
1769 fprintf( stderr
, " tid=%04x,", req
->tid
);
1770 fprintf( stderr
, " base_pri=%d,", req
->base_pri
);
1771 fprintf( stderr
, " delta_pri=%d", req
->delta_pri
);
1774 static void dump_next_module_request( const struct next_module_request
*req
)
1776 fprintf( stderr
, " handle=%p,", req
->handle
);
1777 fprintf( stderr
, " reset=%d", req
->reset
);
1780 static void dump_next_module_reply( const struct next_module_reply
*req
)
1782 fprintf( stderr
, " pid=%04x,", req
->pid
);
1783 fprintf( stderr
, " base=%p,", req
->base
);
1784 fprintf( stderr
, " size=%lu,", (unsigned long)req
->size
);
1785 fprintf( stderr
, " filename=" );
1786 dump_varargs_unicode_str( cur_size
);
1789 static void dump_wait_debug_event_request( const struct wait_debug_event_request
*req
)
1791 fprintf( stderr
, " get_handle=%d", req
->get_handle
);
1794 static void dump_wait_debug_event_reply( const struct wait_debug_event_reply
*req
)
1796 fprintf( stderr
, " pid=%04x,", req
->pid
);
1797 fprintf( stderr
, " tid=%04x,", req
->tid
);
1798 fprintf( stderr
, " wait=%p,", req
->wait
);
1799 fprintf( stderr
, " event=" );
1800 dump_varargs_debug_event( cur_size
);
1803 static void dump_queue_exception_event_request( const struct queue_exception_event_request
*req
)
1805 fprintf( stderr
, " first=%d,", req
->first
);
1806 fprintf( stderr
, " record=" );
1807 dump_varargs_exc_event( cur_size
);
1810 static void dump_queue_exception_event_reply( const struct queue_exception_event_reply
*req
)
1812 fprintf( stderr
, " handle=%p", req
->handle
);
1815 static void dump_get_exception_status_request( const struct get_exception_status_request
*req
)
1817 fprintf( stderr
, " handle=%p", req
->handle
);
1820 static void dump_get_exception_status_reply( const struct get_exception_status_reply
*req
)
1822 fprintf( stderr
, " context=" );
1823 dump_varargs_context( cur_size
);
1826 static void dump_output_debug_string_request( const struct output_debug_string_request
*req
)
1828 fprintf( stderr
, " string=%p,", req
->string
);
1829 fprintf( stderr
, " unicode=%d,", req
->unicode
);
1830 fprintf( stderr
, " length=%d", req
->length
);
1833 static void dump_continue_debug_event_request( const struct continue_debug_event_request
*req
)
1835 fprintf( stderr
, " pid=%04x,", req
->pid
);
1836 fprintf( stderr
, " tid=%04x,", req
->tid
);
1837 fprintf( stderr
, " status=%d", req
->status
);
1840 static void dump_debug_process_request( const struct debug_process_request
*req
)
1842 fprintf( stderr
, " pid=%04x,", req
->pid
);
1843 fprintf( stderr
, " attach=%d", req
->attach
);
1846 static void dump_debug_break_request( const struct debug_break_request
*req
)
1848 fprintf( stderr
, " handle=%p", req
->handle
);
1851 static void dump_debug_break_reply( const struct debug_break_reply
*req
)
1853 fprintf( stderr
, " self=%d", req
->self
);
1856 static void dump_set_debugger_kill_on_exit_request( const struct set_debugger_kill_on_exit_request
*req
)
1858 fprintf( stderr
, " kill_on_exit=%d", req
->kill_on_exit
);
1861 static void dump_read_process_memory_request( const struct read_process_memory_request
*req
)
1863 fprintf( stderr
, " handle=%p,", req
->handle
);
1864 fprintf( stderr
, " addr=%p", req
->addr
);
1867 static void dump_read_process_memory_reply( const struct read_process_memory_reply
*req
)
1869 fprintf( stderr
, " data=" );
1870 dump_varargs_bytes( cur_size
);
1873 static void dump_write_process_memory_request( const struct write_process_memory_request
*req
)
1875 fprintf( stderr
, " handle=%p,", req
->handle
);
1876 fprintf( stderr
, " addr=%p,", req
->addr
);
1877 fprintf( stderr
, " data=" );
1878 dump_varargs_bytes( cur_size
);
1881 static void dump_create_key_request( const struct create_key_request
*req
)
1883 fprintf( stderr
, " parent=%p,", req
->parent
);
1884 fprintf( stderr
, " access=%08x,", req
->access
);
1885 fprintf( stderr
, " attributes=%08x,", req
->attributes
);
1886 fprintf( stderr
, " options=%08x,", req
->options
);
1887 fprintf( stderr
, " modif=%ld,", (long)req
->modif
);
1888 fprintf( stderr
, " namelen=%u,", req
->namelen
);
1889 fprintf( stderr
, " name=" );
1890 dump_varargs_unicode_str( min(cur_size
,req
->namelen
) );
1891 fputc( ',', stderr
);
1892 fprintf( stderr
, " class=" );
1893 dump_varargs_unicode_str( cur_size
);
1896 static void dump_create_key_reply( const struct create_key_reply
*req
)
1898 fprintf( stderr
, " hkey=%p,", req
->hkey
);
1899 fprintf( stderr
, " created=%d", req
->created
);
1902 static void dump_open_key_request( const struct open_key_request
*req
)
1904 fprintf( stderr
, " parent=%p,", req
->parent
);
1905 fprintf( stderr
, " access=%08x,", req
->access
);
1906 fprintf( stderr
, " attributes=%08x,", req
->attributes
);
1907 fprintf( stderr
, " name=" );
1908 dump_varargs_unicode_str( cur_size
);
1911 static void dump_open_key_reply( const struct open_key_reply
*req
)
1913 fprintf( stderr
, " hkey=%p", req
->hkey
);
1916 static void dump_delete_key_request( const struct delete_key_request
*req
)
1918 fprintf( stderr
, " hkey=%p", req
->hkey
);
1921 static void dump_flush_key_request( const struct flush_key_request
*req
)
1923 fprintf( stderr
, " hkey=%p", req
->hkey
);
1926 static void dump_enum_key_request( const struct enum_key_request
*req
)
1928 fprintf( stderr
, " hkey=%p,", req
->hkey
);
1929 fprintf( stderr
, " index=%d,", req
->index
);
1930 fprintf( stderr
, " info_class=%d", req
->info_class
);
1933 static void dump_enum_key_reply( const struct enum_key_reply
*req
)
1935 fprintf( stderr
, " subkeys=%d,", req
->subkeys
);
1936 fprintf( stderr
, " max_subkey=%d,", req
->max_subkey
);
1937 fprintf( stderr
, " max_class=%d,", req
->max_class
);
1938 fprintf( stderr
, " values=%d,", req
->values
);
1939 fprintf( stderr
, " max_value=%d,", req
->max_value
);
1940 fprintf( stderr
, " max_data=%d,", req
->max_data
);
1941 fprintf( stderr
, " modif=%ld,", (long)req
->modif
);
1942 fprintf( stderr
, " total=%u,", req
->total
);
1943 fprintf( stderr
, " namelen=%u,", req
->namelen
);
1944 fprintf( stderr
, " name=" );
1945 dump_varargs_unicode_str( min(cur_size
,req
->namelen
) );
1946 fputc( ',', stderr
);
1947 fprintf( stderr
, " class=" );
1948 dump_varargs_unicode_str( cur_size
);
1951 static void dump_set_key_value_request( const struct set_key_value_request
*req
)
1953 fprintf( stderr
, " hkey=%p,", req
->hkey
);
1954 fprintf( stderr
, " type=%d,", req
->type
);
1955 fprintf( stderr
, " namelen=%u,", req
->namelen
);
1956 fprintf( stderr
, " name=" );
1957 dump_varargs_unicode_str( min(cur_size
,req
->namelen
) );
1958 fputc( ',', stderr
);
1959 fprintf( stderr
, " data=" );
1960 dump_varargs_bytes( cur_size
);
1963 static void dump_get_key_value_request( const struct get_key_value_request
*req
)
1965 fprintf( stderr
, " hkey=%p,", req
->hkey
);
1966 fprintf( stderr
, " name=" );
1967 dump_varargs_unicode_str( cur_size
);
1970 static void dump_get_key_value_reply( const struct get_key_value_reply
*req
)
1972 fprintf( stderr
, " type=%d,", req
->type
);
1973 fprintf( stderr
, " total=%u,", req
->total
);
1974 fprintf( stderr
, " data=" );
1975 dump_varargs_bytes( cur_size
);
1978 static void dump_enum_key_value_request( const struct enum_key_value_request
*req
)
1980 fprintf( stderr
, " hkey=%p,", req
->hkey
);
1981 fprintf( stderr
, " index=%d,", req
->index
);
1982 fprintf( stderr
, " info_class=%d", req
->info_class
);
1985 static void dump_enum_key_value_reply( const struct enum_key_value_reply
*req
)
1987 fprintf( stderr
, " type=%d,", req
->type
);
1988 fprintf( stderr
, " total=%u,", req
->total
);
1989 fprintf( stderr
, " namelen=%u,", req
->namelen
);
1990 fprintf( stderr
, " name=" );
1991 dump_varargs_unicode_str( min(cur_size
,req
->namelen
) );
1992 fputc( ',', stderr
);
1993 fprintf( stderr
, " data=" );
1994 dump_varargs_bytes( cur_size
);
1997 static void dump_delete_key_value_request( const struct delete_key_value_request
*req
)
1999 fprintf( stderr
, " hkey=%p,", req
->hkey
);
2000 fprintf( stderr
, " name=" );
2001 dump_varargs_unicode_str( cur_size
);
2004 static void dump_load_registry_request( const struct load_registry_request
*req
)
2006 fprintf( stderr
, " hkey=%p,", req
->hkey
);
2007 fprintf( stderr
, " file=%p,", req
->file
);
2008 fprintf( stderr
, " name=" );
2009 dump_varargs_unicode_str( cur_size
);
2012 static void dump_unload_registry_request( const struct unload_registry_request
*req
)
2014 fprintf( stderr
, " hkey=%p", req
->hkey
);
2017 static void dump_save_registry_request( const struct save_registry_request
*req
)
2019 fprintf( stderr
, " hkey=%p,", req
->hkey
);
2020 fprintf( stderr
, " file=%p", req
->file
);
2023 static void dump_set_registry_notification_request( const struct set_registry_notification_request
*req
)
2025 fprintf( stderr
, " hkey=%p,", req
->hkey
);
2026 fprintf( stderr
, " event=%p,", req
->event
);
2027 fprintf( stderr
, " subtree=%d,", req
->subtree
);
2028 fprintf( stderr
, " filter=%08x", req
->filter
);
2031 static void dump_create_timer_request( const struct create_timer_request
*req
)
2033 fprintf( stderr
, " access=%08x,", req
->access
);
2034 fprintf( stderr
, " attributes=%08x,", req
->attributes
);
2035 fprintf( stderr
, " rootdir=%p,", req
->rootdir
);
2036 fprintf( stderr
, " manual=%d,", req
->manual
);
2037 fprintf( stderr
, " name=" );
2038 dump_varargs_unicode_str( cur_size
);
2041 static void dump_create_timer_reply( const struct create_timer_reply
*req
)
2043 fprintf( stderr
, " handle=%p", req
->handle
);
2046 static void dump_open_timer_request( const struct open_timer_request
*req
)
2048 fprintf( stderr
, " access=%08x,", req
->access
);
2049 fprintf( stderr
, " attributes=%08x,", req
->attributes
);
2050 fprintf( stderr
, " rootdir=%p,", req
->rootdir
);
2051 fprintf( stderr
, " name=" );
2052 dump_varargs_unicode_str( cur_size
);
2055 static void dump_open_timer_reply( const struct open_timer_reply
*req
)
2057 fprintf( stderr
, " handle=%p", req
->handle
);
2060 static void dump_set_timer_request( const struct set_timer_request
*req
)
2062 fprintf( stderr
, " handle=%p,", req
->handle
);
2063 fprintf( stderr
, " expire=" );
2064 dump_timeout( &req
->expire
);
2065 fprintf( stderr
, "," );
2066 fprintf( stderr
, " period=%d,", req
->period
);
2067 fprintf( stderr
, " callback=%p,", req
->callback
);
2068 fprintf( stderr
, " arg=%p", req
->arg
);
2071 static void dump_set_timer_reply( const struct set_timer_reply
*req
)
2073 fprintf( stderr
, " signaled=%d", req
->signaled
);
2076 static void dump_cancel_timer_request( const struct cancel_timer_request
*req
)
2078 fprintf( stderr
, " handle=%p", req
->handle
);
2081 static void dump_cancel_timer_reply( const struct cancel_timer_reply
*req
)
2083 fprintf( stderr
, " signaled=%d", req
->signaled
);
2086 static void dump_get_timer_info_request( const struct get_timer_info_request
*req
)
2088 fprintf( stderr
, " handle=%p", req
->handle
);
2091 static void dump_get_timer_info_reply( const struct get_timer_info_reply
*req
)
2093 fprintf( stderr
, " when=" );
2094 dump_timeout( &req
->when
);
2095 fprintf( stderr
, "," );
2096 fprintf( stderr
, " signaled=%d", req
->signaled
);
2099 static void dump_get_thread_context_request( const struct get_thread_context_request
*req
)
2101 fprintf( stderr
, " handle=%p,", req
->handle
);
2102 fprintf( stderr
, " flags=%08x,", req
->flags
);
2103 fprintf( stderr
, " suspend=%d", req
->suspend
);
2106 static void dump_get_thread_context_reply( const struct get_thread_context_reply
*req
)
2108 fprintf( stderr
, " self=%d,", req
->self
);
2109 fprintf( stderr
, " context=" );
2110 dump_varargs_context( cur_size
);
2113 static void dump_set_thread_context_request( const struct set_thread_context_request
*req
)
2115 fprintf( stderr
, " handle=%p,", req
->handle
);
2116 fprintf( stderr
, " flags=%08x,", req
->flags
);
2117 fprintf( stderr
, " suspend=%d,", req
->suspend
);
2118 fprintf( stderr
, " context=" );
2119 dump_varargs_context( cur_size
);
2122 static void dump_set_thread_context_reply( const struct set_thread_context_reply
*req
)
2124 fprintf( stderr
, " self=%d", req
->self
);
2127 static void dump_get_selector_entry_request( const struct get_selector_entry_request
*req
)
2129 fprintf( stderr
, " handle=%p,", req
->handle
);
2130 fprintf( stderr
, " entry=%d", req
->entry
);
2133 static void dump_get_selector_entry_reply( const struct get_selector_entry_reply
*req
)
2135 fprintf( stderr
, " base=%08x,", req
->base
);
2136 fprintf( stderr
, " limit=%08x,", req
->limit
);
2137 fprintf( stderr
, " flags=%02x", req
->flags
);
2140 static void dump_add_atom_request( const struct add_atom_request
*req
)
2142 fprintf( stderr
, " table=%p,", req
->table
);
2143 fprintf( stderr
, " name=" );
2144 dump_varargs_unicode_str( cur_size
);
2147 static void dump_add_atom_reply( const struct add_atom_reply
*req
)
2149 fprintf( stderr
, " atom=%04x", req
->atom
);
2152 static void dump_delete_atom_request( const struct delete_atom_request
*req
)
2154 fprintf( stderr
, " table=%p,", req
->table
);
2155 fprintf( stderr
, " atom=%04x", req
->atom
);
2158 static void dump_find_atom_request( const struct find_atom_request
*req
)
2160 fprintf( stderr
, " table=%p,", req
->table
);
2161 fprintf( stderr
, " name=" );
2162 dump_varargs_unicode_str( cur_size
);
2165 static void dump_find_atom_reply( const struct find_atom_reply
*req
)
2167 fprintf( stderr
, " atom=%04x", req
->atom
);
2170 static void dump_get_atom_information_request( const struct get_atom_information_request
*req
)
2172 fprintf( stderr
, " table=%p,", req
->table
);
2173 fprintf( stderr
, " atom=%04x", req
->atom
);
2176 static void dump_get_atom_information_reply( const struct get_atom_information_reply
*req
)
2178 fprintf( stderr
, " count=%d,", req
->count
);
2179 fprintf( stderr
, " pinned=%d,", req
->pinned
);
2180 fprintf( stderr
, " total=%u,", req
->total
);
2181 fprintf( stderr
, " name=" );
2182 dump_varargs_unicode_str( cur_size
);
2185 static void dump_set_atom_information_request( const struct set_atom_information_request
*req
)
2187 fprintf( stderr
, " table=%p,", req
->table
);
2188 fprintf( stderr
, " atom=%04x,", req
->atom
);
2189 fprintf( stderr
, " pinned=%d", req
->pinned
);
2192 static void dump_empty_atom_table_request( const struct empty_atom_table_request
*req
)
2194 fprintf( stderr
, " table=%p,", req
->table
);
2195 fprintf( stderr
, " if_pinned=%d", req
->if_pinned
);
2198 static void dump_init_atom_table_request( const struct init_atom_table_request
*req
)
2200 fprintf( stderr
, " entries=%d", req
->entries
);
2203 static void dump_init_atom_table_reply( const struct init_atom_table_reply
*req
)
2205 fprintf( stderr
, " table=%p", req
->table
);
2208 static void dump_get_msg_queue_request( const struct get_msg_queue_request
*req
)
2212 static void dump_get_msg_queue_reply( const struct get_msg_queue_reply
*req
)
2214 fprintf( stderr
, " handle=%p", req
->handle
);
2217 static void dump_set_queue_fd_request( const struct set_queue_fd_request
*req
)
2219 fprintf( stderr
, " handle=%p", req
->handle
);
2222 static void dump_set_queue_mask_request( const struct set_queue_mask_request
*req
)
2224 fprintf( stderr
, " wake_mask=%08x,", req
->wake_mask
);
2225 fprintf( stderr
, " changed_mask=%08x,", req
->changed_mask
);
2226 fprintf( stderr
, " skip_wait=%d", req
->skip_wait
);
2229 static void dump_set_queue_mask_reply( const struct set_queue_mask_reply
*req
)
2231 fprintf( stderr
, " wake_bits=%08x,", req
->wake_bits
);
2232 fprintf( stderr
, " changed_bits=%08x", req
->changed_bits
);
2235 static void dump_get_queue_status_request( const struct get_queue_status_request
*req
)
2237 fprintf( stderr
, " clear=%d", req
->clear
);
2240 static void dump_get_queue_status_reply( const struct get_queue_status_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_process_idle_event_request( const struct get_process_idle_event_request
*req
)
2248 fprintf( stderr
, " handle=%p", req
->handle
);
2251 static void dump_get_process_idle_event_reply( const struct get_process_idle_event_reply
*req
)
2253 fprintf( stderr
, " event=%p", req
->event
);
2256 static void dump_send_message_request( const struct send_message_request
*req
)
2258 fprintf( stderr
, " id=%04x,", req
->id
);
2259 fprintf( stderr
, " type=%d,", req
->type
);
2260 fprintf( stderr
, " flags=%d,", req
->flags
);
2261 fprintf( stderr
, " win=%p,", req
->win
);
2262 fprintf( stderr
, " msg=%08x,", req
->msg
);
2263 fprintf( stderr
, " wparam=%lx,", req
->wparam
);
2264 fprintf( stderr
, " lparam=%lx,", req
->lparam
);
2265 fprintf( stderr
, " timeout=" );
2266 dump_timeout( &req
->timeout
);
2267 fprintf( stderr
, "," );
2268 fprintf( stderr
, " data=" );
2269 dump_varargs_message_data( cur_size
);
2272 static void dump_post_quit_message_request( const struct post_quit_message_request
*req
)
2274 fprintf( stderr
, " exit_code=%d", req
->exit_code
);
2277 static void dump_send_hardware_message_request( const struct send_hardware_message_request
*req
)
2279 fprintf( stderr
, " id=%04x,", req
->id
);
2280 fprintf( stderr
, " win=%p,", req
->win
);
2281 fprintf( stderr
, " msg=%08x,", req
->msg
);
2282 fprintf( stderr
, " time=%08x,", req
->time
);
2283 fprintf( stderr
, " wparam=%lx,", req
->wparam
);
2284 fprintf( stderr
, " lparam=%lx,", req
->lparam
);
2285 fprintf( stderr
, " info=%lx,", req
->info
);
2286 fprintf( stderr
, " x=%d,", req
->x
);
2287 fprintf( stderr
, " y=%d", req
->y
);
2290 static void dump_get_message_request( const struct get_message_request
*req
)
2292 fprintf( stderr
, " flags=%08x,", req
->flags
);
2293 fprintf( stderr
, " get_win=%p,", req
->get_win
);
2294 fprintf( stderr
, " get_first=%08x,", req
->get_first
);
2295 fprintf( stderr
, " get_last=%08x,", req
->get_last
);
2296 fprintf( stderr
, " hw_id=%08x", req
->hw_id
);
2299 static void dump_get_message_reply( const struct get_message_reply
*req
)
2301 fprintf( stderr
, " win=%p,", req
->win
);
2302 fprintf( stderr
, " type=%d,", req
->type
);
2303 fprintf( stderr
, " msg=%08x,", req
->msg
);
2304 fprintf( stderr
, " wparam=%lx,", req
->wparam
);
2305 fprintf( stderr
, " lparam=%lx,", req
->lparam
);
2306 fprintf( stderr
, " info=%lx,", req
->info
);
2307 fprintf( stderr
, " x=%d,", req
->x
);
2308 fprintf( stderr
, " y=%d,", req
->y
);
2309 fprintf( stderr
, " time=%08x,", req
->time
);
2310 fprintf( stderr
, " hw_id=%08x,", req
->hw_id
);
2311 fprintf( stderr
, " active_hooks=%08x,", req
->active_hooks
);
2312 fprintf( stderr
, " total=%u,", req
->total
);
2313 fprintf( stderr
, " data=" );
2314 dump_varargs_message_data( cur_size
);
2317 static void dump_reply_message_request( const struct reply_message_request
*req
)
2319 fprintf( stderr
, " result=%08x,", req
->result
);
2320 fprintf( stderr
, " remove=%d,", req
->remove
);
2321 fprintf( stderr
, " data=" );
2322 dump_varargs_bytes( cur_size
);
2325 static void dump_accept_hardware_message_request( const struct accept_hardware_message_request
*req
)
2327 fprintf( stderr
, " hw_id=%08x,", req
->hw_id
);
2328 fprintf( stderr
, " remove=%d,", req
->remove
);
2329 fprintf( stderr
, " new_win=%p", req
->new_win
);
2332 static void dump_get_message_reply_request( const struct get_message_reply_request
*req
)
2334 fprintf( stderr
, " cancel=%d", req
->cancel
);
2337 static void dump_get_message_reply_reply( const struct get_message_reply_reply
*req
)
2339 fprintf( stderr
, " result=%08x,", req
->result
);
2340 fprintf( stderr
, " data=" );
2341 dump_varargs_bytes( cur_size
);
2344 static void dump_set_win_timer_request( const struct set_win_timer_request
*req
)
2346 fprintf( stderr
, " win=%p,", req
->win
);
2347 fprintf( stderr
, " msg=%08x,", req
->msg
);
2348 fprintf( stderr
, " rate=%08x,", req
->rate
);
2349 fprintf( stderr
, " id=%lx,", req
->id
);
2350 fprintf( stderr
, " lparam=%lx", req
->lparam
);
2353 static void dump_set_win_timer_reply( const struct set_win_timer_reply
*req
)
2355 fprintf( stderr
, " id=%lx", req
->id
);
2358 static void dump_kill_win_timer_request( const struct kill_win_timer_request
*req
)
2360 fprintf( stderr
, " win=%p,", req
->win
);
2361 fprintf( stderr
, " msg=%08x,", req
->msg
);
2362 fprintf( stderr
, " id=%lx", req
->id
);
2365 static void dump_get_serial_info_request( const struct get_serial_info_request
*req
)
2367 fprintf( stderr
, " handle=%p", req
->handle
);
2370 static void dump_get_serial_info_reply( const struct get_serial_info_reply
*req
)
2372 fprintf( stderr
, " readinterval=%08x,", req
->readinterval
);
2373 fprintf( stderr
, " readconst=%08x,", req
->readconst
);
2374 fprintf( stderr
, " readmult=%08x,", req
->readmult
);
2375 fprintf( stderr
, " writeconst=%08x,", req
->writeconst
);
2376 fprintf( stderr
, " writemult=%08x,", req
->writemult
);
2377 fprintf( stderr
, " eventmask=%08x", req
->eventmask
);
2380 static void dump_set_serial_info_request( const struct set_serial_info_request
*req
)
2382 fprintf( stderr
, " handle=%p,", req
->handle
);
2383 fprintf( stderr
, " flags=%d,", req
->flags
);
2384 fprintf( stderr
, " readinterval=%08x,", req
->readinterval
);
2385 fprintf( stderr
, " readconst=%08x,", req
->readconst
);
2386 fprintf( stderr
, " readmult=%08x,", req
->readmult
);
2387 fprintf( stderr
, " writeconst=%08x,", req
->writeconst
);
2388 fprintf( stderr
, " writemult=%08x,", req
->writemult
);
2389 fprintf( stderr
, " eventmask=%08x", req
->eventmask
);
2392 static void dump_register_async_request( const struct register_async_request
*req
)
2394 fprintf( stderr
, " handle=%p,", req
->handle
);
2395 fprintf( stderr
, " type=%d,", req
->type
);
2396 fprintf( stderr
, " count=%d,", req
->count
);
2397 fprintf( stderr
, " async=" );
2398 dump_async_data( &req
->async
);
2401 static void dump_cancel_async_request( const struct cancel_async_request
*req
)
2403 fprintf( stderr
, " handle=%p", req
->handle
);
2406 static void dump_ioctl_request( const struct ioctl_request
*req
)
2408 fprintf( stderr
, " handle=%p,", req
->handle
);
2409 fprintf( stderr
, " code=" );
2410 dump_ioctl_code( &req
->code
);
2411 fprintf( stderr
, "," );
2412 fprintf( stderr
, " async=" );
2413 dump_async_data( &req
->async
);
2414 fprintf( stderr
, "," );
2415 fprintf( stderr
, " in_data=" );
2416 dump_varargs_bytes( cur_size
);
2419 static void dump_ioctl_reply( const struct ioctl_reply
*req
)
2421 fprintf( stderr
, " wait=%p,", req
->wait
);
2422 fprintf( stderr
, " options=%08x,", req
->options
);
2423 fprintf( stderr
, " out_data=" );
2424 dump_varargs_bytes( cur_size
);
2427 static void dump_create_named_pipe_request( const struct create_named_pipe_request
*req
)
2429 fprintf( stderr
, " access=%08x,", req
->access
);
2430 fprintf( stderr
, " attributes=%08x,", req
->attributes
);
2431 fprintf( stderr
, " rootdir=%p,", req
->rootdir
);
2432 fprintf( stderr
, " options=%08x,", req
->options
);
2433 fprintf( stderr
, " flags=%08x,", req
->flags
);
2434 fprintf( stderr
, " maxinstances=%08x,", req
->maxinstances
);
2435 fprintf( stderr
, " outsize=%08x,", req
->outsize
);
2436 fprintf( stderr
, " insize=%08x,", req
->insize
);
2437 fprintf( stderr
, " timeout=" );
2438 dump_timeout( &req
->timeout
);
2439 fprintf( stderr
, "," );
2440 fprintf( stderr
, " name=" );
2441 dump_varargs_unicode_str( cur_size
);
2444 static void dump_create_named_pipe_reply( const struct create_named_pipe_reply
*req
)
2446 fprintf( stderr
, " handle=%p", req
->handle
);
2449 static void dump_get_named_pipe_info_request( const struct get_named_pipe_info_request
*req
)
2451 fprintf( stderr
, " handle=%p", req
->handle
);
2454 static void dump_get_named_pipe_info_reply( const struct get_named_pipe_info_reply
*req
)
2456 fprintf( stderr
, " flags=%08x,", req
->flags
);
2457 fprintf( stderr
, " maxinstances=%08x,", req
->maxinstances
);
2458 fprintf( stderr
, " instances=%08x,", req
->instances
);
2459 fprintf( stderr
, " outsize=%08x,", req
->outsize
);
2460 fprintf( stderr
, " insize=%08x", req
->insize
);
2463 static void dump_create_window_request( const struct create_window_request
*req
)
2465 fprintf( stderr
, " parent=%p,", req
->parent
);
2466 fprintf( stderr
, " owner=%p,", req
->owner
);
2467 fprintf( stderr
, " atom=%04x,", req
->atom
);
2468 fprintf( stderr
, " instance=%p", req
->instance
);
2471 static void dump_create_window_reply( const struct create_window_reply
*req
)
2473 fprintf( stderr
, " handle=%p,", req
->handle
);
2474 fprintf( stderr
, " parent=%p,", req
->parent
);
2475 fprintf( stderr
, " owner=%p,", req
->owner
);
2476 fprintf( stderr
, " extra=%d,", req
->extra
);
2477 fprintf( stderr
, " class_ptr=%p", req
->class_ptr
);
2480 static void dump_destroy_window_request( const struct destroy_window_request
*req
)
2482 fprintf( stderr
, " handle=%p", req
->handle
);
2485 static void dump_get_desktop_window_request( const struct get_desktop_window_request
*req
)
2487 fprintf( stderr
, " force=%d", req
->force
);
2490 static void dump_get_desktop_window_reply( const struct get_desktop_window_reply
*req
)
2492 fprintf( stderr
, " handle=%p", req
->handle
);
2495 static void dump_set_window_owner_request( const struct set_window_owner_request
*req
)
2497 fprintf( stderr
, " handle=%p,", req
->handle
);
2498 fprintf( stderr
, " owner=%p", req
->owner
);
2501 static void dump_set_window_owner_reply( const struct set_window_owner_reply
*req
)
2503 fprintf( stderr
, " full_owner=%p,", req
->full_owner
);
2504 fprintf( stderr
, " prev_owner=%p", req
->prev_owner
);
2507 static void dump_get_window_info_request( const struct get_window_info_request
*req
)
2509 fprintf( stderr
, " handle=%p", req
->handle
);
2512 static void dump_get_window_info_reply( const struct get_window_info_reply
*req
)
2514 fprintf( stderr
, " full_handle=%p,", req
->full_handle
);
2515 fprintf( stderr
, " last_active=%p,", req
->last_active
);
2516 fprintf( stderr
, " pid=%04x,", req
->pid
);
2517 fprintf( stderr
, " tid=%04x,", req
->tid
);
2518 fprintf( stderr
, " atom=%04x,", req
->atom
);
2519 fprintf( stderr
, " is_unicode=%d", req
->is_unicode
);
2522 static void dump_set_window_info_request( const struct set_window_info_request
*req
)
2524 fprintf( stderr
, " flags=%08x,", req
->flags
);
2525 fprintf( stderr
, " handle=%p,", req
->handle
);
2526 fprintf( stderr
, " style=%08x,", req
->style
);
2527 fprintf( stderr
, " ex_style=%08x,", req
->ex_style
);
2528 fprintf( stderr
, " id=%08x,", req
->id
);
2529 fprintf( stderr
, " is_unicode=%d,", req
->is_unicode
);
2530 fprintf( stderr
, " instance=%p,", req
->instance
);
2531 fprintf( stderr
, " user_data=%lx,", req
->user_data
);
2532 fprintf( stderr
, " extra_offset=%d,", req
->extra_offset
);
2533 fprintf( stderr
, " extra_size=%u,", req
->extra_size
);
2534 fprintf( stderr
, " extra_value=%lx", req
->extra_value
);
2537 static void dump_set_window_info_reply( const struct set_window_info_reply
*req
)
2539 fprintf( stderr
, " old_style=%08x,", req
->old_style
);
2540 fprintf( stderr
, " old_ex_style=%08x,", req
->old_ex_style
);
2541 fprintf( stderr
, " old_id=%08x,", req
->old_id
);
2542 fprintf( stderr
, " old_instance=%p,", req
->old_instance
);
2543 fprintf( stderr
, " old_user_data=%lx,", req
->old_user_data
);
2544 fprintf( stderr
, " old_extra_value=%lx", req
->old_extra_value
);
2547 static void dump_set_parent_request( const struct set_parent_request
*req
)
2549 fprintf( stderr
, " handle=%p,", req
->handle
);
2550 fprintf( stderr
, " parent=%p", req
->parent
);
2553 static void dump_set_parent_reply( const struct set_parent_reply
*req
)
2555 fprintf( stderr
, " old_parent=%p,", req
->old_parent
);
2556 fprintf( stderr
, " full_parent=%p", req
->full_parent
);
2559 static void dump_get_window_parents_request( const struct get_window_parents_request
*req
)
2561 fprintf( stderr
, " handle=%p", req
->handle
);
2564 static void dump_get_window_parents_reply( const struct get_window_parents_reply
*req
)
2566 fprintf( stderr
, " count=%d,", req
->count
);
2567 fprintf( stderr
, " parents=" );
2568 dump_varargs_user_handles( cur_size
);
2571 static void dump_get_window_children_request( const struct get_window_children_request
*req
)
2573 fprintf( stderr
, " parent=%p,", req
->parent
);
2574 fprintf( stderr
, " atom=%04x,", req
->atom
);
2575 fprintf( stderr
, " tid=%04x", req
->tid
);
2578 static void dump_get_window_children_reply( const struct get_window_children_reply
*req
)
2580 fprintf( stderr
, " count=%d,", req
->count
);
2581 fprintf( stderr
, " children=" );
2582 dump_varargs_user_handles( cur_size
);
2585 static void dump_get_window_children_from_point_request( const struct get_window_children_from_point_request
*req
)
2587 fprintf( stderr
, " parent=%p,", req
->parent
);
2588 fprintf( stderr
, " x=%d,", req
->x
);
2589 fprintf( stderr
, " y=%d", req
->y
);
2592 static void dump_get_window_children_from_point_reply( const struct get_window_children_from_point_reply
*req
)
2594 fprintf( stderr
, " count=%d,", req
->count
);
2595 fprintf( stderr
, " children=" );
2596 dump_varargs_user_handles( cur_size
);
2599 static void dump_get_window_tree_request( const struct get_window_tree_request
*req
)
2601 fprintf( stderr
, " handle=%p", req
->handle
);
2604 static void dump_get_window_tree_reply( const struct get_window_tree_reply
*req
)
2606 fprintf( stderr
, " parent=%p,", req
->parent
);
2607 fprintf( stderr
, " owner=%p,", req
->owner
);
2608 fprintf( stderr
, " next_sibling=%p,", req
->next_sibling
);
2609 fprintf( stderr
, " prev_sibling=%p,", req
->prev_sibling
);
2610 fprintf( stderr
, " first_sibling=%p,", req
->first_sibling
);
2611 fprintf( stderr
, " last_sibling=%p,", req
->last_sibling
);
2612 fprintf( stderr
, " first_child=%p,", req
->first_child
);
2613 fprintf( stderr
, " last_child=%p", req
->last_child
);
2616 static void dump_set_window_pos_request( const struct set_window_pos_request
*req
)
2618 fprintf( stderr
, " flags=%08x,", req
->flags
);
2619 fprintf( stderr
, " handle=%p,", req
->handle
);
2620 fprintf( stderr
, " previous=%p,", req
->previous
);
2621 fprintf( stderr
, " window=" );
2622 dump_rectangle( &req
->window
);
2623 fprintf( stderr
, "," );
2624 fprintf( stderr
, " client=" );
2625 dump_rectangle( &req
->client
);
2626 fprintf( stderr
, "," );
2627 fprintf( stderr
, " valid=" );
2628 dump_varargs_rectangles( cur_size
);
2631 static void dump_set_window_pos_reply( const struct set_window_pos_reply
*req
)
2633 fprintf( stderr
, " new_style=%08x", req
->new_style
);
2636 static void dump_get_window_rectangles_request( const struct get_window_rectangles_request
*req
)
2638 fprintf( stderr
, " handle=%p", req
->handle
);
2641 static void dump_get_window_rectangles_reply( const struct get_window_rectangles_reply
*req
)
2643 fprintf( stderr
, " window=" );
2644 dump_rectangle( &req
->window
);
2645 fprintf( stderr
, "," );
2646 fprintf( stderr
, " visible=" );
2647 dump_rectangle( &req
->visible
);
2648 fprintf( stderr
, "," );
2649 fprintf( stderr
, " client=" );
2650 dump_rectangle( &req
->client
);
2653 static void dump_get_window_text_request( const struct get_window_text_request
*req
)
2655 fprintf( stderr
, " handle=%p", req
->handle
);
2658 static void dump_get_window_text_reply( const struct get_window_text_reply
*req
)
2660 fprintf( stderr
, " text=" );
2661 dump_varargs_unicode_str( cur_size
);
2664 static void dump_set_window_text_request( const struct set_window_text_request
*req
)
2666 fprintf( stderr
, " handle=%p,", req
->handle
);
2667 fprintf( stderr
, " text=" );
2668 dump_varargs_unicode_str( cur_size
);
2671 static void dump_get_windows_offset_request( const struct get_windows_offset_request
*req
)
2673 fprintf( stderr
, " from=%p,", req
->from
);
2674 fprintf( stderr
, " to=%p", req
->to
);
2677 static void dump_get_windows_offset_reply( const struct get_windows_offset_reply
*req
)
2679 fprintf( stderr
, " x=%d,", req
->x
);
2680 fprintf( stderr
, " y=%d", req
->y
);
2683 static void dump_get_visible_region_request( const struct get_visible_region_request
*req
)
2685 fprintf( stderr
, " window=%p,", req
->window
);
2686 fprintf( stderr
, " flags=%08x", req
->flags
);
2689 static void dump_get_visible_region_reply( const struct get_visible_region_reply
*req
)
2691 fprintf( stderr
, " top_win=%p,", req
->top_win
);
2692 fprintf( stderr
, " top_rect=" );
2693 dump_rectangle( &req
->top_rect
);
2694 fprintf( stderr
, "," );
2695 fprintf( stderr
, " win_rect=" );
2696 dump_rectangle( &req
->win_rect
);
2697 fprintf( stderr
, "," );
2698 fprintf( stderr
, " total_size=%u,", req
->total_size
);
2699 fprintf( stderr
, " region=" );
2700 dump_varargs_rectangles( cur_size
);
2703 static void dump_get_window_region_request( const struct get_window_region_request
*req
)
2705 fprintf( stderr
, " window=%p", req
->window
);
2708 static void dump_get_window_region_reply( const struct get_window_region_reply
*req
)
2710 fprintf( stderr
, " total_size=%u,", req
->total_size
);
2711 fprintf( stderr
, " region=" );
2712 dump_varargs_rectangles( cur_size
);
2715 static void dump_set_window_region_request( const struct set_window_region_request
*req
)
2717 fprintf( stderr
, " window=%p,", req
->window
);
2718 fprintf( stderr
, " redraw=%d,", req
->redraw
);
2719 fprintf( stderr
, " region=" );
2720 dump_varargs_rectangles( cur_size
);
2723 static void dump_get_update_region_request( const struct get_update_region_request
*req
)
2725 fprintf( stderr
, " window=%p,", req
->window
);
2726 fprintf( stderr
, " from_child=%p,", req
->from_child
);
2727 fprintf( stderr
, " flags=%08x", req
->flags
);
2730 static void dump_get_update_region_reply( const struct get_update_region_reply
*req
)
2732 fprintf( stderr
, " child=%p,", req
->child
);
2733 fprintf( stderr
, " flags=%08x,", req
->flags
);
2734 fprintf( stderr
, " total_size=%u,", req
->total_size
);
2735 fprintf( stderr
, " region=" );
2736 dump_varargs_rectangles( cur_size
);
2739 static void dump_update_window_zorder_request( const struct update_window_zorder_request
*req
)
2741 fprintf( stderr
, " window=%p,", req
->window
);
2742 fprintf( stderr
, " rect=" );
2743 dump_rectangle( &req
->rect
);
2746 static void dump_redraw_window_request( const struct redraw_window_request
*req
)
2748 fprintf( stderr
, " window=%p,", req
->window
);
2749 fprintf( stderr
, " flags=%08x,", req
->flags
);
2750 fprintf( stderr
, " region=" );
2751 dump_varargs_rectangles( cur_size
);
2754 static void dump_set_window_property_request( const struct set_window_property_request
*req
)
2756 fprintf( stderr
, " window=%p,", req
->window
);
2757 fprintf( stderr
, " atom=%04x,", req
->atom
);
2758 fprintf( stderr
, " handle=%p,", req
->handle
);
2759 fprintf( stderr
, " name=" );
2760 dump_varargs_unicode_str( cur_size
);
2763 static void dump_remove_window_property_request( const struct remove_window_property_request
*req
)
2765 fprintf( stderr
, " window=%p,", req
->window
);
2766 fprintf( stderr
, " atom=%04x,", req
->atom
);
2767 fprintf( stderr
, " name=" );
2768 dump_varargs_unicode_str( cur_size
);
2771 static void dump_remove_window_property_reply( const struct remove_window_property_reply
*req
)
2773 fprintf( stderr
, " handle=%p", req
->handle
);
2776 static void dump_get_window_property_request( const struct get_window_property_request
*req
)
2778 fprintf( stderr
, " window=%p,", req
->window
);
2779 fprintf( stderr
, " atom=%04x,", req
->atom
);
2780 fprintf( stderr
, " name=" );
2781 dump_varargs_unicode_str( cur_size
);
2784 static void dump_get_window_property_reply( const struct get_window_property_reply
*req
)
2786 fprintf( stderr
, " handle=%p", req
->handle
);
2789 static void dump_get_window_properties_request( const struct get_window_properties_request
*req
)
2791 fprintf( stderr
, " window=%p", req
->window
);
2794 static void dump_get_window_properties_reply( const struct get_window_properties_reply
*req
)
2796 fprintf( stderr
, " total=%d,", req
->total
);
2797 fprintf( stderr
, " props=" );
2798 dump_varargs_properties( cur_size
);
2801 static void dump_create_winstation_request( const struct create_winstation_request
*req
)
2803 fprintf( stderr
, " flags=%08x,", req
->flags
);
2804 fprintf( stderr
, " access=%08x,", req
->access
);
2805 fprintf( stderr
, " attributes=%08x,", req
->attributes
);
2806 fprintf( stderr
, " name=" );
2807 dump_varargs_unicode_str( cur_size
);
2810 static void dump_create_winstation_reply( const struct create_winstation_reply
*req
)
2812 fprintf( stderr
, " handle=%p", req
->handle
);
2815 static void dump_open_winstation_request( const struct open_winstation_request
*req
)
2817 fprintf( stderr
, " access=%08x,", req
->access
);
2818 fprintf( stderr
, " attributes=%08x,", req
->attributes
);
2819 fprintf( stderr
, " name=" );
2820 dump_varargs_unicode_str( cur_size
);
2823 static void dump_open_winstation_reply( const struct open_winstation_reply
*req
)
2825 fprintf( stderr
, " handle=%p", req
->handle
);
2828 static void dump_close_winstation_request( const struct close_winstation_request
*req
)
2830 fprintf( stderr
, " handle=%p", req
->handle
);
2833 static void dump_get_process_winstation_request( const struct get_process_winstation_request
*req
)
2837 static void dump_get_process_winstation_reply( const struct get_process_winstation_reply
*req
)
2839 fprintf( stderr
, " handle=%p", req
->handle
);
2842 static void dump_set_process_winstation_request( const struct set_process_winstation_request
*req
)
2844 fprintf( stderr
, " handle=%p", req
->handle
);
2847 static void dump_create_desktop_request( const struct create_desktop_request
*req
)
2849 fprintf( stderr
, " flags=%08x,", req
->flags
);
2850 fprintf( stderr
, " access=%08x,", req
->access
);
2851 fprintf( stderr
, " attributes=%08x,", req
->attributes
);
2852 fprintf( stderr
, " name=" );
2853 dump_varargs_unicode_str( cur_size
);
2856 static void dump_create_desktop_reply( const struct create_desktop_reply
*req
)
2858 fprintf( stderr
, " handle=%p", req
->handle
);
2861 static void dump_open_desktop_request( const struct open_desktop_request
*req
)
2863 fprintf( stderr
, " flags=%08x,", req
->flags
);
2864 fprintf( stderr
, " access=%08x,", req
->access
);
2865 fprintf( stderr
, " attributes=%08x,", req
->attributes
);
2866 fprintf( stderr
, " name=" );
2867 dump_varargs_unicode_str( cur_size
);
2870 static void dump_open_desktop_reply( const struct open_desktop_reply
*req
)
2872 fprintf( stderr
, " handle=%p", req
->handle
);
2875 static void dump_close_desktop_request( const struct close_desktop_request
*req
)
2877 fprintf( stderr
, " handle=%p", req
->handle
);
2880 static void dump_get_thread_desktop_request( const struct get_thread_desktop_request
*req
)
2882 fprintf( stderr
, " tid=%04x", req
->tid
);
2885 static void dump_get_thread_desktop_reply( const struct get_thread_desktop_reply
*req
)
2887 fprintf( stderr
, " handle=%p", req
->handle
);
2890 static void dump_set_thread_desktop_request( const struct set_thread_desktop_request
*req
)
2892 fprintf( stderr
, " handle=%p", req
->handle
);
2895 static void dump_set_user_object_info_request( const struct set_user_object_info_request
*req
)
2897 fprintf( stderr
, " handle=%p,", req
->handle
);
2898 fprintf( stderr
, " flags=%08x,", req
->flags
);
2899 fprintf( stderr
, " obj_flags=%08x", req
->obj_flags
);
2902 static void dump_set_user_object_info_reply( const struct set_user_object_info_reply
*req
)
2904 fprintf( stderr
, " is_desktop=%d,", req
->is_desktop
);
2905 fprintf( stderr
, " old_obj_flags=%08x,", req
->old_obj_flags
);
2906 fprintf( stderr
, " name=" );
2907 dump_varargs_unicode_str( cur_size
);
2910 static void dump_attach_thread_input_request( const struct attach_thread_input_request
*req
)
2912 fprintf( stderr
, " tid_from=%04x,", req
->tid_from
);
2913 fprintf( stderr
, " tid_to=%04x,", req
->tid_to
);
2914 fprintf( stderr
, " attach=%d", req
->attach
);
2917 static void dump_get_thread_input_request( const struct get_thread_input_request
*req
)
2919 fprintf( stderr
, " tid=%04x", req
->tid
);
2922 static void dump_get_thread_input_reply( const struct get_thread_input_reply
*req
)
2924 fprintf( stderr
, " focus=%p,", req
->focus
);
2925 fprintf( stderr
, " capture=%p,", req
->capture
);
2926 fprintf( stderr
, " active=%p,", req
->active
);
2927 fprintf( stderr
, " foreground=%p,", req
->foreground
);
2928 fprintf( stderr
, " menu_owner=%p,", req
->menu_owner
);
2929 fprintf( stderr
, " move_size=%p,", req
->move_size
);
2930 fprintf( stderr
, " caret=%p,", req
->caret
);
2931 fprintf( stderr
, " rect=" );
2932 dump_rectangle( &req
->rect
);
2935 static void dump_get_last_input_time_request( const struct get_last_input_time_request
*req
)
2939 static void dump_get_last_input_time_reply( const struct get_last_input_time_reply
*req
)
2941 fprintf( stderr
, " time=%08x", req
->time
);
2944 static void dump_get_key_state_request( const struct get_key_state_request
*req
)
2946 fprintf( stderr
, " tid=%04x,", req
->tid
);
2947 fprintf( stderr
, " key=%d", req
->key
);
2950 static void dump_get_key_state_reply( const struct get_key_state_reply
*req
)
2952 fprintf( stderr
, " state=%02x,", req
->state
);
2953 fprintf( stderr
, " keystate=" );
2954 dump_varargs_bytes( cur_size
);
2957 static void dump_set_key_state_request( const struct set_key_state_request
*req
)
2959 fprintf( stderr
, " tid=%04x,", req
->tid
);
2960 fprintf( stderr
, " keystate=" );
2961 dump_varargs_bytes( cur_size
);
2964 static void dump_set_foreground_window_request( const struct set_foreground_window_request
*req
)
2966 fprintf( stderr
, " handle=%p", req
->handle
);
2969 static void dump_set_foreground_window_reply( const struct set_foreground_window_reply
*req
)
2971 fprintf( stderr
, " previous=%p,", req
->previous
);
2972 fprintf( stderr
, " send_msg_old=%d,", req
->send_msg_old
);
2973 fprintf( stderr
, " send_msg_new=%d", req
->send_msg_new
);
2976 static void dump_set_focus_window_request( const struct set_focus_window_request
*req
)
2978 fprintf( stderr
, " handle=%p", req
->handle
);
2981 static void dump_set_focus_window_reply( const struct set_focus_window_reply
*req
)
2983 fprintf( stderr
, " previous=%p", req
->previous
);
2986 static void dump_set_active_window_request( const struct set_active_window_request
*req
)
2988 fprintf( stderr
, " handle=%p", req
->handle
);
2991 static void dump_set_active_window_reply( const struct set_active_window_reply
*req
)
2993 fprintf( stderr
, " previous=%p", req
->previous
);
2996 static void dump_set_capture_window_request( const struct set_capture_window_request
*req
)
2998 fprintf( stderr
, " handle=%p,", req
->handle
);
2999 fprintf( stderr
, " flags=%08x", req
->flags
);
3002 static void dump_set_capture_window_reply( const struct set_capture_window_reply
*req
)
3004 fprintf( stderr
, " previous=%p,", req
->previous
);
3005 fprintf( stderr
, " full_handle=%p", req
->full_handle
);
3008 static void dump_set_caret_window_request( const struct set_caret_window_request
*req
)
3010 fprintf( stderr
, " handle=%p,", req
->handle
);
3011 fprintf( stderr
, " width=%d,", req
->width
);
3012 fprintf( stderr
, " height=%d", req
->height
);
3015 static void dump_set_caret_window_reply( const struct set_caret_window_reply
*req
)
3017 fprintf( stderr
, " previous=%p,", req
->previous
);
3018 fprintf( stderr
, " old_rect=" );
3019 dump_rectangle( &req
->old_rect
);
3020 fprintf( stderr
, "," );
3021 fprintf( stderr
, " old_hide=%d,", req
->old_hide
);
3022 fprintf( stderr
, " old_state=%d", req
->old_state
);
3025 static void dump_set_caret_info_request( const struct set_caret_info_request
*req
)
3027 fprintf( stderr
, " flags=%08x,", req
->flags
);
3028 fprintf( stderr
, " handle=%p,", req
->handle
);
3029 fprintf( stderr
, " x=%d,", req
->x
);
3030 fprintf( stderr
, " y=%d,", req
->y
);
3031 fprintf( stderr
, " hide=%d,", req
->hide
);
3032 fprintf( stderr
, " state=%d", req
->state
);
3035 static void dump_set_caret_info_reply( const struct set_caret_info_reply
*req
)
3037 fprintf( stderr
, " full_handle=%p,", req
->full_handle
);
3038 fprintf( stderr
, " old_rect=" );
3039 dump_rectangle( &req
->old_rect
);
3040 fprintf( stderr
, "," );
3041 fprintf( stderr
, " old_hide=%d,", req
->old_hide
);
3042 fprintf( stderr
, " old_state=%d", req
->old_state
);
3045 static void dump_set_hook_request( const struct set_hook_request
*req
)
3047 fprintf( stderr
, " id=%d,", req
->id
);
3048 fprintf( stderr
, " pid=%04x,", req
->pid
);
3049 fprintf( stderr
, " tid=%04x,", req
->tid
);
3050 fprintf( stderr
, " event_min=%d,", req
->event_min
);
3051 fprintf( stderr
, " event_max=%d,", req
->event_max
);
3052 fprintf( stderr
, " flags=%d,", req
->flags
);
3053 fprintf( stderr
, " proc=%p,", req
->proc
);
3054 fprintf( stderr
, " unicode=%d,", req
->unicode
);
3055 fprintf( stderr
, " module=" );
3056 dump_varargs_unicode_str( cur_size
);
3059 static void dump_set_hook_reply( const struct set_hook_reply
*req
)
3061 fprintf( stderr
, " handle=%p,", req
->handle
);
3062 fprintf( stderr
, " active_hooks=%08x", req
->active_hooks
);
3065 static void dump_remove_hook_request( const struct remove_hook_request
*req
)
3067 fprintf( stderr
, " handle=%p,", req
->handle
);
3068 fprintf( stderr
, " id=%d,", req
->id
);
3069 fprintf( stderr
, " proc=%p", req
->proc
);
3072 static void dump_remove_hook_reply( const struct remove_hook_reply
*req
)
3074 fprintf( stderr
, " active_hooks=%08x", req
->active_hooks
);
3077 static void dump_start_hook_chain_request( const struct start_hook_chain_request
*req
)
3079 fprintf( stderr
, " id=%d,", req
->id
);
3080 fprintf( stderr
, " event=%d,", req
->event
);
3081 fprintf( stderr
, " window=%p,", req
->window
);
3082 fprintf( stderr
, " object_id=%d,", req
->object_id
);
3083 fprintf( stderr
, " child_id=%d", req
->child_id
);
3086 static void dump_start_hook_chain_reply( const struct start_hook_chain_reply
*req
)
3088 fprintf( stderr
, " handle=%p,", req
->handle
);
3089 fprintf( stderr
, " pid=%04x,", req
->pid
);
3090 fprintf( stderr
, " tid=%04x,", req
->tid
);
3091 fprintf( stderr
, " proc=%p,", req
->proc
);
3092 fprintf( stderr
, " unicode=%d,", req
->unicode
);
3093 fprintf( stderr
, " active_hooks=%08x,", req
->active_hooks
);
3094 fprintf( stderr
, " module=" );
3095 dump_varargs_unicode_str( cur_size
);
3098 static void dump_finish_hook_chain_request( const struct finish_hook_chain_request
*req
)
3100 fprintf( stderr
, " id=%d", req
->id
);
3103 static void dump_get_hook_info_request( const struct get_hook_info_request
*req
)
3105 fprintf( stderr
, " handle=%p,", req
->handle
);
3106 fprintf( stderr
, " get_next=%d,", req
->get_next
);
3107 fprintf( stderr
, " event=%d,", req
->event
);
3108 fprintf( stderr
, " window=%p,", req
->window
);
3109 fprintf( stderr
, " object_id=%d,", req
->object_id
);
3110 fprintf( stderr
, " child_id=%d", req
->child_id
);
3113 static void dump_get_hook_info_reply( const struct get_hook_info_reply
*req
)
3115 fprintf( stderr
, " handle=%p,", req
->handle
);
3116 fprintf( stderr
, " id=%d,", req
->id
);
3117 fprintf( stderr
, " pid=%04x,", req
->pid
);
3118 fprintf( stderr
, " tid=%04x,", req
->tid
);
3119 fprintf( stderr
, " proc=%p,", req
->proc
);
3120 fprintf( stderr
, " unicode=%d,", req
->unicode
);
3121 fprintf( stderr
, " module=" );
3122 dump_varargs_unicode_str( cur_size
);
3125 static void dump_create_class_request( const struct create_class_request
*req
)
3127 fprintf( stderr
, " local=%d,", req
->local
);
3128 fprintf( stderr
, " atom=%04x,", req
->atom
);
3129 fprintf( stderr
, " style=%08x,", req
->style
);
3130 fprintf( stderr
, " instance=%p,", req
->instance
);
3131 fprintf( stderr
, " extra=%d,", req
->extra
);
3132 fprintf( stderr
, " win_extra=%d,", req
->win_extra
);
3133 fprintf( stderr
, " client_ptr=%p", req
->client_ptr
);
3136 static void dump_destroy_class_request( const struct destroy_class_request
*req
)
3138 fprintf( stderr
, " atom=%04x,", req
->atom
);
3139 fprintf( stderr
, " instance=%p", req
->instance
);
3142 static void dump_destroy_class_reply( const struct destroy_class_reply
*req
)
3144 fprintf( stderr
, " client_ptr=%p", req
->client_ptr
);
3147 static void dump_set_class_info_request( const struct set_class_info_request
*req
)
3149 fprintf( stderr
, " window=%p,", req
->window
);
3150 fprintf( stderr
, " flags=%08x,", req
->flags
);
3151 fprintf( stderr
, " atom=%04x,", req
->atom
);
3152 fprintf( stderr
, " style=%08x,", req
->style
);
3153 fprintf( stderr
, " win_extra=%d,", req
->win_extra
);
3154 fprintf( stderr
, " instance=%p,", req
->instance
);
3155 fprintf( stderr
, " extra_offset=%d,", req
->extra_offset
);
3156 fprintf( stderr
, " extra_size=%u,", req
->extra_size
);
3157 fprintf( stderr
, " extra_value=%lx", req
->extra_value
);
3160 static void dump_set_class_info_reply( const struct set_class_info_reply
*req
)
3162 fprintf( stderr
, " old_atom=%04x,", req
->old_atom
);
3163 fprintf( stderr
, " old_style=%08x,", req
->old_style
);
3164 fprintf( stderr
, " old_extra=%d,", req
->old_extra
);
3165 fprintf( stderr
, " old_win_extra=%d,", req
->old_win_extra
);
3166 fprintf( stderr
, " old_instance=%p,", req
->old_instance
);
3167 fprintf( stderr
, " old_extra_value=%lx", req
->old_extra_value
);
3170 static void dump_set_clipboard_info_request( const struct set_clipboard_info_request
*req
)
3172 fprintf( stderr
, " flags=%08x,", req
->flags
);
3173 fprintf( stderr
, " clipboard=%p,", req
->clipboard
);
3174 fprintf( stderr
, " owner=%p,", req
->owner
);
3175 fprintf( stderr
, " viewer=%p,", req
->viewer
);
3176 fprintf( stderr
, " seqno=%08x", req
->seqno
);
3179 static void dump_set_clipboard_info_reply( const struct set_clipboard_info_reply
*req
)
3181 fprintf( stderr
, " flags=%08x,", req
->flags
);
3182 fprintf( stderr
, " old_clipboard=%p,", req
->old_clipboard
);
3183 fprintf( stderr
, " old_owner=%p,", req
->old_owner
);
3184 fprintf( stderr
, " old_viewer=%p,", req
->old_viewer
);
3185 fprintf( stderr
, " seqno=%08x", req
->seqno
);
3188 static void dump_open_token_request( const struct open_token_request
*req
)
3190 fprintf( stderr
, " handle=%p,", req
->handle
);
3191 fprintf( stderr
, " access=%08x,", req
->access
);
3192 fprintf( stderr
, " attributes=%08x,", req
->attributes
);
3193 fprintf( stderr
, " flags=%08x", req
->flags
);
3196 static void dump_open_token_reply( const struct open_token_reply
*req
)
3198 fprintf( stderr
, " token=%p", req
->token
);
3201 static void dump_set_global_windows_request( const struct set_global_windows_request
*req
)
3203 fprintf( stderr
, " flags=%08x,", req
->flags
);
3204 fprintf( stderr
, " shell_window=%p,", req
->shell_window
);
3205 fprintf( stderr
, " shell_listview=%p,", req
->shell_listview
);
3206 fprintf( stderr
, " progman_window=%p,", req
->progman_window
);
3207 fprintf( stderr
, " taskman_window=%p", req
->taskman_window
);
3210 static void dump_set_global_windows_reply( const struct set_global_windows_reply
*req
)
3212 fprintf( stderr
, " old_shell_window=%p,", req
->old_shell_window
);
3213 fprintf( stderr
, " old_shell_listview=%p,", req
->old_shell_listview
);
3214 fprintf( stderr
, " old_progman_window=%p,", req
->old_progman_window
);
3215 fprintf( stderr
, " old_taskman_window=%p", req
->old_taskman_window
);
3218 static void dump_adjust_token_privileges_request( const struct adjust_token_privileges_request
*req
)
3220 fprintf( stderr
, " handle=%p,", req
->handle
);
3221 fprintf( stderr
, " disable_all=%d,", req
->disable_all
);
3222 fprintf( stderr
, " get_modified_state=%d,", req
->get_modified_state
);
3223 fprintf( stderr
, " privileges=" );
3224 dump_varargs_LUID_AND_ATTRIBUTES( cur_size
);
3227 static void dump_adjust_token_privileges_reply( const struct adjust_token_privileges_reply
*req
)
3229 fprintf( stderr
, " len=%08x,", req
->len
);
3230 fprintf( stderr
, " privileges=" );
3231 dump_varargs_LUID_AND_ATTRIBUTES( cur_size
);
3234 static void dump_get_token_privileges_request( const struct get_token_privileges_request
*req
)
3236 fprintf( stderr
, " handle=%p", req
->handle
);
3239 static void dump_get_token_privileges_reply( const struct get_token_privileges_reply
*req
)
3241 fprintf( stderr
, " len=%08x,", req
->len
);
3242 fprintf( stderr
, " privileges=" );
3243 dump_varargs_LUID_AND_ATTRIBUTES( cur_size
);
3246 static void dump_check_token_privileges_request( const struct check_token_privileges_request
*req
)
3248 fprintf( stderr
, " handle=%p,", req
->handle
);
3249 fprintf( stderr
, " all_required=%d,", req
->all_required
);
3250 fprintf( stderr
, " privileges=" );
3251 dump_varargs_LUID_AND_ATTRIBUTES( cur_size
);
3254 static void dump_check_token_privileges_reply( const struct check_token_privileges_reply
*req
)
3256 fprintf( stderr
, " has_privileges=%d,", req
->has_privileges
);
3257 fprintf( stderr
, " privileges=" );
3258 dump_varargs_LUID_AND_ATTRIBUTES( cur_size
);
3261 static void dump_duplicate_token_request( const struct duplicate_token_request
*req
)
3263 fprintf( stderr
, " handle=%p,", req
->handle
);
3264 fprintf( stderr
, " access=%08x,", req
->access
);
3265 fprintf( stderr
, " attributes=%08x,", req
->attributes
);
3266 fprintf( stderr
, " primary=%d,", req
->primary
);
3267 fprintf( stderr
, " impersonation_level=%d", req
->impersonation_level
);
3270 static void dump_duplicate_token_reply( const struct duplicate_token_reply
*req
)
3272 fprintf( stderr
, " new_handle=%p", req
->new_handle
);
3275 static void dump_access_check_request( const struct access_check_request
*req
)
3277 fprintf( stderr
, " handle=%p,", req
->handle
);
3278 fprintf( stderr
, " desired_access=%08x,", req
->desired_access
);
3279 fprintf( stderr
, " mapping_read=%08x,", req
->mapping_read
);
3280 fprintf( stderr
, " mapping_write=%08x,", req
->mapping_write
);
3281 fprintf( stderr
, " mapping_execute=%08x,", req
->mapping_execute
);
3282 fprintf( stderr
, " mapping_all=%08x,", req
->mapping_all
);
3283 fprintf( stderr
, " sd=" );
3284 dump_varargs_security_descriptor( cur_size
);
3287 static void dump_access_check_reply( const struct access_check_reply
*req
)
3289 fprintf( stderr
, " access_granted=%08x,", req
->access_granted
);
3290 fprintf( stderr
, " access_status=%08x,", req
->access_status
);
3291 fprintf( stderr
, " privileges_len=%08x,", req
->privileges_len
);
3292 fprintf( stderr
, " privileges=" );
3293 dump_varargs_LUID_AND_ATTRIBUTES( cur_size
);
3296 static void dump_get_token_user_request( const struct get_token_user_request
*req
)
3298 fprintf( stderr
, " handle=%p", req
->handle
);
3301 static void dump_get_token_user_reply( const struct get_token_user_reply
*req
)
3303 fprintf( stderr
, " user_len=%u,", req
->user_len
);
3304 fprintf( stderr
, " user=" );
3305 dump_varargs_SID( cur_size
);
3308 static void dump_get_token_groups_request( const struct get_token_groups_request
*req
)
3310 fprintf( stderr
, " handle=%p", req
->handle
);
3313 static void dump_get_token_groups_reply( const struct get_token_groups_reply
*req
)
3315 fprintf( stderr
, " user_len=%u,", req
->user_len
);
3316 fprintf( stderr
, " user=" );
3317 dump_varargs_token_groups( cur_size
);
3320 static void dump_set_security_object_request( const struct set_security_object_request
*req
)
3322 fprintf( stderr
, " handle=%p,", req
->handle
);
3323 fprintf( stderr
, " security_info=%08x,", req
->security_info
);
3324 fprintf( stderr
, " sd=" );
3325 dump_varargs_security_descriptor( cur_size
);
3328 static void dump_create_mailslot_request( const struct create_mailslot_request
*req
)
3330 fprintf( stderr
, " access=%08x,", req
->access
);
3331 fprintf( stderr
, " attributes=%08x,", req
->attributes
);
3332 fprintf( stderr
, " rootdir=%p,", req
->rootdir
);
3333 fprintf( stderr
, " max_msgsize=%08x,", req
->max_msgsize
);
3334 fprintf( stderr
, " read_timeout=" );
3335 dump_timeout( &req
->read_timeout
);
3336 fprintf( stderr
, "," );
3337 fprintf( stderr
, " name=" );
3338 dump_varargs_unicode_str( cur_size
);
3341 static void dump_create_mailslot_reply( const struct create_mailslot_reply
*req
)
3343 fprintf( stderr
, " handle=%p", req
->handle
);
3346 static void dump_set_mailslot_info_request( const struct set_mailslot_info_request
*req
)
3348 fprintf( stderr
, " handle=%p,", req
->handle
);
3349 fprintf( stderr
, " flags=%08x,", req
->flags
);
3350 fprintf( stderr
, " read_timeout=" );
3351 dump_timeout( &req
->read_timeout
);
3354 static void dump_set_mailslot_info_reply( const struct set_mailslot_info_reply
*req
)
3356 fprintf( stderr
, " max_msgsize=%08x,", req
->max_msgsize
);
3357 fprintf( stderr
, " read_timeout=" );
3358 dump_timeout( &req
->read_timeout
);
3361 static void dump_create_directory_request( const struct create_directory_request
*req
)
3363 fprintf( stderr
, " access=%08x,", req
->access
);
3364 fprintf( stderr
, " attributes=%08x,", req
->attributes
);
3365 fprintf( stderr
, " rootdir=%p,", req
->rootdir
);
3366 fprintf( stderr
, " directory_name=" );
3367 dump_varargs_unicode_str( cur_size
);
3370 static void dump_create_directory_reply( const struct create_directory_reply
*req
)
3372 fprintf( stderr
, " handle=%p", req
->handle
);
3375 static void dump_open_directory_request( const struct open_directory_request
*req
)
3377 fprintf( stderr
, " access=%08x,", req
->access
);
3378 fprintf( stderr
, " attributes=%08x,", req
->attributes
);
3379 fprintf( stderr
, " rootdir=%p,", req
->rootdir
);
3380 fprintf( stderr
, " directory_name=" );
3381 dump_varargs_unicode_str( cur_size
);
3384 static void dump_open_directory_reply( const struct open_directory_reply
*req
)
3386 fprintf( stderr
, " handle=%p", req
->handle
);
3389 static void dump_create_symlink_request( const struct create_symlink_request
*req
)
3391 fprintf( stderr
, " access=%08x,", req
->access
);
3392 fprintf( stderr
, " attributes=%08x,", req
->attributes
);
3393 fprintf( stderr
, " rootdir=%p,", req
->rootdir
);
3394 fprintf( stderr
, " name_len=%u,", req
->name_len
);
3395 fprintf( stderr
, " name=" );
3396 dump_varargs_unicode_str( min(cur_size
,req
->name_len
) );
3397 fputc( ',', stderr
);
3398 fprintf( stderr
, " target_name=" );
3399 dump_varargs_unicode_str( cur_size
);
3402 static void dump_create_symlink_reply( const struct create_symlink_reply
*req
)
3404 fprintf( stderr
, " handle=%p", req
->handle
);
3407 static void dump_open_symlink_request( const struct open_symlink_request
*req
)
3409 fprintf( stderr
, " access=%08x,", req
->access
);
3410 fprintf( stderr
, " attributes=%08x,", req
->attributes
);
3411 fprintf( stderr
, " rootdir=%p,", req
->rootdir
);
3412 fprintf( stderr
, " name=" );
3413 dump_varargs_unicode_str( cur_size
);
3416 static void dump_open_symlink_reply( const struct open_symlink_reply
*req
)
3418 fprintf( stderr
, " handle=%p", req
->handle
);
3421 static void dump_query_symlink_request( const struct query_symlink_request
*req
)
3423 fprintf( stderr
, " handle=%p", req
->handle
);
3426 static void dump_query_symlink_reply( const struct query_symlink_reply
*req
)
3428 fprintf( stderr
, " target_name=" );
3429 dump_varargs_unicode_str( cur_size
);
3432 static void dump_get_object_info_request( const struct get_object_info_request
*req
)
3434 fprintf( stderr
, " handle=%p", req
->handle
);
3437 static void dump_get_object_info_reply( const struct get_object_info_reply
*req
)
3439 fprintf( stderr
, " access=%08x,", req
->access
);
3440 fprintf( stderr
, " ref_count=%08x", req
->ref_count
);
3443 static void dump_get_token_impersonation_level_request( const struct get_token_impersonation_level_request
*req
)
3445 fprintf( stderr
, " handle=%p", req
->handle
);
3448 static void dump_get_token_impersonation_level_reply( const struct get_token_impersonation_level_reply
*req
)
3450 fprintf( stderr
, " impersonation_level=%d", req
->impersonation_level
);
3453 static void dump_allocate_locally_unique_id_request( const struct allocate_locally_unique_id_request
*req
)
3457 static void dump_allocate_locally_unique_id_reply( const struct allocate_locally_unique_id_reply
*req
)
3459 fprintf( stderr
, " luid=" );
3460 dump_luid( &req
->luid
);
3463 static const dump_func req_dumpers
[REQ_NB_REQUESTS
] = {
3464 (dump_func
)dump_new_process_request
,
3465 (dump_func
)dump_get_new_process_info_request
,
3466 (dump_func
)dump_new_thread_request
,
3467 (dump_func
)dump_get_startup_info_request
,
3468 (dump_func
)dump_init_process_done_request
,
3469 (dump_func
)dump_init_thread_request
,
3470 (dump_func
)dump_terminate_process_request
,
3471 (dump_func
)dump_terminate_thread_request
,
3472 (dump_func
)dump_get_process_info_request
,
3473 (dump_func
)dump_set_process_info_request
,
3474 (dump_func
)dump_get_thread_info_request
,
3475 (dump_func
)dump_set_thread_info_request
,
3476 (dump_func
)dump_get_dll_info_request
,
3477 (dump_func
)dump_suspend_thread_request
,
3478 (dump_func
)dump_resume_thread_request
,
3479 (dump_func
)dump_load_dll_request
,
3480 (dump_func
)dump_unload_dll_request
,
3481 (dump_func
)dump_queue_apc_request
,
3482 (dump_func
)dump_get_apc_request
,
3483 (dump_func
)dump_get_apc_result_request
,
3484 (dump_func
)dump_close_handle_request
,
3485 (dump_func
)dump_set_handle_info_request
,
3486 (dump_func
)dump_dup_handle_request
,
3487 (dump_func
)dump_open_process_request
,
3488 (dump_func
)dump_open_thread_request
,
3489 (dump_func
)dump_select_request
,
3490 (dump_func
)dump_create_event_request
,
3491 (dump_func
)dump_event_op_request
,
3492 (dump_func
)dump_open_event_request
,
3493 (dump_func
)dump_create_mutex_request
,
3494 (dump_func
)dump_release_mutex_request
,
3495 (dump_func
)dump_open_mutex_request
,
3496 (dump_func
)dump_create_semaphore_request
,
3497 (dump_func
)dump_release_semaphore_request
,
3498 (dump_func
)dump_open_semaphore_request
,
3499 (dump_func
)dump_create_file_request
,
3500 (dump_func
)dump_open_file_object_request
,
3501 (dump_func
)dump_alloc_file_handle_request
,
3502 (dump_func
)dump_get_handle_fd_request
,
3503 (dump_func
)dump_flush_file_request
,
3504 (dump_func
)dump_lock_file_request
,
3505 (dump_func
)dump_unlock_file_request
,
3506 (dump_func
)dump_create_socket_request
,
3507 (dump_func
)dump_accept_socket_request
,
3508 (dump_func
)dump_set_socket_event_request
,
3509 (dump_func
)dump_get_socket_event_request
,
3510 (dump_func
)dump_enable_socket_event_request
,
3511 (dump_func
)dump_set_socket_deferred_request
,
3512 (dump_func
)dump_alloc_console_request
,
3513 (dump_func
)dump_free_console_request
,
3514 (dump_func
)dump_get_console_renderer_events_request
,
3515 (dump_func
)dump_open_console_request
,
3516 (dump_func
)dump_get_console_wait_event_request
,
3517 (dump_func
)dump_get_console_mode_request
,
3518 (dump_func
)dump_set_console_mode_request
,
3519 (dump_func
)dump_set_console_input_info_request
,
3520 (dump_func
)dump_get_console_input_info_request
,
3521 (dump_func
)dump_append_console_input_history_request
,
3522 (dump_func
)dump_get_console_input_history_request
,
3523 (dump_func
)dump_create_console_output_request
,
3524 (dump_func
)dump_set_console_output_info_request
,
3525 (dump_func
)dump_get_console_output_info_request
,
3526 (dump_func
)dump_write_console_input_request
,
3527 (dump_func
)dump_read_console_input_request
,
3528 (dump_func
)dump_write_console_output_request
,
3529 (dump_func
)dump_fill_console_output_request
,
3530 (dump_func
)dump_read_console_output_request
,
3531 (dump_func
)dump_move_console_output_request
,
3532 (dump_func
)dump_send_console_signal_request
,
3533 (dump_func
)dump_read_directory_changes_request
,
3534 (dump_func
)dump_read_change_request
,
3535 (dump_func
)dump_create_mapping_request
,
3536 (dump_func
)dump_open_mapping_request
,
3537 (dump_func
)dump_get_mapping_info_request
,
3538 (dump_func
)dump_create_snapshot_request
,
3539 (dump_func
)dump_next_process_request
,
3540 (dump_func
)dump_next_thread_request
,
3541 (dump_func
)dump_next_module_request
,
3542 (dump_func
)dump_wait_debug_event_request
,
3543 (dump_func
)dump_queue_exception_event_request
,
3544 (dump_func
)dump_get_exception_status_request
,
3545 (dump_func
)dump_output_debug_string_request
,
3546 (dump_func
)dump_continue_debug_event_request
,
3547 (dump_func
)dump_debug_process_request
,
3548 (dump_func
)dump_debug_break_request
,
3549 (dump_func
)dump_set_debugger_kill_on_exit_request
,
3550 (dump_func
)dump_read_process_memory_request
,
3551 (dump_func
)dump_write_process_memory_request
,
3552 (dump_func
)dump_create_key_request
,
3553 (dump_func
)dump_open_key_request
,
3554 (dump_func
)dump_delete_key_request
,
3555 (dump_func
)dump_flush_key_request
,
3556 (dump_func
)dump_enum_key_request
,
3557 (dump_func
)dump_set_key_value_request
,
3558 (dump_func
)dump_get_key_value_request
,
3559 (dump_func
)dump_enum_key_value_request
,
3560 (dump_func
)dump_delete_key_value_request
,
3561 (dump_func
)dump_load_registry_request
,
3562 (dump_func
)dump_unload_registry_request
,
3563 (dump_func
)dump_save_registry_request
,
3564 (dump_func
)dump_set_registry_notification_request
,
3565 (dump_func
)dump_create_timer_request
,
3566 (dump_func
)dump_open_timer_request
,
3567 (dump_func
)dump_set_timer_request
,
3568 (dump_func
)dump_cancel_timer_request
,
3569 (dump_func
)dump_get_timer_info_request
,
3570 (dump_func
)dump_get_thread_context_request
,
3571 (dump_func
)dump_set_thread_context_request
,
3572 (dump_func
)dump_get_selector_entry_request
,
3573 (dump_func
)dump_add_atom_request
,
3574 (dump_func
)dump_delete_atom_request
,
3575 (dump_func
)dump_find_atom_request
,
3576 (dump_func
)dump_get_atom_information_request
,
3577 (dump_func
)dump_set_atom_information_request
,
3578 (dump_func
)dump_empty_atom_table_request
,
3579 (dump_func
)dump_init_atom_table_request
,
3580 (dump_func
)dump_get_msg_queue_request
,
3581 (dump_func
)dump_set_queue_fd_request
,
3582 (dump_func
)dump_set_queue_mask_request
,
3583 (dump_func
)dump_get_queue_status_request
,
3584 (dump_func
)dump_get_process_idle_event_request
,
3585 (dump_func
)dump_send_message_request
,
3586 (dump_func
)dump_post_quit_message_request
,
3587 (dump_func
)dump_send_hardware_message_request
,
3588 (dump_func
)dump_get_message_request
,
3589 (dump_func
)dump_reply_message_request
,
3590 (dump_func
)dump_accept_hardware_message_request
,
3591 (dump_func
)dump_get_message_reply_request
,
3592 (dump_func
)dump_set_win_timer_request
,
3593 (dump_func
)dump_kill_win_timer_request
,
3594 (dump_func
)dump_get_serial_info_request
,
3595 (dump_func
)dump_set_serial_info_request
,
3596 (dump_func
)dump_register_async_request
,
3597 (dump_func
)dump_cancel_async_request
,
3598 (dump_func
)dump_ioctl_request
,
3599 (dump_func
)dump_create_named_pipe_request
,
3600 (dump_func
)dump_get_named_pipe_info_request
,
3601 (dump_func
)dump_create_window_request
,
3602 (dump_func
)dump_destroy_window_request
,
3603 (dump_func
)dump_get_desktop_window_request
,
3604 (dump_func
)dump_set_window_owner_request
,
3605 (dump_func
)dump_get_window_info_request
,
3606 (dump_func
)dump_set_window_info_request
,
3607 (dump_func
)dump_set_parent_request
,
3608 (dump_func
)dump_get_window_parents_request
,
3609 (dump_func
)dump_get_window_children_request
,
3610 (dump_func
)dump_get_window_children_from_point_request
,
3611 (dump_func
)dump_get_window_tree_request
,
3612 (dump_func
)dump_set_window_pos_request
,
3613 (dump_func
)dump_get_window_rectangles_request
,
3614 (dump_func
)dump_get_window_text_request
,
3615 (dump_func
)dump_set_window_text_request
,
3616 (dump_func
)dump_get_windows_offset_request
,
3617 (dump_func
)dump_get_visible_region_request
,
3618 (dump_func
)dump_get_window_region_request
,
3619 (dump_func
)dump_set_window_region_request
,
3620 (dump_func
)dump_get_update_region_request
,
3621 (dump_func
)dump_update_window_zorder_request
,
3622 (dump_func
)dump_redraw_window_request
,
3623 (dump_func
)dump_set_window_property_request
,
3624 (dump_func
)dump_remove_window_property_request
,
3625 (dump_func
)dump_get_window_property_request
,
3626 (dump_func
)dump_get_window_properties_request
,
3627 (dump_func
)dump_create_winstation_request
,
3628 (dump_func
)dump_open_winstation_request
,
3629 (dump_func
)dump_close_winstation_request
,
3630 (dump_func
)dump_get_process_winstation_request
,
3631 (dump_func
)dump_set_process_winstation_request
,
3632 (dump_func
)dump_create_desktop_request
,
3633 (dump_func
)dump_open_desktop_request
,
3634 (dump_func
)dump_close_desktop_request
,
3635 (dump_func
)dump_get_thread_desktop_request
,
3636 (dump_func
)dump_set_thread_desktop_request
,
3637 (dump_func
)dump_set_user_object_info_request
,
3638 (dump_func
)dump_attach_thread_input_request
,
3639 (dump_func
)dump_get_thread_input_request
,
3640 (dump_func
)dump_get_last_input_time_request
,
3641 (dump_func
)dump_get_key_state_request
,
3642 (dump_func
)dump_set_key_state_request
,
3643 (dump_func
)dump_set_foreground_window_request
,
3644 (dump_func
)dump_set_focus_window_request
,
3645 (dump_func
)dump_set_active_window_request
,
3646 (dump_func
)dump_set_capture_window_request
,
3647 (dump_func
)dump_set_caret_window_request
,
3648 (dump_func
)dump_set_caret_info_request
,
3649 (dump_func
)dump_set_hook_request
,
3650 (dump_func
)dump_remove_hook_request
,
3651 (dump_func
)dump_start_hook_chain_request
,
3652 (dump_func
)dump_finish_hook_chain_request
,
3653 (dump_func
)dump_get_hook_info_request
,
3654 (dump_func
)dump_create_class_request
,
3655 (dump_func
)dump_destroy_class_request
,
3656 (dump_func
)dump_set_class_info_request
,
3657 (dump_func
)dump_set_clipboard_info_request
,
3658 (dump_func
)dump_open_token_request
,
3659 (dump_func
)dump_set_global_windows_request
,
3660 (dump_func
)dump_adjust_token_privileges_request
,
3661 (dump_func
)dump_get_token_privileges_request
,
3662 (dump_func
)dump_check_token_privileges_request
,
3663 (dump_func
)dump_duplicate_token_request
,
3664 (dump_func
)dump_access_check_request
,
3665 (dump_func
)dump_get_token_user_request
,
3666 (dump_func
)dump_get_token_groups_request
,
3667 (dump_func
)dump_set_security_object_request
,
3668 (dump_func
)dump_create_mailslot_request
,
3669 (dump_func
)dump_set_mailslot_info_request
,
3670 (dump_func
)dump_create_directory_request
,
3671 (dump_func
)dump_open_directory_request
,
3672 (dump_func
)dump_create_symlink_request
,
3673 (dump_func
)dump_open_symlink_request
,
3674 (dump_func
)dump_query_symlink_request
,
3675 (dump_func
)dump_get_object_info_request
,
3676 (dump_func
)dump_get_token_impersonation_level_request
,
3677 (dump_func
)dump_allocate_locally_unique_id_request
,
3680 static const dump_func reply_dumpers
[REQ_NB_REQUESTS
] = {
3681 (dump_func
)dump_new_process_reply
,
3682 (dump_func
)dump_get_new_process_info_reply
,
3683 (dump_func
)dump_new_thread_reply
,
3684 (dump_func
)dump_get_startup_info_reply
,
3686 (dump_func
)dump_init_thread_reply
,
3687 (dump_func
)dump_terminate_process_reply
,
3688 (dump_func
)dump_terminate_thread_reply
,
3689 (dump_func
)dump_get_process_info_reply
,
3691 (dump_func
)dump_get_thread_info_reply
,
3693 (dump_func
)dump_get_dll_info_reply
,
3694 (dump_func
)dump_suspend_thread_reply
,
3695 (dump_func
)dump_resume_thread_reply
,
3698 (dump_func
)dump_queue_apc_reply
,
3699 (dump_func
)dump_get_apc_reply
,
3700 (dump_func
)dump_get_apc_result_reply
,
3702 (dump_func
)dump_set_handle_info_reply
,
3703 (dump_func
)dump_dup_handle_reply
,
3704 (dump_func
)dump_open_process_reply
,
3705 (dump_func
)dump_open_thread_reply
,
3706 (dump_func
)dump_select_reply
,
3707 (dump_func
)dump_create_event_reply
,
3709 (dump_func
)dump_open_event_reply
,
3710 (dump_func
)dump_create_mutex_reply
,
3711 (dump_func
)dump_release_mutex_reply
,
3712 (dump_func
)dump_open_mutex_reply
,
3713 (dump_func
)dump_create_semaphore_reply
,
3714 (dump_func
)dump_release_semaphore_reply
,
3715 (dump_func
)dump_open_semaphore_reply
,
3716 (dump_func
)dump_create_file_reply
,
3717 (dump_func
)dump_open_file_object_reply
,
3718 (dump_func
)dump_alloc_file_handle_reply
,
3719 (dump_func
)dump_get_handle_fd_reply
,
3720 (dump_func
)dump_flush_file_reply
,
3721 (dump_func
)dump_lock_file_reply
,
3723 (dump_func
)dump_create_socket_reply
,
3724 (dump_func
)dump_accept_socket_reply
,
3726 (dump_func
)dump_get_socket_event_reply
,
3729 (dump_func
)dump_alloc_console_reply
,
3731 (dump_func
)dump_get_console_renderer_events_reply
,
3732 (dump_func
)dump_open_console_reply
,
3733 (dump_func
)dump_get_console_wait_event_reply
,
3734 (dump_func
)dump_get_console_mode_reply
,
3737 (dump_func
)dump_get_console_input_info_reply
,
3739 (dump_func
)dump_get_console_input_history_reply
,
3740 (dump_func
)dump_create_console_output_reply
,
3742 (dump_func
)dump_get_console_output_info_reply
,
3743 (dump_func
)dump_write_console_input_reply
,
3744 (dump_func
)dump_read_console_input_reply
,
3745 (dump_func
)dump_write_console_output_reply
,
3746 (dump_func
)dump_fill_console_output_reply
,
3747 (dump_func
)dump_read_console_output_reply
,
3751 (dump_func
)dump_read_change_reply
,
3752 (dump_func
)dump_create_mapping_reply
,
3753 (dump_func
)dump_open_mapping_reply
,
3754 (dump_func
)dump_get_mapping_info_reply
,
3755 (dump_func
)dump_create_snapshot_reply
,
3756 (dump_func
)dump_next_process_reply
,
3757 (dump_func
)dump_next_thread_reply
,
3758 (dump_func
)dump_next_module_reply
,
3759 (dump_func
)dump_wait_debug_event_reply
,
3760 (dump_func
)dump_queue_exception_event_reply
,
3761 (dump_func
)dump_get_exception_status_reply
,
3765 (dump_func
)dump_debug_break_reply
,
3767 (dump_func
)dump_read_process_memory_reply
,
3769 (dump_func
)dump_create_key_reply
,
3770 (dump_func
)dump_open_key_reply
,
3773 (dump_func
)dump_enum_key_reply
,
3775 (dump_func
)dump_get_key_value_reply
,
3776 (dump_func
)dump_enum_key_value_reply
,
3782 (dump_func
)dump_create_timer_reply
,
3783 (dump_func
)dump_open_timer_reply
,
3784 (dump_func
)dump_set_timer_reply
,
3785 (dump_func
)dump_cancel_timer_reply
,
3786 (dump_func
)dump_get_timer_info_reply
,
3787 (dump_func
)dump_get_thread_context_reply
,
3788 (dump_func
)dump_set_thread_context_reply
,
3789 (dump_func
)dump_get_selector_entry_reply
,
3790 (dump_func
)dump_add_atom_reply
,
3792 (dump_func
)dump_find_atom_reply
,
3793 (dump_func
)dump_get_atom_information_reply
,
3796 (dump_func
)dump_init_atom_table_reply
,
3797 (dump_func
)dump_get_msg_queue_reply
,
3799 (dump_func
)dump_set_queue_mask_reply
,
3800 (dump_func
)dump_get_queue_status_reply
,
3801 (dump_func
)dump_get_process_idle_event_reply
,
3805 (dump_func
)dump_get_message_reply
,
3808 (dump_func
)dump_get_message_reply_reply
,
3809 (dump_func
)dump_set_win_timer_reply
,
3811 (dump_func
)dump_get_serial_info_reply
,
3815 (dump_func
)dump_ioctl_reply
,
3816 (dump_func
)dump_create_named_pipe_reply
,
3817 (dump_func
)dump_get_named_pipe_info_reply
,
3818 (dump_func
)dump_create_window_reply
,
3820 (dump_func
)dump_get_desktop_window_reply
,
3821 (dump_func
)dump_set_window_owner_reply
,
3822 (dump_func
)dump_get_window_info_reply
,
3823 (dump_func
)dump_set_window_info_reply
,
3824 (dump_func
)dump_set_parent_reply
,
3825 (dump_func
)dump_get_window_parents_reply
,
3826 (dump_func
)dump_get_window_children_reply
,
3827 (dump_func
)dump_get_window_children_from_point_reply
,
3828 (dump_func
)dump_get_window_tree_reply
,
3829 (dump_func
)dump_set_window_pos_reply
,
3830 (dump_func
)dump_get_window_rectangles_reply
,
3831 (dump_func
)dump_get_window_text_reply
,
3833 (dump_func
)dump_get_windows_offset_reply
,
3834 (dump_func
)dump_get_visible_region_reply
,
3835 (dump_func
)dump_get_window_region_reply
,
3837 (dump_func
)dump_get_update_region_reply
,
3841 (dump_func
)dump_remove_window_property_reply
,
3842 (dump_func
)dump_get_window_property_reply
,
3843 (dump_func
)dump_get_window_properties_reply
,
3844 (dump_func
)dump_create_winstation_reply
,
3845 (dump_func
)dump_open_winstation_reply
,
3847 (dump_func
)dump_get_process_winstation_reply
,
3849 (dump_func
)dump_create_desktop_reply
,
3850 (dump_func
)dump_open_desktop_reply
,
3852 (dump_func
)dump_get_thread_desktop_reply
,
3854 (dump_func
)dump_set_user_object_info_reply
,
3856 (dump_func
)dump_get_thread_input_reply
,
3857 (dump_func
)dump_get_last_input_time_reply
,
3858 (dump_func
)dump_get_key_state_reply
,
3860 (dump_func
)dump_set_foreground_window_reply
,
3861 (dump_func
)dump_set_focus_window_reply
,
3862 (dump_func
)dump_set_active_window_reply
,
3863 (dump_func
)dump_set_capture_window_reply
,
3864 (dump_func
)dump_set_caret_window_reply
,
3865 (dump_func
)dump_set_caret_info_reply
,
3866 (dump_func
)dump_set_hook_reply
,
3867 (dump_func
)dump_remove_hook_reply
,
3868 (dump_func
)dump_start_hook_chain_reply
,
3870 (dump_func
)dump_get_hook_info_reply
,
3872 (dump_func
)dump_destroy_class_reply
,
3873 (dump_func
)dump_set_class_info_reply
,
3874 (dump_func
)dump_set_clipboard_info_reply
,
3875 (dump_func
)dump_open_token_reply
,
3876 (dump_func
)dump_set_global_windows_reply
,
3877 (dump_func
)dump_adjust_token_privileges_reply
,
3878 (dump_func
)dump_get_token_privileges_reply
,
3879 (dump_func
)dump_check_token_privileges_reply
,
3880 (dump_func
)dump_duplicate_token_reply
,
3881 (dump_func
)dump_access_check_reply
,
3882 (dump_func
)dump_get_token_user_reply
,
3883 (dump_func
)dump_get_token_groups_reply
,
3885 (dump_func
)dump_create_mailslot_reply
,
3886 (dump_func
)dump_set_mailslot_info_reply
,
3887 (dump_func
)dump_create_directory_reply
,
3888 (dump_func
)dump_open_directory_reply
,
3889 (dump_func
)dump_create_symlink_reply
,
3890 (dump_func
)dump_open_symlink_reply
,
3891 (dump_func
)dump_query_symlink_reply
,
3892 (dump_func
)dump_get_object_info_reply
,
3893 (dump_func
)dump_get_token_impersonation_level_reply
,
3894 (dump_func
)dump_allocate_locally_unique_id_reply
,
3897 static const char * const req_names
[REQ_NB_REQUESTS
] = {
3899 "get_new_process_info",
3902 "init_process_done",
3904 "terminate_process",
3931 "release_semaphore",
3935 "alloc_file_handle",
3944 "enable_socket_event",
3945 "set_socket_deferred",
3948 "get_console_renderer_events",
3950 "get_console_wait_event",
3953 "set_console_input_info",
3954 "get_console_input_info",
3955 "append_console_input_history",
3956 "get_console_input_history",
3957 "create_console_output",
3958 "set_console_output_info",
3959 "get_console_output_info",
3960 "write_console_input",
3961 "read_console_input",
3962 "write_console_output",
3963 "fill_console_output",
3964 "read_console_output",
3965 "move_console_output",
3966 "send_console_signal",
3967 "read_directory_changes",
3977 "queue_exception_event",
3978 "get_exception_status",
3979 "output_debug_string",
3980 "continue_debug_event",
3983 "set_debugger_kill_on_exit",
3984 "read_process_memory",
3985 "write_process_memory",
3998 "set_registry_notification",
4004 "get_thread_context",
4005 "set_thread_context",
4006 "get_selector_entry",
4010 "get_atom_information",
4011 "set_atom_information",
4018 "get_process_idle_event",
4020 "post_quit_message",
4021 "send_hardware_message",
4024 "accept_hardware_message",
4025 "get_message_reply",
4033 "create_named_pipe",
4034 "get_named_pipe_info",
4037 "get_desktop_window",
4042 "get_window_parents",
4043 "get_window_children",
4044 "get_window_children_from_point",
4047 "get_window_rectangles",
4050 "get_windows_offset",
4051 "get_visible_region",
4052 "get_window_region",
4053 "set_window_region",
4054 "get_update_region",
4055 "update_window_zorder",
4057 "set_window_property",
4058 "remove_window_property",
4059 "get_window_property",
4060 "get_window_properties",
4061 "create_winstation",
4064 "get_process_winstation",
4065 "set_process_winstation",
4069 "get_thread_desktop",
4070 "set_thread_desktop",
4071 "set_user_object_info",
4072 "attach_thread_input",
4074 "get_last_input_time",
4077 "set_foreground_window",
4079 "set_active_window",
4080 "set_capture_window",
4086 "finish_hook_chain",
4091 "set_clipboard_info",
4093 "set_global_windows",
4094 "adjust_token_privileges",
4095 "get_token_privileges",
4096 "check_token_privileges",
4101 "set_security_object",
4103 "set_mailslot_info",
4110 "get_token_impersonation_level",
4111 "allocate_locally_unique_id",
4120 { "ABANDONED_WAIT_0", STATUS_ABANDONED_WAIT_0
},
4121 { "ACCESS_DENIED", STATUS_ACCESS_DENIED
},
4122 { "ACCESS_VIOLATION", STATUS_ACCESS_VIOLATION
},
4123 { "ALERTED", STATUS_ALERTED
},
4124 { "ALIAS_EXISTS", STATUS_ALIAS_EXISTS
},
4125 { "BAD_DEVICE_TYPE", STATUS_BAD_DEVICE_TYPE
},
4126 { "BAD_IMPERSONATION_LEVEL", STATUS_BAD_IMPERSONATION_LEVEL
},
4127 { "BREAKPOINT", STATUS_BREAKPOINT
},
4128 { "BUFFER_OVERFLOW", STATUS_BUFFER_OVERFLOW
},
4129 { "BUFFER_TOO_SMALL", STATUS_BUFFER_TOO_SMALL
},
4130 { "CANCELLED", STATUS_CANCELLED
},
4131 { "CANT_OPEN_ANONYMOUS", STATUS_CANT_OPEN_ANONYMOUS
},
4132 { "CHILD_MUST_BE_VOLATILE", STATUS_CHILD_MUST_BE_VOLATILE
},
4133 { "DEVICE_BUSY", STATUS_DEVICE_BUSY
},
4134 { "DIRECTORY_NOT_EMPTY", STATUS_DIRECTORY_NOT_EMPTY
},
4135 { "DISK_FULL", STATUS_DISK_FULL
},
4136 { "DLL_NOT_FOUND", STATUS_DLL_NOT_FOUND
},
4137 { "ERROR_CLASS_ALREADY_EXISTS", 0xc0010000 | ERROR_CLASS_ALREADY_EXISTS
},
4138 { "ERROR_CLASS_DOES_NOT_EXIST", 0xc0010000 | ERROR_CLASS_DOES_NOT_EXIST
},
4139 { "ERROR_CLASS_HAS_WINDOWS", 0xc0010000 | ERROR_CLASS_HAS_WINDOWS
},
4140 { "ERROR_CLIPBOARD_NOT_OPEN", 0xc0010000 | ERROR_CLIPBOARD_NOT_OPEN
},
4141 { "ERROR_INVALID_INDEX", 0xc0010000 | ERROR_INVALID_INDEX
},
4142 { "ERROR_INVALID_WINDOW_HANDLE", 0xc0010000 | ERROR_INVALID_WINDOW_HANDLE
},
4143 { "FILE_IS_A_DIRECTORY", STATUS_FILE_IS_A_DIRECTORY
},
4144 { "FILE_LOCK_CONFLICT", STATUS_FILE_LOCK_CONFLICT
},
4145 { "GENERIC_NOT_MAPPED", STATUS_GENERIC_NOT_MAPPED
},
4146 { "HANDLES_CLOSED", STATUS_HANDLES_CLOSED
},
4147 { "HANDLE_NOT_CLOSABLE", STATUS_HANDLE_NOT_CLOSABLE
},
4148 { "ILLEGAL_FUNCTION", STATUS_ILLEGAL_FUNCTION
},
4149 { "INSTANCE_NOT_AVAILABLE", STATUS_INSTANCE_NOT_AVAILABLE
},
4150 { "INVALID_CID", STATUS_INVALID_CID
},
4151 { "INVALID_FILE_FOR_SECTION", STATUS_INVALID_FILE_FOR_SECTION
},
4152 { "INVALID_HANDLE", STATUS_INVALID_HANDLE
},
4153 { "INVALID_PARAMETER", STATUS_INVALID_PARAMETER
},
4154 { "INVALID_SECURITY_DESCR", STATUS_INVALID_SECURITY_DESCR
},
4155 { "IO_TIMEOUT", STATUS_IO_TIMEOUT
},
4156 { "KEY_DELETED", STATUS_KEY_DELETED
},
4157 { "MAPPED_FILE_SIZE_ZERO", STATUS_MAPPED_FILE_SIZE_ZERO
},
4158 { "MEDIA_WRITE_PROTECTED", STATUS_MEDIA_WRITE_PROTECTED
},
4159 { "MUTANT_NOT_OWNED", STATUS_MUTANT_NOT_OWNED
},
4160 { "NAME_TOO_LONG", STATUS_NAME_TOO_LONG
},
4161 { "NOTIFY_ENUM_DIR", STATUS_NOTIFY_ENUM_DIR
},
4162 { "NOT_ALL_ASSIGNED", STATUS_NOT_ALL_ASSIGNED
},
4163 { "NOT_A_DIRECTORY", STATUS_NOT_A_DIRECTORY
},
4164 { "NOT_IMPLEMENTED", STATUS_NOT_IMPLEMENTED
},
4165 { "NOT_REGISTRY_FILE", STATUS_NOT_REGISTRY_FILE
},
4166 { "NOT_SUPPORTED", STATUS_NOT_SUPPORTED
},
4167 { "NO_DATA_DETECTED", STATUS_NO_DATA_DETECTED
},
4168 { "NO_IMPERSONATION_TOKEN", STATUS_NO_IMPERSONATION_TOKEN
},
4169 { "NO_MEMORY", STATUS_NO_MEMORY
},
4170 { "NO_MORE_ENTRIES", STATUS_NO_MORE_ENTRIES
},
4171 { "NO_MORE_FILES", STATUS_NO_MORE_FILES
},
4172 { "NO_SUCH_DEVICE", STATUS_NO_SUCH_DEVICE
},
4173 { "NO_SUCH_FILE", STATUS_NO_SUCH_FILE
},
4174 { "NO_TOKEN", STATUS_NO_TOKEN
},
4175 { "OBJECT_NAME_COLLISION", STATUS_OBJECT_NAME_COLLISION
},
4176 { "OBJECT_NAME_EXISTS", STATUS_OBJECT_NAME_EXISTS
},
4177 { "OBJECT_NAME_INVALID", STATUS_OBJECT_NAME_INVALID
},
4178 { "OBJECT_NAME_NOT_FOUND", STATUS_OBJECT_NAME_NOT_FOUND
},
4179 { "OBJECT_PATH_INVALID", STATUS_OBJECT_PATH_INVALID
},
4180 { "OBJECT_PATH_NOT_FOUND", STATUS_OBJECT_PATH_NOT_FOUND
},
4181 { "OBJECT_PATH_SYNTAX_BAD", STATUS_OBJECT_PATH_SYNTAX_BAD
},
4182 { "OBJECT_TYPE_MISMATCH", STATUS_OBJECT_TYPE_MISMATCH
},
4183 { "PENDING", STATUS_PENDING
},
4184 { "PIPE_BUSY", STATUS_PIPE_BUSY
},
4185 { "PIPE_CONNECTED", STATUS_PIPE_CONNECTED
},
4186 { "PIPE_DISCONNECTED", STATUS_PIPE_DISCONNECTED
},
4187 { "PIPE_LISTENING", STATUS_PIPE_LISTENING
},
4188 { "PIPE_NOT_AVAILABLE", STATUS_PIPE_NOT_AVAILABLE
},
4189 { "PRIVILEGE_NOT_HELD", STATUS_PRIVILEGE_NOT_HELD
},
4190 { "PROCESS_IS_TERMINATING", STATUS_PROCESS_IS_TERMINATING
},
4191 { "SECTION_TOO_BIG", STATUS_SECTION_TOO_BIG
},
4192 { "SEMAPHORE_LIMIT_EXCEEDED", STATUS_SEMAPHORE_LIMIT_EXCEEDED
},
4193 { "SHARING_VIOLATION", STATUS_SHARING_VIOLATION
},
4194 { "SUSPEND_COUNT_EXCEEDED", STATUS_SUSPEND_COUNT_EXCEEDED
},
4195 { "THREAD_IS_TERMINATING", STATUS_THREAD_IS_TERMINATING
},
4196 { "TIMEOUT", STATUS_TIMEOUT
},
4197 { "TOO_MANY_OPENED_FILES", STATUS_TOO_MANY_OPENED_FILES
},
4198 { "UNSUCCESSFUL", STATUS_UNSUCCESSFUL
},
4199 { "USER_APC", STATUS_USER_APC
},
4200 { "VOLUME_DISMOUNTED", STATUS_VOLUME_DISMOUNTED
},
4201 { "WAS_LOCKED", STATUS_WAS_LOCKED
},
4205 /* ### make_requests end ### */
4206 /* Everything above this line is generated automatically by tools/make_requests */
4208 static const char *get_status_name( unsigned int status
)
4211 static char buffer
[10];
4215 for (i
= 0; status_names
[i
].name
; i
++)
4216 if (status_names
[i
].value
== status
) return status_names
[i
].name
;
4218 sprintf( buffer
, "%x", status
);
4222 void trace_request(void)
4224 enum request req
= current
->req
.request_header
.req
;
4225 if (req
< REQ_NB_REQUESTS
)
4227 fprintf( stderr
, "%04x: %s(", current
->id
, req_names
[req
] );
4228 if (req_dumpers
[req
])
4230 cur_data
= get_req_data();
4231 cur_size
= get_req_data_size();
4232 req_dumpers
[req
]( ¤t
->req
);
4234 fprintf( stderr
, " )\n" );
4236 else fprintf( stderr
, "%04x: %d(?)\n", current
->id
, req
);
4239 void trace_reply( enum request req
, const union generic_reply
*reply
)
4241 if (req
< REQ_NB_REQUESTS
)
4243 fprintf( stderr
, "%04x: %s() = %s",
4244 current
->id
, req_names
[req
], get_status_name(current
->error
) );
4245 if (reply_dumpers
[req
])
4247 fprintf( stderr
, " {" );
4248 cur_data
= current
->reply_data
;
4249 cur_size
= reply
->reply_header
.reply_size
;
4250 reply_dumpers
[req
]( reply
);
4251 fprintf( stderr
, " }" );
4253 fputc( '\n', stderr
);
4255 else fprintf( stderr
, "%04x: %d() = %s\n",
4256 current
->id
, req
, get_status_name(current
->error
) );