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., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
22 #include "wine/port.h"
27 #include <sys/types.h>
42 static const void *cur_data
;
45 /* utility functions */
47 inline static void remove_data( size_t size
)
49 cur_data
= (const char *)cur_data
+ size
;
53 static void dump_uints( const int *ptr
, int len
)
58 fprintf( stderr
, "%08x", *ptr
++ );
59 if (--len
) fputc( ',', stderr
);
64 static void dump_abs_time( const abs_time_t
*time
)
69 if (!time
->sec
&& !time
->usec
)
71 fprintf( stderr
, "0" );
74 gettimeofday( &tv
, NULL
);
75 secs
= time
->sec
- tv
.tv_sec
;
76 if ((usecs
= time
->usec
- tv
.tv_usec
) < 0)
81 if (secs
> 0 || (secs
== 0 && usecs
>= 0))
82 fprintf( stderr
, "%d.%06d (+%d.%06d)", time
->sec
, time
->usec
, secs
, usecs
);
84 fprintf( stderr
, "%d.%06d (-%d.%06d)", time
->sec
, time
->usec
, abs(secs
+1), 1000000-usecs
);
87 static void dump_rectangle( const rectangle_t
*rect
)
89 fprintf( stderr
, "{%d,%d;%d,%d}",
90 rect
->left
, rect
->top
, rect
->right
, rect
->bottom
);
93 static void dump_char_info( const char_info_t
*info
)
95 fprintf( stderr
, "{'" );
96 dump_strW( &info
->ch
, 1, stderr
, "\'\'" );
97 fprintf( stderr
, "',%04x}", info
->attr
);
100 static void dump_context( const CONTEXT
*context
)
103 fprintf( stderr
, "{flags=%08lx,eax=%08lx,ebx=%08lx,ecx=%08lx,edx=%08lx,esi=%08lx,edi=%08lx,"
104 "ebp=%08lx,eip=%08lx,esp=%08lx,eflags=%08lx,cs=%04lx,ds=%04lx,es=%04lx,"
105 "fs=%04lx,gs=%04lx,dr0=%08lx,dr1=%08lx,dr2=%08lx,dr3=%08lx,dr6=%08lx,dr7=%08lx,",
106 context
->ContextFlags
, context
->Eax
, context
->Ebx
, context
->Ecx
, context
->Edx
,
107 context
->Esi
, context
->Edi
, context
->Ebp
, context
->Eip
, context
->Esp
, context
->EFlags
,
108 context
->SegCs
, context
->SegDs
, context
->SegEs
, context
->SegFs
, context
->SegGs
,
109 context
->Dr0
, context
->Dr1
, context
->Dr2
, context
->Dr3
, context
->Dr6
, context
->Dr7
);
110 fprintf( stderr
, "float=" );
111 dump_uints( (int *)&context
->FloatSave
, sizeof(context
->FloatSave
) / sizeof(int) );
112 fprintf( stderr
, "}" );
114 dump_uints( (int *)context
, sizeof(*context
) / sizeof(int) );
118 static void dump_exc_record( const EXCEPTION_RECORD
*rec
)
121 fprintf( stderr
, "{code=%lx,flags=%lx,rec=%p,addr=%p,params={",
122 rec
->ExceptionCode
, rec
->ExceptionFlags
, rec
->ExceptionRecord
,
123 rec
->ExceptionAddress
);
124 for (i
= 0; i
< min(rec
->NumberParameters
,EXCEPTION_MAXIMUM_PARAMETERS
); i
++)
126 if (i
) fputc( ',', stderr
);
127 fprintf( stderr
, "%lx", rec
->ExceptionInformation
[i
] );
129 fputc( '}', stderr
);
132 static void dump_varargs_ints( size_t size
)
134 const int *data
= cur_data
;
135 size_t len
= size
/ sizeof(*data
);
137 fputc( '{', stderr
);
140 fprintf( stderr
, "%d", *data
++ );
141 if (--len
) fputc( ',', stderr
);
143 fputc( '}', stderr
);
147 static void dump_varargs_handles( size_t size
)
149 const obj_handle_t
*data
= cur_data
;
150 size_t len
= size
/ sizeof(*data
);
152 fputc( '{', stderr
);
155 fprintf( stderr
, "%p", *data
++ );
156 if (--len
) fputc( ',', stderr
);
158 fputc( '}', stderr
);
162 static void dump_varargs_user_handles( size_t size
)
164 const user_handle_t
*data
= cur_data
;
165 size_t len
= size
/ sizeof(*data
);
167 fputc( '{', stderr
);
170 fprintf( stderr
, "%p", *data
++ );
171 if (--len
) fputc( ',', stderr
);
173 fputc( '}', stderr
);
177 static void dump_varargs_bytes( size_t size
)
179 const unsigned char *data
= cur_data
;
182 fputc( '{', stderr
);
185 fprintf( stderr
, "%02x", *data
++ );
186 if (--len
) fputc( ',', stderr
);
188 fputc( '}', stderr
);
192 static void dump_varargs_string( size_t size
)
194 fprintf( stderr
, "\"%.*s\"", (int)size
, (char *)cur_data
);
198 static void dump_varargs_unicode_str( size_t size
)
200 fprintf( stderr
, "L\"" );
201 dump_strW( cur_data
, size
/ sizeof(WCHAR
), stderr
, "\"\"" );
202 fputc( '\"', stderr
);
206 static void dump_varargs_context( size_t size
)
210 fprintf( stderr
, "{}" );
213 dump_context( cur_data
);
217 static void dump_varargs_exc_event( size_t size
)
219 const CONTEXT
*ptr
= cur_data
;
223 fprintf( stderr
, "{}" );
226 fprintf( stderr
, "{context=" );
228 fprintf( stderr
, ",rec=" );
229 dump_exc_record( (EXCEPTION_RECORD
*)(ptr
+ 1) );
230 fputc( '}', stderr
);
234 static void dump_varargs_debug_event( size_t size
)
236 const debug_event_t
*event
= cur_data
;
240 fprintf( stderr
, "{}" );
245 case EXCEPTION_DEBUG_EVENT
:
246 fprintf( stderr
, "{exception," );
247 dump_exc_record( &event
->info
.exception
.record
);
248 fprintf( stderr
, ",first=%d}", event
->info
.exception
.first
);
250 case CREATE_THREAD_DEBUG_EVENT
:
251 fprintf( stderr
, "{create_thread,thread=%p,teb=%p,start=%p}",
252 event
->info
.create_thread
.handle
, event
->info
.create_thread
.teb
,
253 event
->info
.create_thread
.start
);
255 case CREATE_PROCESS_DEBUG_EVENT
:
256 fprintf( stderr
, "{create_process,file=%p,process=%p,thread=%p,base=%p,offset=%d,"
257 "size=%d,teb=%p,start=%p,name=%p,unicode=%d}",
258 event
->info
.create_process
.file
, event
->info
.create_process
.process
,
259 event
->info
.create_process
.thread
, event
->info
.create_process
.base
,
260 event
->info
.create_process
.dbg_offset
, event
->info
.create_process
.dbg_size
,
261 event
->info
.create_process
.teb
, event
->info
.create_process
.start
,
262 event
->info
.create_process
.name
, event
->info
.create_process
.unicode
);
264 case EXIT_THREAD_DEBUG_EVENT
:
265 fprintf( stderr
, "{exit_thread,code=%d}", event
->info
.exit
.exit_code
);
267 case EXIT_PROCESS_DEBUG_EVENT
:
268 fprintf( stderr
, "{exit_process,code=%d}", event
->info
.exit
.exit_code
);
270 case LOAD_DLL_DEBUG_EVENT
:
271 fprintf( stderr
, "{load_dll,file=%p,base=%p,offset=%d,size=%d,name=%p,unicode=%d}",
272 event
->info
.load_dll
.handle
, event
->info
.load_dll
.base
,
273 event
->info
.load_dll
.dbg_offset
, event
->info
.load_dll
.dbg_size
,
274 event
->info
.load_dll
.name
, event
->info
.load_dll
.unicode
);
276 case UNLOAD_DLL_DEBUG_EVENT
:
277 fprintf( stderr
, "{unload_dll,base=%p}", event
->info
.unload_dll
.base
);
279 case OUTPUT_DEBUG_STRING_EVENT
:
280 fprintf( stderr
, "{output_string,data=%p,unicode=%d,len=%d}",
281 event
->info
.output_string
.string
, event
->info
.output_string
.unicode
,
282 event
->info
.output_string
.length
);
285 fprintf( stderr
, "{rip,err=%d,type=%d}",
286 event
->info
.rip_info
.error
, event
->info
.rip_info
.type
);
288 case 0: /* zero is the code returned on timeouts */
289 fprintf( stderr
, "{}" );
292 fprintf( stderr
, "{code=??? (%d)}", event
->code
);
298 /* dump a unicode string contained in a buffer; helper for dump_varargs_startup_info */
299 static void dump_inline_unicode_string( const UNICODE_STRING
*str
, const void *data
, size_t size
)
301 size_t length
= str
->Length
/ sizeof(WCHAR
);
302 size_t offset
= (size_t)str
->Buffer
;
304 if (offset
>= size
) return;
305 if (offset
+ length
> size
) length
= size
- offset
;
306 dump_strW( (const WCHAR
*)data
+ offset
/sizeof(WCHAR
), length
, stderr
, "\"\"" );
309 static void dump_varargs_startup_info( size_t size
)
311 const RTL_USER_PROCESS_PARAMETERS
*ptr
= cur_data
;
312 RTL_USER_PROCESS_PARAMETERS params
;
314 if (size
< sizeof(params
.Size
))
316 fprintf( stderr
, "{}" );
319 if (size
> ptr
->Size
) size
= ptr
->Size
;
320 memset( ¶ms
, 0, sizeof(params
) );
321 memcpy( ¶ms
, ptr
, min( size
, sizeof(params
) ));
323 fprintf( stderr
, "{AllocationSize=%lx,", params
.AllocationSize
);
324 fprintf( stderr
, "Size=%lx,", params
.Size
);
325 fprintf( stderr
, "Flags=%lx,", params
.Flags
);
326 fprintf( stderr
, "DebugFlags=%lx,", params
.DebugFlags
);
327 fprintf( stderr
, "Console=%p,", params
.hConsole
);
328 fprintf( stderr
, "ProcessGroup=%lx,", params
.ProcessGroup
);
329 fprintf( stderr
, "hStdInput=%p,", params
.hStdInput
);
330 fprintf( stderr
, "hStdOutput=%p,", params
.hStdOutput
);
331 fprintf( stderr
, "hStdError=%p,", params
.hStdError
);
332 fprintf( stderr
, "CurrentDirectory.Handle=%p,", params
.CurrentDirectory
.Handle
);
333 fprintf( stderr
, "dwX=%ld,", params
.dwX
);
334 fprintf( stderr
, "dwY=%ld,", params
.dwY
);
335 fprintf( stderr
, "dwXSize=%ld,", params
.dwXSize
);
336 fprintf( stderr
, "dwYSize=%ld,", params
.dwYSize
);
337 fprintf( stderr
, "dwXCountChars=%ld,", params
.dwXCountChars
);
338 fprintf( stderr
, "dwYCountChars=%ld,", params
.dwYCountChars
);
339 fprintf( stderr
, "dwFillAttribute=%lx,", params
.dwFillAttribute
);
340 fprintf( stderr
, "dwFlags=%lx,", params
.dwFlags
);
341 fprintf( stderr
, "wShowWindow=%lx,", params
.wShowWindow
);
342 fprintf( stderr
, "CurrentDirectory.DosPath=L\"" );
343 dump_inline_unicode_string( ¶ms
.CurrentDirectory
.DosPath
, cur_data
, size
);
344 fprintf( stderr
, "\",DllPath=L\"" );
345 dump_inline_unicode_string( ¶ms
.DllPath
, cur_data
, size
);
346 fprintf( stderr
, "\",ImagePathName=L\"" );
347 dump_inline_unicode_string( ¶ms
.ImagePathName
, cur_data
, size
);
348 fprintf( stderr
, "\",CommandLine=L\"" );
349 dump_inline_unicode_string( ¶ms
.CommandLine
, cur_data
, size
);
350 fprintf( stderr
, "\",WindowTitle=L\"" );
351 dump_inline_unicode_string( ¶ms
.WindowTitle
, cur_data
, size
);
352 fprintf( stderr
, "\",Desktop=L\"" );
353 dump_inline_unicode_string( ¶ms
.Desktop
, cur_data
, size
);
354 fprintf( stderr
, "\",ShellInfo=L\"" );
355 dump_inline_unicode_string( ¶ms
.ShellInfo
, cur_data
, size
);
356 fprintf( stderr
, "\",RuntimeInfo=L\"" );
357 dump_inline_unicode_string( ¶ms
.RuntimeInfo
, cur_data
, size
);
358 fprintf( stderr
, "\"}" );
362 static void dump_varargs_input_records( size_t size
)
364 const INPUT_RECORD
*rec
= cur_data
;
365 size_t len
= size
/ sizeof(*rec
);
367 fputc( '{', stderr
);
370 fprintf( stderr
, "{%04x,...}", rec
->EventType
);
372 if (--len
) fputc( ',', stderr
);
374 fputc( '}', stderr
);
378 static void dump_varargs_rectangles( size_t size
)
380 const rectangle_t
*rect
= cur_data
;
381 size_t len
= size
/ sizeof(*rect
);
383 fputc( '{', stderr
);
386 dump_rectangle( rect
++ );
387 if (--len
) fputc( ',', stderr
);
389 fputc( '}', stderr
);
393 static void dump_varargs_properties( size_t size
)
395 const property_data_t
*prop
= cur_data
;
396 size_t len
= size
/ sizeof(*prop
);
398 fputc( '{', stderr
);
401 fprintf( stderr
, "{atom=%04x,str=%d,handle=%p}",
402 prop
->atom
, prop
->string
, prop
->handle
);
404 if (--len
) fputc( ',', stderr
);
406 fputc( '}', stderr
);
410 typedef void (*dump_func
)( const void *req
);
412 /* Everything below this line is generated automatically by tools/make_requests */
413 /* ### make_requests begin ### */
415 static void dump_new_process_request( const struct new_process_request
*req
)
417 fprintf( stderr
, " inherit_all=%d,", req
->inherit_all
);
418 fprintf( stderr
, " create_flags=%d,", req
->create_flags
);
419 fprintf( stderr
, " unix_pid=%d,", req
->unix_pid
);
420 fprintf( stderr
, " exe_file=%p,", req
->exe_file
);
421 fprintf( stderr
, " hstdin=%p,", req
->hstdin
);
422 fprintf( stderr
, " hstdout=%p,", req
->hstdout
);
423 fprintf( stderr
, " hstderr=%p,", req
->hstderr
);
424 fprintf( stderr
, " info=" );
425 dump_varargs_startup_info( cur_size
);
426 fputc( ',', stderr
);
427 fprintf( stderr
, " env=" );
428 dump_varargs_unicode_str( cur_size
);
431 static void dump_new_process_reply( const struct new_process_reply
*req
)
433 fprintf( stderr
, " info=%p", req
->info
);
436 static void dump_get_new_process_info_request( const struct get_new_process_info_request
*req
)
438 fprintf( stderr
, " info=%p,", req
->info
);
439 fprintf( stderr
, " pinherit=%d,", req
->pinherit
);
440 fprintf( stderr
, " tinherit=%d", req
->tinherit
);
443 static void dump_get_new_process_info_reply( const struct get_new_process_info_reply
*req
)
445 fprintf( stderr
, " pid=%04x,", req
->pid
);
446 fprintf( stderr
, " phandle=%p,", req
->phandle
);
447 fprintf( stderr
, " tid=%04x,", req
->tid
);
448 fprintf( stderr
, " thandle=%p,", req
->thandle
);
449 fprintf( stderr
, " success=%d", req
->success
);
452 static void dump_new_thread_request( const struct new_thread_request
*req
)
454 fprintf( stderr
, " suspend=%d,", req
->suspend
);
455 fprintf( stderr
, " inherit=%d,", req
->inherit
);
456 fprintf( stderr
, " request_fd=%d", req
->request_fd
);
459 static void dump_new_thread_reply( const struct new_thread_reply
*req
)
461 fprintf( stderr
, " tid=%04x,", req
->tid
);
462 fprintf( stderr
, " handle=%p", req
->handle
);
465 static void dump_boot_done_request( const struct boot_done_request
*req
)
467 fprintf( stderr
, " debug_level=%d", req
->debug_level
);
470 static void dump_init_process_request( const struct init_process_request
*req
)
472 fprintf( stderr
, " peb=%p,", req
->peb
);
473 fprintf( stderr
, " ldt_copy=%p", req
->ldt_copy
);
476 static void dump_init_process_reply( const struct init_process_reply
*req
)
478 fprintf( stderr
, " create_flags=%d,", req
->create_flags
);
479 fprintf( stderr
, " server_start=%08x,", req
->server_start
);
480 fprintf( stderr
, " info_size=%d,", req
->info_size
);
481 fprintf( stderr
, " exe_file=%p,", req
->exe_file
);
482 fprintf( stderr
, " hstdin=%p,", req
->hstdin
);
483 fprintf( stderr
, " hstdout=%p,", req
->hstdout
);
484 fprintf( stderr
, " hstderr=%p", req
->hstderr
);
487 static void dump_get_startup_info_request( const struct get_startup_info_request
*req
)
491 static void dump_get_startup_info_reply( const struct get_startup_info_reply
*req
)
493 fprintf( stderr
, " info=" );
494 dump_varargs_startup_info( cur_size
);
495 fputc( ',', stderr
);
496 fprintf( stderr
, " env=" );
497 dump_varargs_unicode_str( cur_size
);
500 static void dump_init_process_done_request( const struct init_process_done_request
*req
)
502 fprintf( stderr
, " module=%p,", req
->module
);
503 fprintf( stderr
, " module_size=%d,", req
->module_size
);
504 fprintf( stderr
, " entry=%p,", req
->entry
);
505 fprintf( stderr
, " name=%p,", req
->name
);
506 fprintf( stderr
, " exe_file=%p,", req
->exe_file
);
507 fprintf( stderr
, " gui=%d,", req
->gui
);
508 fprintf( stderr
, " filename=" );
509 dump_varargs_unicode_str( cur_size
);
512 static void dump_init_thread_request( const struct init_thread_request
*req
)
514 fprintf( stderr
, " unix_pid=%d,", req
->unix_pid
);
515 fprintf( stderr
, " unix_tid=%d,", req
->unix_tid
);
516 fprintf( stderr
, " teb=%p,", req
->teb
);
517 fprintf( stderr
, " entry=%p,", req
->entry
);
518 fprintf( stderr
, " reply_fd=%d,", req
->reply_fd
);
519 fprintf( stderr
, " wait_fd=%d", req
->wait_fd
);
522 static void dump_init_thread_reply( const struct init_thread_reply
*req
)
524 fprintf( stderr
, " pid=%04x,", req
->pid
);
525 fprintf( stderr
, " tid=%04x,", req
->tid
);
526 fprintf( stderr
, " boot=%d,", req
->boot
);
527 fprintf( stderr
, " version=%d", req
->version
);
530 static void dump_terminate_process_request( const struct terminate_process_request
*req
)
532 fprintf( stderr
, " handle=%p,", req
->handle
);
533 fprintf( stderr
, " exit_code=%d", req
->exit_code
);
536 static void dump_terminate_process_reply( const struct terminate_process_reply
*req
)
538 fprintf( stderr
, " self=%d", req
->self
);
541 static void dump_terminate_thread_request( const struct terminate_thread_request
*req
)
543 fprintf( stderr
, " handle=%p,", req
->handle
);
544 fprintf( stderr
, " exit_code=%d", req
->exit_code
);
547 static void dump_terminate_thread_reply( const struct terminate_thread_reply
*req
)
549 fprintf( stderr
, " self=%d,", req
->self
);
550 fprintf( stderr
, " last=%d", req
->last
);
553 static void dump_get_process_info_request( const struct get_process_info_request
*req
)
555 fprintf( stderr
, " handle=%p", req
->handle
);
558 static void dump_get_process_info_reply( const struct get_process_info_reply
*req
)
560 fprintf( stderr
, " pid=%04x,", req
->pid
);
561 fprintf( stderr
, " ppid=%04x,", req
->ppid
);
562 fprintf( stderr
, " exit_code=%d,", req
->exit_code
);
563 fprintf( stderr
, " priority=%d,", req
->priority
);
564 fprintf( stderr
, " process_affinity=%d,", req
->process_affinity
);
565 fprintf( stderr
, " system_affinity=%d,", req
->system_affinity
);
566 fprintf( stderr
, " peb=%p", req
->peb
);
569 static void dump_set_process_info_request( const struct set_process_info_request
*req
)
571 fprintf( stderr
, " handle=%p,", req
->handle
);
572 fprintf( stderr
, " mask=%d,", req
->mask
);
573 fprintf( stderr
, " priority=%d,", req
->priority
);
574 fprintf( stderr
, " affinity=%d", req
->affinity
);
577 static void dump_get_thread_info_request( const struct get_thread_info_request
*req
)
579 fprintf( stderr
, " handle=%p,", req
->handle
);
580 fprintf( stderr
, " tid_in=%04x", req
->tid_in
);
583 static void dump_get_thread_info_reply( const struct get_thread_info_reply
*req
)
585 fprintf( stderr
, " pid=%04x,", req
->pid
);
586 fprintf( stderr
, " tid=%04x,", req
->tid
);
587 fprintf( stderr
, " teb=%p,", req
->teb
);
588 fprintf( stderr
, " exit_code=%d,", req
->exit_code
);
589 fprintf( stderr
, " priority=%d,", req
->priority
);
590 fprintf( stderr
, " affinity=%d,", req
->affinity
);
591 fprintf( stderr
, " creation_time=%ld,", (long)req
->creation_time
);
592 fprintf( stderr
, " exit_time=%ld", (long)req
->exit_time
);
595 static void dump_set_thread_info_request( const struct set_thread_info_request
*req
)
597 fprintf( stderr
, " handle=%p,", req
->handle
);
598 fprintf( stderr
, " mask=%d,", req
->mask
);
599 fprintf( stderr
, " priority=%d,", req
->priority
);
600 fprintf( stderr
, " affinity=%d", req
->affinity
);
603 static void dump_get_dll_info_request( const struct get_dll_info_request
*req
)
605 fprintf( stderr
, " handle=%p,", req
->handle
);
606 fprintf( stderr
, " base_address=%p", req
->base_address
);
609 static void dump_get_dll_info_reply( const struct get_dll_info_reply
*req
)
611 fprintf( stderr
, " size=%d,", req
->size
);
612 fprintf( stderr
, " entry_point=%p,", req
->entry_point
);
613 fprintf( stderr
, " filename=" );
614 dump_varargs_unicode_str( cur_size
);
617 static void dump_suspend_thread_request( const struct suspend_thread_request
*req
)
619 fprintf( stderr
, " handle=%p", req
->handle
);
622 static void dump_suspend_thread_reply( const struct suspend_thread_reply
*req
)
624 fprintf( stderr
, " count=%d", req
->count
);
627 static void dump_resume_thread_request( const struct resume_thread_request
*req
)
629 fprintf( stderr
, " handle=%p", req
->handle
);
632 static void dump_resume_thread_reply( const struct resume_thread_reply
*req
)
634 fprintf( stderr
, " count=%d", req
->count
);
637 static void dump_load_dll_request( const struct load_dll_request
*req
)
639 fprintf( stderr
, " handle=%p,", req
->handle
);
640 fprintf( stderr
, " base=%p,", req
->base
);
641 fprintf( stderr
, " size=%d,", req
->size
);
642 fprintf( stderr
, " dbg_offset=%d,", req
->dbg_offset
);
643 fprintf( stderr
, " dbg_size=%d,", req
->dbg_size
);
644 fprintf( stderr
, " name=%p,", req
->name
);
645 fprintf( stderr
, " filename=" );
646 dump_varargs_unicode_str( cur_size
);
649 static void dump_unload_dll_request( const struct unload_dll_request
*req
)
651 fprintf( stderr
, " base=%p", req
->base
);
654 static void dump_queue_apc_request( const struct queue_apc_request
*req
)
656 fprintf( stderr
, " handle=%p,", req
->handle
);
657 fprintf( stderr
, " user=%d,", req
->user
);
658 fprintf( stderr
, " func=%p,", req
->func
);
659 fprintf( stderr
, " arg1=%p,", req
->arg1
);
660 fprintf( stderr
, " arg2=%p,", req
->arg2
);
661 fprintf( stderr
, " arg3=%p", req
->arg3
);
664 static void dump_get_apc_request( const struct get_apc_request
*req
)
666 fprintf( stderr
, " alertable=%d", req
->alertable
);
669 static void dump_get_apc_reply( const struct get_apc_reply
*req
)
671 fprintf( stderr
, " func=%p,", req
->func
);
672 fprintf( stderr
, " type=%d,", req
->type
);
673 fprintf( stderr
, " arg1=%p,", req
->arg1
);
674 fprintf( stderr
, " arg2=%p,", req
->arg2
);
675 fprintf( stderr
, " arg3=%p", req
->arg3
);
678 static void dump_close_handle_request( const struct close_handle_request
*req
)
680 fprintf( stderr
, " handle=%p", req
->handle
);
683 static void dump_close_handle_reply( const struct close_handle_reply
*req
)
685 fprintf( stderr
, " fd=%d", req
->fd
);
688 static void dump_set_handle_info_request( const struct set_handle_info_request
*req
)
690 fprintf( stderr
, " handle=%p,", req
->handle
);
691 fprintf( stderr
, " flags=%d,", req
->flags
);
692 fprintf( stderr
, " mask=%d,", req
->mask
);
693 fprintf( stderr
, " fd=%d", req
->fd
);
696 static void dump_set_handle_info_reply( const struct set_handle_info_reply
*req
)
698 fprintf( stderr
, " old_flags=%d,", req
->old_flags
);
699 fprintf( stderr
, " cur_fd=%d", req
->cur_fd
);
702 static void dump_dup_handle_request( const struct dup_handle_request
*req
)
704 fprintf( stderr
, " src_process=%p,", req
->src_process
);
705 fprintf( stderr
, " src_handle=%p,", req
->src_handle
);
706 fprintf( stderr
, " dst_process=%p,", req
->dst_process
);
707 fprintf( stderr
, " access=%08x,", req
->access
);
708 fprintf( stderr
, " inherit=%d,", req
->inherit
);
709 fprintf( stderr
, " options=%d", req
->options
);
712 static void dump_dup_handle_reply( const struct dup_handle_reply
*req
)
714 fprintf( stderr
, " handle=%p,", req
->handle
);
715 fprintf( stderr
, " fd=%d", req
->fd
);
718 static void dump_open_process_request( const struct open_process_request
*req
)
720 fprintf( stderr
, " pid=%04x,", req
->pid
);
721 fprintf( stderr
, " access=%08x,", req
->access
);
722 fprintf( stderr
, " inherit=%d", req
->inherit
);
725 static void dump_open_process_reply( const struct open_process_reply
*req
)
727 fprintf( stderr
, " handle=%p", req
->handle
);
730 static void dump_open_thread_request( const struct open_thread_request
*req
)
732 fprintf( stderr
, " tid=%04x,", req
->tid
);
733 fprintf( stderr
, " access=%08x,", req
->access
);
734 fprintf( stderr
, " inherit=%d", req
->inherit
);
737 static void dump_open_thread_reply( const struct open_thread_reply
*req
)
739 fprintf( stderr
, " handle=%p", req
->handle
);
742 static void dump_select_request( const struct select_request
*req
)
744 fprintf( stderr
, " flags=%d,", req
->flags
);
745 fprintf( stderr
, " cookie=%p,", req
->cookie
);
746 fprintf( stderr
, " timeout=" );
747 dump_abs_time( &req
->timeout
);
748 fprintf( stderr
, "," );
749 fprintf( stderr
, " handles=" );
750 dump_varargs_handles( cur_size
);
753 static void dump_create_event_request( const struct create_event_request
*req
)
755 fprintf( stderr
, " manual_reset=%d,", req
->manual_reset
);
756 fprintf( stderr
, " initial_state=%d,", req
->initial_state
);
757 fprintf( stderr
, " inherit=%d,", req
->inherit
);
758 fprintf( stderr
, " name=" );
759 dump_varargs_unicode_str( cur_size
);
762 static void dump_create_event_reply( const struct create_event_reply
*req
)
764 fprintf( stderr
, " handle=%p", req
->handle
);
767 static void dump_event_op_request( const struct event_op_request
*req
)
769 fprintf( stderr
, " handle=%p,", req
->handle
);
770 fprintf( stderr
, " op=%d", req
->op
);
773 static void dump_open_event_request( const struct open_event_request
*req
)
775 fprintf( stderr
, " access=%08x,", req
->access
);
776 fprintf( stderr
, " inherit=%d,", req
->inherit
);
777 fprintf( stderr
, " name=" );
778 dump_varargs_unicode_str( cur_size
);
781 static void dump_open_event_reply( const struct open_event_reply
*req
)
783 fprintf( stderr
, " handle=%p", req
->handle
);
786 static void dump_create_mutex_request( const struct create_mutex_request
*req
)
788 fprintf( stderr
, " owned=%d,", req
->owned
);
789 fprintf( stderr
, " inherit=%d,", req
->inherit
);
790 fprintf( stderr
, " name=" );
791 dump_varargs_unicode_str( cur_size
);
794 static void dump_create_mutex_reply( const struct create_mutex_reply
*req
)
796 fprintf( stderr
, " handle=%p", req
->handle
);
799 static void dump_release_mutex_request( const struct release_mutex_request
*req
)
801 fprintf( stderr
, " handle=%p", req
->handle
);
804 static void dump_open_mutex_request( const struct open_mutex_request
*req
)
806 fprintf( stderr
, " access=%08x,", req
->access
);
807 fprintf( stderr
, " inherit=%d,", req
->inherit
);
808 fprintf( stderr
, " name=" );
809 dump_varargs_unicode_str( cur_size
);
812 static void dump_open_mutex_reply( const struct open_mutex_reply
*req
)
814 fprintf( stderr
, " handle=%p", req
->handle
);
817 static void dump_create_semaphore_request( const struct create_semaphore_request
*req
)
819 fprintf( stderr
, " initial=%08x,", req
->initial
);
820 fprintf( stderr
, " max=%08x,", req
->max
);
821 fprintf( stderr
, " inherit=%d,", req
->inherit
);
822 fprintf( stderr
, " name=" );
823 dump_varargs_unicode_str( cur_size
);
826 static void dump_create_semaphore_reply( const struct create_semaphore_reply
*req
)
828 fprintf( stderr
, " handle=%p", req
->handle
);
831 static void dump_release_semaphore_request( const struct release_semaphore_request
*req
)
833 fprintf( stderr
, " handle=%p,", req
->handle
);
834 fprintf( stderr
, " count=%08x", req
->count
);
837 static void dump_release_semaphore_reply( const struct release_semaphore_reply
*req
)
839 fprintf( stderr
, " prev_count=%08x", req
->prev_count
);
842 static void dump_open_semaphore_request( const struct open_semaphore_request
*req
)
844 fprintf( stderr
, " access=%08x,", req
->access
);
845 fprintf( stderr
, " inherit=%d,", req
->inherit
);
846 fprintf( stderr
, " name=" );
847 dump_varargs_unicode_str( cur_size
);
850 static void dump_open_semaphore_reply( const struct open_semaphore_reply
*req
)
852 fprintf( stderr
, " handle=%p", req
->handle
);
855 static void dump_create_file_request( const struct create_file_request
*req
)
857 fprintf( stderr
, " access=%08x,", req
->access
);
858 fprintf( stderr
, " inherit=%d,", req
->inherit
);
859 fprintf( stderr
, " sharing=%08x,", req
->sharing
);
860 fprintf( stderr
, " create=%d,", req
->create
);
861 fprintf( stderr
, " options=%08x,", req
->options
);
862 fprintf( stderr
, " attrs=%08x,", req
->attrs
);
863 fprintf( stderr
, " filename=" );
864 dump_varargs_string( cur_size
);
867 static void dump_create_file_reply( const struct create_file_reply
*req
)
869 fprintf( stderr
, " handle=%p", req
->handle
);
872 static void dump_alloc_file_handle_request( const struct alloc_file_handle_request
*req
)
874 fprintf( stderr
, " access=%08x,", req
->access
);
875 fprintf( stderr
, " inherit=%d,", req
->inherit
);
876 fprintf( stderr
, " fd=%d", req
->fd
);
879 static void dump_alloc_file_handle_reply( const struct alloc_file_handle_reply
*req
)
881 fprintf( stderr
, " handle=%p", req
->handle
);
884 static void dump_get_handle_fd_request( const struct get_handle_fd_request
*req
)
886 fprintf( stderr
, " handle=%p,", req
->handle
);
887 fprintf( stderr
, " access=%08x", req
->access
);
890 static void dump_get_handle_fd_reply( const struct get_handle_fd_reply
*req
)
892 fprintf( stderr
, " fd=%d,", req
->fd
);
893 fprintf( stderr
, " type=%d,", req
->type
);
894 fprintf( stderr
, " flags=%d", req
->flags
);
897 static void dump_flush_file_request( const struct flush_file_request
*req
)
899 fprintf( stderr
, " handle=%p", req
->handle
);
902 static void dump_flush_file_reply( const struct flush_file_reply
*req
)
904 fprintf( stderr
, " event=%p", req
->event
);
907 static void dump_lock_file_request( const struct lock_file_request
*req
)
909 fprintf( stderr
, " handle=%p,", req
->handle
);
910 fprintf( stderr
, " offset_low=%08x,", req
->offset_low
);
911 fprintf( stderr
, " offset_high=%08x,", req
->offset_high
);
912 fprintf( stderr
, " count_low=%08x,", req
->count_low
);
913 fprintf( stderr
, " count_high=%08x,", req
->count_high
);
914 fprintf( stderr
, " shared=%d,", req
->shared
);
915 fprintf( stderr
, " wait=%d", req
->wait
);
918 static void dump_lock_file_reply( const struct lock_file_reply
*req
)
920 fprintf( stderr
, " handle=%p,", req
->handle
);
921 fprintf( stderr
, " overlapped=%d", req
->overlapped
);
924 static void dump_unlock_file_request( const struct unlock_file_request
*req
)
926 fprintf( stderr
, " handle=%p,", req
->handle
);
927 fprintf( stderr
, " offset_low=%08x,", req
->offset_low
);
928 fprintf( stderr
, " offset_high=%08x,", req
->offset_high
);
929 fprintf( stderr
, " count_low=%08x,", req
->count_low
);
930 fprintf( stderr
, " count_high=%08x", req
->count_high
);
933 static void dump_create_socket_request( const struct create_socket_request
*req
)
935 fprintf( stderr
, " access=%08x,", req
->access
);
936 fprintf( stderr
, " inherit=%d,", req
->inherit
);
937 fprintf( stderr
, " family=%d,", req
->family
);
938 fprintf( stderr
, " type=%d,", req
->type
);
939 fprintf( stderr
, " protocol=%d,", req
->protocol
);
940 fprintf( stderr
, " flags=%08x", req
->flags
);
943 static void dump_create_socket_reply( const struct create_socket_reply
*req
)
945 fprintf( stderr
, " handle=%p", req
->handle
);
948 static void dump_accept_socket_request( const struct accept_socket_request
*req
)
950 fprintf( stderr
, " lhandle=%p,", req
->lhandle
);
951 fprintf( stderr
, " access=%08x,", req
->access
);
952 fprintf( stderr
, " inherit=%d", req
->inherit
);
955 static void dump_accept_socket_reply( const struct accept_socket_reply
*req
)
957 fprintf( stderr
, " handle=%p", req
->handle
);
960 static void dump_set_socket_event_request( const struct set_socket_event_request
*req
)
962 fprintf( stderr
, " handle=%p,", req
->handle
);
963 fprintf( stderr
, " mask=%08x,", req
->mask
);
964 fprintf( stderr
, " event=%p,", req
->event
);
965 fprintf( stderr
, " window=%p,", req
->window
);
966 fprintf( stderr
, " msg=%08x", req
->msg
);
969 static void dump_get_socket_event_request( const struct get_socket_event_request
*req
)
971 fprintf( stderr
, " handle=%p,", req
->handle
);
972 fprintf( stderr
, " service=%d,", req
->service
);
973 fprintf( stderr
, " c_event=%p", req
->c_event
);
976 static void dump_get_socket_event_reply( const struct get_socket_event_reply
*req
)
978 fprintf( stderr
, " mask=%08x,", req
->mask
);
979 fprintf( stderr
, " pmask=%08x,", req
->pmask
);
980 fprintf( stderr
, " state=%08x,", req
->state
);
981 fprintf( stderr
, " errors=" );
982 dump_varargs_ints( cur_size
);
985 static void dump_enable_socket_event_request( const struct enable_socket_event_request
*req
)
987 fprintf( stderr
, " handle=%p,", req
->handle
);
988 fprintf( stderr
, " mask=%08x,", req
->mask
);
989 fprintf( stderr
, " sstate=%08x,", req
->sstate
);
990 fprintf( stderr
, " cstate=%08x", req
->cstate
);
993 static void dump_set_socket_deferred_request( const struct set_socket_deferred_request
*req
)
995 fprintf( stderr
, " handle=%p,", req
->handle
);
996 fprintf( stderr
, " deferred=%p", req
->deferred
);
999 static void dump_alloc_console_request( const struct alloc_console_request
*req
)
1001 fprintf( stderr
, " access=%08x,", req
->access
);
1002 fprintf( stderr
, " inherit=%d,", req
->inherit
);
1003 fprintf( stderr
, " pid=%04x", req
->pid
);
1006 static void dump_alloc_console_reply( const struct alloc_console_reply
*req
)
1008 fprintf( stderr
, " handle_in=%p,", req
->handle_in
);
1009 fprintf( stderr
, " event=%p", req
->event
);
1012 static void dump_free_console_request( const struct free_console_request
*req
)
1016 static void dump_get_console_renderer_events_request( const struct get_console_renderer_events_request
*req
)
1018 fprintf( stderr
, " handle=%p", req
->handle
);
1021 static void dump_get_console_renderer_events_reply( const struct get_console_renderer_events_reply
*req
)
1023 fprintf( stderr
, " data=" );
1024 dump_varargs_bytes( cur_size
);
1027 static void dump_open_console_request( const struct open_console_request
*req
)
1029 fprintf( stderr
, " from=%d,", req
->from
);
1030 fprintf( stderr
, " access=%08x,", req
->access
);
1031 fprintf( stderr
, " inherit=%d,", req
->inherit
);
1032 fprintf( stderr
, " share=%d", req
->share
);
1035 static void dump_open_console_reply( const struct open_console_reply
*req
)
1037 fprintf( stderr
, " handle=%p", req
->handle
);
1040 static void dump_get_console_wait_event_request( const struct get_console_wait_event_request
*req
)
1044 static void dump_get_console_wait_event_reply( const struct get_console_wait_event_reply
*req
)
1046 fprintf( stderr
, " handle=%p", req
->handle
);
1049 static void dump_get_console_mode_request( const struct get_console_mode_request
*req
)
1051 fprintf( stderr
, " handle=%p", req
->handle
);
1054 static void dump_get_console_mode_reply( const struct get_console_mode_reply
*req
)
1056 fprintf( stderr
, " mode=%d", req
->mode
);
1059 static void dump_set_console_mode_request( const struct set_console_mode_request
*req
)
1061 fprintf( stderr
, " handle=%p,", req
->handle
);
1062 fprintf( stderr
, " mode=%d", req
->mode
);
1065 static void dump_set_console_input_info_request( const struct set_console_input_info_request
*req
)
1067 fprintf( stderr
, " handle=%p,", req
->handle
);
1068 fprintf( stderr
, " mask=%d,", req
->mask
);
1069 fprintf( stderr
, " active_sb=%p,", req
->active_sb
);
1070 fprintf( stderr
, " history_mode=%d,", req
->history_mode
);
1071 fprintf( stderr
, " history_size=%d,", req
->history_size
);
1072 fprintf( stderr
, " edition_mode=%d,", req
->edition_mode
);
1073 fprintf( stderr
, " title=" );
1074 dump_varargs_unicode_str( cur_size
);
1077 static void dump_get_console_input_info_request( const struct get_console_input_info_request
*req
)
1079 fprintf( stderr
, " handle=%p", req
->handle
);
1082 static void dump_get_console_input_info_reply( const struct get_console_input_info_reply
*req
)
1084 fprintf( stderr
, " history_mode=%d,", req
->history_mode
);
1085 fprintf( stderr
, " history_size=%d,", req
->history_size
);
1086 fprintf( stderr
, " history_index=%d,", req
->history_index
);
1087 fprintf( stderr
, " edition_mode=%d,", req
->edition_mode
);
1088 fprintf( stderr
, " title=" );
1089 dump_varargs_unicode_str( cur_size
);
1092 static void dump_append_console_input_history_request( const struct append_console_input_history_request
*req
)
1094 fprintf( stderr
, " handle=%p,", req
->handle
);
1095 fprintf( stderr
, " line=" );
1096 dump_varargs_unicode_str( cur_size
);
1099 static void dump_get_console_input_history_request( const struct get_console_input_history_request
*req
)
1101 fprintf( stderr
, " handle=%p,", req
->handle
);
1102 fprintf( stderr
, " index=%d", req
->index
);
1105 static void dump_get_console_input_history_reply( const struct get_console_input_history_reply
*req
)
1107 fprintf( stderr
, " total=%d,", req
->total
);
1108 fprintf( stderr
, " line=" );
1109 dump_varargs_unicode_str( cur_size
);
1112 static void dump_create_console_output_request( const struct create_console_output_request
*req
)
1114 fprintf( stderr
, " handle_in=%p,", req
->handle_in
);
1115 fprintf( stderr
, " access=%d,", req
->access
);
1116 fprintf( stderr
, " share=%d,", req
->share
);
1117 fprintf( stderr
, " inherit=%d", req
->inherit
);
1120 static void dump_create_console_output_reply( const struct create_console_output_reply
*req
)
1122 fprintf( stderr
, " handle_out=%p", req
->handle_out
);
1125 static void dump_set_console_output_info_request( const struct set_console_output_info_request
*req
)
1127 fprintf( stderr
, " handle=%p,", req
->handle
);
1128 fprintf( stderr
, " mask=%d,", req
->mask
);
1129 fprintf( stderr
, " cursor_size=%d,", req
->cursor_size
);
1130 fprintf( stderr
, " cursor_visible=%d,", req
->cursor_visible
);
1131 fprintf( stderr
, " cursor_x=%d,", req
->cursor_x
);
1132 fprintf( stderr
, " cursor_y=%d,", req
->cursor_y
);
1133 fprintf( stderr
, " width=%d,", req
->width
);
1134 fprintf( stderr
, " height=%d,", req
->height
);
1135 fprintf( stderr
, " attr=%d,", req
->attr
);
1136 fprintf( stderr
, " win_left=%d,", req
->win_left
);
1137 fprintf( stderr
, " win_top=%d,", req
->win_top
);
1138 fprintf( stderr
, " win_right=%d,", req
->win_right
);
1139 fprintf( stderr
, " win_bottom=%d,", req
->win_bottom
);
1140 fprintf( stderr
, " max_width=%d,", req
->max_width
);
1141 fprintf( stderr
, " max_height=%d", req
->max_height
);
1144 static void dump_get_console_output_info_request( const struct get_console_output_info_request
*req
)
1146 fprintf( stderr
, " handle=%p", req
->handle
);
1149 static void dump_get_console_output_info_reply( const struct get_console_output_info_reply
*req
)
1151 fprintf( stderr
, " cursor_size=%d,", req
->cursor_size
);
1152 fprintf( stderr
, " cursor_visible=%d,", req
->cursor_visible
);
1153 fprintf( stderr
, " cursor_x=%d,", req
->cursor_x
);
1154 fprintf( stderr
, " cursor_y=%d,", req
->cursor_y
);
1155 fprintf( stderr
, " width=%d,", req
->width
);
1156 fprintf( stderr
, " height=%d,", req
->height
);
1157 fprintf( stderr
, " attr=%d,", req
->attr
);
1158 fprintf( stderr
, " win_left=%d,", req
->win_left
);
1159 fprintf( stderr
, " win_top=%d,", req
->win_top
);
1160 fprintf( stderr
, " win_right=%d,", req
->win_right
);
1161 fprintf( stderr
, " win_bottom=%d,", req
->win_bottom
);
1162 fprintf( stderr
, " max_width=%d,", req
->max_width
);
1163 fprintf( stderr
, " max_height=%d", req
->max_height
);
1166 static void dump_write_console_input_request( const struct write_console_input_request
*req
)
1168 fprintf( stderr
, " handle=%p,", req
->handle
);
1169 fprintf( stderr
, " rec=" );
1170 dump_varargs_input_records( cur_size
);
1173 static void dump_write_console_input_reply( const struct write_console_input_reply
*req
)
1175 fprintf( stderr
, " written=%d", req
->written
);
1178 static void dump_read_console_input_request( const struct read_console_input_request
*req
)
1180 fprintf( stderr
, " handle=%p,", req
->handle
);
1181 fprintf( stderr
, " flush=%d", req
->flush
);
1184 static void dump_read_console_input_reply( const struct read_console_input_reply
*req
)
1186 fprintf( stderr
, " read=%d,", req
->read
);
1187 fprintf( stderr
, " rec=" );
1188 dump_varargs_input_records( cur_size
);
1191 static void dump_write_console_output_request( const struct write_console_output_request
*req
)
1193 fprintf( stderr
, " handle=%p,", req
->handle
);
1194 fprintf( stderr
, " x=%d,", req
->x
);
1195 fprintf( stderr
, " y=%d,", req
->y
);
1196 fprintf( stderr
, " mode=%d,", req
->mode
);
1197 fprintf( stderr
, " wrap=%d,", req
->wrap
);
1198 fprintf( stderr
, " data=" );
1199 dump_varargs_bytes( cur_size
);
1202 static void dump_write_console_output_reply( const struct write_console_output_reply
*req
)
1204 fprintf( stderr
, " written=%d,", req
->written
);
1205 fprintf( stderr
, " width=%d,", req
->width
);
1206 fprintf( stderr
, " height=%d", req
->height
);
1209 static void dump_fill_console_output_request( const struct fill_console_output_request
*req
)
1211 fprintf( stderr
, " handle=%p,", req
->handle
);
1212 fprintf( stderr
, " x=%d,", req
->x
);
1213 fprintf( stderr
, " y=%d,", req
->y
);
1214 fprintf( stderr
, " mode=%d,", req
->mode
);
1215 fprintf( stderr
, " count=%d,", req
->count
);
1216 fprintf( stderr
, " wrap=%d,", req
->wrap
);
1217 fprintf( stderr
, " data=" );
1218 dump_char_info( &req
->data
);
1221 static void dump_fill_console_output_reply( const struct fill_console_output_reply
*req
)
1223 fprintf( stderr
, " written=%d", req
->written
);
1226 static void dump_read_console_output_request( const struct read_console_output_request
*req
)
1228 fprintf( stderr
, " handle=%p,", req
->handle
);
1229 fprintf( stderr
, " x=%d,", req
->x
);
1230 fprintf( stderr
, " y=%d,", req
->y
);
1231 fprintf( stderr
, " mode=%d,", req
->mode
);
1232 fprintf( stderr
, " wrap=%d", req
->wrap
);
1235 static void dump_read_console_output_reply( const struct read_console_output_reply
*req
)
1237 fprintf( stderr
, " width=%d,", req
->width
);
1238 fprintf( stderr
, " height=%d,", req
->height
);
1239 fprintf( stderr
, " data=" );
1240 dump_varargs_bytes( cur_size
);
1243 static void dump_move_console_output_request( const struct move_console_output_request
*req
)
1245 fprintf( stderr
, " handle=%p,", req
->handle
);
1246 fprintf( stderr
, " x_src=%d,", req
->x_src
);
1247 fprintf( stderr
, " y_src=%d,", req
->y_src
);
1248 fprintf( stderr
, " x_dst=%d,", req
->x_dst
);
1249 fprintf( stderr
, " y_dst=%d,", req
->y_dst
);
1250 fprintf( stderr
, " w=%d,", req
->w
);
1251 fprintf( stderr
, " h=%d", req
->h
);
1254 static void dump_send_console_signal_request( const struct send_console_signal_request
*req
)
1256 fprintf( stderr
, " signal=%d,", req
->signal
);
1257 fprintf( stderr
, " group_id=%04x", req
->group_id
);
1260 static void dump_create_change_notification_request( const struct create_change_notification_request
*req
)
1262 fprintf( stderr
, " handle=%p,", req
->handle
);
1263 fprintf( stderr
, " subtree=%d,", req
->subtree
);
1264 fprintf( stderr
, " filter=%08x", req
->filter
);
1267 static void dump_create_change_notification_reply( const struct create_change_notification_reply
*req
)
1269 fprintf( stderr
, " handle=%p", req
->handle
);
1272 static void dump_next_change_notification_request( const struct next_change_notification_request
*req
)
1274 fprintf( stderr
, " handle=%p", req
->handle
);
1277 static void dump_create_mapping_request( const struct create_mapping_request
*req
)
1279 fprintf( stderr
, " size_high=%d,", req
->size_high
);
1280 fprintf( stderr
, " size_low=%d,", req
->size_low
);
1281 fprintf( stderr
, " protect=%d,", req
->protect
);
1282 fprintf( stderr
, " access=%08x,", req
->access
);
1283 fprintf( stderr
, " inherit=%d,", req
->inherit
);
1284 fprintf( stderr
, " file_handle=%p,", req
->file_handle
);
1285 fprintf( stderr
, " name=" );
1286 dump_varargs_unicode_str( cur_size
);
1289 static void dump_create_mapping_reply( const struct create_mapping_reply
*req
)
1291 fprintf( stderr
, " handle=%p", req
->handle
);
1294 static void dump_open_mapping_request( const struct open_mapping_request
*req
)
1296 fprintf( stderr
, " access=%08x,", req
->access
);
1297 fprintf( stderr
, " inherit=%d,", req
->inherit
);
1298 fprintf( stderr
, " name=" );
1299 dump_varargs_unicode_str( cur_size
);
1302 static void dump_open_mapping_reply( const struct open_mapping_reply
*req
)
1304 fprintf( stderr
, " handle=%p", req
->handle
);
1307 static void dump_get_mapping_info_request( const struct get_mapping_info_request
*req
)
1309 fprintf( stderr
, " handle=%p", req
->handle
);
1312 static void dump_get_mapping_info_reply( const struct get_mapping_info_reply
*req
)
1314 fprintf( stderr
, " size_high=%d,", req
->size_high
);
1315 fprintf( stderr
, " size_low=%d,", req
->size_low
);
1316 fprintf( stderr
, " protect=%d,", req
->protect
);
1317 fprintf( stderr
, " header_size=%d,", req
->header_size
);
1318 fprintf( stderr
, " base=%p,", req
->base
);
1319 fprintf( stderr
, " shared_file=%p,", req
->shared_file
);
1320 fprintf( stderr
, " shared_size=%d", req
->shared_size
);
1323 static void dump_create_snapshot_request( const struct create_snapshot_request
*req
)
1325 fprintf( stderr
, " inherit=%d,", req
->inherit
);
1326 fprintf( stderr
, " flags=%d,", req
->flags
);
1327 fprintf( stderr
, " pid=%04x", req
->pid
);
1330 static void dump_create_snapshot_reply( const struct create_snapshot_reply
*req
)
1332 fprintf( stderr
, " handle=%p", req
->handle
);
1335 static void dump_next_process_request( const struct next_process_request
*req
)
1337 fprintf( stderr
, " handle=%p,", req
->handle
);
1338 fprintf( stderr
, " reset=%d", req
->reset
);
1341 static void dump_next_process_reply( const struct next_process_reply
*req
)
1343 fprintf( stderr
, " count=%d,", req
->count
);
1344 fprintf( stderr
, " pid=%04x,", req
->pid
);
1345 fprintf( stderr
, " ppid=%04x,", req
->ppid
);
1346 fprintf( stderr
, " heap=%p,", req
->heap
);
1347 fprintf( stderr
, " module=%p,", req
->module
);
1348 fprintf( stderr
, " threads=%d,", req
->threads
);
1349 fprintf( stderr
, " priority=%d,", req
->priority
);
1350 fprintf( stderr
, " handles=%d,", req
->handles
);
1351 fprintf( stderr
, " filename=" );
1352 dump_varargs_unicode_str( cur_size
);
1355 static void dump_next_thread_request( const struct next_thread_request
*req
)
1357 fprintf( stderr
, " handle=%p,", req
->handle
);
1358 fprintf( stderr
, " reset=%d", req
->reset
);
1361 static void dump_next_thread_reply( const struct next_thread_reply
*req
)
1363 fprintf( stderr
, " count=%d,", req
->count
);
1364 fprintf( stderr
, " pid=%04x,", req
->pid
);
1365 fprintf( stderr
, " tid=%04x,", req
->tid
);
1366 fprintf( stderr
, " base_pri=%d,", req
->base_pri
);
1367 fprintf( stderr
, " delta_pri=%d", req
->delta_pri
);
1370 static void dump_next_module_request( const struct next_module_request
*req
)
1372 fprintf( stderr
, " handle=%p,", req
->handle
);
1373 fprintf( stderr
, " reset=%d", req
->reset
);
1376 static void dump_next_module_reply( const struct next_module_reply
*req
)
1378 fprintf( stderr
, " pid=%04x,", req
->pid
);
1379 fprintf( stderr
, " base=%p,", req
->base
);
1380 fprintf( stderr
, " size=%d,", req
->size
);
1381 fprintf( stderr
, " filename=" );
1382 dump_varargs_unicode_str( cur_size
);
1385 static void dump_wait_debug_event_request( const struct wait_debug_event_request
*req
)
1387 fprintf( stderr
, " get_handle=%d", req
->get_handle
);
1390 static void dump_wait_debug_event_reply( const struct wait_debug_event_reply
*req
)
1392 fprintf( stderr
, " pid=%04x,", req
->pid
);
1393 fprintf( stderr
, " tid=%04x,", req
->tid
);
1394 fprintf( stderr
, " wait=%p,", req
->wait
);
1395 fprintf( stderr
, " event=" );
1396 dump_varargs_debug_event( cur_size
);
1399 static void dump_queue_exception_event_request( const struct queue_exception_event_request
*req
)
1401 fprintf( stderr
, " first=%d,", req
->first
);
1402 fprintf( stderr
, " record=" );
1403 dump_varargs_exc_event( cur_size
);
1406 static void dump_queue_exception_event_reply( const struct queue_exception_event_reply
*req
)
1408 fprintf( stderr
, " handle=%p", req
->handle
);
1411 static void dump_get_exception_status_request( const struct get_exception_status_request
*req
)
1413 fprintf( stderr
, " handle=%p", req
->handle
);
1416 static void dump_get_exception_status_reply( const struct get_exception_status_reply
*req
)
1418 fprintf( stderr
, " status=%d,", req
->status
);
1419 fprintf( stderr
, " context=" );
1420 dump_varargs_context( cur_size
);
1423 static void dump_output_debug_string_request( const struct output_debug_string_request
*req
)
1425 fprintf( stderr
, " string=%p,", req
->string
);
1426 fprintf( stderr
, " unicode=%d,", req
->unicode
);
1427 fprintf( stderr
, " length=%d", req
->length
);
1430 static void dump_continue_debug_event_request( const struct continue_debug_event_request
*req
)
1432 fprintf( stderr
, " pid=%04x,", req
->pid
);
1433 fprintf( stderr
, " tid=%04x,", req
->tid
);
1434 fprintf( stderr
, " status=%d", req
->status
);
1437 static void dump_debug_process_request( const struct debug_process_request
*req
)
1439 fprintf( stderr
, " pid=%04x,", req
->pid
);
1440 fprintf( stderr
, " attach=%d", req
->attach
);
1443 static void dump_debug_break_request( const struct debug_break_request
*req
)
1445 fprintf( stderr
, " handle=%p", req
->handle
);
1448 static void dump_debug_break_reply( const struct debug_break_reply
*req
)
1450 fprintf( stderr
, " self=%d", req
->self
);
1453 static void dump_set_debugger_kill_on_exit_request( const struct set_debugger_kill_on_exit_request
*req
)
1455 fprintf( stderr
, " kill_on_exit=%d", req
->kill_on_exit
);
1458 static void dump_read_process_memory_request( const struct read_process_memory_request
*req
)
1460 fprintf( stderr
, " handle=%p,", req
->handle
);
1461 fprintf( stderr
, " addr=%p", req
->addr
);
1464 static void dump_read_process_memory_reply( const struct read_process_memory_reply
*req
)
1466 fprintf( stderr
, " data=" );
1467 dump_varargs_bytes( cur_size
);
1470 static void dump_write_process_memory_request( const struct write_process_memory_request
*req
)
1472 fprintf( stderr
, " handle=%p,", req
->handle
);
1473 fprintf( stderr
, " addr=%p,", req
->addr
);
1474 fprintf( stderr
, " first_mask=%08x,", req
->first_mask
);
1475 fprintf( stderr
, " last_mask=%08x,", req
->last_mask
);
1476 fprintf( stderr
, " data=" );
1477 dump_varargs_bytes( cur_size
);
1480 static void dump_create_key_request( const struct create_key_request
*req
)
1482 fprintf( stderr
, " parent=%p,", req
->parent
);
1483 fprintf( stderr
, " access=%08x,", req
->access
);
1484 fprintf( stderr
, " options=%08x,", req
->options
);
1485 fprintf( stderr
, " modif=%ld,", (long)req
->modif
);
1486 fprintf( stderr
, " namelen=%d,", req
->namelen
);
1487 fprintf( stderr
, " name=" );
1488 dump_varargs_unicode_str( min(cur_size
,req
->namelen
) );
1489 fputc( ',', stderr
);
1490 fprintf( stderr
, " class=" );
1491 dump_varargs_unicode_str( cur_size
);
1494 static void dump_create_key_reply( const struct create_key_reply
*req
)
1496 fprintf( stderr
, " hkey=%p,", req
->hkey
);
1497 fprintf( stderr
, " created=%d", req
->created
);
1500 static void dump_open_key_request( const struct open_key_request
*req
)
1502 fprintf( stderr
, " parent=%p,", req
->parent
);
1503 fprintf( stderr
, " access=%08x,", req
->access
);
1504 fprintf( stderr
, " name=" );
1505 dump_varargs_unicode_str( cur_size
);
1508 static void dump_open_key_reply( const struct open_key_reply
*req
)
1510 fprintf( stderr
, " hkey=%p", req
->hkey
);
1513 static void dump_delete_key_request( const struct delete_key_request
*req
)
1515 fprintf( stderr
, " hkey=%p", req
->hkey
);
1518 static void dump_flush_key_request( const struct flush_key_request
*req
)
1520 fprintf( stderr
, " hkey=%p", req
->hkey
);
1523 static void dump_enum_key_request( const struct enum_key_request
*req
)
1525 fprintf( stderr
, " hkey=%p,", req
->hkey
);
1526 fprintf( stderr
, " index=%d,", req
->index
);
1527 fprintf( stderr
, " info_class=%d", req
->info_class
);
1530 static void dump_enum_key_reply( const struct enum_key_reply
*req
)
1532 fprintf( stderr
, " subkeys=%d,", req
->subkeys
);
1533 fprintf( stderr
, " max_subkey=%d,", req
->max_subkey
);
1534 fprintf( stderr
, " max_class=%d,", req
->max_class
);
1535 fprintf( stderr
, " values=%d,", req
->values
);
1536 fprintf( stderr
, " max_value=%d,", req
->max_value
);
1537 fprintf( stderr
, " max_data=%d,", req
->max_data
);
1538 fprintf( stderr
, " modif=%ld,", (long)req
->modif
);
1539 fprintf( stderr
, " total=%d,", req
->total
);
1540 fprintf( stderr
, " namelen=%d,", req
->namelen
);
1541 fprintf( stderr
, " name=" );
1542 dump_varargs_unicode_str( min(cur_size
,req
->namelen
) );
1543 fputc( ',', stderr
);
1544 fprintf( stderr
, " class=" );
1545 dump_varargs_unicode_str( cur_size
);
1548 static void dump_set_key_value_request( const struct set_key_value_request
*req
)
1550 fprintf( stderr
, " hkey=%p,", req
->hkey
);
1551 fprintf( stderr
, " type=%d,", req
->type
);
1552 fprintf( stderr
, " namelen=%d,", req
->namelen
);
1553 fprintf( stderr
, " name=" );
1554 dump_varargs_unicode_str( min(cur_size
,req
->namelen
) );
1555 fputc( ',', stderr
);
1556 fprintf( stderr
, " data=" );
1557 dump_varargs_bytes( cur_size
);
1560 static void dump_get_key_value_request( const struct get_key_value_request
*req
)
1562 fprintf( stderr
, " hkey=%p,", req
->hkey
);
1563 fprintf( stderr
, " name=" );
1564 dump_varargs_unicode_str( cur_size
);
1567 static void dump_get_key_value_reply( const struct get_key_value_reply
*req
)
1569 fprintf( stderr
, " type=%d,", req
->type
);
1570 fprintf( stderr
, " total=%d,", req
->total
);
1571 fprintf( stderr
, " data=" );
1572 dump_varargs_bytes( cur_size
);
1575 static void dump_enum_key_value_request( const struct enum_key_value_request
*req
)
1577 fprintf( stderr
, " hkey=%p,", req
->hkey
);
1578 fprintf( stderr
, " index=%d,", req
->index
);
1579 fprintf( stderr
, " info_class=%d", req
->info_class
);
1582 static void dump_enum_key_value_reply( const struct enum_key_value_reply
*req
)
1584 fprintf( stderr
, " type=%d,", req
->type
);
1585 fprintf( stderr
, " total=%d,", req
->total
);
1586 fprintf( stderr
, " namelen=%d,", req
->namelen
);
1587 fprintf( stderr
, " name=" );
1588 dump_varargs_unicode_str( min(cur_size
,req
->namelen
) );
1589 fputc( ',', stderr
);
1590 fprintf( stderr
, " data=" );
1591 dump_varargs_bytes( cur_size
);
1594 static void dump_delete_key_value_request( const struct delete_key_value_request
*req
)
1596 fprintf( stderr
, " hkey=%p,", req
->hkey
);
1597 fprintf( stderr
, " name=" );
1598 dump_varargs_unicode_str( cur_size
);
1601 static void dump_load_registry_request( const struct load_registry_request
*req
)
1603 fprintf( stderr
, " hkey=%p,", req
->hkey
);
1604 fprintf( stderr
, " file=%p,", req
->file
);
1605 fprintf( stderr
, " name=" );
1606 dump_varargs_unicode_str( cur_size
);
1609 static void dump_unload_registry_request( const struct unload_registry_request
*req
)
1611 fprintf( stderr
, " hkey=%p", req
->hkey
);
1614 static void dump_save_registry_request( const struct save_registry_request
*req
)
1616 fprintf( stderr
, " hkey=%p,", req
->hkey
);
1617 fprintf( stderr
, " file=%p", req
->file
);
1620 static void dump_load_user_registries_request( const struct load_user_registries_request
*req
)
1622 fprintf( stderr
, " hkey=%p,", req
->hkey
);
1623 fprintf( stderr
, " saving=%d,", req
->saving
);
1624 fprintf( stderr
, " period=%d", req
->period
);
1627 static void dump_set_registry_notification_request( const struct set_registry_notification_request
*req
)
1629 fprintf( stderr
, " hkey=%p,", req
->hkey
);
1630 fprintf( stderr
, " event=%p,", req
->event
);
1631 fprintf( stderr
, " subtree=%d,", req
->subtree
);
1632 fprintf( stderr
, " filter=%08x", req
->filter
);
1635 static void dump_create_timer_request( const struct create_timer_request
*req
)
1637 fprintf( stderr
, " inherit=%d,", req
->inherit
);
1638 fprintf( stderr
, " manual=%d,", req
->manual
);
1639 fprintf( stderr
, " name=" );
1640 dump_varargs_unicode_str( cur_size
);
1643 static void dump_create_timer_reply( const struct create_timer_reply
*req
)
1645 fprintf( stderr
, " handle=%p", req
->handle
);
1648 static void dump_open_timer_request( const struct open_timer_request
*req
)
1650 fprintf( stderr
, " access=%08x,", req
->access
);
1651 fprintf( stderr
, " inherit=%d,", req
->inherit
);
1652 fprintf( stderr
, " name=" );
1653 dump_varargs_unicode_str( cur_size
);
1656 static void dump_open_timer_reply( const struct open_timer_reply
*req
)
1658 fprintf( stderr
, " handle=%p", req
->handle
);
1661 static void dump_set_timer_request( const struct set_timer_request
*req
)
1663 fprintf( stderr
, " handle=%p,", req
->handle
);
1664 fprintf( stderr
, " expire=" );
1665 dump_abs_time( &req
->expire
);
1666 fprintf( stderr
, "," );
1667 fprintf( stderr
, " period=%d,", req
->period
);
1668 fprintf( stderr
, " callback=%p,", req
->callback
);
1669 fprintf( stderr
, " arg=%p", req
->arg
);
1672 static void dump_set_timer_reply( const struct set_timer_reply
*req
)
1674 fprintf( stderr
, " signaled=%d", req
->signaled
);
1677 static void dump_cancel_timer_request( const struct cancel_timer_request
*req
)
1679 fprintf( stderr
, " handle=%p", req
->handle
);
1682 static void dump_cancel_timer_reply( const struct cancel_timer_reply
*req
)
1684 fprintf( stderr
, " signaled=%d", req
->signaled
);
1687 static void dump_get_thread_context_request( const struct get_thread_context_request
*req
)
1689 fprintf( stderr
, " handle=%p,", req
->handle
);
1690 fprintf( stderr
, " flags=%08x", req
->flags
);
1693 static void dump_get_thread_context_reply( const struct get_thread_context_reply
*req
)
1695 fprintf( stderr
, " context=" );
1696 dump_varargs_context( cur_size
);
1699 static void dump_set_thread_context_request( const struct set_thread_context_request
*req
)
1701 fprintf( stderr
, " handle=%p,", req
->handle
);
1702 fprintf( stderr
, " flags=%08x,", req
->flags
);
1703 fprintf( stderr
, " context=" );
1704 dump_varargs_context( cur_size
);
1707 static void dump_get_selector_entry_request( const struct get_selector_entry_request
*req
)
1709 fprintf( stderr
, " handle=%p,", req
->handle
);
1710 fprintf( stderr
, " entry=%d", req
->entry
);
1713 static void dump_get_selector_entry_reply( const struct get_selector_entry_reply
*req
)
1715 fprintf( stderr
, " base=%08x,", req
->base
);
1716 fprintf( stderr
, " limit=%08x,", req
->limit
);
1717 fprintf( stderr
, " flags=%02x", req
->flags
);
1720 static void dump_add_atom_request( const struct add_atom_request
*req
)
1722 fprintf( stderr
, " local=%d,", req
->local
);
1723 fprintf( stderr
, " name=" );
1724 dump_varargs_unicode_str( cur_size
);
1727 static void dump_add_atom_reply( const struct add_atom_reply
*req
)
1729 fprintf( stderr
, " atom=%04x", req
->atom
);
1732 static void dump_delete_atom_request( const struct delete_atom_request
*req
)
1734 fprintf( stderr
, " atom=%04x,", req
->atom
);
1735 fprintf( stderr
, " local=%d", req
->local
);
1738 static void dump_find_atom_request( const struct find_atom_request
*req
)
1740 fprintf( stderr
, " local=%d,", req
->local
);
1741 fprintf( stderr
, " name=" );
1742 dump_varargs_unicode_str( cur_size
);
1745 static void dump_find_atom_reply( const struct find_atom_reply
*req
)
1747 fprintf( stderr
, " atom=%04x", req
->atom
);
1750 static void dump_get_atom_name_request( const struct get_atom_name_request
*req
)
1752 fprintf( stderr
, " atom=%04x,", req
->atom
);
1753 fprintf( stderr
, " local=%d", req
->local
);
1756 static void dump_get_atom_name_reply( const struct get_atom_name_reply
*req
)
1758 fprintf( stderr
, " count=%d,", req
->count
);
1759 fprintf( stderr
, " name=" );
1760 dump_varargs_unicode_str( cur_size
);
1763 static void dump_init_atom_table_request( const struct init_atom_table_request
*req
)
1765 fprintf( stderr
, " entries=%d", req
->entries
);
1768 static void dump_get_msg_queue_request( const struct get_msg_queue_request
*req
)
1772 static void dump_get_msg_queue_reply( const struct get_msg_queue_reply
*req
)
1774 fprintf( stderr
, " handle=%p", req
->handle
);
1777 static void dump_set_queue_mask_request( const struct set_queue_mask_request
*req
)
1779 fprintf( stderr
, " wake_mask=%08x,", req
->wake_mask
);
1780 fprintf( stderr
, " changed_mask=%08x,", req
->changed_mask
);
1781 fprintf( stderr
, " skip_wait=%d", req
->skip_wait
);
1784 static void dump_set_queue_mask_reply( const struct set_queue_mask_reply
*req
)
1786 fprintf( stderr
, " wake_bits=%08x,", req
->wake_bits
);
1787 fprintf( stderr
, " changed_bits=%08x", req
->changed_bits
);
1790 static void dump_get_queue_status_request( const struct get_queue_status_request
*req
)
1792 fprintf( stderr
, " clear=%d", req
->clear
);
1795 static void dump_get_queue_status_reply( const struct get_queue_status_reply
*req
)
1797 fprintf( stderr
, " wake_bits=%08x,", req
->wake_bits
);
1798 fprintf( stderr
, " changed_bits=%08x", req
->changed_bits
);
1801 static void dump_wait_input_idle_request( const struct wait_input_idle_request
*req
)
1803 fprintf( stderr
, " handle=%p,", req
->handle
);
1804 fprintf( stderr
, " timeout=%d", req
->timeout
);
1807 static void dump_wait_input_idle_reply( const struct wait_input_idle_reply
*req
)
1809 fprintf( stderr
, " event=%p", req
->event
);
1812 static void dump_send_message_request( const struct send_message_request
*req
)
1814 fprintf( stderr
, " id=%04x,", req
->id
);
1815 fprintf( stderr
, " type=%d,", req
->type
);
1816 fprintf( stderr
, " flags=%d,", req
->flags
);
1817 fprintf( stderr
, " win=%p,", req
->win
);
1818 fprintf( stderr
, " msg=%08x,", req
->msg
);
1819 fprintf( stderr
, " wparam=%08x,", req
->wparam
);
1820 fprintf( stderr
, " lparam=%08x,", req
->lparam
);
1821 fprintf( stderr
, " x=%d,", req
->x
);
1822 fprintf( stderr
, " y=%d,", req
->y
);
1823 fprintf( stderr
, " time=%08x,", req
->time
);
1824 fprintf( stderr
, " info=%08x,", req
->info
);
1825 fprintf( stderr
, " timeout=%d,", req
->timeout
);
1826 fprintf( stderr
, " callback=%p,", req
->callback
);
1827 fprintf( stderr
, " data=" );
1828 dump_varargs_bytes( cur_size
);
1831 static void dump_get_message_request( const struct get_message_request
*req
)
1833 fprintf( stderr
, " flags=%d,", req
->flags
);
1834 fprintf( stderr
, " get_win=%p,", req
->get_win
);
1835 fprintf( stderr
, " get_first=%08x,", req
->get_first
);
1836 fprintf( stderr
, " get_last=%08x", req
->get_last
);
1839 static void dump_get_message_reply( const struct get_message_reply
*req
)
1841 fprintf( stderr
, " type=%d,", req
->type
);
1842 fprintf( stderr
, " win=%p,", req
->win
);
1843 fprintf( stderr
, " msg=%08x,", req
->msg
);
1844 fprintf( stderr
, " wparam=%08x,", req
->wparam
);
1845 fprintf( stderr
, " lparam=%08x,", req
->lparam
);
1846 fprintf( stderr
, " x=%d,", req
->x
);
1847 fprintf( stderr
, " y=%d,", req
->y
);
1848 fprintf( stderr
, " time=%08x,", req
->time
);
1849 fprintf( stderr
, " info=%08x,", req
->info
);
1850 fprintf( stderr
, " total=%d,", req
->total
);
1851 fprintf( stderr
, " data=" );
1852 dump_varargs_bytes( cur_size
);
1855 static void dump_reply_message_request( const struct reply_message_request
*req
)
1857 fprintf( stderr
, " type=%d,", req
->type
);
1858 fprintf( stderr
, " result=%08x,", req
->result
);
1859 fprintf( stderr
, " remove=%d,", req
->remove
);
1860 fprintf( stderr
, " data=" );
1861 dump_varargs_bytes( cur_size
);
1864 static void dump_get_message_reply_request( const struct get_message_reply_request
*req
)
1866 fprintf( stderr
, " cancel=%d", req
->cancel
);
1869 static void dump_get_message_reply_reply( const struct get_message_reply_reply
*req
)
1871 fprintf( stderr
, " result=%08x,", req
->result
);
1872 fprintf( stderr
, " data=" );
1873 dump_varargs_bytes( cur_size
);
1876 static void dump_set_win_timer_request( const struct set_win_timer_request
*req
)
1878 fprintf( stderr
, " win=%p,", req
->win
);
1879 fprintf( stderr
, " msg=%08x,", req
->msg
);
1880 fprintf( stderr
, " id=%08x,", req
->id
);
1881 fprintf( stderr
, " rate=%08x,", req
->rate
);
1882 fprintf( stderr
, " lparam=%08x", req
->lparam
);
1885 static void dump_kill_win_timer_request( const struct kill_win_timer_request
*req
)
1887 fprintf( stderr
, " win=%p,", req
->win
);
1888 fprintf( stderr
, " msg=%08x,", req
->msg
);
1889 fprintf( stderr
, " id=%08x", req
->id
);
1892 static void dump_get_serial_info_request( const struct get_serial_info_request
*req
)
1894 fprintf( stderr
, " handle=%p", req
->handle
);
1897 static void dump_get_serial_info_reply( const struct get_serial_info_reply
*req
)
1899 fprintf( stderr
, " readinterval=%08x,", req
->readinterval
);
1900 fprintf( stderr
, " readconst=%08x,", req
->readconst
);
1901 fprintf( stderr
, " readmult=%08x,", req
->readmult
);
1902 fprintf( stderr
, " writeconst=%08x,", req
->writeconst
);
1903 fprintf( stderr
, " writemult=%08x,", req
->writemult
);
1904 fprintf( stderr
, " eventmask=%08x,", req
->eventmask
);
1905 fprintf( stderr
, " commerror=%08x", req
->commerror
);
1908 static void dump_set_serial_info_request( const struct set_serial_info_request
*req
)
1910 fprintf( stderr
, " handle=%p,", req
->handle
);
1911 fprintf( stderr
, " flags=%d,", req
->flags
);
1912 fprintf( stderr
, " readinterval=%08x,", req
->readinterval
);
1913 fprintf( stderr
, " readconst=%08x,", req
->readconst
);
1914 fprintf( stderr
, " readmult=%08x,", req
->readmult
);
1915 fprintf( stderr
, " writeconst=%08x,", req
->writeconst
);
1916 fprintf( stderr
, " writemult=%08x,", req
->writemult
);
1917 fprintf( stderr
, " eventmask=%08x,", req
->eventmask
);
1918 fprintf( stderr
, " commerror=%08x", req
->commerror
);
1921 static void dump_register_async_request( const struct register_async_request
*req
)
1923 fprintf( stderr
, " handle=%p,", req
->handle
);
1924 fprintf( stderr
, " type=%d,", req
->type
);
1925 fprintf( stderr
, " overlapped=%p,", req
->overlapped
);
1926 fprintf( stderr
, " count=%d,", req
->count
);
1927 fprintf( stderr
, " status=%08x", req
->status
);
1930 static void dump_create_named_pipe_request( const struct create_named_pipe_request
*req
)
1932 fprintf( stderr
, " openmode=%08x,", req
->openmode
);
1933 fprintf( stderr
, " pipemode=%08x,", req
->pipemode
);
1934 fprintf( stderr
, " maxinstances=%08x,", req
->maxinstances
);
1935 fprintf( stderr
, " outsize=%08x,", req
->outsize
);
1936 fprintf( stderr
, " insize=%08x,", req
->insize
);
1937 fprintf( stderr
, " timeout=%08x,", req
->timeout
);
1938 fprintf( stderr
, " inherit=%d,", req
->inherit
);
1939 fprintf( stderr
, " name=" );
1940 dump_varargs_unicode_str( cur_size
);
1943 static void dump_create_named_pipe_reply( const struct create_named_pipe_reply
*req
)
1945 fprintf( stderr
, " handle=%p", req
->handle
);
1948 static void dump_open_named_pipe_request( const struct open_named_pipe_request
*req
)
1950 fprintf( stderr
, " access=%08x,", req
->access
);
1951 fprintf( stderr
, " inherit=%d,", req
->inherit
);
1952 fprintf( stderr
, " name=" );
1953 dump_varargs_unicode_str( cur_size
);
1956 static void dump_open_named_pipe_reply( const struct open_named_pipe_reply
*req
)
1958 fprintf( stderr
, " handle=%p", req
->handle
);
1961 static void dump_connect_named_pipe_request( const struct connect_named_pipe_request
*req
)
1963 fprintf( stderr
, " handle=%p,", req
->handle
);
1964 fprintf( stderr
, " overlapped=%p,", req
->overlapped
);
1965 fprintf( stderr
, " func=%p", req
->func
);
1968 static void dump_wait_named_pipe_request( const struct wait_named_pipe_request
*req
)
1970 fprintf( stderr
, " timeout=%08x,", req
->timeout
);
1971 fprintf( stderr
, " overlapped=%p,", req
->overlapped
);
1972 fprintf( stderr
, " func=%p,", req
->func
);
1973 fprintf( stderr
, " name=" );
1974 dump_varargs_unicode_str( cur_size
);
1977 static void dump_disconnect_named_pipe_request( const struct disconnect_named_pipe_request
*req
)
1979 fprintf( stderr
, " handle=%p", req
->handle
);
1982 static void dump_disconnect_named_pipe_reply( const struct disconnect_named_pipe_reply
*req
)
1984 fprintf( stderr
, " fd=%d", req
->fd
);
1987 static void dump_get_named_pipe_info_request( const struct get_named_pipe_info_request
*req
)
1989 fprintf( stderr
, " handle=%p", req
->handle
);
1992 static void dump_get_named_pipe_info_reply( const struct get_named_pipe_info_reply
*req
)
1994 fprintf( stderr
, " flags=%08x,", req
->flags
);
1995 fprintf( stderr
, " maxinstances=%08x,", req
->maxinstances
);
1996 fprintf( stderr
, " outsize=%08x,", req
->outsize
);
1997 fprintf( stderr
, " insize=%08x", req
->insize
);
2000 static void dump_create_window_request( const struct create_window_request
*req
)
2002 fprintf( stderr
, " parent=%p,", req
->parent
);
2003 fprintf( stderr
, " owner=%p,", req
->owner
);
2004 fprintf( stderr
, " atom=%04x,", req
->atom
);
2005 fprintf( stderr
, " instance=%p", req
->instance
);
2008 static void dump_create_window_reply( const struct create_window_reply
*req
)
2010 fprintf( stderr
, " handle=%p,", req
->handle
);
2011 fprintf( stderr
, " extra=%d,", req
->extra
);
2012 fprintf( stderr
, " class_ptr=%p", req
->class_ptr
);
2015 static void dump_link_window_request( const struct link_window_request
*req
)
2017 fprintf( stderr
, " handle=%p,", req
->handle
);
2018 fprintf( stderr
, " parent=%p,", req
->parent
);
2019 fprintf( stderr
, " previous=%p", req
->previous
);
2022 static void dump_link_window_reply( const struct link_window_reply
*req
)
2024 fprintf( stderr
, " full_parent=%p", req
->full_parent
);
2027 static void dump_destroy_window_request( const struct destroy_window_request
*req
)
2029 fprintf( stderr
, " handle=%p", req
->handle
);
2032 static void dump_set_window_owner_request( const struct set_window_owner_request
*req
)
2034 fprintf( stderr
, " handle=%p,", req
->handle
);
2035 fprintf( stderr
, " owner=%p", req
->owner
);
2038 static void dump_set_window_owner_reply( const struct set_window_owner_reply
*req
)
2040 fprintf( stderr
, " full_owner=%p,", req
->full_owner
);
2041 fprintf( stderr
, " prev_owner=%p", req
->prev_owner
);
2044 static void dump_get_window_info_request( const struct get_window_info_request
*req
)
2046 fprintf( stderr
, " handle=%p", req
->handle
);
2049 static void dump_get_window_info_reply( const struct get_window_info_reply
*req
)
2051 fprintf( stderr
, " full_handle=%p,", req
->full_handle
);
2052 fprintf( stderr
, " last_active=%p,", req
->last_active
);
2053 fprintf( stderr
, " pid=%04x,", req
->pid
);
2054 fprintf( stderr
, " tid=%04x,", req
->tid
);
2055 fprintf( stderr
, " atom=%04x", req
->atom
);
2058 static void dump_set_window_info_request( const struct set_window_info_request
*req
)
2060 fprintf( stderr
, " handle=%p,", req
->handle
);
2061 fprintf( stderr
, " flags=%08x,", req
->flags
);
2062 fprintf( stderr
, " style=%08x,", req
->style
);
2063 fprintf( stderr
, " ex_style=%08x,", req
->ex_style
);
2064 fprintf( stderr
, " id=%08x,", req
->id
);
2065 fprintf( stderr
, " instance=%p,", req
->instance
);
2066 fprintf( stderr
, " user_data=%p,", req
->user_data
);
2067 fprintf( stderr
, " extra_offset=%d,", req
->extra_offset
);
2068 fprintf( stderr
, " extra_size=%d,", req
->extra_size
);
2069 fprintf( stderr
, " extra_value=%08x", req
->extra_value
);
2072 static void dump_set_window_info_reply( const struct set_window_info_reply
*req
)
2074 fprintf( stderr
, " old_style=%08x,", req
->old_style
);
2075 fprintf( stderr
, " old_ex_style=%08x,", req
->old_ex_style
);
2076 fprintf( stderr
, " old_id=%08x,", req
->old_id
);
2077 fprintf( stderr
, " old_instance=%p,", req
->old_instance
);
2078 fprintf( stderr
, " old_user_data=%p,", req
->old_user_data
);
2079 fprintf( stderr
, " old_extra_value=%08x", req
->old_extra_value
);
2082 static void dump_get_window_parents_request( const struct get_window_parents_request
*req
)
2084 fprintf( stderr
, " handle=%p", req
->handle
);
2087 static void dump_get_window_parents_reply( const struct get_window_parents_reply
*req
)
2089 fprintf( stderr
, " count=%d,", req
->count
);
2090 fprintf( stderr
, " parents=" );
2091 dump_varargs_user_handles( cur_size
);
2094 static void dump_get_window_children_request( const struct get_window_children_request
*req
)
2096 fprintf( stderr
, " parent=%p,", req
->parent
);
2097 fprintf( stderr
, " atom=%04x,", req
->atom
);
2098 fprintf( stderr
, " tid=%04x", req
->tid
);
2101 static void dump_get_window_children_reply( const struct get_window_children_reply
*req
)
2103 fprintf( stderr
, " count=%d,", req
->count
);
2104 fprintf( stderr
, " children=" );
2105 dump_varargs_user_handles( cur_size
);
2108 static void dump_get_window_children_from_point_request( const struct get_window_children_from_point_request
*req
)
2110 fprintf( stderr
, " parent=%p,", req
->parent
);
2111 fprintf( stderr
, " x=%d,", req
->x
);
2112 fprintf( stderr
, " y=%d", req
->y
);
2115 static void dump_get_window_children_from_point_reply( const struct get_window_children_from_point_reply
*req
)
2117 fprintf( stderr
, " count=%d,", req
->count
);
2118 fprintf( stderr
, " children=" );
2119 dump_varargs_user_handles( cur_size
);
2122 static void dump_get_window_tree_request( const struct get_window_tree_request
*req
)
2124 fprintf( stderr
, " handle=%p", req
->handle
);
2127 static void dump_get_window_tree_reply( const struct get_window_tree_reply
*req
)
2129 fprintf( stderr
, " parent=%p,", req
->parent
);
2130 fprintf( stderr
, " owner=%p,", req
->owner
);
2131 fprintf( stderr
, " next_sibling=%p,", req
->next_sibling
);
2132 fprintf( stderr
, " prev_sibling=%p,", req
->prev_sibling
);
2133 fprintf( stderr
, " first_sibling=%p,", req
->first_sibling
);
2134 fprintf( stderr
, " last_sibling=%p,", req
->last_sibling
);
2135 fprintf( stderr
, " first_child=%p,", req
->first_child
);
2136 fprintf( stderr
, " last_child=%p", req
->last_child
);
2139 static void dump_set_window_rectangles_request( const struct set_window_rectangles_request
*req
)
2141 fprintf( stderr
, " handle=%p,", req
->handle
);
2142 fprintf( stderr
, " window=" );
2143 dump_rectangle( &req
->window
);
2144 fprintf( stderr
, "," );
2145 fprintf( stderr
, " client=" );
2146 dump_rectangle( &req
->client
);
2149 static void dump_get_window_rectangles_request( const struct get_window_rectangles_request
*req
)
2151 fprintf( stderr
, " handle=%p", req
->handle
);
2154 static void dump_get_window_rectangles_reply( const struct get_window_rectangles_reply
*req
)
2156 fprintf( stderr
, " window=" );
2157 dump_rectangle( &req
->window
);
2158 fprintf( stderr
, "," );
2159 fprintf( stderr
, " client=" );
2160 dump_rectangle( &req
->client
);
2163 static void dump_get_window_text_request( const struct get_window_text_request
*req
)
2165 fprintf( stderr
, " handle=%p", req
->handle
);
2168 static void dump_get_window_text_reply( const struct get_window_text_reply
*req
)
2170 fprintf( stderr
, " text=" );
2171 dump_varargs_unicode_str( cur_size
);
2174 static void dump_set_window_text_request( const struct set_window_text_request
*req
)
2176 fprintf( stderr
, " handle=%p,", req
->handle
);
2177 fprintf( stderr
, " text=" );
2178 dump_varargs_unicode_str( cur_size
);
2181 static void dump_inc_window_paint_count_request( const struct inc_window_paint_count_request
*req
)
2183 fprintf( stderr
, " handle=%p,", req
->handle
);
2184 fprintf( stderr
, " incr=%d", req
->incr
);
2187 static void dump_get_windows_offset_request( const struct get_windows_offset_request
*req
)
2189 fprintf( stderr
, " from=%p,", req
->from
);
2190 fprintf( stderr
, " to=%p", req
->to
);
2193 static void dump_get_windows_offset_reply( const struct get_windows_offset_reply
*req
)
2195 fprintf( stderr
, " x=%d,", req
->x
);
2196 fprintf( stderr
, " y=%d", req
->y
);
2199 static void dump_get_visible_region_request( const struct get_visible_region_request
*req
)
2201 fprintf( stderr
, " window=%p,", req
->window
);
2202 fprintf( stderr
, " top_win=%p,", req
->top_win
);
2203 fprintf( stderr
, " flags=%08x", req
->flags
);
2206 static void dump_get_visible_region_reply( const struct get_visible_region_reply
*req
)
2208 fprintf( stderr
, " total_size=%d,", req
->total_size
);
2209 fprintf( stderr
, " region=" );
2210 dump_varargs_rectangles( cur_size
);
2213 static void dump_get_window_region_request( const struct get_window_region_request
*req
)
2215 fprintf( stderr
, " window=%p", req
->window
);
2218 static void dump_get_window_region_reply( const struct get_window_region_reply
*req
)
2220 fprintf( stderr
, " total_size=%d,", req
->total_size
);
2221 fprintf( stderr
, " region=" );
2222 dump_varargs_rectangles( cur_size
);
2225 static void dump_set_window_region_request( const struct set_window_region_request
*req
)
2227 fprintf( stderr
, " window=%p,", req
->window
);
2228 fprintf( stderr
, " region=" );
2229 dump_varargs_rectangles( cur_size
);
2232 static void dump_set_window_property_request( const struct set_window_property_request
*req
)
2234 fprintf( stderr
, " window=%p,", req
->window
);
2235 fprintf( stderr
, " atom=%04x,", req
->atom
);
2236 fprintf( stderr
, " string=%d,", req
->string
);
2237 fprintf( stderr
, " handle=%p", req
->handle
);
2240 static void dump_remove_window_property_request( const struct remove_window_property_request
*req
)
2242 fprintf( stderr
, " window=%p,", req
->window
);
2243 fprintf( stderr
, " atom=%04x", req
->atom
);
2246 static void dump_remove_window_property_reply( const struct remove_window_property_reply
*req
)
2248 fprintf( stderr
, " handle=%p", req
->handle
);
2251 static void dump_get_window_property_request( const struct get_window_property_request
*req
)
2253 fprintf( stderr
, " window=%p,", req
->window
);
2254 fprintf( stderr
, " atom=%04x", req
->atom
);
2257 static void dump_get_window_property_reply( const struct get_window_property_reply
*req
)
2259 fprintf( stderr
, " handle=%p", req
->handle
);
2262 static void dump_get_window_properties_request( const struct get_window_properties_request
*req
)
2264 fprintf( stderr
, " window=%p", req
->window
);
2267 static void dump_get_window_properties_reply( const struct get_window_properties_reply
*req
)
2269 fprintf( stderr
, " total=%d,", req
->total
);
2270 fprintf( stderr
, " props=" );
2271 dump_varargs_properties( cur_size
);
2274 static void dump_attach_thread_input_request( const struct attach_thread_input_request
*req
)
2276 fprintf( stderr
, " tid_from=%04x,", req
->tid_from
);
2277 fprintf( stderr
, " tid_to=%04x,", req
->tid_to
);
2278 fprintf( stderr
, " attach=%d", req
->attach
);
2281 static void dump_get_thread_input_request( const struct get_thread_input_request
*req
)
2283 fprintf( stderr
, " tid=%04x", req
->tid
);
2286 static void dump_get_thread_input_reply( const struct get_thread_input_reply
*req
)
2288 fprintf( stderr
, " focus=%p,", req
->focus
);
2289 fprintf( stderr
, " capture=%p,", req
->capture
);
2290 fprintf( stderr
, " active=%p,", req
->active
);
2291 fprintf( stderr
, " foreground=%p,", req
->foreground
);
2292 fprintf( stderr
, " menu_owner=%p,", req
->menu_owner
);
2293 fprintf( stderr
, " move_size=%p,", req
->move_size
);
2294 fprintf( stderr
, " caret=%p,", req
->caret
);
2295 fprintf( stderr
, " rect=" );
2296 dump_rectangle( &req
->rect
);
2299 static void dump_get_key_state_request( const struct get_key_state_request
*req
)
2301 fprintf( stderr
, " tid=%04x,", req
->tid
);
2302 fprintf( stderr
, " key=%d", req
->key
);
2305 static void dump_get_key_state_reply( const struct get_key_state_reply
*req
)
2307 fprintf( stderr
, " state=%02x,", req
->state
);
2308 fprintf( stderr
, " keystate=" );
2309 dump_varargs_bytes( cur_size
);
2312 static void dump_set_key_state_request( const struct set_key_state_request
*req
)
2314 fprintf( stderr
, " tid=%04x,", req
->tid
);
2315 fprintf( stderr
, " keystate=" );
2316 dump_varargs_bytes( cur_size
);
2319 static void dump_set_foreground_window_request( const struct set_foreground_window_request
*req
)
2321 fprintf( stderr
, " handle=%p", req
->handle
);
2324 static void dump_set_foreground_window_reply( const struct set_foreground_window_reply
*req
)
2326 fprintf( stderr
, " previous=%p,", req
->previous
);
2327 fprintf( stderr
, " send_msg_old=%d,", req
->send_msg_old
);
2328 fprintf( stderr
, " send_msg_new=%d", req
->send_msg_new
);
2331 static void dump_set_focus_window_request( const struct set_focus_window_request
*req
)
2333 fprintf( stderr
, " handle=%p", req
->handle
);
2336 static void dump_set_focus_window_reply( const struct set_focus_window_reply
*req
)
2338 fprintf( stderr
, " previous=%p", req
->previous
);
2341 static void dump_set_active_window_request( const struct set_active_window_request
*req
)
2343 fprintf( stderr
, " handle=%p", req
->handle
);
2346 static void dump_set_active_window_reply( const struct set_active_window_reply
*req
)
2348 fprintf( stderr
, " previous=%p", req
->previous
);
2351 static void dump_set_capture_window_request( const struct set_capture_window_request
*req
)
2353 fprintf( stderr
, " handle=%p,", req
->handle
);
2354 fprintf( stderr
, " flags=%08x", req
->flags
);
2357 static void dump_set_capture_window_reply( const struct set_capture_window_reply
*req
)
2359 fprintf( stderr
, " previous=%p,", req
->previous
);
2360 fprintf( stderr
, " full_handle=%p", req
->full_handle
);
2363 static void dump_set_caret_window_request( const struct set_caret_window_request
*req
)
2365 fprintf( stderr
, " handle=%p,", req
->handle
);
2366 fprintf( stderr
, " width=%d,", req
->width
);
2367 fprintf( stderr
, " height=%d", req
->height
);
2370 static void dump_set_caret_window_reply( const struct set_caret_window_reply
*req
)
2372 fprintf( stderr
, " previous=%p,", req
->previous
);
2373 fprintf( stderr
, " old_rect=" );
2374 dump_rectangle( &req
->old_rect
);
2375 fprintf( stderr
, "," );
2376 fprintf( stderr
, " old_hide=%d,", req
->old_hide
);
2377 fprintf( stderr
, " old_state=%d", req
->old_state
);
2380 static void dump_set_caret_info_request( const struct set_caret_info_request
*req
)
2382 fprintf( stderr
, " flags=%08x,", req
->flags
);
2383 fprintf( stderr
, " handle=%p,", req
->handle
);
2384 fprintf( stderr
, " x=%d,", req
->x
);
2385 fprintf( stderr
, " y=%d,", req
->y
);
2386 fprintf( stderr
, " hide=%d,", req
->hide
);
2387 fprintf( stderr
, " state=%d", req
->state
);
2390 static void dump_set_caret_info_reply( const struct set_caret_info_reply
*req
)
2392 fprintf( stderr
, " full_handle=%p,", req
->full_handle
);
2393 fprintf( stderr
, " old_rect=" );
2394 dump_rectangle( &req
->old_rect
);
2395 fprintf( stderr
, "," );
2396 fprintf( stderr
, " old_hide=%d,", req
->old_hide
);
2397 fprintf( stderr
, " old_state=%d", req
->old_state
);
2400 static void dump_set_hook_request( const struct set_hook_request
*req
)
2402 fprintf( stderr
, " id=%d,", req
->id
);
2403 fprintf( stderr
, " tid=%04x,", req
->tid
);
2404 fprintf( stderr
, " proc=%p,", req
->proc
);
2405 fprintf( stderr
, " unicode=%d,", req
->unicode
);
2406 fprintf( stderr
, " module=" );
2407 dump_varargs_unicode_str( cur_size
);
2410 static void dump_set_hook_reply( const struct set_hook_reply
*req
)
2412 fprintf( stderr
, " handle=%p", req
->handle
);
2415 static void dump_remove_hook_request( const struct remove_hook_request
*req
)
2417 fprintf( stderr
, " handle=%p,", req
->handle
);
2418 fprintf( stderr
, " id=%d,", req
->id
);
2419 fprintf( stderr
, " proc=%p", req
->proc
);
2422 static void dump_start_hook_chain_request( const struct start_hook_chain_request
*req
)
2424 fprintf( stderr
, " id=%d", req
->id
);
2427 static void dump_start_hook_chain_reply( const struct start_hook_chain_reply
*req
)
2429 fprintf( stderr
, " handle=%p,", req
->handle
);
2430 fprintf( stderr
, " pid=%04x,", req
->pid
);
2431 fprintf( stderr
, " tid=%04x,", req
->tid
);
2432 fprintf( stderr
, " proc=%p,", req
->proc
);
2433 fprintf( stderr
, " unicode=%d,", req
->unicode
);
2434 fprintf( stderr
, " module=" );
2435 dump_varargs_unicode_str( cur_size
);
2438 static void dump_finish_hook_chain_request( const struct finish_hook_chain_request
*req
)
2440 fprintf( stderr
, " id=%d", req
->id
);
2443 static void dump_get_next_hook_request( const struct get_next_hook_request
*req
)
2445 fprintf( stderr
, " handle=%p", req
->handle
);
2448 static void dump_get_next_hook_reply( const struct get_next_hook_reply
*req
)
2450 fprintf( stderr
, " next=%p,", req
->next
);
2451 fprintf( stderr
, " id=%d,", req
->id
);
2452 fprintf( stderr
, " pid=%04x,", req
->pid
);
2453 fprintf( stderr
, " tid=%04x,", req
->tid
);
2454 fprintf( stderr
, " proc=%p,", req
->proc
);
2455 fprintf( stderr
, " prev_unicode=%d,", req
->prev_unicode
);
2456 fprintf( stderr
, " next_unicode=%d,", req
->next_unicode
);
2457 fprintf( stderr
, " module=" );
2458 dump_varargs_unicode_str( cur_size
);
2461 static void dump_create_class_request( const struct create_class_request
*req
)
2463 fprintf( stderr
, " local=%d,", req
->local
);
2464 fprintf( stderr
, " atom=%04x,", req
->atom
);
2465 fprintf( stderr
, " style=%08x,", req
->style
);
2466 fprintf( stderr
, " instance=%p,", req
->instance
);
2467 fprintf( stderr
, " extra=%d,", req
->extra
);
2468 fprintf( stderr
, " win_extra=%d,", req
->win_extra
);
2469 fprintf( stderr
, " client_ptr=%p", req
->client_ptr
);
2472 static void dump_destroy_class_request( const struct destroy_class_request
*req
)
2474 fprintf( stderr
, " atom=%04x,", req
->atom
);
2475 fprintf( stderr
, " instance=%p", req
->instance
);
2478 static void dump_destroy_class_reply( const struct destroy_class_reply
*req
)
2480 fprintf( stderr
, " client_ptr=%p", req
->client_ptr
);
2483 static void dump_set_class_info_request( const struct set_class_info_request
*req
)
2485 fprintf( stderr
, " window=%p,", req
->window
);
2486 fprintf( stderr
, " flags=%08x,", req
->flags
);
2487 fprintf( stderr
, " atom=%04x,", req
->atom
);
2488 fprintf( stderr
, " style=%08x,", req
->style
);
2489 fprintf( stderr
, " win_extra=%d,", req
->win_extra
);
2490 fprintf( stderr
, " instance=%p,", req
->instance
);
2491 fprintf( stderr
, " extra_offset=%d,", req
->extra_offset
);
2492 fprintf( stderr
, " extra_size=%d,", req
->extra_size
);
2493 fprintf( stderr
, " extra_value=%08x", req
->extra_value
);
2496 static void dump_set_class_info_reply( const struct set_class_info_reply
*req
)
2498 fprintf( stderr
, " old_atom=%04x,", req
->old_atom
);
2499 fprintf( stderr
, " old_style=%08x,", req
->old_style
);
2500 fprintf( stderr
, " old_extra=%d,", req
->old_extra
);
2501 fprintf( stderr
, " old_win_extra=%d,", req
->old_win_extra
);
2502 fprintf( stderr
, " old_instance=%p,", req
->old_instance
);
2503 fprintf( stderr
, " old_extra_value=%08x", req
->old_extra_value
);
2506 static void dump_set_clipboard_info_request( const struct set_clipboard_info_request
*req
)
2508 fprintf( stderr
, " flags=%08x,", req
->flags
);
2509 fprintf( stderr
, " clipboard=%p,", req
->clipboard
);
2510 fprintf( stderr
, " owner=%p,", req
->owner
);
2511 fprintf( stderr
, " viewer=%p,", req
->viewer
);
2512 fprintf( stderr
, " seqno=%08x", req
->seqno
);
2515 static void dump_set_clipboard_info_reply( const struct set_clipboard_info_reply
*req
)
2517 fprintf( stderr
, " flags=%08x,", req
->flags
);
2518 fprintf( stderr
, " old_clipboard=%p,", req
->old_clipboard
);
2519 fprintf( stderr
, " old_owner=%p,", req
->old_owner
);
2520 fprintf( stderr
, " old_viewer=%p,", req
->old_viewer
);
2521 fprintf( stderr
, " seqno=%08x", req
->seqno
);
2524 static void dump_open_token_request( const struct open_token_request
*req
)
2526 fprintf( stderr
, " handle=%p,", req
->handle
);
2527 fprintf( stderr
, " flags=%08x", req
->flags
);
2530 static void dump_open_token_reply( const struct open_token_reply
*req
)
2532 fprintf( stderr
, " token=%p", req
->token
);
2535 static void dump_set_global_windows_request( const struct set_global_windows_request
*req
)
2537 fprintf( stderr
, " flags=%08x,", req
->flags
);
2538 fprintf( stderr
, " shell_window=%p,", req
->shell_window
);
2539 fprintf( stderr
, " shell_listview=%p,", req
->shell_listview
);
2540 fprintf( stderr
, " progman_window=%p,", req
->progman_window
);
2541 fprintf( stderr
, " taskman_window=%p", req
->taskman_window
);
2544 static void dump_set_global_windows_reply( const struct set_global_windows_reply
*req
)
2546 fprintf( stderr
, " old_shell_window=%p,", req
->old_shell_window
);
2547 fprintf( stderr
, " old_shell_listview=%p,", req
->old_shell_listview
);
2548 fprintf( stderr
, " old_progman_window=%p,", req
->old_progman_window
);
2549 fprintf( stderr
, " old_taskman_window=%p", req
->old_taskman_window
);
2552 static const dump_func req_dumpers
[REQ_NB_REQUESTS
] = {
2553 (dump_func
)dump_new_process_request
,
2554 (dump_func
)dump_get_new_process_info_request
,
2555 (dump_func
)dump_new_thread_request
,
2556 (dump_func
)dump_boot_done_request
,
2557 (dump_func
)dump_init_process_request
,
2558 (dump_func
)dump_get_startup_info_request
,
2559 (dump_func
)dump_init_process_done_request
,
2560 (dump_func
)dump_init_thread_request
,
2561 (dump_func
)dump_terminate_process_request
,
2562 (dump_func
)dump_terminate_thread_request
,
2563 (dump_func
)dump_get_process_info_request
,
2564 (dump_func
)dump_set_process_info_request
,
2565 (dump_func
)dump_get_thread_info_request
,
2566 (dump_func
)dump_set_thread_info_request
,
2567 (dump_func
)dump_get_dll_info_request
,
2568 (dump_func
)dump_suspend_thread_request
,
2569 (dump_func
)dump_resume_thread_request
,
2570 (dump_func
)dump_load_dll_request
,
2571 (dump_func
)dump_unload_dll_request
,
2572 (dump_func
)dump_queue_apc_request
,
2573 (dump_func
)dump_get_apc_request
,
2574 (dump_func
)dump_close_handle_request
,
2575 (dump_func
)dump_set_handle_info_request
,
2576 (dump_func
)dump_dup_handle_request
,
2577 (dump_func
)dump_open_process_request
,
2578 (dump_func
)dump_open_thread_request
,
2579 (dump_func
)dump_select_request
,
2580 (dump_func
)dump_create_event_request
,
2581 (dump_func
)dump_event_op_request
,
2582 (dump_func
)dump_open_event_request
,
2583 (dump_func
)dump_create_mutex_request
,
2584 (dump_func
)dump_release_mutex_request
,
2585 (dump_func
)dump_open_mutex_request
,
2586 (dump_func
)dump_create_semaphore_request
,
2587 (dump_func
)dump_release_semaphore_request
,
2588 (dump_func
)dump_open_semaphore_request
,
2589 (dump_func
)dump_create_file_request
,
2590 (dump_func
)dump_alloc_file_handle_request
,
2591 (dump_func
)dump_get_handle_fd_request
,
2592 (dump_func
)dump_flush_file_request
,
2593 (dump_func
)dump_lock_file_request
,
2594 (dump_func
)dump_unlock_file_request
,
2595 (dump_func
)dump_create_socket_request
,
2596 (dump_func
)dump_accept_socket_request
,
2597 (dump_func
)dump_set_socket_event_request
,
2598 (dump_func
)dump_get_socket_event_request
,
2599 (dump_func
)dump_enable_socket_event_request
,
2600 (dump_func
)dump_set_socket_deferred_request
,
2601 (dump_func
)dump_alloc_console_request
,
2602 (dump_func
)dump_free_console_request
,
2603 (dump_func
)dump_get_console_renderer_events_request
,
2604 (dump_func
)dump_open_console_request
,
2605 (dump_func
)dump_get_console_wait_event_request
,
2606 (dump_func
)dump_get_console_mode_request
,
2607 (dump_func
)dump_set_console_mode_request
,
2608 (dump_func
)dump_set_console_input_info_request
,
2609 (dump_func
)dump_get_console_input_info_request
,
2610 (dump_func
)dump_append_console_input_history_request
,
2611 (dump_func
)dump_get_console_input_history_request
,
2612 (dump_func
)dump_create_console_output_request
,
2613 (dump_func
)dump_set_console_output_info_request
,
2614 (dump_func
)dump_get_console_output_info_request
,
2615 (dump_func
)dump_write_console_input_request
,
2616 (dump_func
)dump_read_console_input_request
,
2617 (dump_func
)dump_write_console_output_request
,
2618 (dump_func
)dump_fill_console_output_request
,
2619 (dump_func
)dump_read_console_output_request
,
2620 (dump_func
)dump_move_console_output_request
,
2621 (dump_func
)dump_send_console_signal_request
,
2622 (dump_func
)dump_create_change_notification_request
,
2623 (dump_func
)dump_next_change_notification_request
,
2624 (dump_func
)dump_create_mapping_request
,
2625 (dump_func
)dump_open_mapping_request
,
2626 (dump_func
)dump_get_mapping_info_request
,
2627 (dump_func
)dump_create_snapshot_request
,
2628 (dump_func
)dump_next_process_request
,
2629 (dump_func
)dump_next_thread_request
,
2630 (dump_func
)dump_next_module_request
,
2631 (dump_func
)dump_wait_debug_event_request
,
2632 (dump_func
)dump_queue_exception_event_request
,
2633 (dump_func
)dump_get_exception_status_request
,
2634 (dump_func
)dump_output_debug_string_request
,
2635 (dump_func
)dump_continue_debug_event_request
,
2636 (dump_func
)dump_debug_process_request
,
2637 (dump_func
)dump_debug_break_request
,
2638 (dump_func
)dump_set_debugger_kill_on_exit_request
,
2639 (dump_func
)dump_read_process_memory_request
,
2640 (dump_func
)dump_write_process_memory_request
,
2641 (dump_func
)dump_create_key_request
,
2642 (dump_func
)dump_open_key_request
,
2643 (dump_func
)dump_delete_key_request
,
2644 (dump_func
)dump_flush_key_request
,
2645 (dump_func
)dump_enum_key_request
,
2646 (dump_func
)dump_set_key_value_request
,
2647 (dump_func
)dump_get_key_value_request
,
2648 (dump_func
)dump_enum_key_value_request
,
2649 (dump_func
)dump_delete_key_value_request
,
2650 (dump_func
)dump_load_registry_request
,
2651 (dump_func
)dump_unload_registry_request
,
2652 (dump_func
)dump_save_registry_request
,
2653 (dump_func
)dump_load_user_registries_request
,
2654 (dump_func
)dump_set_registry_notification_request
,
2655 (dump_func
)dump_create_timer_request
,
2656 (dump_func
)dump_open_timer_request
,
2657 (dump_func
)dump_set_timer_request
,
2658 (dump_func
)dump_cancel_timer_request
,
2659 (dump_func
)dump_get_thread_context_request
,
2660 (dump_func
)dump_set_thread_context_request
,
2661 (dump_func
)dump_get_selector_entry_request
,
2662 (dump_func
)dump_add_atom_request
,
2663 (dump_func
)dump_delete_atom_request
,
2664 (dump_func
)dump_find_atom_request
,
2665 (dump_func
)dump_get_atom_name_request
,
2666 (dump_func
)dump_init_atom_table_request
,
2667 (dump_func
)dump_get_msg_queue_request
,
2668 (dump_func
)dump_set_queue_mask_request
,
2669 (dump_func
)dump_get_queue_status_request
,
2670 (dump_func
)dump_wait_input_idle_request
,
2671 (dump_func
)dump_send_message_request
,
2672 (dump_func
)dump_get_message_request
,
2673 (dump_func
)dump_reply_message_request
,
2674 (dump_func
)dump_get_message_reply_request
,
2675 (dump_func
)dump_set_win_timer_request
,
2676 (dump_func
)dump_kill_win_timer_request
,
2677 (dump_func
)dump_get_serial_info_request
,
2678 (dump_func
)dump_set_serial_info_request
,
2679 (dump_func
)dump_register_async_request
,
2680 (dump_func
)dump_create_named_pipe_request
,
2681 (dump_func
)dump_open_named_pipe_request
,
2682 (dump_func
)dump_connect_named_pipe_request
,
2683 (dump_func
)dump_wait_named_pipe_request
,
2684 (dump_func
)dump_disconnect_named_pipe_request
,
2685 (dump_func
)dump_get_named_pipe_info_request
,
2686 (dump_func
)dump_create_window_request
,
2687 (dump_func
)dump_link_window_request
,
2688 (dump_func
)dump_destroy_window_request
,
2689 (dump_func
)dump_set_window_owner_request
,
2690 (dump_func
)dump_get_window_info_request
,
2691 (dump_func
)dump_set_window_info_request
,
2692 (dump_func
)dump_get_window_parents_request
,
2693 (dump_func
)dump_get_window_children_request
,
2694 (dump_func
)dump_get_window_children_from_point_request
,
2695 (dump_func
)dump_get_window_tree_request
,
2696 (dump_func
)dump_set_window_rectangles_request
,
2697 (dump_func
)dump_get_window_rectangles_request
,
2698 (dump_func
)dump_get_window_text_request
,
2699 (dump_func
)dump_set_window_text_request
,
2700 (dump_func
)dump_inc_window_paint_count_request
,
2701 (dump_func
)dump_get_windows_offset_request
,
2702 (dump_func
)dump_get_visible_region_request
,
2703 (dump_func
)dump_get_window_region_request
,
2704 (dump_func
)dump_set_window_region_request
,
2705 (dump_func
)dump_set_window_property_request
,
2706 (dump_func
)dump_remove_window_property_request
,
2707 (dump_func
)dump_get_window_property_request
,
2708 (dump_func
)dump_get_window_properties_request
,
2709 (dump_func
)dump_attach_thread_input_request
,
2710 (dump_func
)dump_get_thread_input_request
,
2711 (dump_func
)dump_get_key_state_request
,
2712 (dump_func
)dump_set_key_state_request
,
2713 (dump_func
)dump_set_foreground_window_request
,
2714 (dump_func
)dump_set_focus_window_request
,
2715 (dump_func
)dump_set_active_window_request
,
2716 (dump_func
)dump_set_capture_window_request
,
2717 (dump_func
)dump_set_caret_window_request
,
2718 (dump_func
)dump_set_caret_info_request
,
2719 (dump_func
)dump_set_hook_request
,
2720 (dump_func
)dump_remove_hook_request
,
2721 (dump_func
)dump_start_hook_chain_request
,
2722 (dump_func
)dump_finish_hook_chain_request
,
2723 (dump_func
)dump_get_next_hook_request
,
2724 (dump_func
)dump_create_class_request
,
2725 (dump_func
)dump_destroy_class_request
,
2726 (dump_func
)dump_set_class_info_request
,
2727 (dump_func
)dump_set_clipboard_info_request
,
2728 (dump_func
)dump_open_token_request
,
2729 (dump_func
)dump_set_global_windows_request
,
2732 static const dump_func reply_dumpers
[REQ_NB_REQUESTS
] = {
2733 (dump_func
)dump_new_process_reply
,
2734 (dump_func
)dump_get_new_process_info_reply
,
2735 (dump_func
)dump_new_thread_reply
,
2737 (dump_func
)dump_init_process_reply
,
2738 (dump_func
)dump_get_startup_info_reply
,
2740 (dump_func
)dump_init_thread_reply
,
2741 (dump_func
)dump_terminate_process_reply
,
2742 (dump_func
)dump_terminate_thread_reply
,
2743 (dump_func
)dump_get_process_info_reply
,
2745 (dump_func
)dump_get_thread_info_reply
,
2747 (dump_func
)dump_get_dll_info_reply
,
2748 (dump_func
)dump_suspend_thread_reply
,
2749 (dump_func
)dump_resume_thread_reply
,
2753 (dump_func
)dump_get_apc_reply
,
2754 (dump_func
)dump_close_handle_reply
,
2755 (dump_func
)dump_set_handle_info_reply
,
2756 (dump_func
)dump_dup_handle_reply
,
2757 (dump_func
)dump_open_process_reply
,
2758 (dump_func
)dump_open_thread_reply
,
2760 (dump_func
)dump_create_event_reply
,
2762 (dump_func
)dump_open_event_reply
,
2763 (dump_func
)dump_create_mutex_reply
,
2765 (dump_func
)dump_open_mutex_reply
,
2766 (dump_func
)dump_create_semaphore_reply
,
2767 (dump_func
)dump_release_semaphore_reply
,
2768 (dump_func
)dump_open_semaphore_reply
,
2769 (dump_func
)dump_create_file_reply
,
2770 (dump_func
)dump_alloc_file_handle_reply
,
2771 (dump_func
)dump_get_handle_fd_reply
,
2772 (dump_func
)dump_flush_file_reply
,
2773 (dump_func
)dump_lock_file_reply
,
2775 (dump_func
)dump_create_socket_reply
,
2776 (dump_func
)dump_accept_socket_reply
,
2778 (dump_func
)dump_get_socket_event_reply
,
2781 (dump_func
)dump_alloc_console_reply
,
2783 (dump_func
)dump_get_console_renderer_events_reply
,
2784 (dump_func
)dump_open_console_reply
,
2785 (dump_func
)dump_get_console_wait_event_reply
,
2786 (dump_func
)dump_get_console_mode_reply
,
2789 (dump_func
)dump_get_console_input_info_reply
,
2791 (dump_func
)dump_get_console_input_history_reply
,
2792 (dump_func
)dump_create_console_output_reply
,
2794 (dump_func
)dump_get_console_output_info_reply
,
2795 (dump_func
)dump_write_console_input_reply
,
2796 (dump_func
)dump_read_console_input_reply
,
2797 (dump_func
)dump_write_console_output_reply
,
2798 (dump_func
)dump_fill_console_output_reply
,
2799 (dump_func
)dump_read_console_output_reply
,
2802 (dump_func
)dump_create_change_notification_reply
,
2804 (dump_func
)dump_create_mapping_reply
,
2805 (dump_func
)dump_open_mapping_reply
,
2806 (dump_func
)dump_get_mapping_info_reply
,
2807 (dump_func
)dump_create_snapshot_reply
,
2808 (dump_func
)dump_next_process_reply
,
2809 (dump_func
)dump_next_thread_reply
,
2810 (dump_func
)dump_next_module_reply
,
2811 (dump_func
)dump_wait_debug_event_reply
,
2812 (dump_func
)dump_queue_exception_event_reply
,
2813 (dump_func
)dump_get_exception_status_reply
,
2817 (dump_func
)dump_debug_break_reply
,
2819 (dump_func
)dump_read_process_memory_reply
,
2821 (dump_func
)dump_create_key_reply
,
2822 (dump_func
)dump_open_key_reply
,
2825 (dump_func
)dump_enum_key_reply
,
2827 (dump_func
)dump_get_key_value_reply
,
2828 (dump_func
)dump_enum_key_value_reply
,
2835 (dump_func
)dump_create_timer_reply
,
2836 (dump_func
)dump_open_timer_reply
,
2837 (dump_func
)dump_set_timer_reply
,
2838 (dump_func
)dump_cancel_timer_reply
,
2839 (dump_func
)dump_get_thread_context_reply
,
2841 (dump_func
)dump_get_selector_entry_reply
,
2842 (dump_func
)dump_add_atom_reply
,
2844 (dump_func
)dump_find_atom_reply
,
2845 (dump_func
)dump_get_atom_name_reply
,
2847 (dump_func
)dump_get_msg_queue_reply
,
2848 (dump_func
)dump_set_queue_mask_reply
,
2849 (dump_func
)dump_get_queue_status_reply
,
2850 (dump_func
)dump_wait_input_idle_reply
,
2852 (dump_func
)dump_get_message_reply
,
2854 (dump_func
)dump_get_message_reply_reply
,
2857 (dump_func
)dump_get_serial_info_reply
,
2860 (dump_func
)dump_create_named_pipe_reply
,
2861 (dump_func
)dump_open_named_pipe_reply
,
2864 (dump_func
)dump_disconnect_named_pipe_reply
,
2865 (dump_func
)dump_get_named_pipe_info_reply
,
2866 (dump_func
)dump_create_window_reply
,
2867 (dump_func
)dump_link_window_reply
,
2869 (dump_func
)dump_set_window_owner_reply
,
2870 (dump_func
)dump_get_window_info_reply
,
2871 (dump_func
)dump_set_window_info_reply
,
2872 (dump_func
)dump_get_window_parents_reply
,
2873 (dump_func
)dump_get_window_children_reply
,
2874 (dump_func
)dump_get_window_children_from_point_reply
,
2875 (dump_func
)dump_get_window_tree_reply
,
2877 (dump_func
)dump_get_window_rectangles_reply
,
2878 (dump_func
)dump_get_window_text_reply
,
2881 (dump_func
)dump_get_windows_offset_reply
,
2882 (dump_func
)dump_get_visible_region_reply
,
2883 (dump_func
)dump_get_window_region_reply
,
2886 (dump_func
)dump_remove_window_property_reply
,
2887 (dump_func
)dump_get_window_property_reply
,
2888 (dump_func
)dump_get_window_properties_reply
,
2890 (dump_func
)dump_get_thread_input_reply
,
2891 (dump_func
)dump_get_key_state_reply
,
2893 (dump_func
)dump_set_foreground_window_reply
,
2894 (dump_func
)dump_set_focus_window_reply
,
2895 (dump_func
)dump_set_active_window_reply
,
2896 (dump_func
)dump_set_capture_window_reply
,
2897 (dump_func
)dump_set_caret_window_reply
,
2898 (dump_func
)dump_set_caret_info_reply
,
2899 (dump_func
)dump_set_hook_reply
,
2901 (dump_func
)dump_start_hook_chain_reply
,
2903 (dump_func
)dump_get_next_hook_reply
,
2905 (dump_func
)dump_destroy_class_reply
,
2906 (dump_func
)dump_set_class_info_reply
,
2907 (dump_func
)dump_set_clipboard_info_reply
,
2908 (dump_func
)dump_open_token_reply
,
2909 (dump_func
)dump_set_global_windows_reply
,
2912 static const char * const req_names
[REQ_NB_REQUESTS
] = {
2914 "get_new_process_info",
2919 "init_process_done",
2921 "terminate_process",
2947 "release_semaphore",
2950 "alloc_file_handle",
2959 "enable_socket_event",
2960 "set_socket_deferred",
2963 "get_console_renderer_events",
2965 "get_console_wait_event",
2968 "set_console_input_info",
2969 "get_console_input_info",
2970 "append_console_input_history",
2971 "get_console_input_history",
2972 "create_console_output",
2973 "set_console_output_info",
2974 "get_console_output_info",
2975 "write_console_input",
2976 "read_console_input",
2977 "write_console_output",
2978 "fill_console_output",
2979 "read_console_output",
2980 "move_console_output",
2981 "send_console_signal",
2982 "create_change_notification",
2983 "next_change_notification",
2992 "queue_exception_event",
2993 "get_exception_status",
2994 "output_debug_string",
2995 "continue_debug_event",
2998 "set_debugger_kill_on_exit",
2999 "read_process_memory",
3000 "write_process_memory",
3013 "load_user_registries",
3014 "set_registry_notification",
3019 "get_thread_context",
3020 "set_thread_context",
3021 "get_selector_entry",
3034 "get_message_reply",
3040 "create_named_pipe",
3042 "connect_named_pipe",
3044 "disconnect_named_pipe",
3045 "get_named_pipe_info",
3052 "get_window_parents",
3053 "get_window_children",
3054 "get_window_children_from_point",
3056 "set_window_rectangles",
3057 "get_window_rectangles",
3060 "inc_window_paint_count",
3061 "get_windows_offset",
3062 "get_visible_region",
3063 "get_window_region",
3064 "set_window_region",
3065 "set_window_property",
3066 "remove_window_property",
3067 "get_window_property",
3068 "get_window_properties",
3069 "attach_thread_input",
3073 "set_foreground_window",
3075 "set_active_window",
3076 "set_capture_window",
3082 "finish_hook_chain",
3087 "set_clipboard_info",
3089 "set_global_windows",
3092 /* ### make_requests end ### */
3093 /* Everything above this line is generated automatically by tools/make_requests */
3095 static const char *get_status_name( unsigned int status
)
3097 #define NAME(status) { #status, STATUS_##status }
3098 #define NAME_WIN32(error) { #error, 0xc0010000 | error }
3105 NAME(ACCESS_DENIED
),
3106 NAME(ACCESS_VIOLATION
),
3108 NAME(BUFFER_OVERFLOW
),
3109 NAME(CHILD_MUST_BE_VOLATILE
),
3110 NAME(DIRECTORY_NOT_EMPTY
),
3112 NAME(DLL_NOT_FOUND
),
3113 NAME(FILE_IS_A_DIRECTORY
),
3114 NAME(FILE_LOCK_CONFLICT
),
3115 NAME(INVALID_FILE_FOR_SECTION
),
3116 NAME(INVALID_HANDLE
),
3117 NAME(INVALID_PARAMETER
),
3119 NAME(MEDIA_WRITE_PROTECTED
),
3120 NAME(MUTANT_NOT_OWNED
),
3121 NAME(NOT_A_DIRECTORY
),
3122 NAME(NOT_IMPLEMENTED
),
3123 NAME(NOT_REGISTRY_FILE
),
3124 NAME(NO_DATA_DETECTED
),
3126 NAME(NO_MORE_ENTRIES
),
3127 NAME(NO_MORE_FILES
),
3129 NAME(OBJECT_NAME_COLLISION
),
3130 NAME(OBJECT_NAME_INVALID
),
3131 NAME(OBJECT_NAME_NOT_FOUND
),
3132 NAME(OBJECT_PATH_INVALID
),
3133 NAME(OBJECT_TYPE_MISMATCH
),
3136 NAME(PIPE_CONNECTED
),
3137 NAME(PIPE_DISCONNECTED
),
3138 NAME(PIPE_LISTENING
),
3139 NAME(PIPE_NOT_AVAILABLE
),
3140 NAME(SEMAPHORE_LIMIT_EXCEEDED
),
3141 NAME(SHARING_VIOLATION
),
3142 NAME(SUSPEND_COUNT_EXCEEDED
),
3146 NAME_WIN32(ERROR_INVALID_INDEX
),
3147 NAME_WIN32(ERROR_NEGATIVE_SEEK
),
3148 NAME_WIN32(ERROR_SEEK
),
3149 { NULL
, 0 } /* terminator */
3154 static char buffer
[10];
3158 for (i
= 0; status_names
[i
].name
; i
++)
3159 if (status_names
[i
].value
== status
) return status_names
[i
].name
;
3161 sprintf( buffer
, "%x", status
);
3165 void trace_request(void)
3167 enum request req
= current
->req
.request_header
.req
;
3168 if (req
< REQ_NB_REQUESTS
)
3170 fprintf( stderr
, "%04x: %s(", current
->id
, req_names
[req
] );
3171 if (req_dumpers
[req
])
3174 cur_data
= get_req_data();
3175 cur_size
= get_req_data_size();
3176 req_dumpers
[req
]( ¤t
->req
);
3178 fprintf( stderr
, " )\n" );
3180 else fprintf( stderr
, "%04x: %d(?)\n", current
->id
, req
);
3183 void trace_reply( enum request req
, const union generic_reply
*reply
)
3185 if (req
< REQ_NB_REQUESTS
)
3187 fprintf( stderr
, "%04x: %s() = %s",
3188 current
->id
, req_names
[req
], get_status_name(current
->error
) );
3189 if (reply_dumpers
[req
])
3191 fprintf( stderr
, " {" );
3193 cur_data
= current
->reply_data
;
3194 cur_size
= reply
->reply_header
.reply_size
;
3195 reply_dumpers
[req
]( reply
);
3196 fprintf( stderr
, " }" );
3198 fputc( '\n', stderr
);
3200 else fprintf( stderr
, "%04x: %d() = %s\n",
3201 current
->id
, req
, get_status_name(current
->error
) );