2 * Server request tracing
4 * Copyright (C) 1999 Alexandre Julliard
6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Lesser General Public
8 * License as published by the Free Software Foundation; either
9 * version 2.1 of the License, or (at your option) any later version.
11 * This library is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 * Lesser General Public License for more details.
16 * You should have received a copy of the GNU Lesser General Public
17 * License along with this library; if not, write to the Free Software
18 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
22 #include "wine/port.h"
27 #include <sys/types.h>
34 #define WIN32_NO_STATUS
44 static const void *cur_data
;
45 static data_size_t cur_size
;
47 static const char *get_status_name( unsigned int status
);
49 /* utility functions */
51 static inline void remove_data( data_size_t size
)
53 cur_data
= (const char *)cur_data
+ size
;
57 static void dump_uints( const int *ptr
, int len
)
62 fprintf( stderr
, "%08x", *ptr
++ );
63 if (--len
) fputc( ',', stderr
);
68 static void dump_timeout( const timeout_t
*time
)
70 fprintf( stderr
, get_timeout_str(*time
) );
73 static void dump_rectangle( const rectangle_t
*rect
)
75 fprintf( stderr
, "{%d,%d;%d,%d}",
76 rect
->left
, rect
->top
, rect
->right
, rect
->bottom
);
79 static void dump_char_info( const char_info_t
*info
)
81 fprintf( stderr
, "{'" );
82 dump_strW( &info
->ch
, 1, stderr
, "\'\'" );
83 fprintf( stderr
, "',%04x}", info
->attr
);
86 static void dump_ioctl_code( const ioctl_code_t
*code
)
90 #define CASE(c) case c: fputs( #c, stderr ); break
91 CASE(FSCTL_DISMOUNT_VOLUME
);
92 CASE(FSCTL_PIPE_DISCONNECT
);
93 CASE(FSCTL_PIPE_LISTEN
);
94 CASE(FSCTL_PIPE_WAIT
);
95 default: fprintf( stderr
, "%08x", *code
); break;
100 static void dump_apc_call( const apc_call_t
*call
)
102 fputc( '{', stderr
);
106 fprintf( stderr
, "APC_NONE" );
109 fprintf( stderr
, "APC_USER,args={%lx,%lx,%lx}",
110 call
->user
.args
[0], call
->user
.args
[1], call
->user
.args
[2] );
113 fprintf( stderr
, "APC_TIMER,time=" );
114 dump_timeout( &call
->timer
.time
);
115 fprintf( stderr
, ",arg=%p", call
->timer
.arg
);
118 fprintf( stderr
, "APC_ASYNC_IO,func=%p,user=%p,sb=%p,status=%s",
119 call
->async_io
.func
, call
->async_io
.user
, call
->async_io
.sb
,
120 get_status_name(call
->async_io
.status
) );
122 case APC_VIRTUAL_ALLOC
:
123 fprintf( stderr
, "APC_VIRTUAL_ALLOC,addr=%p,size=%lu,zero_bits=%u,op_type=%x,prot=%x",
124 call
->virtual_alloc
.addr
, call
->virtual_alloc
.size
,
125 call
->virtual_alloc
.zero_bits
, call
->virtual_alloc
.op_type
,
126 call
->virtual_alloc
.prot
);
128 case APC_VIRTUAL_FREE
:
129 fprintf( stderr
, "APC_VIRTUAL_FREE,addr=%p,size=%lu,op_type=%x",
130 call
->virtual_free
.addr
, call
->virtual_free
.size
,
131 call
->virtual_free
.op_type
);
133 case APC_VIRTUAL_QUERY
:
134 fprintf( stderr
, "APC_VIRTUAL_QUERY,addr=%p", call
->virtual_query
.addr
);
136 case APC_VIRTUAL_PROTECT
:
137 fprintf( stderr
, "APC_VIRTUAL_PROTECT,addr=%p,size=%lu,prot=%x",
138 call
->virtual_protect
.addr
, call
->virtual_protect
.size
,
139 call
->virtual_protect
.prot
);
141 case APC_VIRTUAL_FLUSH
:
142 fprintf( stderr
, "APC_VIRTUAL_FLUSH,addr=%p,size=%lu",
143 call
->virtual_flush
.addr
, call
->virtual_flush
.size
);
145 case APC_VIRTUAL_LOCK
:
146 fprintf( stderr
, "APC_VIRTUAL_LOCK,addr=%p,size=%lu",
147 call
->virtual_lock
.addr
, call
->virtual_lock
.size
);
149 case APC_VIRTUAL_UNLOCK
:
150 fprintf( stderr
, "APC_VIRTUAL_UNLOCK,addr=%p,size=%lu",
151 call
->virtual_unlock
.addr
, call
->virtual_unlock
.size
);
154 fprintf( stderr
, "APC_MAP_VIEW,handle=%p,addr=%p,size=%lu,offset=%x%08x,zero_bits=%u,alloc_type=%x,prot=%x",
155 call
->map_view
.handle
, call
->map_view
.addr
, call
->map_view
.size
,
156 call
->map_view
.offset_high
, call
->map_view
.offset_low
, call
->map_view
.zero_bits
,
157 call
->map_view
.alloc_type
, call
->map_view
.prot
);
160 fprintf( stderr
, "APC_UNMAP_VIEW,addr=%p", call
->unmap_view
.addr
);
162 case APC_CREATE_THREAD
:
163 fprintf( stderr
, "APC_CREATE_THREAD,func=%p,arg=%p,reserve=%lx,commit=%lx,suspend=%u",
164 call
->create_thread
.func
, call
->create_thread
.arg
,
165 call
->create_thread
.reserve
, call
->create_thread
.commit
,
166 call
->create_thread
.suspend
);
169 fprintf( stderr
, "type=%u", call
->type
);
172 fputc( '}', stderr
);
175 static void dump_apc_result( const apc_result_t
*result
)
177 fputc( '{', stderr
);
183 fprintf( stderr
, "APC_ASYNC_IO,status=%s",
184 get_status_name( result
->async_io
.status
) );
186 case APC_VIRTUAL_ALLOC
:
187 fprintf( stderr
, "APC_VIRTUAL_ALLOC,status=%s,addr=%p,size=%lu",
188 get_status_name( result
->virtual_alloc
.status
),
189 result
->virtual_alloc
.addr
, result
->virtual_alloc
.size
);
191 case APC_VIRTUAL_FREE
:
192 fprintf( stderr
, "APC_VIRTUAL_FREE,status=%s,addr=%p,size=%lu",
193 get_status_name( result
->virtual_free
.status
),
194 result
->virtual_free
.addr
, result
->virtual_free
.size
);
196 case APC_VIRTUAL_QUERY
:
197 fprintf( stderr
, "APC_VIRTUAL_QUERY,status=%s,base=%p,alloc_base=%p,size=%lu,state=%x,prot=%x,alloc_prot=%x,alloc_type=%x",
198 get_status_name( result
->virtual_query
.status
),
199 result
->virtual_query
.base
, result
->virtual_query
.alloc_base
,
200 result
->virtual_query
.size
, result
->virtual_query
.state
,
201 result
->virtual_query
.prot
, result
->virtual_query
.alloc_prot
,
202 result
->virtual_query
.alloc_type
);
204 case APC_VIRTUAL_PROTECT
:
205 fprintf( stderr
, "APC_VIRTUAL_PROTECT,status=%s,addr=%p,size=%lu,prot=%x",
206 get_status_name( result
->virtual_protect
.status
),
207 result
->virtual_protect
.addr
, result
->virtual_protect
.size
,
208 result
->virtual_protect
.prot
);
210 case APC_VIRTUAL_FLUSH
:
211 fprintf( stderr
, "APC_VIRTUAL_FLUSH,status=%s,addr=%p,size=%lu",
212 get_status_name( result
->virtual_flush
.status
),
213 result
->virtual_flush
.addr
, result
->virtual_flush
.size
);
215 case APC_VIRTUAL_LOCK
:
216 fprintf( stderr
, "APC_VIRTUAL_LOCK,status=%s,addr=%p,size=%lu",
217 get_status_name( result
->virtual_lock
.status
),
218 result
->virtual_lock
.addr
, result
->virtual_lock
.size
);
220 case APC_VIRTUAL_UNLOCK
:
221 fprintf( stderr
, "APC_VIRTUAL_UNLOCK,status=%s,addr=%p,size=%lu",
222 get_status_name( result
->virtual_unlock
.status
),
223 result
->virtual_unlock
.addr
, result
->virtual_unlock
.size
);
226 fprintf( stderr
, "APC_MAP_VIEW,status=%s,addr=%p,size=%lu",
227 get_status_name( result
->map_view
.status
),
228 result
->map_view
.addr
, result
->map_view
.size
);
231 fprintf( stderr
, "APC_UNMAP_VIEW,status=%s",
232 get_status_name( result
->unmap_view
.status
) );
234 case APC_CREATE_THREAD
:
235 fprintf( stderr
, "APC_CREATE_THREAD,status=%s,tid=%04x,handle=%p",
236 get_status_name( result
->create_thread
.status
),
237 result
->create_thread
.tid
, result
->create_thread
.handle
);
240 fprintf( stderr
, "type=%u", result
->type
);
243 fputc( '}', stderr
);
246 static void dump_async_data( const async_data_t
*data
)
248 fprintf( stderr
, "{callback=%p,iosb=%p,arg=%p,apc=%p,event=%p}",
249 data
->callback
, data
->iosb
, data
->arg
, data
->apc
, data
->event
);
252 static void dump_luid( const luid_t
*luid
)
254 fprintf( stderr
, "%d.%u", luid
->high_part
, luid
->low_part
);
257 static void dump_context( const CONTEXT
*context
)
260 fprintf( stderr
, "{flags=%08x,eax=%08x,ebx=%08x,ecx=%08x,edx=%08x,esi=%08x,edi=%08x,"
261 "ebp=%08x,eip=%08x,esp=%08x,eflags=%08x,cs=%04x,ds=%04x,es=%04x,"
262 "fs=%04x,gs=%04x,dr0=%08x,dr1=%08x,dr2=%08x,dr3=%08x,dr6=%08x,dr7=%08x,",
263 context
->ContextFlags
, context
->Eax
, context
->Ebx
, context
->Ecx
, context
->Edx
,
264 context
->Esi
, context
->Edi
, context
->Ebp
, context
->Eip
, context
->Esp
, context
->EFlags
,
265 context
->SegCs
, context
->SegDs
, context
->SegEs
, context
->SegFs
, context
->SegGs
,
266 context
->Dr0
, context
->Dr1
, context
->Dr2
, context
->Dr3
, context
->Dr6
, context
->Dr7
);
267 fprintf( stderr
, "float=" );
268 dump_uints( (const int *)&context
->FloatSave
, sizeof(context
->FloatSave
) / sizeof(int) );
269 fprintf( stderr
, "}" );
271 dump_uints( (const int *)context
, sizeof(*context
) / sizeof(int) );
275 static void dump_exc_record( const EXCEPTION_RECORD
*rec
)
278 fprintf( stderr
, "{code=%x,flags=%x,rec=%p,addr=%p,params={",
279 rec
->ExceptionCode
, rec
->ExceptionFlags
, rec
->ExceptionRecord
,
280 rec
->ExceptionAddress
);
281 for (i
= 0; i
< min(rec
->NumberParameters
,EXCEPTION_MAXIMUM_PARAMETERS
); i
++)
283 if (i
) fputc( ',', stderr
);
284 fprintf( stderr
, "%lx", rec
->ExceptionInformation
[i
] );
286 fputc( '}', stderr
);
289 static void dump_varargs_ints( data_size_t size
)
291 const int *data
= cur_data
;
292 data_size_t len
= size
/ sizeof(*data
);
294 fputc( '{', stderr
);
297 fprintf( stderr
, "%d", *data
++ );
298 if (--len
) fputc( ',', stderr
);
300 fputc( '}', stderr
);
304 static void dump_varargs_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
, " input_cp=%d,", req
->input_cp
);
1470 fprintf( stderr
, " output_cp=%d,", req
->output_cp
);
1471 fprintf( stderr
, " title=" );
1472 dump_varargs_unicode_str( cur_size
);
1475 static void dump_get_console_input_info_request( const struct get_console_input_info_request
*req
)
1477 fprintf( stderr
, " handle=%p", req
->handle
);
1480 static void dump_get_console_input_info_reply( const struct get_console_input_info_reply
*req
)
1482 fprintf( stderr
, " history_mode=%d,", req
->history_mode
);
1483 fprintf( stderr
, " history_size=%d,", req
->history_size
);
1484 fprintf( stderr
, " history_index=%d,", req
->history_index
);
1485 fprintf( stderr
, " edition_mode=%d,", req
->edition_mode
);
1486 fprintf( stderr
, " input_cp=%d,", req
->input_cp
);
1487 fprintf( stderr
, " output_cp=%d,", req
->output_cp
);
1488 fprintf( stderr
, " title=" );
1489 dump_varargs_unicode_str( cur_size
);
1492 static void dump_append_console_input_history_request( const struct append_console_input_history_request
*req
)
1494 fprintf( stderr
, " handle=%p,", req
->handle
);
1495 fprintf( stderr
, " line=" );
1496 dump_varargs_unicode_str( cur_size
);
1499 static void dump_get_console_input_history_request( const struct get_console_input_history_request
*req
)
1501 fprintf( stderr
, " handle=%p,", req
->handle
);
1502 fprintf( stderr
, " index=%d", req
->index
);
1505 static void dump_get_console_input_history_reply( const struct get_console_input_history_reply
*req
)
1507 fprintf( stderr
, " total=%d,", req
->total
);
1508 fprintf( stderr
, " line=" );
1509 dump_varargs_unicode_str( cur_size
);
1512 static void dump_create_console_output_request( const struct create_console_output_request
*req
)
1514 fprintf( stderr
, " handle_in=%p,", req
->handle_in
);
1515 fprintf( stderr
, " access=%08x,", req
->access
);
1516 fprintf( stderr
, " attributes=%08x,", req
->attributes
);
1517 fprintf( stderr
, " share=%08x", req
->share
);
1520 static void dump_create_console_output_reply( const struct create_console_output_reply
*req
)
1522 fprintf( stderr
, " handle_out=%p", req
->handle_out
);
1525 static void dump_set_console_output_info_request( const struct set_console_output_info_request
*req
)
1527 fprintf( stderr
, " handle=%p,", req
->handle
);
1528 fprintf( stderr
, " mask=%d,", req
->mask
);
1529 fprintf( stderr
, " cursor_size=%d,", req
->cursor_size
);
1530 fprintf( stderr
, " cursor_visible=%d,", req
->cursor_visible
);
1531 fprintf( stderr
, " cursor_x=%d,", req
->cursor_x
);
1532 fprintf( stderr
, " cursor_y=%d,", req
->cursor_y
);
1533 fprintf( stderr
, " width=%d,", req
->width
);
1534 fprintf( stderr
, " height=%d,", req
->height
);
1535 fprintf( stderr
, " attr=%d,", req
->attr
);
1536 fprintf( stderr
, " win_left=%d,", req
->win_left
);
1537 fprintf( stderr
, " win_top=%d,", req
->win_top
);
1538 fprintf( stderr
, " win_right=%d,", req
->win_right
);
1539 fprintf( stderr
, " win_bottom=%d,", req
->win_bottom
);
1540 fprintf( stderr
, " max_width=%d,", req
->max_width
);
1541 fprintf( stderr
, " max_height=%d", req
->max_height
);
1544 static void dump_get_console_output_info_request( const struct get_console_output_info_request
*req
)
1546 fprintf( stderr
, " handle=%p", req
->handle
);
1549 static void dump_get_console_output_info_reply( const struct get_console_output_info_reply
*req
)
1551 fprintf( stderr
, " cursor_size=%d,", req
->cursor_size
);
1552 fprintf( stderr
, " cursor_visible=%d,", req
->cursor_visible
);
1553 fprintf( stderr
, " cursor_x=%d,", req
->cursor_x
);
1554 fprintf( stderr
, " cursor_y=%d,", req
->cursor_y
);
1555 fprintf( stderr
, " width=%d,", req
->width
);
1556 fprintf( stderr
, " height=%d,", req
->height
);
1557 fprintf( stderr
, " attr=%d,", req
->attr
);
1558 fprintf( stderr
, " win_left=%d,", req
->win_left
);
1559 fprintf( stderr
, " win_top=%d,", req
->win_top
);
1560 fprintf( stderr
, " win_right=%d,", req
->win_right
);
1561 fprintf( stderr
, " win_bottom=%d,", req
->win_bottom
);
1562 fprintf( stderr
, " max_width=%d,", req
->max_width
);
1563 fprintf( stderr
, " max_height=%d", req
->max_height
);
1566 static void dump_write_console_input_request( const struct write_console_input_request
*req
)
1568 fprintf( stderr
, " handle=%p,", req
->handle
);
1569 fprintf( stderr
, " rec=" );
1570 dump_varargs_input_records( cur_size
);
1573 static void dump_write_console_input_reply( const struct write_console_input_reply
*req
)
1575 fprintf( stderr
, " written=%d", req
->written
);
1578 static void dump_read_console_input_request( const struct read_console_input_request
*req
)
1580 fprintf( stderr
, " handle=%p,", req
->handle
);
1581 fprintf( stderr
, " flush=%d", req
->flush
);
1584 static void dump_read_console_input_reply( const struct read_console_input_reply
*req
)
1586 fprintf( stderr
, " read=%d,", req
->read
);
1587 fprintf( stderr
, " rec=" );
1588 dump_varargs_input_records( cur_size
);
1591 static void dump_write_console_output_request( const struct write_console_output_request
*req
)
1593 fprintf( stderr
, " handle=%p,", req
->handle
);
1594 fprintf( stderr
, " x=%d,", req
->x
);
1595 fprintf( stderr
, " y=%d,", req
->y
);
1596 fprintf( stderr
, " mode=%d,", req
->mode
);
1597 fprintf( stderr
, " wrap=%d,", req
->wrap
);
1598 fprintf( stderr
, " data=" );
1599 dump_varargs_bytes( cur_size
);
1602 static void dump_write_console_output_reply( const struct write_console_output_reply
*req
)
1604 fprintf( stderr
, " written=%d,", req
->written
);
1605 fprintf( stderr
, " width=%d,", req
->width
);
1606 fprintf( stderr
, " height=%d", req
->height
);
1609 static void dump_fill_console_output_request( const struct fill_console_output_request
*req
)
1611 fprintf( stderr
, " handle=%p,", req
->handle
);
1612 fprintf( stderr
, " x=%d,", req
->x
);
1613 fprintf( stderr
, " y=%d,", req
->y
);
1614 fprintf( stderr
, " mode=%d,", req
->mode
);
1615 fprintf( stderr
, " count=%d,", req
->count
);
1616 fprintf( stderr
, " wrap=%d,", req
->wrap
);
1617 fprintf( stderr
, " data=" );
1618 dump_char_info( &req
->data
);
1621 static void dump_fill_console_output_reply( const struct fill_console_output_reply
*req
)
1623 fprintf( stderr
, " written=%d", req
->written
);
1626 static void dump_read_console_output_request( const struct read_console_output_request
*req
)
1628 fprintf( stderr
, " handle=%p,", req
->handle
);
1629 fprintf( stderr
, " x=%d,", req
->x
);
1630 fprintf( stderr
, " y=%d,", req
->y
);
1631 fprintf( stderr
, " mode=%d,", req
->mode
);
1632 fprintf( stderr
, " wrap=%d", req
->wrap
);
1635 static void dump_read_console_output_reply( const struct read_console_output_reply
*req
)
1637 fprintf( stderr
, " width=%d,", req
->width
);
1638 fprintf( stderr
, " height=%d,", req
->height
);
1639 fprintf( stderr
, " data=" );
1640 dump_varargs_bytes( cur_size
);
1643 static void dump_move_console_output_request( const struct move_console_output_request
*req
)
1645 fprintf( stderr
, " handle=%p,", req
->handle
);
1646 fprintf( stderr
, " x_src=%d,", req
->x_src
);
1647 fprintf( stderr
, " y_src=%d,", req
->y_src
);
1648 fprintf( stderr
, " x_dst=%d,", req
->x_dst
);
1649 fprintf( stderr
, " y_dst=%d,", req
->y_dst
);
1650 fprintf( stderr
, " w=%d,", req
->w
);
1651 fprintf( stderr
, " h=%d", req
->h
);
1654 static void dump_send_console_signal_request( const struct send_console_signal_request
*req
)
1656 fprintf( stderr
, " signal=%d,", req
->signal
);
1657 fprintf( stderr
, " group_id=%04x", req
->group_id
);
1660 static void dump_read_directory_changes_request( const struct read_directory_changes_request
*req
)
1662 fprintf( stderr
, " filter=%08x,", req
->filter
);
1663 fprintf( stderr
, " handle=%p,", req
->handle
);
1664 fprintf( stderr
, " subtree=%d,", req
->subtree
);
1665 fprintf( stderr
, " want_data=%d,", req
->want_data
);
1666 fprintf( stderr
, " async=" );
1667 dump_async_data( &req
->async
);
1670 static void dump_read_change_request( const struct read_change_request
*req
)
1672 fprintf( stderr
, " handle=%p", req
->handle
);
1675 static void dump_read_change_reply( const struct read_change_reply
*req
)
1677 fprintf( stderr
, " action=%d,", req
->action
);
1678 fprintf( stderr
, " name=" );
1679 dump_varargs_string( cur_size
);
1682 static void dump_create_mapping_request( const struct create_mapping_request
*req
)
1684 fprintf( stderr
, " access=%08x,", req
->access
);
1685 fprintf( stderr
, " attributes=%08x,", req
->attributes
);
1686 fprintf( stderr
, " rootdir=%p,", req
->rootdir
);
1687 fprintf( stderr
, " size_high=%d,", req
->size_high
);
1688 fprintf( stderr
, " size_low=%d,", req
->size_low
);
1689 fprintf( stderr
, " protect=%d,", req
->protect
);
1690 fprintf( stderr
, " file_handle=%p,", req
->file_handle
);
1691 fprintf( stderr
, " name=" );
1692 dump_varargs_unicode_str( cur_size
);
1695 static void dump_create_mapping_reply( const struct create_mapping_reply
*req
)
1697 fprintf( stderr
, " handle=%p", req
->handle
);
1700 static void dump_open_mapping_request( const struct open_mapping_request
*req
)
1702 fprintf( stderr
, " access=%08x,", req
->access
);
1703 fprintf( stderr
, " attributes=%08x,", req
->attributes
);
1704 fprintf( stderr
, " rootdir=%p,", req
->rootdir
);
1705 fprintf( stderr
, " name=" );
1706 dump_varargs_unicode_str( cur_size
);
1709 static void dump_open_mapping_reply( const struct open_mapping_reply
*req
)
1711 fprintf( stderr
, " handle=%p", req
->handle
);
1714 static void dump_get_mapping_info_request( const struct get_mapping_info_request
*req
)
1716 fprintf( stderr
, " handle=%p", req
->handle
);
1719 static void dump_get_mapping_info_reply( const struct get_mapping_info_reply
*req
)
1721 fprintf( stderr
, " size_high=%d,", req
->size_high
);
1722 fprintf( stderr
, " size_low=%d,", req
->size_low
);
1723 fprintf( stderr
, " protect=%d,", req
->protect
);
1724 fprintf( stderr
, " header_size=%d,", req
->header_size
);
1725 fprintf( stderr
, " base=%p,", req
->base
);
1726 fprintf( stderr
, " mapping=%p,", req
->mapping
);
1727 fprintf( stderr
, " shared_file=%p,", req
->shared_file
);
1728 fprintf( stderr
, " shared_size=%d", req
->shared_size
);
1731 static void dump_create_snapshot_request( const struct create_snapshot_request
*req
)
1733 fprintf( stderr
, " attributes=%08x,", req
->attributes
);
1734 fprintf( stderr
, " flags=%d,", req
->flags
);
1735 fprintf( stderr
, " pid=%04x", req
->pid
);
1738 static void dump_create_snapshot_reply( const struct create_snapshot_reply
*req
)
1740 fprintf( stderr
, " handle=%p", req
->handle
);
1743 static void dump_next_process_request( const struct next_process_request
*req
)
1745 fprintf( stderr
, " handle=%p,", req
->handle
);
1746 fprintf( stderr
, " reset=%d", req
->reset
);
1749 static void dump_next_process_reply( const struct next_process_reply
*req
)
1751 fprintf( stderr
, " count=%d,", req
->count
);
1752 fprintf( stderr
, " pid=%04x,", req
->pid
);
1753 fprintf( stderr
, " ppid=%04x,", req
->ppid
);
1754 fprintf( stderr
, " heap=%p,", req
->heap
);
1755 fprintf( stderr
, " module=%p,", req
->module
);
1756 fprintf( stderr
, " threads=%d,", req
->threads
);
1757 fprintf( stderr
, " priority=%d,", req
->priority
);
1758 fprintf( stderr
, " handles=%d,", req
->handles
);
1759 fprintf( stderr
, " filename=" );
1760 dump_varargs_unicode_str( cur_size
);
1763 static void dump_next_thread_request( const struct next_thread_request
*req
)
1765 fprintf( stderr
, " handle=%p,", req
->handle
);
1766 fprintf( stderr
, " reset=%d", req
->reset
);
1769 static void dump_next_thread_reply( const struct next_thread_reply
*req
)
1771 fprintf( stderr
, " count=%d,", req
->count
);
1772 fprintf( stderr
, " pid=%04x,", req
->pid
);
1773 fprintf( stderr
, " tid=%04x,", req
->tid
);
1774 fprintf( stderr
, " base_pri=%d,", req
->base_pri
);
1775 fprintf( stderr
, " delta_pri=%d", req
->delta_pri
);
1778 static void dump_next_module_request( const struct next_module_request
*req
)
1780 fprintf( stderr
, " handle=%p,", req
->handle
);
1781 fprintf( stderr
, " reset=%d", req
->reset
);
1784 static void dump_next_module_reply( const struct next_module_reply
*req
)
1786 fprintf( stderr
, " pid=%04x,", req
->pid
);
1787 fprintf( stderr
, " base=%p,", req
->base
);
1788 fprintf( stderr
, " size=%lu,", (unsigned long)req
->size
);
1789 fprintf( stderr
, " filename=" );
1790 dump_varargs_unicode_str( cur_size
);
1793 static void dump_wait_debug_event_request( const struct wait_debug_event_request
*req
)
1795 fprintf( stderr
, " get_handle=%d", req
->get_handle
);
1798 static void dump_wait_debug_event_reply( const struct wait_debug_event_reply
*req
)
1800 fprintf( stderr
, " pid=%04x,", req
->pid
);
1801 fprintf( stderr
, " tid=%04x,", req
->tid
);
1802 fprintf( stderr
, " wait=%p,", req
->wait
);
1803 fprintf( stderr
, " event=" );
1804 dump_varargs_debug_event( cur_size
);
1807 static void dump_queue_exception_event_request( const struct queue_exception_event_request
*req
)
1809 fprintf( stderr
, " first=%d,", req
->first
);
1810 fprintf( stderr
, " record=" );
1811 dump_varargs_exc_event( cur_size
);
1814 static void dump_queue_exception_event_reply( const struct queue_exception_event_reply
*req
)
1816 fprintf( stderr
, " handle=%p", req
->handle
);
1819 static void dump_get_exception_status_request( const struct get_exception_status_request
*req
)
1821 fprintf( stderr
, " handle=%p", req
->handle
);
1824 static void dump_get_exception_status_reply( const struct get_exception_status_reply
*req
)
1826 fprintf( stderr
, " context=" );
1827 dump_varargs_context( cur_size
);
1830 static void dump_output_debug_string_request( const struct output_debug_string_request
*req
)
1832 fprintf( stderr
, " string=%p,", req
->string
);
1833 fprintf( stderr
, " unicode=%d,", req
->unicode
);
1834 fprintf( stderr
, " length=%d", req
->length
);
1837 static void dump_continue_debug_event_request( const struct continue_debug_event_request
*req
)
1839 fprintf( stderr
, " pid=%04x,", req
->pid
);
1840 fprintf( stderr
, " tid=%04x,", req
->tid
);
1841 fprintf( stderr
, " status=%d", req
->status
);
1844 static void dump_debug_process_request( const struct debug_process_request
*req
)
1846 fprintf( stderr
, " pid=%04x,", req
->pid
);
1847 fprintf( stderr
, " attach=%d", req
->attach
);
1850 static void dump_debug_break_request( const struct debug_break_request
*req
)
1852 fprintf( stderr
, " handle=%p", req
->handle
);
1855 static void dump_debug_break_reply( const struct debug_break_reply
*req
)
1857 fprintf( stderr
, " self=%d", req
->self
);
1860 static void dump_set_debugger_kill_on_exit_request( const struct set_debugger_kill_on_exit_request
*req
)
1862 fprintf( stderr
, " kill_on_exit=%d", req
->kill_on_exit
);
1865 static void dump_read_process_memory_request( const struct read_process_memory_request
*req
)
1867 fprintf( stderr
, " handle=%p,", req
->handle
);
1868 fprintf( stderr
, " addr=%p", req
->addr
);
1871 static void dump_read_process_memory_reply( const struct read_process_memory_reply
*req
)
1873 fprintf( stderr
, " data=" );
1874 dump_varargs_bytes( cur_size
);
1877 static void dump_write_process_memory_request( const struct write_process_memory_request
*req
)
1879 fprintf( stderr
, " handle=%p,", req
->handle
);
1880 fprintf( stderr
, " addr=%p,", req
->addr
);
1881 fprintf( stderr
, " data=" );
1882 dump_varargs_bytes( cur_size
);
1885 static void dump_create_key_request( const struct create_key_request
*req
)
1887 fprintf( stderr
, " parent=%p,", req
->parent
);
1888 fprintf( stderr
, " access=%08x,", req
->access
);
1889 fprintf( stderr
, " attributes=%08x,", req
->attributes
);
1890 fprintf( stderr
, " options=%08x,", req
->options
);
1891 fprintf( stderr
, " modif=%ld,", (long)req
->modif
);
1892 fprintf( stderr
, " namelen=%u,", req
->namelen
);
1893 fprintf( stderr
, " name=" );
1894 dump_varargs_unicode_str( min(cur_size
,req
->namelen
) );
1895 fputc( ',', stderr
);
1896 fprintf( stderr
, " class=" );
1897 dump_varargs_unicode_str( cur_size
);
1900 static void dump_create_key_reply( const struct create_key_reply
*req
)
1902 fprintf( stderr
, " hkey=%p,", req
->hkey
);
1903 fprintf( stderr
, " created=%d", req
->created
);
1906 static void dump_open_key_request( const struct open_key_request
*req
)
1908 fprintf( stderr
, " parent=%p,", req
->parent
);
1909 fprintf( stderr
, " access=%08x,", req
->access
);
1910 fprintf( stderr
, " attributes=%08x,", req
->attributes
);
1911 fprintf( stderr
, " name=" );
1912 dump_varargs_unicode_str( cur_size
);
1915 static void dump_open_key_reply( const struct open_key_reply
*req
)
1917 fprintf( stderr
, " hkey=%p", req
->hkey
);
1920 static void dump_delete_key_request( const struct delete_key_request
*req
)
1922 fprintf( stderr
, " hkey=%p", req
->hkey
);
1925 static void dump_flush_key_request( const struct flush_key_request
*req
)
1927 fprintf( stderr
, " hkey=%p", req
->hkey
);
1930 static void dump_enum_key_request( const struct enum_key_request
*req
)
1932 fprintf( stderr
, " hkey=%p,", req
->hkey
);
1933 fprintf( stderr
, " index=%d,", req
->index
);
1934 fprintf( stderr
, " info_class=%d", req
->info_class
);
1937 static void dump_enum_key_reply( const struct enum_key_reply
*req
)
1939 fprintf( stderr
, " subkeys=%d,", req
->subkeys
);
1940 fprintf( stderr
, " max_subkey=%d,", req
->max_subkey
);
1941 fprintf( stderr
, " max_class=%d,", req
->max_class
);
1942 fprintf( stderr
, " values=%d,", req
->values
);
1943 fprintf( stderr
, " max_value=%d,", req
->max_value
);
1944 fprintf( stderr
, " max_data=%d,", req
->max_data
);
1945 fprintf( stderr
, " modif=%ld,", (long)req
->modif
);
1946 fprintf( stderr
, " total=%u,", req
->total
);
1947 fprintf( stderr
, " namelen=%u,", req
->namelen
);
1948 fprintf( stderr
, " name=" );
1949 dump_varargs_unicode_str( min(cur_size
,req
->namelen
) );
1950 fputc( ',', stderr
);
1951 fprintf( stderr
, " class=" );
1952 dump_varargs_unicode_str( cur_size
);
1955 static void dump_set_key_value_request( const struct set_key_value_request
*req
)
1957 fprintf( stderr
, " hkey=%p,", req
->hkey
);
1958 fprintf( stderr
, " type=%d,", req
->type
);
1959 fprintf( stderr
, " namelen=%u,", req
->namelen
);
1960 fprintf( stderr
, " name=" );
1961 dump_varargs_unicode_str( min(cur_size
,req
->namelen
) );
1962 fputc( ',', stderr
);
1963 fprintf( stderr
, " data=" );
1964 dump_varargs_bytes( cur_size
);
1967 static void dump_get_key_value_request( const struct get_key_value_request
*req
)
1969 fprintf( stderr
, " hkey=%p,", req
->hkey
);
1970 fprintf( stderr
, " name=" );
1971 dump_varargs_unicode_str( cur_size
);
1974 static void dump_get_key_value_reply( const struct get_key_value_reply
*req
)
1976 fprintf( stderr
, " type=%d,", req
->type
);
1977 fprintf( stderr
, " total=%u,", req
->total
);
1978 fprintf( stderr
, " data=" );
1979 dump_varargs_bytes( cur_size
);
1982 static void dump_enum_key_value_request( const struct enum_key_value_request
*req
)
1984 fprintf( stderr
, " hkey=%p,", req
->hkey
);
1985 fprintf( stderr
, " index=%d,", req
->index
);
1986 fprintf( stderr
, " info_class=%d", req
->info_class
);
1989 static void dump_enum_key_value_reply( const struct enum_key_value_reply
*req
)
1991 fprintf( stderr
, " type=%d,", req
->type
);
1992 fprintf( stderr
, " total=%u,", req
->total
);
1993 fprintf( stderr
, " namelen=%u,", req
->namelen
);
1994 fprintf( stderr
, " name=" );
1995 dump_varargs_unicode_str( min(cur_size
,req
->namelen
) );
1996 fputc( ',', stderr
);
1997 fprintf( stderr
, " data=" );
1998 dump_varargs_bytes( cur_size
);
2001 static void dump_delete_key_value_request( const struct delete_key_value_request
*req
)
2003 fprintf( stderr
, " hkey=%p,", req
->hkey
);
2004 fprintf( stderr
, " name=" );
2005 dump_varargs_unicode_str( cur_size
);
2008 static void dump_load_registry_request( const struct load_registry_request
*req
)
2010 fprintf( stderr
, " hkey=%p,", req
->hkey
);
2011 fprintf( stderr
, " file=%p,", req
->file
);
2012 fprintf( stderr
, " name=" );
2013 dump_varargs_unicode_str( cur_size
);
2016 static void dump_unload_registry_request( const struct unload_registry_request
*req
)
2018 fprintf( stderr
, " hkey=%p", req
->hkey
);
2021 static void dump_save_registry_request( const struct save_registry_request
*req
)
2023 fprintf( stderr
, " hkey=%p,", req
->hkey
);
2024 fprintf( stderr
, " file=%p", req
->file
);
2027 static void dump_set_registry_notification_request( const struct set_registry_notification_request
*req
)
2029 fprintf( stderr
, " hkey=%p,", req
->hkey
);
2030 fprintf( stderr
, " event=%p,", req
->event
);
2031 fprintf( stderr
, " subtree=%d,", req
->subtree
);
2032 fprintf( stderr
, " filter=%08x", req
->filter
);
2035 static void dump_create_timer_request( const struct create_timer_request
*req
)
2037 fprintf( stderr
, " access=%08x,", req
->access
);
2038 fprintf( stderr
, " attributes=%08x,", req
->attributes
);
2039 fprintf( stderr
, " rootdir=%p,", req
->rootdir
);
2040 fprintf( stderr
, " manual=%d,", req
->manual
);
2041 fprintf( stderr
, " name=" );
2042 dump_varargs_unicode_str( cur_size
);
2045 static void dump_create_timer_reply( const struct create_timer_reply
*req
)
2047 fprintf( stderr
, " handle=%p", req
->handle
);
2050 static void dump_open_timer_request( const struct open_timer_request
*req
)
2052 fprintf( stderr
, " access=%08x,", req
->access
);
2053 fprintf( stderr
, " attributes=%08x,", req
->attributes
);
2054 fprintf( stderr
, " rootdir=%p,", req
->rootdir
);
2055 fprintf( stderr
, " name=" );
2056 dump_varargs_unicode_str( cur_size
);
2059 static void dump_open_timer_reply( const struct open_timer_reply
*req
)
2061 fprintf( stderr
, " handle=%p", req
->handle
);
2064 static void dump_set_timer_request( const struct set_timer_request
*req
)
2066 fprintf( stderr
, " handle=%p,", req
->handle
);
2067 fprintf( stderr
, " expire=" );
2068 dump_timeout( &req
->expire
);
2069 fprintf( stderr
, "," );
2070 fprintf( stderr
, " period=%d,", req
->period
);
2071 fprintf( stderr
, " callback=%p,", req
->callback
);
2072 fprintf( stderr
, " arg=%p", req
->arg
);
2075 static void dump_set_timer_reply( const struct set_timer_reply
*req
)
2077 fprintf( stderr
, " signaled=%d", req
->signaled
);
2080 static void dump_cancel_timer_request( const struct cancel_timer_request
*req
)
2082 fprintf( stderr
, " handle=%p", req
->handle
);
2085 static void dump_cancel_timer_reply( const struct cancel_timer_reply
*req
)
2087 fprintf( stderr
, " signaled=%d", req
->signaled
);
2090 static void dump_get_timer_info_request( const struct get_timer_info_request
*req
)
2092 fprintf( stderr
, " handle=%p", req
->handle
);
2095 static void dump_get_timer_info_reply( const struct get_timer_info_reply
*req
)
2097 fprintf( stderr
, " when=" );
2098 dump_timeout( &req
->when
);
2099 fprintf( stderr
, "," );
2100 fprintf( stderr
, " signaled=%d", req
->signaled
);
2103 static void dump_get_thread_context_request( const struct get_thread_context_request
*req
)
2105 fprintf( stderr
, " handle=%p,", req
->handle
);
2106 fprintf( stderr
, " flags=%08x,", req
->flags
);
2107 fprintf( stderr
, " suspend=%d", req
->suspend
);
2110 static void dump_get_thread_context_reply( const struct get_thread_context_reply
*req
)
2112 fprintf( stderr
, " self=%d,", req
->self
);
2113 fprintf( stderr
, " context=" );
2114 dump_varargs_context( cur_size
);
2117 static void dump_set_thread_context_request( const struct set_thread_context_request
*req
)
2119 fprintf( stderr
, " handle=%p,", req
->handle
);
2120 fprintf( stderr
, " flags=%08x,", req
->flags
);
2121 fprintf( stderr
, " suspend=%d,", req
->suspend
);
2122 fprintf( stderr
, " context=" );
2123 dump_varargs_context( cur_size
);
2126 static void dump_set_thread_context_reply( const struct set_thread_context_reply
*req
)
2128 fprintf( stderr
, " self=%d", req
->self
);
2131 static void dump_get_selector_entry_request( const struct get_selector_entry_request
*req
)
2133 fprintf( stderr
, " handle=%p,", req
->handle
);
2134 fprintf( stderr
, " entry=%d", req
->entry
);
2137 static void dump_get_selector_entry_reply( const struct get_selector_entry_reply
*req
)
2139 fprintf( stderr
, " base=%08x,", req
->base
);
2140 fprintf( stderr
, " limit=%08x,", req
->limit
);
2141 fprintf( stderr
, " flags=%02x", req
->flags
);
2144 static void dump_add_atom_request( const struct add_atom_request
*req
)
2146 fprintf( stderr
, " table=%p,", req
->table
);
2147 fprintf( stderr
, " name=" );
2148 dump_varargs_unicode_str( cur_size
);
2151 static void dump_add_atom_reply( const struct add_atom_reply
*req
)
2153 fprintf( stderr
, " atom=%04x", req
->atom
);
2156 static void dump_delete_atom_request( const struct delete_atom_request
*req
)
2158 fprintf( stderr
, " table=%p,", req
->table
);
2159 fprintf( stderr
, " atom=%04x", req
->atom
);
2162 static void dump_find_atom_request( const struct find_atom_request
*req
)
2164 fprintf( stderr
, " table=%p,", req
->table
);
2165 fprintf( stderr
, " name=" );
2166 dump_varargs_unicode_str( cur_size
);
2169 static void dump_find_atom_reply( const struct find_atom_reply
*req
)
2171 fprintf( stderr
, " atom=%04x", req
->atom
);
2174 static void dump_get_atom_information_request( const struct get_atom_information_request
*req
)
2176 fprintf( stderr
, " table=%p,", req
->table
);
2177 fprintf( stderr
, " atom=%04x", req
->atom
);
2180 static void dump_get_atom_information_reply( const struct get_atom_information_reply
*req
)
2182 fprintf( stderr
, " count=%d,", req
->count
);
2183 fprintf( stderr
, " pinned=%d,", req
->pinned
);
2184 fprintf( stderr
, " total=%u,", req
->total
);
2185 fprintf( stderr
, " name=" );
2186 dump_varargs_unicode_str( cur_size
);
2189 static void dump_set_atom_information_request( const struct set_atom_information_request
*req
)
2191 fprintf( stderr
, " table=%p,", req
->table
);
2192 fprintf( stderr
, " atom=%04x,", req
->atom
);
2193 fprintf( stderr
, " pinned=%d", req
->pinned
);
2196 static void dump_empty_atom_table_request( const struct empty_atom_table_request
*req
)
2198 fprintf( stderr
, " table=%p,", req
->table
);
2199 fprintf( stderr
, " if_pinned=%d", req
->if_pinned
);
2202 static void dump_init_atom_table_request( const struct init_atom_table_request
*req
)
2204 fprintf( stderr
, " entries=%d", req
->entries
);
2207 static void dump_init_atom_table_reply( const struct init_atom_table_reply
*req
)
2209 fprintf( stderr
, " table=%p", req
->table
);
2212 static void dump_get_msg_queue_request( const struct get_msg_queue_request
*req
)
2216 static void dump_get_msg_queue_reply( const struct get_msg_queue_reply
*req
)
2218 fprintf( stderr
, " handle=%p", req
->handle
);
2221 static void dump_set_queue_fd_request( const struct set_queue_fd_request
*req
)
2223 fprintf( stderr
, " handle=%p", req
->handle
);
2226 static void dump_set_queue_mask_request( const struct set_queue_mask_request
*req
)
2228 fprintf( stderr
, " wake_mask=%08x,", req
->wake_mask
);
2229 fprintf( stderr
, " changed_mask=%08x,", req
->changed_mask
);
2230 fprintf( stderr
, " skip_wait=%d", req
->skip_wait
);
2233 static void dump_set_queue_mask_reply( const struct set_queue_mask_reply
*req
)
2235 fprintf( stderr
, " wake_bits=%08x,", req
->wake_bits
);
2236 fprintf( stderr
, " changed_bits=%08x", req
->changed_bits
);
2239 static void dump_get_queue_status_request( const struct get_queue_status_request
*req
)
2241 fprintf( stderr
, " clear=%d", req
->clear
);
2244 static void dump_get_queue_status_reply( const struct get_queue_status_reply
*req
)
2246 fprintf( stderr
, " wake_bits=%08x,", req
->wake_bits
);
2247 fprintf( stderr
, " changed_bits=%08x", req
->changed_bits
);
2250 static void dump_get_process_idle_event_request( const struct get_process_idle_event_request
*req
)
2252 fprintf( stderr
, " handle=%p", req
->handle
);
2255 static void dump_get_process_idle_event_reply( const struct get_process_idle_event_reply
*req
)
2257 fprintf( stderr
, " event=%p", req
->event
);
2260 static void dump_send_message_request( const struct send_message_request
*req
)
2262 fprintf( stderr
, " id=%04x,", req
->id
);
2263 fprintf( stderr
, " type=%d,", req
->type
);
2264 fprintf( stderr
, " flags=%d,", req
->flags
);
2265 fprintf( stderr
, " win=%p,", req
->win
);
2266 fprintf( stderr
, " msg=%08x,", req
->msg
);
2267 fprintf( stderr
, " wparam=%lx,", req
->wparam
);
2268 fprintf( stderr
, " lparam=%lx,", req
->lparam
);
2269 fprintf( stderr
, " timeout=" );
2270 dump_timeout( &req
->timeout
);
2271 fprintf( stderr
, "," );
2272 fprintf( stderr
, " data=" );
2273 dump_varargs_message_data( cur_size
);
2276 static void dump_post_quit_message_request( const struct post_quit_message_request
*req
)
2278 fprintf( stderr
, " exit_code=%d", req
->exit_code
);
2281 static void dump_send_hardware_message_request( const struct send_hardware_message_request
*req
)
2283 fprintf( stderr
, " id=%04x,", req
->id
);
2284 fprintf( stderr
, " win=%p,", req
->win
);
2285 fprintf( stderr
, " msg=%08x,", req
->msg
);
2286 fprintf( stderr
, " time=%08x,", req
->time
);
2287 fprintf( stderr
, " wparam=%lx,", req
->wparam
);
2288 fprintf( stderr
, " lparam=%lx,", req
->lparam
);
2289 fprintf( stderr
, " info=%lx,", req
->info
);
2290 fprintf( stderr
, " x=%d,", req
->x
);
2291 fprintf( stderr
, " y=%d", req
->y
);
2294 static void dump_get_message_request( const struct get_message_request
*req
)
2296 fprintf( stderr
, " flags=%08x,", req
->flags
);
2297 fprintf( stderr
, " get_win=%p,", req
->get_win
);
2298 fprintf( stderr
, " get_first=%08x,", req
->get_first
);
2299 fprintf( stderr
, " get_last=%08x,", req
->get_last
);
2300 fprintf( stderr
, " hw_id=%08x", req
->hw_id
);
2303 static void dump_get_message_reply( const struct get_message_reply
*req
)
2305 fprintf( stderr
, " win=%p,", req
->win
);
2306 fprintf( stderr
, " type=%d,", req
->type
);
2307 fprintf( stderr
, " msg=%08x,", req
->msg
);
2308 fprintf( stderr
, " wparam=%lx,", req
->wparam
);
2309 fprintf( stderr
, " lparam=%lx,", req
->lparam
);
2310 fprintf( stderr
, " info=%lx,", req
->info
);
2311 fprintf( stderr
, " x=%d,", req
->x
);
2312 fprintf( stderr
, " y=%d,", req
->y
);
2313 fprintf( stderr
, " time=%08x,", req
->time
);
2314 fprintf( stderr
, " hw_id=%08x,", req
->hw_id
);
2315 fprintf( stderr
, " active_hooks=%08x,", req
->active_hooks
);
2316 fprintf( stderr
, " total=%u,", req
->total
);
2317 fprintf( stderr
, " data=" );
2318 dump_varargs_message_data( cur_size
);
2321 static void dump_reply_message_request( const struct reply_message_request
*req
)
2323 fprintf( stderr
, " result=%08x,", req
->result
);
2324 fprintf( stderr
, " remove=%d,", req
->remove
);
2325 fprintf( stderr
, " data=" );
2326 dump_varargs_bytes( cur_size
);
2329 static void dump_accept_hardware_message_request( const struct accept_hardware_message_request
*req
)
2331 fprintf( stderr
, " hw_id=%08x,", req
->hw_id
);
2332 fprintf( stderr
, " remove=%d,", req
->remove
);
2333 fprintf( stderr
, " new_win=%p", req
->new_win
);
2336 static void dump_get_message_reply_request( const struct get_message_reply_request
*req
)
2338 fprintf( stderr
, " cancel=%d", req
->cancel
);
2341 static void dump_get_message_reply_reply( const struct get_message_reply_reply
*req
)
2343 fprintf( stderr
, " result=%08x,", req
->result
);
2344 fprintf( stderr
, " data=" );
2345 dump_varargs_bytes( cur_size
);
2348 static void dump_set_win_timer_request( const struct set_win_timer_request
*req
)
2350 fprintf( stderr
, " win=%p,", req
->win
);
2351 fprintf( stderr
, " msg=%08x,", req
->msg
);
2352 fprintf( stderr
, " rate=%08x,", req
->rate
);
2353 fprintf( stderr
, " id=%lx,", req
->id
);
2354 fprintf( stderr
, " lparam=%lx", req
->lparam
);
2357 static void dump_set_win_timer_reply( const struct set_win_timer_reply
*req
)
2359 fprintf( stderr
, " id=%lx", req
->id
);
2362 static void dump_kill_win_timer_request( const struct kill_win_timer_request
*req
)
2364 fprintf( stderr
, " win=%p,", req
->win
);
2365 fprintf( stderr
, " msg=%08x,", req
->msg
);
2366 fprintf( stderr
, " id=%lx", req
->id
);
2369 static void dump_get_serial_info_request( const struct get_serial_info_request
*req
)
2371 fprintf( stderr
, " handle=%p", req
->handle
);
2374 static void dump_get_serial_info_reply( const struct get_serial_info_reply
*req
)
2376 fprintf( stderr
, " readinterval=%08x,", req
->readinterval
);
2377 fprintf( stderr
, " readconst=%08x,", req
->readconst
);
2378 fprintf( stderr
, " readmult=%08x,", req
->readmult
);
2379 fprintf( stderr
, " writeconst=%08x,", req
->writeconst
);
2380 fprintf( stderr
, " writemult=%08x,", req
->writemult
);
2381 fprintf( stderr
, " eventmask=%08x", req
->eventmask
);
2384 static void dump_set_serial_info_request( const struct set_serial_info_request
*req
)
2386 fprintf( stderr
, " handle=%p,", req
->handle
);
2387 fprintf( stderr
, " flags=%d,", req
->flags
);
2388 fprintf( stderr
, " readinterval=%08x,", req
->readinterval
);
2389 fprintf( stderr
, " readconst=%08x,", req
->readconst
);
2390 fprintf( stderr
, " readmult=%08x,", req
->readmult
);
2391 fprintf( stderr
, " writeconst=%08x,", req
->writeconst
);
2392 fprintf( stderr
, " writemult=%08x,", req
->writemult
);
2393 fprintf( stderr
, " eventmask=%08x", req
->eventmask
);
2396 static void dump_register_async_request( const struct register_async_request
*req
)
2398 fprintf( stderr
, " handle=%p,", req
->handle
);
2399 fprintf( stderr
, " type=%d,", req
->type
);
2400 fprintf( stderr
, " count=%d,", req
->count
);
2401 fprintf( stderr
, " async=" );
2402 dump_async_data( &req
->async
);
2405 static void dump_cancel_async_request( const struct cancel_async_request
*req
)
2407 fprintf( stderr
, " handle=%p", req
->handle
);
2410 static void dump_ioctl_request( const struct ioctl_request
*req
)
2412 fprintf( stderr
, " handle=%p,", req
->handle
);
2413 fprintf( stderr
, " code=" );
2414 dump_ioctl_code( &req
->code
);
2415 fprintf( stderr
, "," );
2416 fprintf( stderr
, " async=" );
2417 dump_async_data( &req
->async
);
2418 fprintf( stderr
, "," );
2419 fprintf( stderr
, " in_data=" );
2420 dump_varargs_bytes( cur_size
);
2423 static void dump_ioctl_reply( const struct ioctl_reply
*req
)
2425 fprintf( stderr
, " wait=%p,", req
->wait
);
2426 fprintf( stderr
, " options=%08x,", req
->options
);
2427 fprintf( stderr
, " out_data=" );
2428 dump_varargs_bytes( cur_size
);
2431 static void dump_get_ioctl_result_request( const struct get_ioctl_result_request
*req
)
2433 fprintf( stderr
, " handle=%p,", req
->handle
);
2434 fprintf( stderr
, " user_arg=%p", req
->user_arg
);
2437 static void dump_get_ioctl_result_reply( const struct get_ioctl_result_reply
*req
)
2439 fprintf( stderr
, " out_data=" );
2440 dump_varargs_bytes( cur_size
);
2443 static void dump_create_named_pipe_request( const struct create_named_pipe_request
*req
)
2445 fprintf( stderr
, " access=%08x,", req
->access
);
2446 fprintf( stderr
, " attributes=%08x,", req
->attributes
);
2447 fprintf( stderr
, " rootdir=%p,", req
->rootdir
);
2448 fprintf( stderr
, " options=%08x,", req
->options
);
2449 fprintf( stderr
, " flags=%08x,", req
->flags
);
2450 fprintf( stderr
, " maxinstances=%08x,", req
->maxinstances
);
2451 fprintf( stderr
, " outsize=%08x,", req
->outsize
);
2452 fprintf( stderr
, " insize=%08x,", req
->insize
);
2453 fprintf( stderr
, " timeout=" );
2454 dump_timeout( &req
->timeout
);
2455 fprintf( stderr
, "," );
2456 fprintf( stderr
, " name=" );
2457 dump_varargs_unicode_str( cur_size
);
2460 static void dump_create_named_pipe_reply( const struct create_named_pipe_reply
*req
)
2462 fprintf( stderr
, " handle=%p", req
->handle
);
2465 static void dump_get_named_pipe_info_request( const struct get_named_pipe_info_request
*req
)
2467 fprintf( stderr
, " handle=%p", req
->handle
);
2470 static void dump_get_named_pipe_info_reply( const struct get_named_pipe_info_reply
*req
)
2472 fprintf( stderr
, " flags=%08x,", req
->flags
);
2473 fprintf( stderr
, " maxinstances=%08x,", req
->maxinstances
);
2474 fprintf( stderr
, " instances=%08x,", req
->instances
);
2475 fprintf( stderr
, " outsize=%08x,", req
->outsize
);
2476 fprintf( stderr
, " insize=%08x", req
->insize
);
2479 static void dump_create_window_request( const struct create_window_request
*req
)
2481 fprintf( stderr
, " parent=%p,", req
->parent
);
2482 fprintf( stderr
, " owner=%p,", req
->owner
);
2483 fprintf( stderr
, " atom=%04x,", req
->atom
);
2484 fprintf( stderr
, " instance=%p", req
->instance
);
2487 static void dump_create_window_reply( const struct create_window_reply
*req
)
2489 fprintf( stderr
, " handle=%p,", req
->handle
);
2490 fprintf( stderr
, " parent=%p,", req
->parent
);
2491 fprintf( stderr
, " owner=%p,", req
->owner
);
2492 fprintf( stderr
, " extra=%d,", req
->extra
);
2493 fprintf( stderr
, " class_ptr=%p", req
->class_ptr
);
2496 static void dump_destroy_window_request( const struct destroy_window_request
*req
)
2498 fprintf( stderr
, " handle=%p", req
->handle
);
2501 static void dump_get_desktop_window_request( const struct get_desktop_window_request
*req
)
2503 fprintf( stderr
, " force=%d", req
->force
);
2506 static void dump_get_desktop_window_reply( const struct get_desktop_window_reply
*req
)
2508 fprintf( stderr
, " handle=%p", req
->handle
);
2511 static void dump_set_window_owner_request( const struct set_window_owner_request
*req
)
2513 fprintf( stderr
, " handle=%p,", req
->handle
);
2514 fprintf( stderr
, " owner=%p", req
->owner
);
2517 static void dump_set_window_owner_reply( const struct set_window_owner_reply
*req
)
2519 fprintf( stderr
, " full_owner=%p,", req
->full_owner
);
2520 fprintf( stderr
, " prev_owner=%p", req
->prev_owner
);
2523 static void dump_get_window_info_request( const struct get_window_info_request
*req
)
2525 fprintf( stderr
, " handle=%p", req
->handle
);
2528 static void dump_get_window_info_reply( const struct get_window_info_reply
*req
)
2530 fprintf( stderr
, " full_handle=%p,", req
->full_handle
);
2531 fprintf( stderr
, " last_active=%p,", req
->last_active
);
2532 fprintf( stderr
, " pid=%04x,", req
->pid
);
2533 fprintf( stderr
, " tid=%04x,", req
->tid
);
2534 fprintf( stderr
, " atom=%04x,", req
->atom
);
2535 fprintf( stderr
, " is_unicode=%d", req
->is_unicode
);
2538 static void dump_set_window_info_request( const struct set_window_info_request
*req
)
2540 fprintf( stderr
, " flags=%08x,", req
->flags
);
2541 fprintf( stderr
, " handle=%p,", req
->handle
);
2542 fprintf( stderr
, " style=%08x,", req
->style
);
2543 fprintf( stderr
, " ex_style=%08x,", req
->ex_style
);
2544 fprintf( stderr
, " id=%08x,", req
->id
);
2545 fprintf( stderr
, " is_unicode=%d,", req
->is_unicode
);
2546 fprintf( stderr
, " instance=%p,", req
->instance
);
2547 fprintf( stderr
, " user_data=%lx,", req
->user_data
);
2548 fprintf( stderr
, " extra_offset=%d,", req
->extra_offset
);
2549 fprintf( stderr
, " extra_size=%u,", req
->extra_size
);
2550 fprintf( stderr
, " extra_value=%lx", req
->extra_value
);
2553 static void dump_set_window_info_reply( const struct set_window_info_reply
*req
)
2555 fprintf( stderr
, " old_style=%08x,", req
->old_style
);
2556 fprintf( stderr
, " old_ex_style=%08x,", req
->old_ex_style
);
2557 fprintf( stderr
, " old_id=%08x,", req
->old_id
);
2558 fprintf( stderr
, " old_instance=%p,", req
->old_instance
);
2559 fprintf( stderr
, " old_user_data=%lx,", req
->old_user_data
);
2560 fprintf( stderr
, " old_extra_value=%lx", req
->old_extra_value
);
2563 static void dump_set_parent_request( const struct set_parent_request
*req
)
2565 fprintf( stderr
, " handle=%p,", req
->handle
);
2566 fprintf( stderr
, " parent=%p", req
->parent
);
2569 static void dump_set_parent_reply( const struct set_parent_reply
*req
)
2571 fprintf( stderr
, " old_parent=%p,", req
->old_parent
);
2572 fprintf( stderr
, " full_parent=%p", req
->full_parent
);
2575 static void dump_get_window_parents_request( const struct get_window_parents_request
*req
)
2577 fprintf( stderr
, " handle=%p", req
->handle
);
2580 static void dump_get_window_parents_reply( const struct get_window_parents_reply
*req
)
2582 fprintf( stderr
, " count=%d,", req
->count
);
2583 fprintf( stderr
, " parents=" );
2584 dump_varargs_user_handles( cur_size
);
2587 static void dump_get_window_children_request( const struct get_window_children_request
*req
)
2589 fprintf( stderr
, " parent=%p,", req
->parent
);
2590 fprintf( stderr
, " atom=%04x,", req
->atom
);
2591 fprintf( stderr
, " tid=%04x", req
->tid
);
2594 static void dump_get_window_children_reply( const struct get_window_children_reply
*req
)
2596 fprintf( stderr
, " count=%d,", req
->count
);
2597 fprintf( stderr
, " children=" );
2598 dump_varargs_user_handles( cur_size
);
2601 static void dump_get_window_children_from_point_request( const struct get_window_children_from_point_request
*req
)
2603 fprintf( stderr
, " parent=%p,", req
->parent
);
2604 fprintf( stderr
, " x=%d,", req
->x
);
2605 fprintf( stderr
, " y=%d", req
->y
);
2608 static void dump_get_window_children_from_point_reply( const struct get_window_children_from_point_reply
*req
)
2610 fprintf( stderr
, " count=%d,", req
->count
);
2611 fprintf( stderr
, " children=" );
2612 dump_varargs_user_handles( cur_size
);
2615 static void dump_get_window_tree_request( const struct get_window_tree_request
*req
)
2617 fprintf( stderr
, " handle=%p", req
->handle
);
2620 static void dump_get_window_tree_reply( const struct get_window_tree_reply
*req
)
2622 fprintf( stderr
, " parent=%p,", req
->parent
);
2623 fprintf( stderr
, " owner=%p,", req
->owner
);
2624 fprintf( stderr
, " next_sibling=%p,", req
->next_sibling
);
2625 fprintf( stderr
, " prev_sibling=%p,", req
->prev_sibling
);
2626 fprintf( stderr
, " first_sibling=%p,", req
->first_sibling
);
2627 fprintf( stderr
, " last_sibling=%p,", req
->last_sibling
);
2628 fprintf( stderr
, " first_child=%p,", req
->first_child
);
2629 fprintf( stderr
, " last_child=%p", req
->last_child
);
2632 static void dump_set_window_pos_request( const struct set_window_pos_request
*req
)
2634 fprintf( stderr
, " flags=%08x,", req
->flags
);
2635 fprintf( stderr
, " handle=%p,", req
->handle
);
2636 fprintf( stderr
, " previous=%p,", req
->previous
);
2637 fprintf( stderr
, " window=" );
2638 dump_rectangle( &req
->window
);
2639 fprintf( stderr
, "," );
2640 fprintf( stderr
, " client=" );
2641 dump_rectangle( &req
->client
);
2642 fprintf( stderr
, "," );
2643 fprintf( stderr
, " valid=" );
2644 dump_varargs_rectangles( cur_size
);
2647 static void dump_set_window_pos_reply( const struct set_window_pos_reply
*req
)
2649 fprintf( stderr
, " new_style=%08x", req
->new_style
);
2652 static void dump_get_window_rectangles_request( const struct get_window_rectangles_request
*req
)
2654 fprintf( stderr
, " handle=%p", req
->handle
);
2657 static void dump_get_window_rectangles_reply( const struct get_window_rectangles_reply
*req
)
2659 fprintf( stderr
, " window=" );
2660 dump_rectangle( &req
->window
);
2661 fprintf( stderr
, "," );
2662 fprintf( stderr
, " visible=" );
2663 dump_rectangle( &req
->visible
);
2664 fprintf( stderr
, "," );
2665 fprintf( stderr
, " client=" );
2666 dump_rectangle( &req
->client
);
2669 static void dump_get_window_text_request( const struct get_window_text_request
*req
)
2671 fprintf( stderr
, " handle=%p", req
->handle
);
2674 static void dump_get_window_text_reply( const struct get_window_text_reply
*req
)
2676 fprintf( stderr
, " text=" );
2677 dump_varargs_unicode_str( cur_size
);
2680 static void dump_set_window_text_request( const struct set_window_text_request
*req
)
2682 fprintf( stderr
, " handle=%p,", req
->handle
);
2683 fprintf( stderr
, " text=" );
2684 dump_varargs_unicode_str( cur_size
);
2687 static void dump_get_windows_offset_request( const struct get_windows_offset_request
*req
)
2689 fprintf( stderr
, " from=%p,", req
->from
);
2690 fprintf( stderr
, " to=%p", req
->to
);
2693 static void dump_get_windows_offset_reply( const struct get_windows_offset_reply
*req
)
2695 fprintf( stderr
, " x=%d,", req
->x
);
2696 fprintf( stderr
, " y=%d", req
->y
);
2699 static void dump_get_visible_region_request( const struct get_visible_region_request
*req
)
2701 fprintf( stderr
, " window=%p,", req
->window
);
2702 fprintf( stderr
, " flags=%08x", req
->flags
);
2705 static void dump_get_visible_region_reply( const struct get_visible_region_reply
*req
)
2707 fprintf( stderr
, " top_win=%p,", req
->top_win
);
2708 fprintf( stderr
, " top_rect=" );
2709 dump_rectangle( &req
->top_rect
);
2710 fprintf( stderr
, "," );
2711 fprintf( stderr
, " win_rect=" );
2712 dump_rectangle( &req
->win_rect
);
2713 fprintf( stderr
, "," );
2714 fprintf( stderr
, " total_size=%u,", req
->total_size
);
2715 fprintf( stderr
, " region=" );
2716 dump_varargs_rectangles( cur_size
);
2719 static void dump_get_window_region_request( const struct get_window_region_request
*req
)
2721 fprintf( stderr
, " window=%p", req
->window
);
2724 static void dump_get_window_region_reply( const struct get_window_region_reply
*req
)
2726 fprintf( stderr
, " total_size=%u,", req
->total_size
);
2727 fprintf( stderr
, " region=" );
2728 dump_varargs_rectangles( cur_size
);
2731 static void dump_set_window_region_request( const struct set_window_region_request
*req
)
2733 fprintf( stderr
, " window=%p,", req
->window
);
2734 fprintf( stderr
, " redraw=%d,", req
->redraw
);
2735 fprintf( stderr
, " region=" );
2736 dump_varargs_rectangles( cur_size
);
2739 static void dump_get_update_region_request( const struct get_update_region_request
*req
)
2741 fprintf( stderr
, " window=%p,", req
->window
);
2742 fprintf( stderr
, " from_child=%p,", req
->from_child
);
2743 fprintf( stderr
, " flags=%08x", req
->flags
);
2746 static void dump_get_update_region_reply( const struct get_update_region_reply
*req
)
2748 fprintf( stderr
, " child=%p,", req
->child
);
2749 fprintf( stderr
, " flags=%08x,", req
->flags
);
2750 fprintf( stderr
, " total_size=%u,", req
->total_size
);
2751 fprintf( stderr
, " region=" );
2752 dump_varargs_rectangles( cur_size
);
2755 static void dump_update_window_zorder_request( const struct update_window_zorder_request
*req
)
2757 fprintf( stderr
, " window=%p,", req
->window
);
2758 fprintf( stderr
, " rect=" );
2759 dump_rectangle( &req
->rect
);
2762 static void dump_redraw_window_request( const struct redraw_window_request
*req
)
2764 fprintf( stderr
, " window=%p,", req
->window
);
2765 fprintf( stderr
, " flags=%08x,", req
->flags
);
2766 fprintf( stderr
, " region=" );
2767 dump_varargs_rectangles( cur_size
);
2770 static void dump_set_window_property_request( const struct set_window_property_request
*req
)
2772 fprintf( stderr
, " window=%p,", req
->window
);
2773 fprintf( stderr
, " atom=%04x,", req
->atom
);
2774 fprintf( stderr
, " handle=%p,", req
->handle
);
2775 fprintf( stderr
, " name=" );
2776 dump_varargs_unicode_str( cur_size
);
2779 static void dump_remove_window_property_request( const struct remove_window_property_request
*req
)
2781 fprintf( stderr
, " window=%p,", req
->window
);
2782 fprintf( stderr
, " atom=%04x,", req
->atom
);
2783 fprintf( stderr
, " name=" );
2784 dump_varargs_unicode_str( cur_size
);
2787 static void dump_remove_window_property_reply( const struct remove_window_property_reply
*req
)
2789 fprintf( stderr
, " handle=%p", req
->handle
);
2792 static void dump_get_window_property_request( const struct get_window_property_request
*req
)
2794 fprintf( stderr
, " window=%p,", req
->window
);
2795 fprintf( stderr
, " atom=%04x,", req
->atom
);
2796 fprintf( stderr
, " name=" );
2797 dump_varargs_unicode_str( cur_size
);
2800 static void dump_get_window_property_reply( const struct get_window_property_reply
*req
)
2802 fprintf( stderr
, " handle=%p", req
->handle
);
2805 static void dump_get_window_properties_request( const struct get_window_properties_request
*req
)
2807 fprintf( stderr
, " window=%p", req
->window
);
2810 static void dump_get_window_properties_reply( const struct get_window_properties_reply
*req
)
2812 fprintf( stderr
, " total=%d,", req
->total
);
2813 fprintf( stderr
, " props=" );
2814 dump_varargs_properties( cur_size
);
2817 static void dump_create_winstation_request( const struct create_winstation_request
*req
)
2819 fprintf( stderr
, " flags=%08x,", req
->flags
);
2820 fprintf( stderr
, " access=%08x,", req
->access
);
2821 fprintf( stderr
, " attributes=%08x,", req
->attributes
);
2822 fprintf( stderr
, " name=" );
2823 dump_varargs_unicode_str( cur_size
);
2826 static void dump_create_winstation_reply( const struct create_winstation_reply
*req
)
2828 fprintf( stderr
, " handle=%p", req
->handle
);
2831 static void dump_open_winstation_request( const struct open_winstation_request
*req
)
2833 fprintf( stderr
, " access=%08x,", req
->access
);
2834 fprintf( stderr
, " attributes=%08x,", req
->attributes
);
2835 fprintf( stderr
, " name=" );
2836 dump_varargs_unicode_str( cur_size
);
2839 static void dump_open_winstation_reply( const struct open_winstation_reply
*req
)
2841 fprintf( stderr
, " handle=%p", req
->handle
);
2844 static void dump_close_winstation_request( const struct close_winstation_request
*req
)
2846 fprintf( stderr
, " handle=%p", req
->handle
);
2849 static void dump_get_process_winstation_request( const struct get_process_winstation_request
*req
)
2853 static void dump_get_process_winstation_reply( const struct get_process_winstation_reply
*req
)
2855 fprintf( stderr
, " handle=%p", req
->handle
);
2858 static void dump_set_process_winstation_request( const struct set_process_winstation_request
*req
)
2860 fprintf( stderr
, " handle=%p", req
->handle
);
2863 static void dump_create_desktop_request( const struct create_desktop_request
*req
)
2865 fprintf( stderr
, " flags=%08x,", req
->flags
);
2866 fprintf( stderr
, " access=%08x,", req
->access
);
2867 fprintf( stderr
, " attributes=%08x,", req
->attributes
);
2868 fprintf( stderr
, " name=" );
2869 dump_varargs_unicode_str( cur_size
);
2872 static void dump_create_desktop_reply( const struct create_desktop_reply
*req
)
2874 fprintf( stderr
, " handle=%p", req
->handle
);
2877 static void dump_open_desktop_request( const struct open_desktop_request
*req
)
2879 fprintf( stderr
, " flags=%08x,", req
->flags
);
2880 fprintf( stderr
, " access=%08x,", req
->access
);
2881 fprintf( stderr
, " attributes=%08x,", req
->attributes
);
2882 fprintf( stderr
, " name=" );
2883 dump_varargs_unicode_str( cur_size
);
2886 static void dump_open_desktop_reply( const struct open_desktop_reply
*req
)
2888 fprintf( stderr
, " handle=%p", req
->handle
);
2891 static void dump_close_desktop_request( const struct close_desktop_request
*req
)
2893 fprintf( stderr
, " handle=%p", req
->handle
);
2896 static void dump_get_thread_desktop_request( const struct get_thread_desktop_request
*req
)
2898 fprintf( stderr
, " tid=%04x", req
->tid
);
2901 static void dump_get_thread_desktop_reply( const struct get_thread_desktop_reply
*req
)
2903 fprintf( stderr
, " handle=%p", req
->handle
);
2906 static void dump_set_thread_desktop_request( const struct set_thread_desktop_request
*req
)
2908 fprintf( stderr
, " handle=%p", req
->handle
);
2911 static void dump_set_user_object_info_request( const struct set_user_object_info_request
*req
)
2913 fprintf( stderr
, " handle=%p,", req
->handle
);
2914 fprintf( stderr
, " flags=%08x,", req
->flags
);
2915 fprintf( stderr
, " obj_flags=%08x", req
->obj_flags
);
2918 static void dump_set_user_object_info_reply( const struct set_user_object_info_reply
*req
)
2920 fprintf( stderr
, " is_desktop=%d,", req
->is_desktop
);
2921 fprintf( stderr
, " old_obj_flags=%08x,", req
->old_obj_flags
);
2922 fprintf( stderr
, " name=" );
2923 dump_varargs_unicode_str( cur_size
);
2926 static void dump_attach_thread_input_request( const struct attach_thread_input_request
*req
)
2928 fprintf( stderr
, " tid_from=%04x,", req
->tid_from
);
2929 fprintf( stderr
, " tid_to=%04x,", req
->tid_to
);
2930 fprintf( stderr
, " attach=%d", req
->attach
);
2933 static void dump_get_thread_input_request( const struct get_thread_input_request
*req
)
2935 fprintf( stderr
, " tid=%04x", req
->tid
);
2938 static void dump_get_thread_input_reply( const struct get_thread_input_reply
*req
)
2940 fprintf( stderr
, " focus=%p,", req
->focus
);
2941 fprintf( stderr
, " capture=%p,", req
->capture
);
2942 fprintf( stderr
, " active=%p,", req
->active
);
2943 fprintf( stderr
, " foreground=%p,", req
->foreground
);
2944 fprintf( stderr
, " menu_owner=%p,", req
->menu_owner
);
2945 fprintf( stderr
, " move_size=%p,", req
->move_size
);
2946 fprintf( stderr
, " caret=%p,", req
->caret
);
2947 fprintf( stderr
, " rect=" );
2948 dump_rectangle( &req
->rect
);
2951 static void dump_get_last_input_time_request( const struct get_last_input_time_request
*req
)
2955 static void dump_get_last_input_time_reply( const struct get_last_input_time_reply
*req
)
2957 fprintf( stderr
, " time=%08x", req
->time
);
2960 static void dump_get_key_state_request( const struct get_key_state_request
*req
)
2962 fprintf( stderr
, " tid=%04x,", req
->tid
);
2963 fprintf( stderr
, " key=%d", req
->key
);
2966 static void dump_get_key_state_reply( const struct get_key_state_reply
*req
)
2968 fprintf( stderr
, " state=%02x,", req
->state
);
2969 fprintf( stderr
, " keystate=" );
2970 dump_varargs_bytes( cur_size
);
2973 static void dump_set_key_state_request( const struct set_key_state_request
*req
)
2975 fprintf( stderr
, " tid=%04x,", req
->tid
);
2976 fprintf( stderr
, " keystate=" );
2977 dump_varargs_bytes( cur_size
);
2980 static void dump_set_foreground_window_request( const struct set_foreground_window_request
*req
)
2982 fprintf( stderr
, " handle=%p", req
->handle
);
2985 static void dump_set_foreground_window_reply( const struct set_foreground_window_reply
*req
)
2987 fprintf( stderr
, " previous=%p,", req
->previous
);
2988 fprintf( stderr
, " send_msg_old=%d,", req
->send_msg_old
);
2989 fprintf( stderr
, " send_msg_new=%d", req
->send_msg_new
);
2992 static void dump_set_focus_window_request( const struct set_focus_window_request
*req
)
2994 fprintf( stderr
, " handle=%p", req
->handle
);
2997 static void dump_set_focus_window_reply( const struct set_focus_window_reply
*req
)
2999 fprintf( stderr
, " previous=%p", req
->previous
);
3002 static void dump_set_active_window_request( const struct set_active_window_request
*req
)
3004 fprintf( stderr
, " handle=%p", req
->handle
);
3007 static void dump_set_active_window_reply( const struct set_active_window_reply
*req
)
3009 fprintf( stderr
, " previous=%p", req
->previous
);
3012 static void dump_set_capture_window_request( const struct set_capture_window_request
*req
)
3014 fprintf( stderr
, " handle=%p,", req
->handle
);
3015 fprintf( stderr
, " flags=%08x", req
->flags
);
3018 static void dump_set_capture_window_reply( const struct set_capture_window_reply
*req
)
3020 fprintf( stderr
, " previous=%p,", req
->previous
);
3021 fprintf( stderr
, " full_handle=%p", req
->full_handle
);
3024 static void dump_set_caret_window_request( const struct set_caret_window_request
*req
)
3026 fprintf( stderr
, " handle=%p,", req
->handle
);
3027 fprintf( stderr
, " width=%d,", req
->width
);
3028 fprintf( stderr
, " height=%d", req
->height
);
3031 static void dump_set_caret_window_reply( const struct set_caret_window_reply
*req
)
3033 fprintf( stderr
, " previous=%p,", req
->previous
);
3034 fprintf( stderr
, " old_rect=" );
3035 dump_rectangle( &req
->old_rect
);
3036 fprintf( stderr
, "," );
3037 fprintf( stderr
, " old_hide=%d,", req
->old_hide
);
3038 fprintf( stderr
, " old_state=%d", req
->old_state
);
3041 static void dump_set_caret_info_request( const struct set_caret_info_request
*req
)
3043 fprintf( stderr
, " flags=%08x,", req
->flags
);
3044 fprintf( stderr
, " handle=%p,", req
->handle
);
3045 fprintf( stderr
, " x=%d,", req
->x
);
3046 fprintf( stderr
, " y=%d,", req
->y
);
3047 fprintf( stderr
, " hide=%d,", req
->hide
);
3048 fprintf( stderr
, " state=%d", req
->state
);
3051 static void dump_set_caret_info_reply( const struct set_caret_info_reply
*req
)
3053 fprintf( stderr
, " full_handle=%p,", req
->full_handle
);
3054 fprintf( stderr
, " old_rect=" );
3055 dump_rectangle( &req
->old_rect
);
3056 fprintf( stderr
, "," );
3057 fprintf( stderr
, " old_hide=%d,", req
->old_hide
);
3058 fprintf( stderr
, " old_state=%d", req
->old_state
);
3061 static void dump_set_hook_request( const struct set_hook_request
*req
)
3063 fprintf( stderr
, " id=%d,", req
->id
);
3064 fprintf( stderr
, " pid=%04x,", req
->pid
);
3065 fprintf( stderr
, " tid=%04x,", req
->tid
);
3066 fprintf( stderr
, " event_min=%d,", req
->event_min
);
3067 fprintf( stderr
, " event_max=%d,", req
->event_max
);
3068 fprintf( stderr
, " flags=%d,", req
->flags
);
3069 fprintf( stderr
, " proc=%p,", req
->proc
);
3070 fprintf( stderr
, " unicode=%d,", req
->unicode
);
3071 fprintf( stderr
, " module=" );
3072 dump_varargs_unicode_str( cur_size
);
3075 static void dump_set_hook_reply( const struct set_hook_reply
*req
)
3077 fprintf( stderr
, " handle=%p,", req
->handle
);
3078 fprintf( stderr
, " active_hooks=%08x", req
->active_hooks
);
3081 static void dump_remove_hook_request( const struct remove_hook_request
*req
)
3083 fprintf( stderr
, " handle=%p,", req
->handle
);
3084 fprintf( stderr
, " id=%d,", req
->id
);
3085 fprintf( stderr
, " proc=%p", req
->proc
);
3088 static void dump_remove_hook_reply( const struct remove_hook_reply
*req
)
3090 fprintf( stderr
, " active_hooks=%08x", req
->active_hooks
);
3093 static void dump_start_hook_chain_request( const struct start_hook_chain_request
*req
)
3095 fprintf( stderr
, " id=%d,", req
->id
);
3096 fprintf( stderr
, " event=%d,", req
->event
);
3097 fprintf( stderr
, " window=%p,", req
->window
);
3098 fprintf( stderr
, " object_id=%d,", req
->object_id
);
3099 fprintf( stderr
, " child_id=%d", req
->child_id
);
3102 static void dump_start_hook_chain_reply( const struct start_hook_chain_reply
*req
)
3104 fprintf( stderr
, " handle=%p,", req
->handle
);
3105 fprintf( stderr
, " pid=%04x,", req
->pid
);
3106 fprintf( stderr
, " tid=%04x,", req
->tid
);
3107 fprintf( stderr
, " proc=%p,", req
->proc
);
3108 fprintf( stderr
, " unicode=%d,", req
->unicode
);
3109 fprintf( stderr
, " active_hooks=%08x,", req
->active_hooks
);
3110 fprintf( stderr
, " module=" );
3111 dump_varargs_unicode_str( cur_size
);
3114 static void dump_finish_hook_chain_request( const struct finish_hook_chain_request
*req
)
3116 fprintf( stderr
, " id=%d", req
->id
);
3119 static void dump_get_hook_info_request( const struct get_hook_info_request
*req
)
3121 fprintf( stderr
, " handle=%p,", req
->handle
);
3122 fprintf( stderr
, " get_next=%d,", req
->get_next
);
3123 fprintf( stderr
, " event=%d,", req
->event
);
3124 fprintf( stderr
, " window=%p,", req
->window
);
3125 fprintf( stderr
, " object_id=%d,", req
->object_id
);
3126 fprintf( stderr
, " child_id=%d", req
->child_id
);
3129 static void dump_get_hook_info_reply( const struct get_hook_info_reply
*req
)
3131 fprintf( stderr
, " handle=%p,", req
->handle
);
3132 fprintf( stderr
, " id=%d,", req
->id
);
3133 fprintf( stderr
, " pid=%04x,", req
->pid
);
3134 fprintf( stderr
, " tid=%04x,", req
->tid
);
3135 fprintf( stderr
, " proc=%p,", req
->proc
);
3136 fprintf( stderr
, " unicode=%d,", req
->unicode
);
3137 fprintf( stderr
, " module=" );
3138 dump_varargs_unicode_str( cur_size
);
3141 static void dump_create_class_request( const struct create_class_request
*req
)
3143 fprintf( stderr
, " local=%d,", req
->local
);
3144 fprintf( stderr
, " atom=%04x,", req
->atom
);
3145 fprintf( stderr
, " style=%08x,", req
->style
);
3146 fprintf( stderr
, " instance=%p,", req
->instance
);
3147 fprintf( stderr
, " extra=%d,", req
->extra
);
3148 fprintf( stderr
, " win_extra=%d,", req
->win_extra
);
3149 fprintf( stderr
, " client_ptr=%p", req
->client_ptr
);
3152 static void dump_destroy_class_request( const struct destroy_class_request
*req
)
3154 fprintf( stderr
, " atom=%04x,", req
->atom
);
3155 fprintf( stderr
, " instance=%p", req
->instance
);
3158 static void dump_destroy_class_reply( const struct destroy_class_reply
*req
)
3160 fprintf( stderr
, " client_ptr=%p", req
->client_ptr
);
3163 static void dump_set_class_info_request( const struct set_class_info_request
*req
)
3165 fprintf( stderr
, " window=%p,", req
->window
);
3166 fprintf( stderr
, " flags=%08x,", req
->flags
);
3167 fprintf( stderr
, " atom=%04x,", req
->atom
);
3168 fprintf( stderr
, " style=%08x,", req
->style
);
3169 fprintf( stderr
, " win_extra=%d,", req
->win_extra
);
3170 fprintf( stderr
, " instance=%p,", req
->instance
);
3171 fprintf( stderr
, " extra_offset=%d,", req
->extra_offset
);
3172 fprintf( stderr
, " extra_size=%u,", req
->extra_size
);
3173 fprintf( stderr
, " extra_value=%lx", req
->extra_value
);
3176 static void dump_set_class_info_reply( const struct set_class_info_reply
*req
)
3178 fprintf( stderr
, " old_atom=%04x,", req
->old_atom
);
3179 fprintf( stderr
, " old_style=%08x,", req
->old_style
);
3180 fprintf( stderr
, " old_extra=%d,", req
->old_extra
);
3181 fprintf( stderr
, " old_win_extra=%d,", req
->old_win_extra
);
3182 fprintf( stderr
, " old_instance=%p,", req
->old_instance
);
3183 fprintf( stderr
, " old_extra_value=%lx", req
->old_extra_value
);
3186 static void dump_set_clipboard_info_request( const struct set_clipboard_info_request
*req
)
3188 fprintf( stderr
, " flags=%08x,", req
->flags
);
3189 fprintf( stderr
, " clipboard=%p,", req
->clipboard
);
3190 fprintf( stderr
, " owner=%p,", req
->owner
);
3191 fprintf( stderr
, " viewer=%p,", req
->viewer
);
3192 fprintf( stderr
, " seqno=%08x", req
->seqno
);
3195 static void dump_set_clipboard_info_reply( const struct set_clipboard_info_reply
*req
)
3197 fprintf( stderr
, " flags=%08x,", req
->flags
);
3198 fprintf( stderr
, " old_clipboard=%p,", req
->old_clipboard
);
3199 fprintf( stderr
, " old_owner=%p,", req
->old_owner
);
3200 fprintf( stderr
, " old_viewer=%p,", req
->old_viewer
);
3201 fprintf( stderr
, " seqno=%08x", req
->seqno
);
3204 static void dump_open_token_request( const struct open_token_request
*req
)
3206 fprintf( stderr
, " handle=%p,", req
->handle
);
3207 fprintf( stderr
, " access=%08x,", req
->access
);
3208 fprintf( stderr
, " attributes=%08x,", req
->attributes
);
3209 fprintf( stderr
, " flags=%08x", req
->flags
);
3212 static void dump_open_token_reply( const struct open_token_reply
*req
)
3214 fprintf( stderr
, " token=%p", req
->token
);
3217 static void dump_set_global_windows_request( const struct set_global_windows_request
*req
)
3219 fprintf( stderr
, " flags=%08x,", req
->flags
);
3220 fprintf( stderr
, " shell_window=%p,", req
->shell_window
);
3221 fprintf( stderr
, " shell_listview=%p,", req
->shell_listview
);
3222 fprintf( stderr
, " progman_window=%p,", req
->progman_window
);
3223 fprintf( stderr
, " taskman_window=%p", req
->taskman_window
);
3226 static void dump_set_global_windows_reply( const struct set_global_windows_reply
*req
)
3228 fprintf( stderr
, " old_shell_window=%p,", req
->old_shell_window
);
3229 fprintf( stderr
, " old_shell_listview=%p,", req
->old_shell_listview
);
3230 fprintf( stderr
, " old_progman_window=%p,", req
->old_progman_window
);
3231 fprintf( stderr
, " old_taskman_window=%p", req
->old_taskman_window
);
3234 static void dump_adjust_token_privileges_request( const struct adjust_token_privileges_request
*req
)
3236 fprintf( stderr
, " handle=%p,", req
->handle
);
3237 fprintf( stderr
, " disable_all=%d,", req
->disable_all
);
3238 fprintf( stderr
, " get_modified_state=%d,", req
->get_modified_state
);
3239 fprintf( stderr
, " privileges=" );
3240 dump_varargs_LUID_AND_ATTRIBUTES( cur_size
);
3243 static void dump_adjust_token_privileges_reply( const struct adjust_token_privileges_reply
*req
)
3245 fprintf( stderr
, " len=%08x,", req
->len
);
3246 fprintf( stderr
, " privileges=" );
3247 dump_varargs_LUID_AND_ATTRIBUTES( cur_size
);
3250 static void dump_get_token_privileges_request( const struct get_token_privileges_request
*req
)
3252 fprintf( stderr
, " handle=%p", req
->handle
);
3255 static void dump_get_token_privileges_reply( const struct get_token_privileges_reply
*req
)
3257 fprintf( stderr
, " len=%08x,", req
->len
);
3258 fprintf( stderr
, " privileges=" );
3259 dump_varargs_LUID_AND_ATTRIBUTES( cur_size
);
3262 static void dump_check_token_privileges_request( const struct check_token_privileges_request
*req
)
3264 fprintf( stderr
, " handle=%p,", req
->handle
);
3265 fprintf( stderr
, " all_required=%d,", req
->all_required
);
3266 fprintf( stderr
, " privileges=" );
3267 dump_varargs_LUID_AND_ATTRIBUTES( cur_size
);
3270 static void dump_check_token_privileges_reply( const struct check_token_privileges_reply
*req
)
3272 fprintf( stderr
, " has_privileges=%d,", req
->has_privileges
);
3273 fprintf( stderr
, " privileges=" );
3274 dump_varargs_LUID_AND_ATTRIBUTES( cur_size
);
3277 static void dump_duplicate_token_request( const struct duplicate_token_request
*req
)
3279 fprintf( stderr
, " handle=%p,", req
->handle
);
3280 fprintf( stderr
, " access=%08x,", req
->access
);
3281 fprintf( stderr
, " attributes=%08x,", req
->attributes
);
3282 fprintf( stderr
, " primary=%d,", req
->primary
);
3283 fprintf( stderr
, " impersonation_level=%d", req
->impersonation_level
);
3286 static void dump_duplicate_token_reply( const struct duplicate_token_reply
*req
)
3288 fprintf( stderr
, " new_handle=%p", req
->new_handle
);
3291 static void dump_access_check_request( const struct access_check_request
*req
)
3293 fprintf( stderr
, " handle=%p,", req
->handle
);
3294 fprintf( stderr
, " desired_access=%08x,", req
->desired_access
);
3295 fprintf( stderr
, " mapping_read=%08x,", req
->mapping_read
);
3296 fprintf( stderr
, " mapping_write=%08x,", req
->mapping_write
);
3297 fprintf( stderr
, " mapping_execute=%08x,", req
->mapping_execute
);
3298 fprintf( stderr
, " mapping_all=%08x,", req
->mapping_all
);
3299 fprintf( stderr
, " sd=" );
3300 dump_varargs_security_descriptor( cur_size
);
3303 static void dump_access_check_reply( const struct access_check_reply
*req
)
3305 fprintf( stderr
, " access_granted=%08x,", req
->access_granted
);
3306 fprintf( stderr
, " access_status=%08x,", req
->access_status
);
3307 fprintf( stderr
, " privileges_len=%08x,", req
->privileges_len
);
3308 fprintf( stderr
, " privileges=" );
3309 dump_varargs_LUID_AND_ATTRIBUTES( cur_size
);
3312 static void dump_get_token_user_request( const struct get_token_user_request
*req
)
3314 fprintf( stderr
, " handle=%p", req
->handle
);
3317 static void dump_get_token_user_reply( const struct get_token_user_reply
*req
)
3319 fprintf( stderr
, " user_len=%u,", req
->user_len
);
3320 fprintf( stderr
, " user=" );
3321 dump_varargs_SID( cur_size
);
3324 static void dump_get_token_groups_request( const struct get_token_groups_request
*req
)
3326 fprintf( stderr
, " handle=%p", req
->handle
);
3329 static void dump_get_token_groups_reply( const struct get_token_groups_reply
*req
)
3331 fprintf( stderr
, " user_len=%u,", req
->user_len
);
3332 fprintf( stderr
, " user=" );
3333 dump_varargs_token_groups( cur_size
);
3336 static void dump_set_security_object_request( const struct set_security_object_request
*req
)
3338 fprintf( stderr
, " handle=%p,", req
->handle
);
3339 fprintf( stderr
, " security_info=%08x,", req
->security_info
);
3340 fprintf( stderr
, " sd=" );
3341 dump_varargs_security_descriptor( cur_size
);
3344 static void dump_create_mailslot_request( const struct create_mailslot_request
*req
)
3346 fprintf( stderr
, " access=%08x,", req
->access
);
3347 fprintf( stderr
, " attributes=%08x,", req
->attributes
);
3348 fprintf( stderr
, " rootdir=%p,", req
->rootdir
);
3349 fprintf( stderr
, " max_msgsize=%08x,", req
->max_msgsize
);
3350 fprintf( stderr
, " read_timeout=" );
3351 dump_timeout( &req
->read_timeout
);
3352 fprintf( stderr
, "," );
3353 fprintf( stderr
, " name=" );
3354 dump_varargs_unicode_str( cur_size
);
3357 static void dump_create_mailslot_reply( const struct create_mailslot_reply
*req
)
3359 fprintf( stderr
, " handle=%p", req
->handle
);
3362 static void dump_set_mailslot_info_request( const struct set_mailslot_info_request
*req
)
3364 fprintf( stderr
, " handle=%p,", req
->handle
);
3365 fprintf( stderr
, " flags=%08x,", req
->flags
);
3366 fprintf( stderr
, " read_timeout=" );
3367 dump_timeout( &req
->read_timeout
);
3370 static void dump_set_mailslot_info_reply( const struct set_mailslot_info_reply
*req
)
3372 fprintf( stderr
, " max_msgsize=%08x,", req
->max_msgsize
);
3373 fprintf( stderr
, " read_timeout=" );
3374 dump_timeout( &req
->read_timeout
);
3377 static void dump_create_directory_request( const struct create_directory_request
*req
)
3379 fprintf( stderr
, " access=%08x,", req
->access
);
3380 fprintf( stderr
, " attributes=%08x,", req
->attributes
);
3381 fprintf( stderr
, " rootdir=%p,", req
->rootdir
);
3382 fprintf( stderr
, " directory_name=" );
3383 dump_varargs_unicode_str( cur_size
);
3386 static void dump_create_directory_reply( const struct create_directory_reply
*req
)
3388 fprintf( stderr
, " handle=%p", req
->handle
);
3391 static void dump_open_directory_request( const struct open_directory_request
*req
)
3393 fprintf( stderr
, " access=%08x,", req
->access
);
3394 fprintf( stderr
, " attributes=%08x,", req
->attributes
);
3395 fprintf( stderr
, " rootdir=%p,", req
->rootdir
);
3396 fprintf( stderr
, " directory_name=" );
3397 dump_varargs_unicode_str( cur_size
);
3400 static void dump_open_directory_reply( const struct open_directory_reply
*req
)
3402 fprintf( stderr
, " handle=%p", req
->handle
);
3405 static void dump_create_symlink_request( const struct create_symlink_request
*req
)
3407 fprintf( stderr
, " access=%08x,", req
->access
);
3408 fprintf( stderr
, " attributes=%08x,", req
->attributes
);
3409 fprintf( stderr
, " rootdir=%p,", req
->rootdir
);
3410 fprintf( stderr
, " name_len=%u,", req
->name_len
);
3411 fprintf( stderr
, " name=" );
3412 dump_varargs_unicode_str( min(cur_size
,req
->name_len
) );
3413 fputc( ',', stderr
);
3414 fprintf( stderr
, " target_name=" );
3415 dump_varargs_unicode_str( cur_size
);
3418 static void dump_create_symlink_reply( const struct create_symlink_reply
*req
)
3420 fprintf( stderr
, " handle=%p", req
->handle
);
3423 static void dump_open_symlink_request( const struct open_symlink_request
*req
)
3425 fprintf( stderr
, " access=%08x,", req
->access
);
3426 fprintf( stderr
, " attributes=%08x,", req
->attributes
);
3427 fprintf( stderr
, " rootdir=%p,", req
->rootdir
);
3428 fprintf( stderr
, " name=" );
3429 dump_varargs_unicode_str( cur_size
);
3432 static void dump_open_symlink_reply( const struct open_symlink_reply
*req
)
3434 fprintf( stderr
, " handle=%p", req
->handle
);
3437 static void dump_query_symlink_request( const struct query_symlink_request
*req
)
3439 fprintf( stderr
, " handle=%p", req
->handle
);
3442 static void dump_query_symlink_reply( const struct query_symlink_reply
*req
)
3444 fprintf( stderr
, " target_name=" );
3445 dump_varargs_unicode_str( cur_size
);
3448 static void dump_get_object_info_request( const struct get_object_info_request
*req
)
3450 fprintf( stderr
, " handle=%p", req
->handle
);
3453 static void dump_get_object_info_reply( const struct get_object_info_reply
*req
)
3455 fprintf( stderr
, " access=%08x,", req
->access
);
3456 fprintf( stderr
, " ref_count=%08x", req
->ref_count
);
3459 static void dump_get_token_impersonation_level_request( const struct get_token_impersonation_level_request
*req
)
3461 fprintf( stderr
, " handle=%p", req
->handle
);
3464 static void dump_get_token_impersonation_level_reply( const struct get_token_impersonation_level_reply
*req
)
3466 fprintf( stderr
, " impersonation_level=%d", req
->impersonation_level
);
3469 static void dump_allocate_locally_unique_id_request( const struct allocate_locally_unique_id_request
*req
)
3473 static void dump_allocate_locally_unique_id_reply( const struct allocate_locally_unique_id_reply
*req
)
3475 fprintf( stderr
, " luid=" );
3476 dump_luid( &req
->luid
);
3479 static void dump_create_device_manager_request( const struct create_device_manager_request
*req
)
3481 fprintf( stderr
, " access=%08x,", req
->access
);
3482 fprintf( stderr
, " attributes=%08x", req
->attributes
);
3485 static void dump_create_device_manager_reply( const struct create_device_manager_reply
*req
)
3487 fprintf( stderr
, " handle=%p", req
->handle
);
3490 static void dump_create_device_request( const struct create_device_request
*req
)
3492 fprintf( stderr
, " access=%08x,", req
->access
);
3493 fprintf( stderr
, " attributes=%08x,", req
->attributes
);
3494 fprintf( stderr
, " rootdir=%p,", req
->rootdir
);
3495 fprintf( stderr
, " manager=%p,", req
->manager
);
3496 fprintf( stderr
, " user_ptr=%p,", req
->user_ptr
);
3497 fprintf( stderr
, " name=" );
3498 dump_varargs_unicode_str( cur_size
);
3501 static void dump_create_device_reply( const struct create_device_reply
*req
)
3503 fprintf( stderr
, " handle=%p", req
->handle
);
3506 static void dump_delete_device_request( const struct delete_device_request
*req
)
3508 fprintf( stderr
, " handle=%p", req
->handle
);
3511 static void dump_get_next_device_request_request( const struct get_next_device_request_request
*req
)
3513 fprintf( stderr
, " manager=%p,", req
->manager
);
3514 fprintf( stderr
, " prev=%p,", req
->prev
);
3515 fprintf( stderr
, " status=%08x,", req
->status
);
3516 fprintf( stderr
, " prev_data=" );
3517 dump_varargs_bytes( cur_size
);
3520 static void dump_get_next_device_request_reply( const struct get_next_device_request_reply
*req
)
3522 fprintf( stderr
, " next=%p,", req
->next
);
3523 fprintf( stderr
, " code=" );
3524 dump_ioctl_code( &req
->code
);
3525 fprintf( stderr
, "," );
3526 fprintf( stderr
, " user_ptr=%p,", req
->user_ptr
);
3527 fprintf( stderr
, " in_size=%u,", req
->in_size
);
3528 fprintf( stderr
, " out_size=%u,", req
->out_size
);
3529 fprintf( stderr
, " next_data=" );
3530 dump_varargs_bytes( cur_size
);
3533 static void dump_make_process_system_request( const struct make_process_system_request
*req
)
3537 static void dump_make_process_system_reply( const struct make_process_system_reply
*req
)
3539 fprintf( stderr
, " event=%p", req
->event
);
3542 static const dump_func req_dumpers
[REQ_NB_REQUESTS
] = {
3543 (dump_func
)dump_new_process_request
,
3544 (dump_func
)dump_get_new_process_info_request
,
3545 (dump_func
)dump_new_thread_request
,
3546 (dump_func
)dump_get_startup_info_request
,
3547 (dump_func
)dump_init_process_done_request
,
3548 (dump_func
)dump_init_thread_request
,
3549 (dump_func
)dump_terminate_process_request
,
3550 (dump_func
)dump_terminate_thread_request
,
3551 (dump_func
)dump_get_process_info_request
,
3552 (dump_func
)dump_set_process_info_request
,
3553 (dump_func
)dump_get_thread_info_request
,
3554 (dump_func
)dump_set_thread_info_request
,
3555 (dump_func
)dump_get_dll_info_request
,
3556 (dump_func
)dump_suspend_thread_request
,
3557 (dump_func
)dump_resume_thread_request
,
3558 (dump_func
)dump_load_dll_request
,
3559 (dump_func
)dump_unload_dll_request
,
3560 (dump_func
)dump_queue_apc_request
,
3561 (dump_func
)dump_get_apc_request
,
3562 (dump_func
)dump_get_apc_result_request
,
3563 (dump_func
)dump_close_handle_request
,
3564 (dump_func
)dump_set_handle_info_request
,
3565 (dump_func
)dump_dup_handle_request
,
3566 (dump_func
)dump_open_process_request
,
3567 (dump_func
)dump_open_thread_request
,
3568 (dump_func
)dump_select_request
,
3569 (dump_func
)dump_create_event_request
,
3570 (dump_func
)dump_event_op_request
,
3571 (dump_func
)dump_open_event_request
,
3572 (dump_func
)dump_create_mutex_request
,
3573 (dump_func
)dump_release_mutex_request
,
3574 (dump_func
)dump_open_mutex_request
,
3575 (dump_func
)dump_create_semaphore_request
,
3576 (dump_func
)dump_release_semaphore_request
,
3577 (dump_func
)dump_open_semaphore_request
,
3578 (dump_func
)dump_create_file_request
,
3579 (dump_func
)dump_open_file_object_request
,
3580 (dump_func
)dump_alloc_file_handle_request
,
3581 (dump_func
)dump_get_handle_fd_request
,
3582 (dump_func
)dump_flush_file_request
,
3583 (dump_func
)dump_lock_file_request
,
3584 (dump_func
)dump_unlock_file_request
,
3585 (dump_func
)dump_create_socket_request
,
3586 (dump_func
)dump_accept_socket_request
,
3587 (dump_func
)dump_set_socket_event_request
,
3588 (dump_func
)dump_get_socket_event_request
,
3589 (dump_func
)dump_enable_socket_event_request
,
3590 (dump_func
)dump_set_socket_deferred_request
,
3591 (dump_func
)dump_alloc_console_request
,
3592 (dump_func
)dump_free_console_request
,
3593 (dump_func
)dump_get_console_renderer_events_request
,
3594 (dump_func
)dump_open_console_request
,
3595 (dump_func
)dump_get_console_wait_event_request
,
3596 (dump_func
)dump_get_console_mode_request
,
3597 (dump_func
)dump_set_console_mode_request
,
3598 (dump_func
)dump_set_console_input_info_request
,
3599 (dump_func
)dump_get_console_input_info_request
,
3600 (dump_func
)dump_append_console_input_history_request
,
3601 (dump_func
)dump_get_console_input_history_request
,
3602 (dump_func
)dump_create_console_output_request
,
3603 (dump_func
)dump_set_console_output_info_request
,
3604 (dump_func
)dump_get_console_output_info_request
,
3605 (dump_func
)dump_write_console_input_request
,
3606 (dump_func
)dump_read_console_input_request
,
3607 (dump_func
)dump_write_console_output_request
,
3608 (dump_func
)dump_fill_console_output_request
,
3609 (dump_func
)dump_read_console_output_request
,
3610 (dump_func
)dump_move_console_output_request
,
3611 (dump_func
)dump_send_console_signal_request
,
3612 (dump_func
)dump_read_directory_changes_request
,
3613 (dump_func
)dump_read_change_request
,
3614 (dump_func
)dump_create_mapping_request
,
3615 (dump_func
)dump_open_mapping_request
,
3616 (dump_func
)dump_get_mapping_info_request
,
3617 (dump_func
)dump_create_snapshot_request
,
3618 (dump_func
)dump_next_process_request
,
3619 (dump_func
)dump_next_thread_request
,
3620 (dump_func
)dump_next_module_request
,
3621 (dump_func
)dump_wait_debug_event_request
,
3622 (dump_func
)dump_queue_exception_event_request
,
3623 (dump_func
)dump_get_exception_status_request
,
3624 (dump_func
)dump_output_debug_string_request
,
3625 (dump_func
)dump_continue_debug_event_request
,
3626 (dump_func
)dump_debug_process_request
,
3627 (dump_func
)dump_debug_break_request
,
3628 (dump_func
)dump_set_debugger_kill_on_exit_request
,
3629 (dump_func
)dump_read_process_memory_request
,
3630 (dump_func
)dump_write_process_memory_request
,
3631 (dump_func
)dump_create_key_request
,
3632 (dump_func
)dump_open_key_request
,
3633 (dump_func
)dump_delete_key_request
,
3634 (dump_func
)dump_flush_key_request
,
3635 (dump_func
)dump_enum_key_request
,
3636 (dump_func
)dump_set_key_value_request
,
3637 (dump_func
)dump_get_key_value_request
,
3638 (dump_func
)dump_enum_key_value_request
,
3639 (dump_func
)dump_delete_key_value_request
,
3640 (dump_func
)dump_load_registry_request
,
3641 (dump_func
)dump_unload_registry_request
,
3642 (dump_func
)dump_save_registry_request
,
3643 (dump_func
)dump_set_registry_notification_request
,
3644 (dump_func
)dump_create_timer_request
,
3645 (dump_func
)dump_open_timer_request
,
3646 (dump_func
)dump_set_timer_request
,
3647 (dump_func
)dump_cancel_timer_request
,
3648 (dump_func
)dump_get_timer_info_request
,
3649 (dump_func
)dump_get_thread_context_request
,
3650 (dump_func
)dump_set_thread_context_request
,
3651 (dump_func
)dump_get_selector_entry_request
,
3652 (dump_func
)dump_add_atom_request
,
3653 (dump_func
)dump_delete_atom_request
,
3654 (dump_func
)dump_find_atom_request
,
3655 (dump_func
)dump_get_atom_information_request
,
3656 (dump_func
)dump_set_atom_information_request
,
3657 (dump_func
)dump_empty_atom_table_request
,
3658 (dump_func
)dump_init_atom_table_request
,
3659 (dump_func
)dump_get_msg_queue_request
,
3660 (dump_func
)dump_set_queue_fd_request
,
3661 (dump_func
)dump_set_queue_mask_request
,
3662 (dump_func
)dump_get_queue_status_request
,
3663 (dump_func
)dump_get_process_idle_event_request
,
3664 (dump_func
)dump_send_message_request
,
3665 (dump_func
)dump_post_quit_message_request
,
3666 (dump_func
)dump_send_hardware_message_request
,
3667 (dump_func
)dump_get_message_request
,
3668 (dump_func
)dump_reply_message_request
,
3669 (dump_func
)dump_accept_hardware_message_request
,
3670 (dump_func
)dump_get_message_reply_request
,
3671 (dump_func
)dump_set_win_timer_request
,
3672 (dump_func
)dump_kill_win_timer_request
,
3673 (dump_func
)dump_get_serial_info_request
,
3674 (dump_func
)dump_set_serial_info_request
,
3675 (dump_func
)dump_register_async_request
,
3676 (dump_func
)dump_cancel_async_request
,
3677 (dump_func
)dump_ioctl_request
,
3678 (dump_func
)dump_get_ioctl_result_request
,
3679 (dump_func
)dump_create_named_pipe_request
,
3680 (dump_func
)dump_get_named_pipe_info_request
,
3681 (dump_func
)dump_create_window_request
,
3682 (dump_func
)dump_destroy_window_request
,
3683 (dump_func
)dump_get_desktop_window_request
,
3684 (dump_func
)dump_set_window_owner_request
,
3685 (dump_func
)dump_get_window_info_request
,
3686 (dump_func
)dump_set_window_info_request
,
3687 (dump_func
)dump_set_parent_request
,
3688 (dump_func
)dump_get_window_parents_request
,
3689 (dump_func
)dump_get_window_children_request
,
3690 (dump_func
)dump_get_window_children_from_point_request
,
3691 (dump_func
)dump_get_window_tree_request
,
3692 (dump_func
)dump_set_window_pos_request
,
3693 (dump_func
)dump_get_window_rectangles_request
,
3694 (dump_func
)dump_get_window_text_request
,
3695 (dump_func
)dump_set_window_text_request
,
3696 (dump_func
)dump_get_windows_offset_request
,
3697 (dump_func
)dump_get_visible_region_request
,
3698 (dump_func
)dump_get_window_region_request
,
3699 (dump_func
)dump_set_window_region_request
,
3700 (dump_func
)dump_get_update_region_request
,
3701 (dump_func
)dump_update_window_zorder_request
,
3702 (dump_func
)dump_redraw_window_request
,
3703 (dump_func
)dump_set_window_property_request
,
3704 (dump_func
)dump_remove_window_property_request
,
3705 (dump_func
)dump_get_window_property_request
,
3706 (dump_func
)dump_get_window_properties_request
,
3707 (dump_func
)dump_create_winstation_request
,
3708 (dump_func
)dump_open_winstation_request
,
3709 (dump_func
)dump_close_winstation_request
,
3710 (dump_func
)dump_get_process_winstation_request
,
3711 (dump_func
)dump_set_process_winstation_request
,
3712 (dump_func
)dump_create_desktop_request
,
3713 (dump_func
)dump_open_desktop_request
,
3714 (dump_func
)dump_close_desktop_request
,
3715 (dump_func
)dump_get_thread_desktop_request
,
3716 (dump_func
)dump_set_thread_desktop_request
,
3717 (dump_func
)dump_set_user_object_info_request
,
3718 (dump_func
)dump_attach_thread_input_request
,
3719 (dump_func
)dump_get_thread_input_request
,
3720 (dump_func
)dump_get_last_input_time_request
,
3721 (dump_func
)dump_get_key_state_request
,
3722 (dump_func
)dump_set_key_state_request
,
3723 (dump_func
)dump_set_foreground_window_request
,
3724 (dump_func
)dump_set_focus_window_request
,
3725 (dump_func
)dump_set_active_window_request
,
3726 (dump_func
)dump_set_capture_window_request
,
3727 (dump_func
)dump_set_caret_window_request
,
3728 (dump_func
)dump_set_caret_info_request
,
3729 (dump_func
)dump_set_hook_request
,
3730 (dump_func
)dump_remove_hook_request
,
3731 (dump_func
)dump_start_hook_chain_request
,
3732 (dump_func
)dump_finish_hook_chain_request
,
3733 (dump_func
)dump_get_hook_info_request
,
3734 (dump_func
)dump_create_class_request
,
3735 (dump_func
)dump_destroy_class_request
,
3736 (dump_func
)dump_set_class_info_request
,
3737 (dump_func
)dump_set_clipboard_info_request
,
3738 (dump_func
)dump_open_token_request
,
3739 (dump_func
)dump_set_global_windows_request
,
3740 (dump_func
)dump_adjust_token_privileges_request
,
3741 (dump_func
)dump_get_token_privileges_request
,
3742 (dump_func
)dump_check_token_privileges_request
,
3743 (dump_func
)dump_duplicate_token_request
,
3744 (dump_func
)dump_access_check_request
,
3745 (dump_func
)dump_get_token_user_request
,
3746 (dump_func
)dump_get_token_groups_request
,
3747 (dump_func
)dump_set_security_object_request
,
3748 (dump_func
)dump_create_mailslot_request
,
3749 (dump_func
)dump_set_mailslot_info_request
,
3750 (dump_func
)dump_create_directory_request
,
3751 (dump_func
)dump_open_directory_request
,
3752 (dump_func
)dump_create_symlink_request
,
3753 (dump_func
)dump_open_symlink_request
,
3754 (dump_func
)dump_query_symlink_request
,
3755 (dump_func
)dump_get_object_info_request
,
3756 (dump_func
)dump_get_token_impersonation_level_request
,
3757 (dump_func
)dump_allocate_locally_unique_id_request
,
3758 (dump_func
)dump_create_device_manager_request
,
3759 (dump_func
)dump_create_device_request
,
3760 (dump_func
)dump_delete_device_request
,
3761 (dump_func
)dump_get_next_device_request_request
,
3762 (dump_func
)dump_make_process_system_request
,
3765 static const dump_func reply_dumpers
[REQ_NB_REQUESTS
] = {
3766 (dump_func
)dump_new_process_reply
,
3767 (dump_func
)dump_get_new_process_info_reply
,
3768 (dump_func
)dump_new_thread_reply
,
3769 (dump_func
)dump_get_startup_info_reply
,
3771 (dump_func
)dump_init_thread_reply
,
3772 (dump_func
)dump_terminate_process_reply
,
3773 (dump_func
)dump_terminate_thread_reply
,
3774 (dump_func
)dump_get_process_info_reply
,
3776 (dump_func
)dump_get_thread_info_reply
,
3778 (dump_func
)dump_get_dll_info_reply
,
3779 (dump_func
)dump_suspend_thread_reply
,
3780 (dump_func
)dump_resume_thread_reply
,
3783 (dump_func
)dump_queue_apc_reply
,
3784 (dump_func
)dump_get_apc_reply
,
3785 (dump_func
)dump_get_apc_result_reply
,
3787 (dump_func
)dump_set_handle_info_reply
,
3788 (dump_func
)dump_dup_handle_reply
,
3789 (dump_func
)dump_open_process_reply
,
3790 (dump_func
)dump_open_thread_reply
,
3791 (dump_func
)dump_select_reply
,
3792 (dump_func
)dump_create_event_reply
,
3794 (dump_func
)dump_open_event_reply
,
3795 (dump_func
)dump_create_mutex_reply
,
3796 (dump_func
)dump_release_mutex_reply
,
3797 (dump_func
)dump_open_mutex_reply
,
3798 (dump_func
)dump_create_semaphore_reply
,
3799 (dump_func
)dump_release_semaphore_reply
,
3800 (dump_func
)dump_open_semaphore_reply
,
3801 (dump_func
)dump_create_file_reply
,
3802 (dump_func
)dump_open_file_object_reply
,
3803 (dump_func
)dump_alloc_file_handle_reply
,
3804 (dump_func
)dump_get_handle_fd_reply
,
3805 (dump_func
)dump_flush_file_reply
,
3806 (dump_func
)dump_lock_file_reply
,
3808 (dump_func
)dump_create_socket_reply
,
3809 (dump_func
)dump_accept_socket_reply
,
3811 (dump_func
)dump_get_socket_event_reply
,
3814 (dump_func
)dump_alloc_console_reply
,
3816 (dump_func
)dump_get_console_renderer_events_reply
,
3817 (dump_func
)dump_open_console_reply
,
3818 (dump_func
)dump_get_console_wait_event_reply
,
3819 (dump_func
)dump_get_console_mode_reply
,
3822 (dump_func
)dump_get_console_input_info_reply
,
3824 (dump_func
)dump_get_console_input_history_reply
,
3825 (dump_func
)dump_create_console_output_reply
,
3827 (dump_func
)dump_get_console_output_info_reply
,
3828 (dump_func
)dump_write_console_input_reply
,
3829 (dump_func
)dump_read_console_input_reply
,
3830 (dump_func
)dump_write_console_output_reply
,
3831 (dump_func
)dump_fill_console_output_reply
,
3832 (dump_func
)dump_read_console_output_reply
,
3836 (dump_func
)dump_read_change_reply
,
3837 (dump_func
)dump_create_mapping_reply
,
3838 (dump_func
)dump_open_mapping_reply
,
3839 (dump_func
)dump_get_mapping_info_reply
,
3840 (dump_func
)dump_create_snapshot_reply
,
3841 (dump_func
)dump_next_process_reply
,
3842 (dump_func
)dump_next_thread_reply
,
3843 (dump_func
)dump_next_module_reply
,
3844 (dump_func
)dump_wait_debug_event_reply
,
3845 (dump_func
)dump_queue_exception_event_reply
,
3846 (dump_func
)dump_get_exception_status_reply
,
3850 (dump_func
)dump_debug_break_reply
,
3852 (dump_func
)dump_read_process_memory_reply
,
3854 (dump_func
)dump_create_key_reply
,
3855 (dump_func
)dump_open_key_reply
,
3858 (dump_func
)dump_enum_key_reply
,
3860 (dump_func
)dump_get_key_value_reply
,
3861 (dump_func
)dump_enum_key_value_reply
,
3867 (dump_func
)dump_create_timer_reply
,
3868 (dump_func
)dump_open_timer_reply
,
3869 (dump_func
)dump_set_timer_reply
,
3870 (dump_func
)dump_cancel_timer_reply
,
3871 (dump_func
)dump_get_timer_info_reply
,
3872 (dump_func
)dump_get_thread_context_reply
,
3873 (dump_func
)dump_set_thread_context_reply
,
3874 (dump_func
)dump_get_selector_entry_reply
,
3875 (dump_func
)dump_add_atom_reply
,
3877 (dump_func
)dump_find_atom_reply
,
3878 (dump_func
)dump_get_atom_information_reply
,
3881 (dump_func
)dump_init_atom_table_reply
,
3882 (dump_func
)dump_get_msg_queue_reply
,
3884 (dump_func
)dump_set_queue_mask_reply
,
3885 (dump_func
)dump_get_queue_status_reply
,
3886 (dump_func
)dump_get_process_idle_event_reply
,
3890 (dump_func
)dump_get_message_reply
,
3893 (dump_func
)dump_get_message_reply_reply
,
3894 (dump_func
)dump_set_win_timer_reply
,
3896 (dump_func
)dump_get_serial_info_reply
,
3900 (dump_func
)dump_ioctl_reply
,
3901 (dump_func
)dump_get_ioctl_result_reply
,
3902 (dump_func
)dump_create_named_pipe_reply
,
3903 (dump_func
)dump_get_named_pipe_info_reply
,
3904 (dump_func
)dump_create_window_reply
,
3906 (dump_func
)dump_get_desktop_window_reply
,
3907 (dump_func
)dump_set_window_owner_reply
,
3908 (dump_func
)dump_get_window_info_reply
,
3909 (dump_func
)dump_set_window_info_reply
,
3910 (dump_func
)dump_set_parent_reply
,
3911 (dump_func
)dump_get_window_parents_reply
,
3912 (dump_func
)dump_get_window_children_reply
,
3913 (dump_func
)dump_get_window_children_from_point_reply
,
3914 (dump_func
)dump_get_window_tree_reply
,
3915 (dump_func
)dump_set_window_pos_reply
,
3916 (dump_func
)dump_get_window_rectangles_reply
,
3917 (dump_func
)dump_get_window_text_reply
,
3919 (dump_func
)dump_get_windows_offset_reply
,
3920 (dump_func
)dump_get_visible_region_reply
,
3921 (dump_func
)dump_get_window_region_reply
,
3923 (dump_func
)dump_get_update_region_reply
,
3927 (dump_func
)dump_remove_window_property_reply
,
3928 (dump_func
)dump_get_window_property_reply
,
3929 (dump_func
)dump_get_window_properties_reply
,
3930 (dump_func
)dump_create_winstation_reply
,
3931 (dump_func
)dump_open_winstation_reply
,
3933 (dump_func
)dump_get_process_winstation_reply
,
3935 (dump_func
)dump_create_desktop_reply
,
3936 (dump_func
)dump_open_desktop_reply
,
3938 (dump_func
)dump_get_thread_desktop_reply
,
3940 (dump_func
)dump_set_user_object_info_reply
,
3942 (dump_func
)dump_get_thread_input_reply
,
3943 (dump_func
)dump_get_last_input_time_reply
,
3944 (dump_func
)dump_get_key_state_reply
,
3946 (dump_func
)dump_set_foreground_window_reply
,
3947 (dump_func
)dump_set_focus_window_reply
,
3948 (dump_func
)dump_set_active_window_reply
,
3949 (dump_func
)dump_set_capture_window_reply
,
3950 (dump_func
)dump_set_caret_window_reply
,
3951 (dump_func
)dump_set_caret_info_reply
,
3952 (dump_func
)dump_set_hook_reply
,
3953 (dump_func
)dump_remove_hook_reply
,
3954 (dump_func
)dump_start_hook_chain_reply
,
3956 (dump_func
)dump_get_hook_info_reply
,
3958 (dump_func
)dump_destroy_class_reply
,
3959 (dump_func
)dump_set_class_info_reply
,
3960 (dump_func
)dump_set_clipboard_info_reply
,
3961 (dump_func
)dump_open_token_reply
,
3962 (dump_func
)dump_set_global_windows_reply
,
3963 (dump_func
)dump_adjust_token_privileges_reply
,
3964 (dump_func
)dump_get_token_privileges_reply
,
3965 (dump_func
)dump_check_token_privileges_reply
,
3966 (dump_func
)dump_duplicate_token_reply
,
3967 (dump_func
)dump_access_check_reply
,
3968 (dump_func
)dump_get_token_user_reply
,
3969 (dump_func
)dump_get_token_groups_reply
,
3971 (dump_func
)dump_create_mailslot_reply
,
3972 (dump_func
)dump_set_mailslot_info_reply
,
3973 (dump_func
)dump_create_directory_reply
,
3974 (dump_func
)dump_open_directory_reply
,
3975 (dump_func
)dump_create_symlink_reply
,
3976 (dump_func
)dump_open_symlink_reply
,
3977 (dump_func
)dump_query_symlink_reply
,
3978 (dump_func
)dump_get_object_info_reply
,
3979 (dump_func
)dump_get_token_impersonation_level_reply
,
3980 (dump_func
)dump_allocate_locally_unique_id_reply
,
3981 (dump_func
)dump_create_device_manager_reply
,
3982 (dump_func
)dump_create_device_reply
,
3984 (dump_func
)dump_get_next_device_request_reply
,
3985 (dump_func
)dump_make_process_system_reply
,
3988 static const char * const req_names
[REQ_NB_REQUESTS
] = {
3990 "get_new_process_info",
3993 "init_process_done",
3995 "terminate_process",
4022 "release_semaphore",
4026 "alloc_file_handle",
4035 "enable_socket_event",
4036 "set_socket_deferred",
4039 "get_console_renderer_events",
4041 "get_console_wait_event",
4044 "set_console_input_info",
4045 "get_console_input_info",
4046 "append_console_input_history",
4047 "get_console_input_history",
4048 "create_console_output",
4049 "set_console_output_info",
4050 "get_console_output_info",
4051 "write_console_input",
4052 "read_console_input",
4053 "write_console_output",
4054 "fill_console_output",
4055 "read_console_output",
4056 "move_console_output",
4057 "send_console_signal",
4058 "read_directory_changes",
4068 "queue_exception_event",
4069 "get_exception_status",
4070 "output_debug_string",
4071 "continue_debug_event",
4074 "set_debugger_kill_on_exit",
4075 "read_process_memory",
4076 "write_process_memory",
4089 "set_registry_notification",
4095 "get_thread_context",
4096 "set_thread_context",
4097 "get_selector_entry",
4101 "get_atom_information",
4102 "set_atom_information",
4109 "get_process_idle_event",
4111 "post_quit_message",
4112 "send_hardware_message",
4115 "accept_hardware_message",
4116 "get_message_reply",
4125 "create_named_pipe",
4126 "get_named_pipe_info",
4129 "get_desktop_window",
4134 "get_window_parents",
4135 "get_window_children",
4136 "get_window_children_from_point",
4139 "get_window_rectangles",
4142 "get_windows_offset",
4143 "get_visible_region",
4144 "get_window_region",
4145 "set_window_region",
4146 "get_update_region",
4147 "update_window_zorder",
4149 "set_window_property",
4150 "remove_window_property",
4151 "get_window_property",
4152 "get_window_properties",
4153 "create_winstation",
4156 "get_process_winstation",
4157 "set_process_winstation",
4161 "get_thread_desktop",
4162 "set_thread_desktop",
4163 "set_user_object_info",
4164 "attach_thread_input",
4166 "get_last_input_time",
4169 "set_foreground_window",
4171 "set_active_window",
4172 "set_capture_window",
4178 "finish_hook_chain",
4183 "set_clipboard_info",
4185 "set_global_windows",
4186 "adjust_token_privileges",
4187 "get_token_privileges",
4188 "check_token_privileges",
4193 "set_security_object",
4195 "set_mailslot_info",
4202 "get_token_impersonation_level",
4203 "allocate_locally_unique_id",
4204 "create_device_manager",
4207 "get_next_device_request",
4208 "make_process_system",
4217 { "ABANDONED_WAIT_0", STATUS_ABANDONED_WAIT_0
},
4218 { "ACCESS_DENIED", STATUS_ACCESS_DENIED
},
4219 { "ACCESS_VIOLATION", STATUS_ACCESS_VIOLATION
},
4220 { "ALERTED", STATUS_ALERTED
},
4221 { "ALIAS_EXISTS", STATUS_ALIAS_EXISTS
},
4222 { "BAD_DEVICE_TYPE", STATUS_BAD_DEVICE_TYPE
},
4223 { "BAD_IMPERSONATION_LEVEL", STATUS_BAD_IMPERSONATION_LEVEL
},
4224 { "BREAKPOINT", STATUS_BREAKPOINT
},
4225 { "BUFFER_OVERFLOW", STATUS_BUFFER_OVERFLOW
},
4226 { "BUFFER_TOO_SMALL", STATUS_BUFFER_TOO_SMALL
},
4227 { "CANCELLED", STATUS_CANCELLED
},
4228 { "CANT_OPEN_ANONYMOUS", STATUS_CANT_OPEN_ANONYMOUS
},
4229 { "CHILD_MUST_BE_VOLATILE", STATUS_CHILD_MUST_BE_VOLATILE
},
4230 { "DEVICE_BUSY", STATUS_DEVICE_BUSY
},
4231 { "DIRECTORY_NOT_EMPTY", STATUS_DIRECTORY_NOT_EMPTY
},
4232 { "DISK_FULL", STATUS_DISK_FULL
},
4233 { "DLL_NOT_FOUND", STATUS_DLL_NOT_FOUND
},
4234 { "ERROR_CLASS_ALREADY_EXISTS", 0xc0010000 | ERROR_CLASS_ALREADY_EXISTS
},
4235 { "ERROR_CLASS_DOES_NOT_EXIST", 0xc0010000 | ERROR_CLASS_DOES_NOT_EXIST
},
4236 { "ERROR_CLASS_HAS_WINDOWS", 0xc0010000 | ERROR_CLASS_HAS_WINDOWS
},
4237 { "ERROR_CLIPBOARD_NOT_OPEN", 0xc0010000 | ERROR_CLIPBOARD_NOT_OPEN
},
4238 { "ERROR_INVALID_INDEX", 0xc0010000 | ERROR_INVALID_INDEX
},
4239 { "ERROR_INVALID_WINDOW_HANDLE", 0xc0010000 | ERROR_INVALID_WINDOW_HANDLE
},
4240 { "FILE_DELETED", STATUS_FILE_DELETED
},
4241 { "FILE_IS_A_DIRECTORY", STATUS_FILE_IS_A_DIRECTORY
},
4242 { "FILE_LOCK_CONFLICT", STATUS_FILE_LOCK_CONFLICT
},
4243 { "GENERIC_NOT_MAPPED", STATUS_GENERIC_NOT_MAPPED
},
4244 { "HANDLES_CLOSED", STATUS_HANDLES_CLOSED
},
4245 { "HANDLE_NOT_CLOSABLE", STATUS_HANDLE_NOT_CLOSABLE
},
4246 { "ILLEGAL_FUNCTION", STATUS_ILLEGAL_FUNCTION
},
4247 { "INSTANCE_NOT_AVAILABLE", STATUS_INSTANCE_NOT_AVAILABLE
},
4248 { "INVALID_CID", STATUS_INVALID_CID
},
4249 { "INVALID_FILE_FOR_SECTION", STATUS_INVALID_FILE_FOR_SECTION
},
4250 { "INVALID_HANDLE", STATUS_INVALID_HANDLE
},
4251 { "INVALID_PARAMETER", STATUS_INVALID_PARAMETER
},
4252 { "INVALID_SECURITY_DESCR", STATUS_INVALID_SECURITY_DESCR
},
4253 { "IO_TIMEOUT", STATUS_IO_TIMEOUT
},
4254 { "KEY_DELETED", STATUS_KEY_DELETED
},
4255 { "MAPPED_FILE_SIZE_ZERO", STATUS_MAPPED_FILE_SIZE_ZERO
},
4256 { "MEDIA_WRITE_PROTECTED", STATUS_MEDIA_WRITE_PROTECTED
},
4257 { "MUTANT_NOT_OWNED", STATUS_MUTANT_NOT_OWNED
},
4258 { "NAME_TOO_LONG", STATUS_NAME_TOO_LONG
},
4259 { "NOTIFY_ENUM_DIR", STATUS_NOTIFY_ENUM_DIR
},
4260 { "NOT_ALL_ASSIGNED", STATUS_NOT_ALL_ASSIGNED
},
4261 { "NOT_A_DIRECTORY", STATUS_NOT_A_DIRECTORY
},
4262 { "NOT_IMPLEMENTED", STATUS_NOT_IMPLEMENTED
},
4263 { "NOT_REGISTRY_FILE", STATUS_NOT_REGISTRY_FILE
},
4264 { "NOT_SUPPORTED", STATUS_NOT_SUPPORTED
},
4265 { "NO_DATA_DETECTED", STATUS_NO_DATA_DETECTED
},
4266 { "NO_IMPERSONATION_TOKEN", STATUS_NO_IMPERSONATION_TOKEN
},
4267 { "NO_MEMORY", STATUS_NO_MEMORY
},
4268 { "NO_MORE_ENTRIES", STATUS_NO_MORE_ENTRIES
},
4269 { "NO_MORE_FILES", STATUS_NO_MORE_FILES
},
4270 { "NO_SUCH_DEVICE", STATUS_NO_SUCH_DEVICE
},
4271 { "NO_SUCH_FILE", STATUS_NO_SUCH_FILE
},
4272 { "NO_TOKEN", STATUS_NO_TOKEN
},
4273 { "OBJECT_NAME_COLLISION", STATUS_OBJECT_NAME_COLLISION
},
4274 { "OBJECT_NAME_EXISTS", STATUS_OBJECT_NAME_EXISTS
},
4275 { "OBJECT_NAME_INVALID", STATUS_OBJECT_NAME_INVALID
},
4276 { "OBJECT_NAME_NOT_FOUND", STATUS_OBJECT_NAME_NOT_FOUND
},
4277 { "OBJECT_PATH_INVALID", STATUS_OBJECT_PATH_INVALID
},
4278 { "OBJECT_PATH_NOT_FOUND", STATUS_OBJECT_PATH_NOT_FOUND
},
4279 { "OBJECT_PATH_SYNTAX_BAD", STATUS_OBJECT_PATH_SYNTAX_BAD
},
4280 { "OBJECT_TYPE_MISMATCH", STATUS_OBJECT_TYPE_MISMATCH
},
4281 { "PENDING", STATUS_PENDING
},
4282 { "PIPE_BUSY", STATUS_PIPE_BUSY
},
4283 { "PIPE_CONNECTED", STATUS_PIPE_CONNECTED
},
4284 { "PIPE_DISCONNECTED", STATUS_PIPE_DISCONNECTED
},
4285 { "PIPE_LISTENING", STATUS_PIPE_LISTENING
},
4286 { "PIPE_NOT_AVAILABLE", STATUS_PIPE_NOT_AVAILABLE
},
4287 { "PRIVILEGE_NOT_HELD", STATUS_PRIVILEGE_NOT_HELD
},
4288 { "PROCESS_IS_TERMINATING", STATUS_PROCESS_IS_TERMINATING
},
4289 { "SECTION_TOO_BIG", STATUS_SECTION_TOO_BIG
},
4290 { "SEMAPHORE_LIMIT_EXCEEDED", STATUS_SEMAPHORE_LIMIT_EXCEEDED
},
4291 { "SHARING_VIOLATION", STATUS_SHARING_VIOLATION
},
4292 { "SUSPEND_COUNT_EXCEEDED", STATUS_SUSPEND_COUNT_EXCEEDED
},
4293 { "THREAD_IS_TERMINATING", STATUS_THREAD_IS_TERMINATING
},
4294 { "TIMEOUT", STATUS_TIMEOUT
},
4295 { "TOO_MANY_OPENED_FILES", STATUS_TOO_MANY_OPENED_FILES
},
4296 { "UNSUCCESSFUL", STATUS_UNSUCCESSFUL
},
4297 { "USER_APC", STATUS_USER_APC
},
4298 { "VOLUME_DISMOUNTED", STATUS_VOLUME_DISMOUNTED
},
4299 { "WAS_LOCKED", STATUS_WAS_LOCKED
},
4303 /* ### make_requests end ### */
4304 /* Everything above this line is generated automatically by tools/make_requests */
4306 static const char *get_status_name( unsigned int status
)
4309 static char buffer
[10];
4313 for (i
= 0; status_names
[i
].name
; i
++)
4314 if (status_names
[i
].value
== status
) return status_names
[i
].name
;
4316 sprintf( buffer
, "%x", status
);
4320 void trace_request(void)
4322 enum request req
= current
->req
.request_header
.req
;
4323 if (req
< REQ_NB_REQUESTS
)
4325 fprintf( stderr
, "%04x: %s(", current
->id
, req_names
[req
] );
4326 if (req_dumpers
[req
])
4328 cur_data
= get_req_data();
4329 cur_size
= get_req_data_size();
4330 req_dumpers
[req
]( ¤t
->req
);
4332 fprintf( stderr
, " )\n" );
4334 else fprintf( stderr
, "%04x: %d(?)\n", current
->id
, req
);
4337 void trace_reply( enum request req
, const union generic_reply
*reply
)
4339 if (req
< REQ_NB_REQUESTS
)
4341 fprintf( stderr
, "%04x: %s() = %s",
4342 current
->id
, req_names
[req
], get_status_name(current
->error
) );
4343 if (reply_dumpers
[req
])
4345 fprintf( stderr
, " {" );
4346 cur_data
= current
->reply_data
;
4347 cur_size
= reply
->reply_header
.reply_size
;
4348 reply_dumpers
[req
]( reply
);
4349 fprintf( stderr
, " }" );
4351 fputc( '\n', stderr
);
4353 else fprintf( stderr
, "%04x: %d() = %s\n",
4354 current
->id
, req
, get_status_name(current
->error
) );