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( (const int *)&context
->FloatSave
, sizeof(context
->FloatSave
) / sizeof(int) );
112 fprintf( stderr
, "}" );
114 dump_uints( (const 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
, (const 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( (const 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
, "ConsoleHandle=%p,", params
.ConsoleHandle
);
328 fprintf( stderr
, "ConsoleFlags=%lx,", params
.ConsoleFlags
);
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 static void dump_varargs_LUID_AND_ATTRIBUTES( size_t size
)
412 const LUID_AND_ATTRIBUTES
*lat
= cur_data
;
413 size_t len
= size
/ sizeof(*lat
);
415 fputc( '{', stderr
);
418 fprintf( stderr
, "{luid=%08lx%08lx,attr=%lx}",
419 lat
->Luid
.HighPart
, lat
->Luid
.LowPart
, lat
->Attributes
);
421 if (--len
) fputc( ',', stderr
);
423 fputc( '}', stderr
);
427 static void dump_inline_sid( const SID
*sid
, size_t size
)
432 if ((size
< sizeof(SID
)) ||
433 (FIELD_OFFSET(SID
, SubAuthority
[sid
->SubAuthorityCount
]) > size
))
436 fputc( '{', stderr
);
437 fprintf( stderr
, "S-%u-%lu", sid
->Revision
, MAKELONG(
438 MAKEWORD( sid
->IdentifierAuthority
.Value
[5],
439 sid
->IdentifierAuthority
.Value
[4] ),
440 MAKEWORD( sid
->IdentifierAuthority
.Value
[3],
441 sid
->IdentifierAuthority
.Value
[2] ) ) );
442 for (i
= 0; i
< sid
->SubAuthorityCount
; i
++)
443 fprintf( stderr
, "-%lu", sid
->SubAuthority
[i
] );
444 fputc( '}', stderr
);
447 static void dump_inline_acl( const ACL
*acl
, size_t size
)
449 const ACE_HEADER
*ace
;
451 fputc( '{', stderr
);
455 if (size
< sizeof(ACL
))
458 ace
= (const ACE_HEADER
*)(acl
+ 1);
459 for (i
= 0; i
< acl
->AceCount
; i
++)
461 const SID
*sid
= NULL
;
463 if (size
< sizeof(ACE_HEADER
))
465 if (size
< ace
->AceSize
)
467 size
-= ace
->AceSize
;
468 if (i
!= 0) fputc( ',', stderr
);
469 fprintf( stderr
, "{AceType=" );
470 switch (ace
->AceType
)
472 case ACCESS_DENIED_ACE_TYPE
:
473 sid
= (const SID
*)&((const ACCESS_DENIED_ACE
*)ace
)->SidStart
;
474 fprintf( stderr
, "ACCESS_DENIED_ACE_TYPE,Mask=%lx",
475 ((const ACCESS_DENIED_ACE
*)ace
)->Mask
);
477 case ACCESS_ALLOWED_ACE_TYPE
:
478 sid
= (const SID
*)&((const ACCESS_ALLOWED_ACE
*)ace
)->SidStart
;
479 fprintf( stderr
, "ACCESS_ALLOWED_ACE_TYPE,Mask=%lx",
480 ((const ACCESS_ALLOWED_ACE
*)ace
)->Mask
);
482 case SYSTEM_AUDIT_ACE_TYPE
:
483 sid
= (const SID
*)&((const SYSTEM_AUDIT_ACE
*)ace
)->SidStart
;
484 fprintf( stderr
, "SYSTEM_AUDIT_ACE_TYPE,Mask=%lx",
485 ((const SYSTEM_AUDIT_ACE
*)ace
)->Mask
);
487 case SYSTEM_ALARM_ACE_TYPE
:
488 sid
= (const SID
*)&((const SYSTEM_ALARM_ACE
*)ace
)->SidStart
;
489 fprintf( stderr
, "SYSTEM_ALARM_ACE_TYPE,Mask=%lx",
490 ((const SYSTEM_ALARM_ACE
*)ace
)->Mask
);
493 fprintf( stderr
, "unknown<%d>", ace
->AceType
);
496 fprintf( stderr
, ",AceFlags=%x,Sid=", ace
->AceFlags
);
498 dump_inline_sid( sid
, size
);
499 ace
= (const ACE_HEADER
*)((const char *)ace
+ ace
->AceSize
);
500 fputc( '}', stderr
);
503 fputc( '}', stderr
);
506 static void dump_inline_security_descriptor( const struct security_descriptor
*sd
, size_t size
)
508 fputc( '{', stderr
);
509 if (size
>= sizeof(struct security_descriptor
))
511 size_t offset
= sizeof(struct security_descriptor
);
512 fprintf( stderr
, "control=%08x", sd
->control
);
513 fprintf( stderr
, ",owner=" );
514 if ((sd
->owner_len
> FIELD_OFFSET(SID
, SubAuthority
[255])) || (offset
+ sd
->owner_len
> size
))
516 dump_inline_sid( (const SID
*)((const char *)sd
+ offset
), sd
->owner_len
);
517 offset
+= sd
->owner_len
;
518 fprintf( stderr
, ",group=" );
519 if ((sd
->group_len
> FIELD_OFFSET(SID
, SubAuthority
[255])) || (offset
+ sd
->group_len
> size
))
521 dump_inline_sid( (const SID
*)((const char *)sd
+ offset
), sd
->group_len
);
522 offset
+= sd
->group_len
;
523 fprintf( stderr
, ",sacl=" );
524 if ((sd
->sacl_len
>= MAX_ACL_LEN
) || (offset
+ sd
->sacl_len
> size
))
526 dump_inline_acl( (const ACL
*)((const char *)sd
+ offset
), sd
->sacl_len
);
527 offset
+= sd
->sacl_len
;
528 fprintf( stderr
, ",dacl=" );
529 if ((sd
->dacl_len
>= MAX_ACL_LEN
) || (offset
+ sd
->dacl_len
> size
))
531 dump_inline_acl( (const ACL
*)((const char *)sd
+ offset
), sd
->dacl_len
);
532 offset
+= sd
->dacl_len
;
534 fputc( '}', stderr
);
537 static void dump_varargs_security_descriptor( size_t size
)
539 const struct security_descriptor
*sd
= cur_data
;
540 dump_inline_security_descriptor( sd
, size
);
544 typedef void (*dump_func
)( const void *req
);
546 /* Everything below this line is generated automatically by tools/make_requests */
547 /* ### make_requests begin ### */
549 static void dump_new_process_request( const struct new_process_request
*req
)
551 fprintf( stderr
, " inherit_all=%d,", req
->inherit_all
);
552 fprintf( stderr
, " create_flags=%d,", req
->create_flags
);
553 fprintf( stderr
, " unix_pid=%d,", req
->unix_pid
);
554 fprintf( stderr
, " exe_file=%p,", req
->exe_file
);
555 fprintf( stderr
, " hstdin=%p,", req
->hstdin
);
556 fprintf( stderr
, " hstdout=%p,", req
->hstdout
);
557 fprintf( stderr
, " hstderr=%p,", req
->hstderr
);
558 fprintf( stderr
, " info=" );
559 dump_varargs_startup_info( cur_size
);
560 fputc( ',', stderr
);
561 fprintf( stderr
, " env=" );
562 dump_varargs_unicode_str( cur_size
);
565 static void dump_new_process_reply( const struct new_process_reply
*req
)
567 fprintf( stderr
, " info=%p", req
->info
);
570 static void dump_get_new_process_info_request( const struct get_new_process_info_request
*req
)
572 fprintf( stderr
, " info=%p,", req
->info
);
573 fprintf( stderr
, " pinherit=%d,", req
->pinherit
);
574 fprintf( stderr
, " tinherit=%d", req
->tinherit
);
577 static void dump_get_new_process_info_reply( const struct get_new_process_info_reply
*req
)
579 fprintf( stderr
, " pid=%04x,", req
->pid
);
580 fprintf( stderr
, " phandle=%p,", req
->phandle
);
581 fprintf( stderr
, " tid=%04x,", req
->tid
);
582 fprintf( stderr
, " thandle=%p,", req
->thandle
);
583 fprintf( stderr
, " success=%d", req
->success
);
586 static void dump_new_thread_request( const struct new_thread_request
*req
)
588 fprintf( stderr
, " suspend=%d,", req
->suspend
);
589 fprintf( stderr
, " inherit=%d,", req
->inherit
);
590 fprintf( stderr
, " request_fd=%d", req
->request_fd
);
593 static void dump_new_thread_reply( const struct new_thread_reply
*req
)
595 fprintf( stderr
, " tid=%04x,", req
->tid
);
596 fprintf( stderr
, " handle=%p", req
->handle
);
599 static void dump_boot_done_request( const struct boot_done_request
*req
)
601 fprintf( stderr
, " debug_level=%d", req
->debug_level
);
604 static void dump_init_process_request( const struct init_process_request
*req
)
606 fprintf( stderr
, " peb=%p,", req
->peb
);
607 fprintf( stderr
, " ldt_copy=%p", req
->ldt_copy
);
610 static void dump_init_process_reply( const struct init_process_reply
*req
)
612 fprintf( stderr
, " create_flags=%d,", req
->create_flags
);
613 fprintf( stderr
, " server_start=%08x,", req
->server_start
);
614 fprintf( stderr
, " info_size=%d,", req
->info_size
);
615 fprintf( stderr
, " exe_file=%p,", req
->exe_file
);
616 fprintf( stderr
, " hstdin=%p,", req
->hstdin
);
617 fprintf( stderr
, " hstdout=%p,", req
->hstdout
);
618 fprintf( stderr
, " hstderr=%p", req
->hstderr
);
621 static void dump_get_startup_info_request( const struct get_startup_info_request
*req
)
625 static void dump_get_startup_info_reply( const struct get_startup_info_reply
*req
)
627 fprintf( stderr
, " info=" );
628 dump_varargs_startup_info( cur_size
);
629 fputc( ',', stderr
);
630 fprintf( stderr
, " env=" );
631 dump_varargs_unicode_str( cur_size
);
634 static void dump_init_process_done_request( const struct init_process_done_request
*req
)
636 fprintf( stderr
, " module=%p,", req
->module
);
637 fprintf( stderr
, " module_size=%d,", req
->module_size
);
638 fprintf( stderr
, " entry=%p,", req
->entry
);
639 fprintf( stderr
, " name=%p,", req
->name
);
640 fprintf( stderr
, " exe_file=%p,", req
->exe_file
);
641 fprintf( stderr
, " gui=%d,", req
->gui
);
642 fprintf( stderr
, " filename=" );
643 dump_varargs_unicode_str( cur_size
);
646 static void dump_init_thread_request( const struct init_thread_request
*req
)
648 fprintf( stderr
, " unix_pid=%d,", req
->unix_pid
);
649 fprintf( stderr
, " unix_tid=%d,", req
->unix_tid
);
650 fprintf( stderr
, " teb=%p,", req
->teb
);
651 fprintf( stderr
, " entry=%p,", req
->entry
);
652 fprintf( stderr
, " reply_fd=%d,", req
->reply_fd
);
653 fprintf( stderr
, " wait_fd=%d", req
->wait_fd
);
656 static void dump_init_thread_reply( const struct init_thread_reply
*req
)
658 fprintf( stderr
, " pid=%04x,", req
->pid
);
659 fprintf( stderr
, " tid=%04x,", req
->tid
);
660 fprintf( stderr
, " boot=%d,", req
->boot
);
661 fprintf( stderr
, " version=%d", req
->version
);
664 static void dump_terminate_process_request( const struct terminate_process_request
*req
)
666 fprintf( stderr
, " handle=%p,", req
->handle
);
667 fprintf( stderr
, " exit_code=%d", req
->exit_code
);
670 static void dump_terminate_process_reply( const struct terminate_process_reply
*req
)
672 fprintf( stderr
, " self=%d", req
->self
);
675 static void dump_terminate_thread_request( const struct terminate_thread_request
*req
)
677 fprintf( stderr
, " handle=%p,", req
->handle
);
678 fprintf( stderr
, " exit_code=%d", req
->exit_code
);
681 static void dump_terminate_thread_reply( const struct terminate_thread_reply
*req
)
683 fprintf( stderr
, " self=%d,", req
->self
);
684 fprintf( stderr
, " last=%d", req
->last
);
687 static void dump_get_process_info_request( const struct get_process_info_request
*req
)
689 fprintf( stderr
, " handle=%p", req
->handle
);
692 static void dump_get_process_info_reply( const struct get_process_info_reply
*req
)
694 fprintf( stderr
, " pid=%04x,", req
->pid
);
695 fprintf( stderr
, " ppid=%04x,", req
->ppid
);
696 fprintf( stderr
, " exit_code=%d,", req
->exit_code
);
697 fprintf( stderr
, " priority=%d,", req
->priority
);
698 fprintf( stderr
, " process_affinity=%d,", req
->process_affinity
);
699 fprintf( stderr
, " system_affinity=%d,", req
->system_affinity
);
700 fprintf( stderr
, " peb=%p", req
->peb
);
703 static void dump_set_process_info_request( const struct set_process_info_request
*req
)
705 fprintf( stderr
, " handle=%p,", req
->handle
);
706 fprintf( stderr
, " mask=%d,", req
->mask
);
707 fprintf( stderr
, " priority=%d,", req
->priority
);
708 fprintf( stderr
, " affinity=%d", req
->affinity
);
711 static void dump_get_thread_info_request( const struct get_thread_info_request
*req
)
713 fprintf( stderr
, " handle=%p,", req
->handle
);
714 fprintf( stderr
, " tid_in=%04x", req
->tid_in
);
717 static void dump_get_thread_info_reply( const struct get_thread_info_reply
*req
)
719 fprintf( stderr
, " pid=%04x,", req
->pid
);
720 fprintf( stderr
, " tid=%04x,", req
->tid
);
721 fprintf( stderr
, " teb=%p,", req
->teb
);
722 fprintf( stderr
, " exit_code=%d,", req
->exit_code
);
723 fprintf( stderr
, " priority=%d,", req
->priority
);
724 fprintf( stderr
, " affinity=%d,", req
->affinity
);
725 fprintf( stderr
, " creation_time=%ld,", (long)req
->creation_time
);
726 fprintf( stderr
, " exit_time=%ld", (long)req
->exit_time
);
729 static void dump_set_thread_info_request( const struct set_thread_info_request
*req
)
731 fprintf( stderr
, " handle=%p,", req
->handle
);
732 fprintf( stderr
, " mask=%d,", req
->mask
);
733 fprintf( stderr
, " priority=%d,", req
->priority
);
734 fprintf( stderr
, " affinity=%d", req
->affinity
);
737 static void dump_get_dll_info_request( const struct get_dll_info_request
*req
)
739 fprintf( stderr
, " handle=%p,", req
->handle
);
740 fprintf( stderr
, " base_address=%p", req
->base_address
);
743 static void dump_get_dll_info_reply( const struct get_dll_info_reply
*req
)
745 fprintf( stderr
, " size=%d,", req
->size
);
746 fprintf( stderr
, " entry_point=%p,", req
->entry_point
);
747 fprintf( stderr
, " filename=" );
748 dump_varargs_unicode_str( cur_size
);
751 static void dump_suspend_thread_request( const struct suspend_thread_request
*req
)
753 fprintf( stderr
, " handle=%p", req
->handle
);
756 static void dump_suspend_thread_reply( const struct suspend_thread_reply
*req
)
758 fprintf( stderr
, " count=%d", req
->count
);
761 static void dump_resume_thread_request( const struct resume_thread_request
*req
)
763 fprintf( stderr
, " handle=%p", req
->handle
);
766 static void dump_resume_thread_reply( const struct resume_thread_reply
*req
)
768 fprintf( stderr
, " count=%d", req
->count
);
771 static void dump_load_dll_request( const struct load_dll_request
*req
)
773 fprintf( stderr
, " handle=%p,", req
->handle
);
774 fprintf( stderr
, " base=%p,", req
->base
);
775 fprintf( stderr
, " size=%d,", req
->size
);
776 fprintf( stderr
, " dbg_offset=%d,", req
->dbg_offset
);
777 fprintf( stderr
, " dbg_size=%d,", req
->dbg_size
);
778 fprintf( stderr
, " name=%p,", req
->name
);
779 fprintf( stderr
, " filename=" );
780 dump_varargs_unicode_str( cur_size
);
783 static void dump_unload_dll_request( const struct unload_dll_request
*req
)
785 fprintf( stderr
, " base=%p", req
->base
);
788 static void dump_queue_apc_request( const struct queue_apc_request
*req
)
790 fprintf( stderr
, " handle=%p,", req
->handle
);
791 fprintf( stderr
, " user=%d,", req
->user
);
792 fprintf( stderr
, " func=%p,", req
->func
);
793 fprintf( stderr
, " arg1=%p,", req
->arg1
);
794 fprintf( stderr
, " arg2=%p,", req
->arg2
);
795 fprintf( stderr
, " arg3=%p", req
->arg3
);
798 static void dump_get_apc_request( const struct get_apc_request
*req
)
800 fprintf( stderr
, " alertable=%d", req
->alertable
);
803 static void dump_get_apc_reply( const struct get_apc_reply
*req
)
805 fprintf( stderr
, " func=%p,", req
->func
);
806 fprintf( stderr
, " type=%d,", req
->type
);
807 fprintf( stderr
, " arg1=%p,", req
->arg1
);
808 fprintf( stderr
, " arg2=%p,", req
->arg2
);
809 fprintf( stderr
, " arg3=%p", req
->arg3
);
812 static void dump_close_handle_request( const struct close_handle_request
*req
)
814 fprintf( stderr
, " handle=%p", req
->handle
);
817 static void dump_close_handle_reply( const struct close_handle_reply
*req
)
819 fprintf( stderr
, " fd=%d", req
->fd
);
822 static void dump_set_handle_info_request( const struct set_handle_info_request
*req
)
824 fprintf( stderr
, " handle=%p,", req
->handle
);
825 fprintf( stderr
, " flags=%d,", req
->flags
);
826 fprintf( stderr
, " mask=%d,", req
->mask
);
827 fprintf( stderr
, " fd=%d", req
->fd
);
830 static void dump_set_handle_info_reply( const struct set_handle_info_reply
*req
)
832 fprintf( stderr
, " old_flags=%d,", req
->old_flags
);
833 fprintf( stderr
, " cur_fd=%d", req
->cur_fd
);
836 static void dump_dup_handle_request( const struct dup_handle_request
*req
)
838 fprintf( stderr
, " src_process=%p,", req
->src_process
);
839 fprintf( stderr
, " src_handle=%p,", req
->src_handle
);
840 fprintf( stderr
, " dst_process=%p,", req
->dst_process
);
841 fprintf( stderr
, " access=%08x,", req
->access
);
842 fprintf( stderr
, " inherit=%d,", req
->inherit
);
843 fprintf( stderr
, " options=%d", req
->options
);
846 static void dump_dup_handle_reply( const struct dup_handle_reply
*req
)
848 fprintf( stderr
, " handle=%p,", req
->handle
);
849 fprintf( stderr
, " fd=%d", req
->fd
);
852 static void dump_open_process_request( const struct open_process_request
*req
)
854 fprintf( stderr
, " pid=%04x,", req
->pid
);
855 fprintf( stderr
, " access=%08x,", req
->access
);
856 fprintf( stderr
, " inherit=%d", req
->inherit
);
859 static void dump_open_process_reply( const struct open_process_reply
*req
)
861 fprintf( stderr
, " handle=%p", req
->handle
);
864 static void dump_open_thread_request( const struct open_thread_request
*req
)
866 fprintf( stderr
, " tid=%04x,", req
->tid
);
867 fprintf( stderr
, " access=%08x,", req
->access
);
868 fprintf( stderr
, " inherit=%d", req
->inherit
);
871 static void dump_open_thread_reply( const struct open_thread_reply
*req
)
873 fprintf( stderr
, " handle=%p", req
->handle
);
876 static void dump_select_request( const struct select_request
*req
)
878 fprintf( stderr
, " flags=%d,", req
->flags
);
879 fprintf( stderr
, " cookie=%p,", req
->cookie
);
880 fprintf( stderr
, " signal=%p,", req
->signal
);
881 fprintf( stderr
, " timeout=" );
882 dump_abs_time( &req
->timeout
);
883 fprintf( stderr
, "," );
884 fprintf( stderr
, " handles=" );
885 dump_varargs_handles( cur_size
);
888 static void dump_create_event_request( const struct create_event_request
*req
)
890 fprintf( stderr
, " access=%08x,", req
->access
);
891 fprintf( stderr
, " manual_reset=%d,", req
->manual_reset
);
892 fprintf( stderr
, " initial_state=%d,", req
->initial_state
);
893 fprintf( stderr
, " inherit=%d,", req
->inherit
);
894 fprintf( stderr
, " name=" );
895 dump_varargs_unicode_str( cur_size
);
898 static void dump_create_event_reply( const struct create_event_reply
*req
)
900 fprintf( stderr
, " handle=%p", req
->handle
);
903 static void dump_event_op_request( const struct event_op_request
*req
)
905 fprintf( stderr
, " handle=%p,", req
->handle
);
906 fprintf( stderr
, " op=%d", req
->op
);
909 static void dump_open_event_request( const struct open_event_request
*req
)
911 fprintf( stderr
, " access=%08x,", req
->access
);
912 fprintf( stderr
, " inherit=%d,", req
->inherit
);
913 fprintf( stderr
, " name=" );
914 dump_varargs_unicode_str( cur_size
);
917 static void dump_open_event_reply( const struct open_event_reply
*req
)
919 fprintf( stderr
, " handle=%p", req
->handle
);
922 static void dump_create_mutex_request( const struct create_mutex_request
*req
)
924 fprintf( stderr
, " access=%08x,", req
->access
);
925 fprintf( stderr
, " owned=%d,", req
->owned
);
926 fprintf( stderr
, " inherit=%d,", req
->inherit
);
927 fprintf( stderr
, " name=" );
928 dump_varargs_unicode_str( cur_size
);
931 static void dump_create_mutex_reply( const struct create_mutex_reply
*req
)
933 fprintf( stderr
, " handle=%p", req
->handle
);
936 static void dump_release_mutex_request( const struct release_mutex_request
*req
)
938 fprintf( stderr
, " handle=%p", req
->handle
);
941 static void dump_release_mutex_reply( const struct release_mutex_reply
*req
)
943 fprintf( stderr
, " prev_count=%08x", req
->prev_count
);
946 static void dump_open_mutex_request( const struct open_mutex_request
*req
)
948 fprintf( stderr
, " access=%08x,", req
->access
);
949 fprintf( stderr
, " inherit=%d,", req
->inherit
);
950 fprintf( stderr
, " name=" );
951 dump_varargs_unicode_str( cur_size
);
954 static void dump_open_mutex_reply( const struct open_mutex_reply
*req
)
956 fprintf( stderr
, " handle=%p", req
->handle
);
959 static void dump_create_semaphore_request( const struct create_semaphore_request
*req
)
961 fprintf( stderr
, " access=%08x,", req
->access
);
962 fprintf( stderr
, " initial=%08x,", req
->initial
);
963 fprintf( stderr
, " max=%08x,", req
->max
);
964 fprintf( stderr
, " inherit=%d,", req
->inherit
);
965 fprintf( stderr
, " name=" );
966 dump_varargs_unicode_str( cur_size
);
969 static void dump_create_semaphore_reply( const struct create_semaphore_reply
*req
)
971 fprintf( stderr
, " handle=%p", req
->handle
);
974 static void dump_release_semaphore_request( const struct release_semaphore_request
*req
)
976 fprintf( stderr
, " handle=%p,", req
->handle
);
977 fprintf( stderr
, " count=%08x", req
->count
);
980 static void dump_release_semaphore_reply( const struct release_semaphore_reply
*req
)
982 fprintf( stderr
, " prev_count=%08x", req
->prev_count
);
985 static void dump_open_semaphore_request( const struct open_semaphore_request
*req
)
987 fprintf( stderr
, " access=%08x,", req
->access
);
988 fprintf( stderr
, " inherit=%d,", req
->inherit
);
989 fprintf( stderr
, " name=" );
990 dump_varargs_unicode_str( cur_size
);
993 static void dump_open_semaphore_reply( const struct open_semaphore_reply
*req
)
995 fprintf( stderr
, " handle=%p", req
->handle
);
998 static void dump_create_file_request( const struct create_file_request
*req
)
1000 fprintf( stderr
, " access=%08x,", req
->access
);
1001 fprintf( stderr
, " inherit=%d,", req
->inherit
);
1002 fprintf( stderr
, " sharing=%08x,", req
->sharing
);
1003 fprintf( stderr
, " create=%d,", req
->create
);
1004 fprintf( stderr
, " options=%08x,", req
->options
);
1005 fprintf( stderr
, " attrs=%08x,", req
->attrs
);
1006 fprintf( stderr
, " filename=" );
1007 dump_varargs_string( cur_size
);
1010 static void dump_create_file_reply( const struct create_file_reply
*req
)
1012 fprintf( stderr
, " handle=%p", req
->handle
);
1015 static void dump_alloc_file_handle_request( const struct alloc_file_handle_request
*req
)
1017 fprintf( stderr
, " access=%08x,", req
->access
);
1018 fprintf( stderr
, " inherit=%d,", req
->inherit
);
1019 fprintf( stderr
, " fd=%d", req
->fd
);
1022 static void dump_alloc_file_handle_reply( const struct alloc_file_handle_reply
*req
)
1024 fprintf( stderr
, " handle=%p", req
->handle
);
1027 static void dump_get_handle_fd_request( const struct get_handle_fd_request
*req
)
1029 fprintf( stderr
, " handle=%p,", req
->handle
);
1030 fprintf( stderr
, " access=%08x", req
->access
);
1033 static void dump_get_handle_fd_reply( const struct get_handle_fd_reply
*req
)
1035 fprintf( stderr
, " fd=%d,", req
->fd
);
1036 fprintf( stderr
, " flags=%d", req
->flags
);
1039 static void dump_flush_file_request( const struct flush_file_request
*req
)
1041 fprintf( stderr
, " handle=%p", req
->handle
);
1044 static void dump_flush_file_reply( const struct flush_file_reply
*req
)
1046 fprintf( stderr
, " event=%p", req
->event
);
1049 static void dump_lock_file_request( const struct lock_file_request
*req
)
1051 fprintf( stderr
, " handle=%p,", req
->handle
);
1052 fprintf( stderr
, " offset_low=%08x,", req
->offset_low
);
1053 fprintf( stderr
, " offset_high=%08x,", req
->offset_high
);
1054 fprintf( stderr
, " count_low=%08x,", req
->count_low
);
1055 fprintf( stderr
, " count_high=%08x,", req
->count_high
);
1056 fprintf( stderr
, " shared=%d,", req
->shared
);
1057 fprintf( stderr
, " wait=%d", req
->wait
);
1060 static void dump_lock_file_reply( const struct lock_file_reply
*req
)
1062 fprintf( stderr
, " handle=%p,", req
->handle
);
1063 fprintf( stderr
, " overlapped=%d", req
->overlapped
);
1066 static void dump_unlock_file_request( const struct unlock_file_request
*req
)
1068 fprintf( stderr
, " handle=%p,", req
->handle
);
1069 fprintf( stderr
, " offset_low=%08x,", req
->offset_low
);
1070 fprintf( stderr
, " offset_high=%08x,", req
->offset_high
);
1071 fprintf( stderr
, " count_low=%08x,", req
->count_low
);
1072 fprintf( stderr
, " count_high=%08x", req
->count_high
);
1075 static void dump_create_socket_request( const struct create_socket_request
*req
)
1077 fprintf( stderr
, " access=%08x,", req
->access
);
1078 fprintf( stderr
, " inherit=%d,", req
->inherit
);
1079 fprintf( stderr
, " family=%d,", req
->family
);
1080 fprintf( stderr
, " type=%d,", req
->type
);
1081 fprintf( stderr
, " protocol=%d,", req
->protocol
);
1082 fprintf( stderr
, " flags=%08x", req
->flags
);
1085 static void dump_create_socket_reply( const struct create_socket_reply
*req
)
1087 fprintf( stderr
, " handle=%p", req
->handle
);
1090 static void dump_accept_socket_request( const struct accept_socket_request
*req
)
1092 fprintf( stderr
, " lhandle=%p,", req
->lhandle
);
1093 fprintf( stderr
, " access=%08x,", req
->access
);
1094 fprintf( stderr
, " inherit=%d", req
->inherit
);
1097 static void dump_accept_socket_reply( const struct accept_socket_reply
*req
)
1099 fprintf( stderr
, " handle=%p", req
->handle
);
1102 static void dump_set_socket_event_request( const struct set_socket_event_request
*req
)
1104 fprintf( stderr
, " handle=%p,", req
->handle
);
1105 fprintf( stderr
, " mask=%08x,", req
->mask
);
1106 fprintf( stderr
, " event=%p,", req
->event
);
1107 fprintf( stderr
, " window=%p,", req
->window
);
1108 fprintf( stderr
, " msg=%08x", req
->msg
);
1111 static void dump_get_socket_event_request( const struct get_socket_event_request
*req
)
1113 fprintf( stderr
, " handle=%p,", req
->handle
);
1114 fprintf( stderr
, " service=%d,", req
->service
);
1115 fprintf( stderr
, " c_event=%p", req
->c_event
);
1118 static void dump_get_socket_event_reply( const struct get_socket_event_reply
*req
)
1120 fprintf( stderr
, " mask=%08x,", req
->mask
);
1121 fprintf( stderr
, " pmask=%08x,", req
->pmask
);
1122 fprintf( stderr
, " state=%08x,", req
->state
);
1123 fprintf( stderr
, " errors=" );
1124 dump_varargs_ints( cur_size
);
1127 static void dump_enable_socket_event_request( const struct enable_socket_event_request
*req
)
1129 fprintf( stderr
, " handle=%p,", req
->handle
);
1130 fprintf( stderr
, " mask=%08x,", req
->mask
);
1131 fprintf( stderr
, " sstate=%08x,", req
->sstate
);
1132 fprintf( stderr
, " cstate=%08x", req
->cstate
);
1135 static void dump_set_socket_deferred_request( const struct set_socket_deferred_request
*req
)
1137 fprintf( stderr
, " handle=%p,", req
->handle
);
1138 fprintf( stderr
, " deferred=%p", req
->deferred
);
1141 static void dump_alloc_console_request( const struct alloc_console_request
*req
)
1143 fprintf( stderr
, " access=%08x,", req
->access
);
1144 fprintf( stderr
, " inherit=%d,", req
->inherit
);
1145 fprintf( stderr
, " pid=%04x", req
->pid
);
1148 static void dump_alloc_console_reply( const struct alloc_console_reply
*req
)
1150 fprintf( stderr
, " handle_in=%p,", req
->handle_in
);
1151 fprintf( stderr
, " event=%p", req
->event
);
1154 static void dump_free_console_request( const struct free_console_request
*req
)
1158 static void dump_get_console_renderer_events_request( const struct get_console_renderer_events_request
*req
)
1160 fprintf( stderr
, " handle=%p", req
->handle
);
1163 static void dump_get_console_renderer_events_reply( const struct get_console_renderer_events_reply
*req
)
1165 fprintf( stderr
, " data=" );
1166 dump_varargs_bytes( cur_size
);
1169 static void dump_open_console_request( const struct open_console_request
*req
)
1171 fprintf( stderr
, " from=%d,", req
->from
);
1172 fprintf( stderr
, " access=%08x,", req
->access
);
1173 fprintf( stderr
, " inherit=%d,", req
->inherit
);
1174 fprintf( stderr
, " share=%d", req
->share
);
1177 static void dump_open_console_reply( const struct open_console_reply
*req
)
1179 fprintf( stderr
, " handle=%p", req
->handle
);
1182 static void dump_get_console_wait_event_request( const struct get_console_wait_event_request
*req
)
1186 static void dump_get_console_wait_event_reply( const struct get_console_wait_event_reply
*req
)
1188 fprintf( stderr
, " handle=%p", req
->handle
);
1191 static void dump_get_console_mode_request( const struct get_console_mode_request
*req
)
1193 fprintf( stderr
, " handle=%p", req
->handle
);
1196 static void dump_get_console_mode_reply( const struct get_console_mode_reply
*req
)
1198 fprintf( stderr
, " mode=%d", req
->mode
);
1201 static void dump_set_console_mode_request( const struct set_console_mode_request
*req
)
1203 fprintf( stderr
, " handle=%p,", req
->handle
);
1204 fprintf( stderr
, " mode=%d", req
->mode
);
1207 static void dump_set_console_input_info_request( const struct set_console_input_info_request
*req
)
1209 fprintf( stderr
, " handle=%p,", req
->handle
);
1210 fprintf( stderr
, " mask=%d,", req
->mask
);
1211 fprintf( stderr
, " active_sb=%p,", req
->active_sb
);
1212 fprintf( stderr
, " history_mode=%d,", req
->history_mode
);
1213 fprintf( stderr
, " history_size=%d,", req
->history_size
);
1214 fprintf( stderr
, " edition_mode=%d,", req
->edition_mode
);
1215 fprintf( stderr
, " title=" );
1216 dump_varargs_unicode_str( cur_size
);
1219 static void dump_get_console_input_info_request( const struct get_console_input_info_request
*req
)
1221 fprintf( stderr
, " handle=%p", req
->handle
);
1224 static void dump_get_console_input_info_reply( const struct get_console_input_info_reply
*req
)
1226 fprintf( stderr
, " history_mode=%d,", req
->history_mode
);
1227 fprintf( stderr
, " history_size=%d,", req
->history_size
);
1228 fprintf( stderr
, " history_index=%d,", req
->history_index
);
1229 fprintf( stderr
, " edition_mode=%d,", req
->edition_mode
);
1230 fprintf( stderr
, " title=" );
1231 dump_varargs_unicode_str( cur_size
);
1234 static void dump_append_console_input_history_request( const struct append_console_input_history_request
*req
)
1236 fprintf( stderr
, " handle=%p,", req
->handle
);
1237 fprintf( stderr
, " line=" );
1238 dump_varargs_unicode_str( cur_size
);
1241 static void dump_get_console_input_history_request( const struct get_console_input_history_request
*req
)
1243 fprintf( stderr
, " handle=%p,", req
->handle
);
1244 fprintf( stderr
, " index=%d", req
->index
);
1247 static void dump_get_console_input_history_reply( const struct get_console_input_history_reply
*req
)
1249 fprintf( stderr
, " total=%d,", req
->total
);
1250 fprintf( stderr
, " line=" );
1251 dump_varargs_unicode_str( cur_size
);
1254 static void dump_create_console_output_request( const struct create_console_output_request
*req
)
1256 fprintf( stderr
, " handle_in=%p,", req
->handle_in
);
1257 fprintf( stderr
, " access=%d,", req
->access
);
1258 fprintf( stderr
, " share=%d,", req
->share
);
1259 fprintf( stderr
, " inherit=%d", req
->inherit
);
1262 static void dump_create_console_output_reply( const struct create_console_output_reply
*req
)
1264 fprintf( stderr
, " handle_out=%p", req
->handle_out
);
1267 static void dump_set_console_output_info_request( const struct set_console_output_info_request
*req
)
1269 fprintf( stderr
, " handle=%p,", req
->handle
);
1270 fprintf( stderr
, " mask=%d,", req
->mask
);
1271 fprintf( stderr
, " cursor_size=%d,", req
->cursor_size
);
1272 fprintf( stderr
, " cursor_visible=%d,", req
->cursor_visible
);
1273 fprintf( stderr
, " cursor_x=%d,", req
->cursor_x
);
1274 fprintf( stderr
, " cursor_y=%d,", req
->cursor_y
);
1275 fprintf( stderr
, " width=%d,", req
->width
);
1276 fprintf( stderr
, " height=%d,", req
->height
);
1277 fprintf( stderr
, " attr=%d,", req
->attr
);
1278 fprintf( stderr
, " win_left=%d,", req
->win_left
);
1279 fprintf( stderr
, " win_top=%d,", req
->win_top
);
1280 fprintf( stderr
, " win_right=%d,", req
->win_right
);
1281 fprintf( stderr
, " win_bottom=%d,", req
->win_bottom
);
1282 fprintf( stderr
, " max_width=%d,", req
->max_width
);
1283 fprintf( stderr
, " max_height=%d", req
->max_height
);
1286 static void dump_get_console_output_info_request( const struct get_console_output_info_request
*req
)
1288 fprintf( stderr
, " handle=%p", req
->handle
);
1291 static void dump_get_console_output_info_reply( const struct get_console_output_info_reply
*req
)
1293 fprintf( stderr
, " cursor_size=%d,", req
->cursor_size
);
1294 fprintf( stderr
, " cursor_visible=%d,", req
->cursor_visible
);
1295 fprintf( stderr
, " cursor_x=%d,", req
->cursor_x
);
1296 fprintf( stderr
, " cursor_y=%d,", req
->cursor_y
);
1297 fprintf( stderr
, " width=%d,", req
->width
);
1298 fprintf( stderr
, " height=%d,", req
->height
);
1299 fprintf( stderr
, " attr=%d,", req
->attr
);
1300 fprintf( stderr
, " win_left=%d,", req
->win_left
);
1301 fprintf( stderr
, " win_top=%d,", req
->win_top
);
1302 fprintf( stderr
, " win_right=%d,", req
->win_right
);
1303 fprintf( stderr
, " win_bottom=%d,", req
->win_bottom
);
1304 fprintf( stderr
, " max_width=%d,", req
->max_width
);
1305 fprintf( stderr
, " max_height=%d", req
->max_height
);
1308 static void dump_write_console_input_request( const struct write_console_input_request
*req
)
1310 fprintf( stderr
, " handle=%p,", req
->handle
);
1311 fprintf( stderr
, " rec=" );
1312 dump_varargs_input_records( cur_size
);
1315 static void dump_write_console_input_reply( const struct write_console_input_reply
*req
)
1317 fprintf( stderr
, " written=%d", req
->written
);
1320 static void dump_read_console_input_request( const struct read_console_input_request
*req
)
1322 fprintf( stderr
, " handle=%p,", req
->handle
);
1323 fprintf( stderr
, " flush=%d", req
->flush
);
1326 static void dump_read_console_input_reply( const struct read_console_input_reply
*req
)
1328 fprintf( stderr
, " read=%d,", req
->read
);
1329 fprintf( stderr
, " rec=" );
1330 dump_varargs_input_records( cur_size
);
1333 static void dump_write_console_output_request( const struct write_console_output_request
*req
)
1335 fprintf( stderr
, " handle=%p,", req
->handle
);
1336 fprintf( stderr
, " x=%d,", req
->x
);
1337 fprintf( stderr
, " y=%d,", req
->y
);
1338 fprintf( stderr
, " mode=%d,", req
->mode
);
1339 fprintf( stderr
, " wrap=%d,", req
->wrap
);
1340 fprintf( stderr
, " data=" );
1341 dump_varargs_bytes( cur_size
);
1344 static void dump_write_console_output_reply( const struct write_console_output_reply
*req
)
1346 fprintf( stderr
, " written=%d,", req
->written
);
1347 fprintf( stderr
, " width=%d,", req
->width
);
1348 fprintf( stderr
, " height=%d", req
->height
);
1351 static void dump_fill_console_output_request( const struct fill_console_output_request
*req
)
1353 fprintf( stderr
, " handle=%p,", req
->handle
);
1354 fprintf( stderr
, " x=%d,", req
->x
);
1355 fprintf( stderr
, " y=%d,", req
->y
);
1356 fprintf( stderr
, " mode=%d,", req
->mode
);
1357 fprintf( stderr
, " count=%d,", req
->count
);
1358 fprintf( stderr
, " wrap=%d,", req
->wrap
);
1359 fprintf( stderr
, " data=" );
1360 dump_char_info( &req
->data
);
1363 static void dump_fill_console_output_reply( const struct fill_console_output_reply
*req
)
1365 fprintf( stderr
, " written=%d", req
->written
);
1368 static void dump_read_console_output_request( const struct read_console_output_request
*req
)
1370 fprintf( stderr
, " handle=%p,", req
->handle
);
1371 fprintf( stderr
, " x=%d,", req
->x
);
1372 fprintf( stderr
, " y=%d,", req
->y
);
1373 fprintf( stderr
, " mode=%d,", req
->mode
);
1374 fprintf( stderr
, " wrap=%d", req
->wrap
);
1377 static void dump_read_console_output_reply( const struct read_console_output_reply
*req
)
1379 fprintf( stderr
, " width=%d,", req
->width
);
1380 fprintf( stderr
, " height=%d,", req
->height
);
1381 fprintf( stderr
, " data=" );
1382 dump_varargs_bytes( cur_size
);
1385 static void dump_move_console_output_request( const struct move_console_output_request
*req
)
1387 fprintf( stderr
, " handle=%p,", req
->handle
);
1388 fprintf( stderr
, " x_src=%d,", req
->x_src
);
1389 fprintf( stderr
, " y_src=%d,", req
->y_src
);
1390 fprintf( stderr
, " x_dst=%d,", req
->x_dst
);
1391 fprintf( stderr
, " y_dst=%d,", req
->y_dst
);
1392 fprintf( stderr
, " w=%d,", req
->w
);
1393 fprintf( stderr
, " h=%d", req
->h
);
1396 static void dump_send_console_signal_request( const struct send_console_signal_request
*req
)
1398 fprintf( stderr
, " signal=%d,", req
->signal
);
1399 fprintf( stderr
, " group_id=%04x", req
->group_id
);
1402 static void dump_create_change_notification_request( const struct create_change_notification_request
*req
)
1404 fprintf( stderr
, " handle=%p,", req
->handle
);
1405 fprintf( stderr
, " subtree=%d,", req
->subtree
);
1406 fprintf( stderr
, " filter=%08x", req
->filter
);
1409 static void dump_create_change_notification_reply( const struct create_change_notification_reply
*req
)
1411 fprintf( stderr
, " handle=%p", req
->handle
);
1414 static void dump_next_change_notification_request( const struct next_change_notification_request
*req
)
1416 fprintf( stderr
, " handle=%p", req
->handle
);
1419 static void dump_create_mapping_request( const struct create_mapping_request
*req
)
1421 fprintf( stderr
, " size_high=%d,", req
->size_high
);
1422 fprintf( stderr
, " size_low=%d,", req
->size_low
);
1423 fprintf( stderr
, " protect=%d,", req
->protect
);
1424 fprintf( stderr
, " access=%08x,", req
->access
);
1425 fprintf( stderr
, " inherit=%d,", req
->inherit
);
1426 fprintf( stderr
, " file_handle=%p,", req
->file_handle
);
1427 fprintf( stderr
, " name=" );
1428 dump_varargs_unicode_str( cur_size
);
1431 static void dump_create_mapping_reply( const struct create_mapping_reply
*req
)
1433 fprintf( stderr
, " handle=%p", req
->handle
);
1436 static void dump_open_mapping_request( const struct open_mapping_request
*req
)
1438 fprintf( stderr
, " access=%08x,", req
->access
);
1439 fprintf( stderr
, " inherit=%d,", req
->inherit
);
1440 fprintf( stderr
, " name=" );
1441 dump_varargs_unicode_str( cur_size
);
1444 static void dump_open_mapping_reply( const struct open_mapping_reply
*req
)
1446 fprintf( stderr
, " handle=%p", req
->handle
);
1449 static void dump_get_mapping_info_request( const struct get_mapping_info_request
*req
)
1451 fprintf( stderr
, " handle=%p", req
->handle
);
1454 static void dump_get_mapping_info_reply( const struct get_mapping_info_reply
*req
)
1456 fprintf( stderr
, " size_high=%d,", req
->size_high
);
1457 fprintf( stderr
, " size_low=%d,", req
->size_low
);
1458 fprintf( stderr
, " protect=%d,", req
->protect
);
1459 fprintf( stderr
, " header_size=%d,", req
->header_size
);
1460 fprintf( stderr
, " base=%p,", req
->base
);
1461 fprintf( stderr
, " shared_file=%p,", req
->shared_file
);
1462 fprintf( stderr
, " shared_size=%d", req
->shared_size
);
1465 static void dump_create_snapshot_request( const struct create_snapshot_request
*req
)
1467 fprintf( stderr
, " inherit=%d,", req
->inherit
);
1468 fprintf( stderr
, " flags=%d,", req
->flags
);
1469 fprintf( stderr
, " pid=%04x", req
->pid
);
1472 static void dump_create_snapshot_reply( const struct create_snapshot_reply
*req
)
1474 fprintf( stderr
, " handle=%p", req
->handle
);
1477 static void dump_next_process_request( const struct next_process_request
*req
)
1479 fprintf( stderr
, " handle=%p,", req
->handle
);
1480 fprintf( stderr
, " reset=%d", req
->reset
);
1483 static void dump_next_process_reply( const struct next_process_reply
*req
)
1485 fprintf( stderr
, " count=%d,", req
->count
);
1486 fprintf( stderr
, " pid=%04x,", req
->pid
);
1487 fprintf( stderr
, " ppid=%04x,", req
->ppid
);
1488 fprintf( stderr
, " heap=%p,", req
->heap
);
1489 fprintf( stderr
, " module=%p,", req
->module
);
1490 fprintf( stderr
, " threads=%d,", req
->threads
);
1491 fprintf( stderr
, " priority=%d,", req
->priority
);
1492 fprintf( stderr
, " handles=%d,", req
->handles
);
1493 fprintf( stderr
, " filename=" );
1494 dump_varargs_unicode_str( cur_size
);
1497 static void dump_next_thread_request( const struct next_thread_request
*req
)
1499 fprintf( stderr
, " handle=%p,", req
->handle
);
1500 fprintf( stderr
, " reset=%d", req
->reset
);
1503 static void dump_next_thread_reply( const struct next_thread_reply
*req
)
1505 fprintf( stderr
, " count=%d,", req
->count
);
1506 fprintf( stderr
, " pid=%04x,", req
->pid
);
1507 fprintf( stderr
, " tid=%04x,", req
->tid
);
1508 fprintf( stderr
, " base_pri=%d,", req
->base_pri
);
1509 fprintf( stderr
, " delta_pri=%d", req
->delta_pri
);
1512 static void dump_next_module_request( const struct next_module_request
*req
)
1514 fprintf( stderr
, " handle=%p,", req
->handle
);
1515 fprintf( stderr
, " reset=%d", req
->reset
);
1518 static void dump_next_module_reply( const struct next_module_reply
*req
)
1520 fprintf( stderr
, " pid=%04x,", req
->pid
);
1521 fprintf( stderr
, " base=%p,", req
->base
);
1522 fprintf( stderr
, " size=%d,", req
->size
);
1523 fprintf( stderr
, " filename=" );
1524 dump_varargs_unicode_str( cur_size
);
1527 static void dump_wait_debug_event_request( const struct wait_debug_event_request
*req
)
1529 fprintf( stderr
, " get_handle=%d", req
->get_handle
);
1532 static void dump_wait_debug_event_reply( const struct wait_debug_event_reply
*req
)
1534 fprintf( stderr
, " pid=%04x,", req
->pid
);
1535 fprintf( stderr
, " tid=%04x,", req
->tid
);
1536 fprintf( stderr
, " wait=%p,", req
->wait
);
1537 fprintf( stderr
, " event=" );
1538 dump_varargs_debug_event( cur_size
);
1541 static void dump_queue_exception_event_request( const struct queue_exception_event_request
*req
)
1543 fprintf( stderr
, " first=%d,", req
->first
);
1544 fprintf( stderr
, " record=" );
1545 dump_varargs_exc_event( cur_size
);
1548 static void dump_queue_exception_event_reply( const struct queue_exception_event_reply
*req
)
1550 fprintf( stderr
, " handle=%p", req
->handle
);
1553 static void dump_get_exception_status_request( const struct get_exception_status_request
*req
)
1555 fprintf( stderr
, " handle=%p", req
->handle
);
1558 static void dump_get_exception_status_reply( const struct get_exception_status_reply
*req
)
1560 fprintf( stderr
, " status=%d,", req
->status
);
1561 fprintf( stderr
, " context=" );
1562 dump_varargs_context( cur_size
);
1565 static void dump_output_debug_string_request( const struct output_debug_string_request
*req
)
1567 fprintf( stderr
, " string=%p,", req
->string
);
1568 fprintf( stderr
, " unicode=%d,", req
->unicode
);
1569 fprintf( stderr
, " length=%d", req
->length
);
1572 static void dump_continue_debug_event_request( const struct continue_debug_event_request
*req
)
1574 fprintf( stderr
, " pid=%04x,", req
->pid
);
1575 fprintf( stderr
, " tid=%04x,", req
->tid
);
1576 fprintf( stderr
, " status=%d", req
->status
);
1579 static void dump_debug_process_request( const struct debug_process_request
*req
)
1581 fprintf( stderr
, " pid=%04x,", req
->pid
);
1582 fprintf( stderr
, " attach=%d", req
->attach
);
1585 static void dump_debug_break_request( const struct debug_break_request
*req
)
1587 fprintf( stderr
, " handle=%p", req
->handle
);
1590 static void dump_debug_break_reply( const struct debug_break_reply
*req
)
1592 fprintf( stderr
, " self=%d", req
->self
);
1595 static void dump_set_debugger_kill_on_exit_request( const struct set_debugger_kill_on_exit_request
*req
)
1597 fprintf( stderr
, " kill_on_exit=%d", req
->kill_on_exit
);
1600 static void dump_read_process_memory_request( const struct read_process_memory_request
*req
)
1602 fprintf( stderr
, " handle=%p,", req
->handle
);
1603 fprintf( stderr
, " addr=%p", req
->addr
);
1606 static void dump_read_process_memory_reply( const struct read_process_memory_reply
*req
)
1608 fprintf( stderr
, " data=" );
1609 dump_varargs_bytes( cur_size
);
1612 static void dump_write_process_memory_request( const struct write_process_memory_request
*req
)
1614 fprintf( stderr
, " handle=%p,", req
->handle
);
1615 fprintf( stderr
, " addr=%p,", req
->addr
);
1616 fprintf( stderr
, " first_mask=%08x,", req
->first_mask
);
1617 fprintf( stderr
, " last_mask=%08x,", req
->last_mask
);
1618 fprintf( stderr
, " data=" );
1619 dump_varargs_bytes( cur_size
);
1622 static void dump_create_key_request( const struct create_key_request
*req
)
1624 fprintf( stderr
, " parent=%p,", req
->parent
);
1625 fprintf( stderr
, " access=%08x,", req
->access
);
1626 fprintf( stderr
, " options=%08x,", req
->options
);
1627 fprintf( stderr
, " modif=%ld,", (long)req
->modif
);
1628 fprintf( stderr
, " namelen=%d,", req
->namelen
);
1629 fprintf( stderr
, " name=" );
1630 dump_varargs_unicode_str( min(cur_size
,req
->namelen
) );
1631 fputc( ',', stderr
);
1632 fprintf( stderr
, " class=" );
1633 dump_varargs_unicode_str( cur_size
);
1636 static void dump_create_key_reply( const struct create_key_reply
*req
)
1638 fprintf( stderr
, " hkey=%p,", req
->hkey
);
1639 fprintf( stderr
, " created=%d", req
->created
);
1642 static void dump_open_key_request( const struct open_key_request
*req
)
1644 fprintf( stderr
, " parent=%p,", req
->parent
);
1645 fprintf( stderr
, " access=%08x,", req
->access
);
1646 fprintf( stderr
, " name=" );
1647 dump_varargs_unicode_str( cur_size
);
1650 static void dump_open_key_reply( const struct open_key_reply
*req
)
1652 fprintf( stderr
, " hkey=%p", req
->hkey
);
1655 static void dump_delete_key_request( const struct delete_key_request
*req
)
1657 fprintf( stderr
, " hkey=%p", req
->hkey
);
1660 static void dump_flush_key_request( const struct flush_key_request
*req
)
1662 fprintf( stderr
, " hkey=%p", req
->hkey
);
1665 static void dump_enum_key_request( const struct enum_key_request
*req
)
1667 fprintf( stderr
, " hkey=%p,", req
->hkey
);
1668 fprintf( stderr
, " index=%d,", req
->index
);
1669 fprintf( stderr
, " info_class=%d", req
->info_class
);
1672 static void dump_enum_key_reply( const struct enum_key_reply
*req
)
1674 fprintf( stderr
, " subkeys=%d,", req
->subkeys
);
1675 fprintf( stderr
, " max_subkey=%d,", req
->max_subkey
);
1676 fprintf( stderr
, " max_class=%d,", req
->max_class
);
1677 fprintf( stderr
, " values=%d,", req
->values
);
1678 fprintf( stderr
, " max_value=%d,", req
->max_value
);
1679 fprintf( stderr
, " max_data=%d,", req
->max_data
);
1680 fprintf( stderr
, " modif=%ld,", (long)req
->modif
);
1681 fprintf( stderr
, " total=%d,", req
->total
);
1682 fprintf( stderr
, " namelen=%d,", req
->namelen
);
1683 fprintf( stderr
, " name=" );
1684 dump_varargs_unicode_str( min(cur_size
,req
->namelen
) );
1685 fputc( ',', stderr
);
1686 fprintf( stderr
, " class=" );
1687 dump_varargs_unicode_str( cur_size
);
1690 static void dump_set_key_value_request( const struct set_key_value_request
*req
)
1692 fprintf( stderr
, " hkey=%p,", req
->hkey
);
1693 fprintf( stderr
, " type=%d,", req
->type
);
1694 fprintf( stderr
, " namelen=%d,", req
->namelen
);
1695 fprintf( stderr
, " name=" );
1696 dump_varargs_unicode_str( min(cur_size
,req
->namelen
) );
1697 fputc( ',', stderr
);
1698 fprintf( stderr
, " data=" );
1699 dump_varargs_bytes( cur_size
);
1702 static void dump_get_key_value_request( const struct get_key_value_request
*req
)
1704 fprintf( stderr
, " hkey=%p,", req
->hkey
);
1705 fprintf( stderr
, " name=" );
1706 dump_varargs_unicode_str( cur_size
);
1709 static void dump_get_key_value_reply( const struct get_key_value_reply
*req
)
1711 fprintf( stderr
, " type=%d,", req
->type
);
1712 fprintf( stderr
, " total=%d,", req
->total
);
1713 fprintf( stderr
, " data=" );
1714 dump_varargs_bytes( cur_size
);
1717 static void dump_enum_key_value_request( const struct enum_key_value_request
*req
)
1719 fprintf( stderr
, " hkey=%p,", req
->hkey
);
1720 fprintf( stderr
, " index=%d,", req
->index
);
1721 fprintf( stderr
, " info_class=%d", req
->info_class
);
1724 static void dump_enum_key_value_reply( const struct enum_key_value_reply
*req
)
1726 fprintf( stderr
, " type=%d,", req
->type
);
1727 fprintf( stderr
, " total=%d,", req
->total
);
1728 fprintf( stderr
, " namelen=%d,", req
->namelen
);
1729 fprintf( stderr
, " name=" );
1730 dump_varargs_unicode_str( min(cur_size
,req
->namelen
) );
1731 fputc( ',', stderr
);
1732 fprintf( stderr
, " data=" );
1733 dump_varargs_bytes( cur_size
);
1736 static void dump_delete_key_value_request( const struct delete_key_value_request
*req
)
1738 fprintf( stderr
, " hkey=%p,", req
->hkey
);
1739 fprintf( stderr
, " name=" );
1740 dump_varargs_unicode_str( cur_size
);
1743 static void dump_load_registry_request( const struct load_registry_request
*req
)
1745 fprintf( stderr
, " hkey=%p,", req
->hkey
);
1746 fprintf( stderr
, " file=%p,", req
->file
);
1747 fprintf( stderr
, " name=" );
1748 dump_varargs_unicode_str( cur_size
);
1751 static void dump_unload_registry_request( const struct unload_registry_request
*req
)
1753 fprintf( stderr
, " hkey=%p", req
->hkey
);
1756 static void dump_save_registry_request( const struct save_registry_request
*req
)
1758 fprintf( stderr
, " hkey=%p,", req
->hkey
);
1759 fprintf( stderr
, " file=%p", req
->file
);
1762 static void dump_load_user_registries_request( const struct load_user_registries_request
*req
)
1764 fprintf( stderr
, " hkey=%p,", req
->hkey
);
1765 fprintf( stderr
, " saving=%d,", req
->saving
);
1766 fprintf( stderr
, " period=%d", req
->period
);
1769 static void dump_set_registry_notification_request( const struct set_registry_notification_request
*req
)
1771 fprintf( stderr
, " hkey=%p,", req
->hkey
);
1772 fprintf( stderr
, " event=%p,", req
->event
);
1773 fprintf( stderr
, " subtree=%d,", req
->subtree
);
1774 fprintf( stderr
, " filter=%08x", req
->filter
);
1777 static void dump_create_timer_request( const struct create_timer_request
*req
)
1779 fprintf( stderr
, " access=%08x,", req
->access
);
1780 fprintf( stderr
, " inherit=%d,", req
->inherit
);
1781 fprintf( stderr
, " manual=%d,", req
->manual
);
1782 fprintf( stderr
, " name=" );
1783 dump_varargs_unicode_str( cur_size
);
1786 static void dump_create_timer_reply( const struct create_timer_reply
*req
)
1788 fprintf( stderr
, " handle=%p", req
->handle
);
1791 static void dump_open_timer_request( const struct open_timer_request
*req
)
1793 fprintf( stderr
, " access=%08x,", req
->access
);
1794 fprintf( stderr
, " inherit=%d,", req
->inherit
);
1795 fprintf( stderr
, " name=" );
1796 dump_varargs_unicode_str( cur_size
);
1799 static void dump_open_timer_reply( const struct open_timer_reply
*req
)
1801 fprintf( stderr
, " handle=%p", req
->handle
);
1804 static void dump_set_timer_request( const struct set_timer_request
*req
)
1806 fprintf( stderr
, " handle=%p,", req
->handle
);
1807 fprintf( stderr
, " expire=" );
1808 dump_abs_time( &req
->expire
);
1809 fprintf( stderr
, "," );
1810 fprintf( stderr
, " period=%d,", req
->period
);
1811 fprintf( stderr
, " callback=%p,", req
->callback
);
1812 fprintf( stderr
, " arg=%p", req
->arg
);
1815 static void dump_set_timer_reply( const struct set_timer_reply
*req
)
1817 fprintf( stderr
, " signaled=%d", req
->signaled
);
1820 static void dump_cancel_timer_request( const struct cancel_timer_request
*req
)
1822 fprintf( stderr
, " handle=%p", req
->handle
);
1825 static void dump_cancel_timer_reply( const struct cancel_timer_reply
*req
)
1827 fprintf( stderr
, " signaled=%d", req
->signaled
);
1830 static void dump_get_timer_info_request( const struct get_timer_info_request
*req
)
1832 fprintf( stderr
, " handle=%p", req
->handle
);
1835 static void dump_get_timer_info_reply( const struct get_timer_info_reply
*req
)
1837 fprintf( stderr
, " when=" );
1838 dump_abs_time( &req
->when
);
1839 fprintf( stderr
, "," );
1840 fprintf( stderr
, " signaled=%d", req
->signaled
);
1843 static void dump_get_thread_context_request( const struct get_thread_context_request
*req
)
1845 fprintf( stderr
, " handle=%p,", req
->handle
);
1846 fprintf( stderr
, " flags=%08x", req
->flags
);
1849 static void dump_get_thread_context_reply( const struct get_thread_context_reply
*req
)
1851 fprintf( stderr
, " context=" );
1852 dump_varargs_context( cur_size
);
1855 static void dump_set_thread_context_request( const struct set_thread_context_request
*req
)
1857 fprintf( stderr
, " handle=%p,", req
->handle
);
1858 fprintf( stderr
, " flags=%08x,", req
->flags
);
1859 fprintf( stderr
, " context=" );
1860 dump_varargs_context( cur_size
);
1863 static void dump_get_selector_entry_request( const struct get_selector_entry_request
*req
)
1865 fprintf( stderr
, " handle=%p,", req
->handle
);
1866 fprintf( stderr
, " entry=%d", req
->entry
);
1869 static void dump_get_selector_entry_reply( const struct get_selector_entry_reply
*req
)
1871 fprintf( stderr
, " base=%08x,", req
->base
);
1872 fprintf( stderr
, " limit=%08x,", req
->limit
);
1873 fprintf( stderr
, " flags=%02x", req
->flags
);
1876 static void dump_add_atom_request( const struct add_atom_request
*req
)
1878 fprintf( stderr
, " table=%p,", req
->table
);
1879 fprintf( stderr
, " name=" );
1880 dump_varargs_unicode_str( cur_size
);
1883 static void dump_add_atom_reply( const struct add_atom_reply
*req
)
1885 fprintf( stderr
, " atom=%04x", req
->atom
);
1888 static void dump_delete_atom_request( const struct delete_atom_request
*req
)
1890 fprintf( stderr
, " table=%p,", req
->table
);
1891 fprintf( stderr
, " atom=%04x", req
->atom
);
1894 static void dump_find_atom_request( const struct find_atom_request
*req
)
1896 fprintf( stderr
, " table=%p,", req
->table
);
1897 fprintf( stderr
, " name=" );
1898 dump_varargs_unicode_str( cur_size
);
1901 static void dump_find_atom_reply( const struct find_atom_reply
*req
)
1903 fprintf( stderr
, " atom=%04x", req
->atom
);
1906 static void dump_get_atom_information_request( const struct get_atom_information_request
*req
)
1908 fprintf( stderr
, " table=%p,", req
->table
);
1909 fprintf( stderr
, " atom=%04x", req
->atom
);
1912 static void dump_get_atom_information_reply( const struct get_atom_information_reply
*req
)
1914 fprintf( stderr
, " count=%d,", req
->count
);
1915 fprintf( stderr
, " pinned=%d,", req
->pinned
);
1916 fprintf( stderr
, " name=" );
1917 dump_varargs_unicode_str( cur_size
);
1920 static void dump_set_atom_information_request( const struct set_atom_information_request
*req
)
1922 fprintf( stderr
, " table=%p,", req
->table
);
1923 fprintf( stderr
, " atom=%04x,", req
->atom
);
1924 fprintf( stderr
, " pinned=%d", req
->pinned
);
1927 static void dump_empty_atom_table_request( const struct empty_atom_table_request
*req
)
1929 fprintf( stderr
, " table=%p,", req
->table
);
1930 fprintf( stderr
, " if_pinned=%d", req
->if_pinned
);
1933 static void dump_init_atom_table_request( const struct init_atom_table_request
*req
)
1935 fprintf( stderr
, " entries=%d", req
->entries
);
1938 static void dump_init_atom_table_reply( const struct init_atom_table_reply
*req
)
1940 fprintf( stderr
, " table=%p", req
->table
);
1943 static void dump_get_msg_queue_request( const struct get_msg_queue_request
*req
)
1947 static void dump_get_msg_queue_reply( const struct get_msg_queue_reply
*req
)
1949 fprintf( stderr
, " handle=%p", req
->handle
);
1952 static void dump_set_queue_mask_request( const struct set_queue_mask_request
*req
)
1954 fprintf( stderr
, " wake_mask=%08x,", req
->wake_mask
);
1955 fprintf( stderr
, " changed_mask=%08x,", req
->changed_mask
);
1956 fprintf( stderr
, " skip_wait=%d", req
->skip_wait
);
1959 static void dump_set_queue_mask_reply( const struct set_queue_mask_reply
*req
)
1961 fprintf( stderr
, " wake_bits=%08x,", req
->wake_bits
);
1962 fprintf( stderr
, " changed_bits=%08x", req
->changed_bits
);
1965 static void dump_get_queue_status_request( const struct get_queue_status_request
*req
)
1967 fprintf( stderr
, " clear=%d", req
->clear
);
1970 static void dump_get_queue_status_reply( const struct get_queue_status_reply
*req
)
1972 fprintf( stderr
, " wake_bits=%08x,", req
->wake_bits
);
1973 fprintf( stderr
, " changed_bits=%08x", req
->changed_bits
);
1976 static void dump_wait_input_idle_request( const struct wait_input_idle_request
*req
)
1978 fprintf( stderr
, " handle=%p,", req
->handle
);
1979 fprintf( stderr
, " timeout=%d", req
->timeout
);
1982 static void dump_wait_input_idle_reply( const struct wait_input_idle_reply
*req
)
1984 fprintf( stderr
, " event=%p", req
->event
);
1987 static void dump_send_message_request( const struct send_message_request
*req
)
1989 fprintf( stderr
, " id=%04x,", req
->id
);
1990 fprintf( stderr
, " type=%d,", req
->type
);
1991 fprintf( stderr
, " flags=%d,", req
->flags
);
1992 fprintf( stderr
, " win=%p,", req
->win
);
1993 fprintf( stderr
, " msg=%08x,", req
->msg
);
1994 fprintf( stderr
, " wparam=%08x,", req
->wparam
);
1995 fprintf( stderr
, " lparam=%08x,", req
->lparam
);
1996 fprintf( stderr
, " x=%d,", req
->x
);
1997 fprintf( stderr
, " y=%d,", req
->y
);
1998 fprintf( stderr
, " time=%08x,", req
->time
);
1999 fprintf( stderr
, " info=%08x,", req
->info
);
2000 fprintf( stderr
, " timeout=%d,", req
->timeout
);
2001 fprintf( stderr
, " callback=%p,", req
->callback
);
2002 fprintf( stderr
, " data=" );
2003 dump_varargs_bytes( cur_size
);
2006 static void dump_get_message_request( const struct get_message_request
*req
)
2008 fprintf( stderr
, " flags=%d,", req
->flags
);
2009 fprintf( stderr
, " get_win=%p,", req
->get_win
);
2010 fprintf( stderr
, " get_first=%08x,", req
->get_first
);
2011 fprintf( stderr
, " get_last=%08x,", req
->get_last
);
2012 fprintf( stderr
, " hw_id=%08x", req
->hw_id
);
2015 static void dump_get_message_reply( const struct get_message_reply
*req
)
2017 fprintf( stderr
, " type=%d,", req
->type
);
2018 fprintf( stderr
, " win=%p,", req
->win
);
2019 fprintf( stderr
, " msg=%08x,", req
->msg
);
2020 fprintf( stderr
, " wparam=%08x,", req
->wparam
);
2021 fprintf( stderr
, " lparam=%08x,", req
->lparam
);
2022 fprintf( stderr
, " x=%d,", req
->x
);
2023 fprintf( stderr
, " y=%d,", req
->y
);
2024 fprintf( stderr
, " hook=%p,", req
->hook
);
2025 fprintf( stderr
, " hook_proc=%p,", req
->hook_proc
);
2026 fprintf( stderr
, " time=%08x,", req
->time
);
2027 fprintf( stderr
, " info=%08x,", req
->info
);
2028 fprintf( stderr
, " hw_id=%08x,", req
->hw_id
);
2029 fprintf( stderr
, " active_hooks=%08x,", req
->active_hooks
);
2030 fprintf( stderr
, " total=%d,", req
->total
);
2031 fprintf( stderr
, " data=" );
2032 dump_varargs_bytes( cur_size
);
2035 static void dump_reply_message_request( const struct reply_message_request
*req
)
2037 fprintf( stderr
, " result=%08x,", req
->result
);
2038 fprintf( stderr
, " remove=%d,", req
->remove
);
2039 fprintf( stderr
, " data=" );
2040 dump_varargs_bytes( cur_size
);
2043 static void dump_accept_hardware_message_request( const struct accept_hardware_message_request
*req
)
2045 fprintf( stderr
, " hw_id=%08x,", req
->hw_id
);
2046 fprintf( stderr
, " remove=%d,", req
->remove
);
2047 fprintf( stderr
, " new_win=%p", req
->new_win
);
2050 static void dump_get_message_reply_request( const struct get_message_reply_request
*req
)
2052 fprintf( stderr
, " cancel=%d", req
->cancel
);
2055 static void dump_get_message_reply_reply( const struct get_message_reply_reply
*req
)
2057 fprintf( stderr
, " result=%08x,", req
->result
);
2058 fprintf( stderr
, " data=" );
2059 dump_varargs_bytes( cur_size
);
2062 static void dump_set_win_timer_request( const struct set_win_timer_request
*req
)
2064 fprintf( stderr
, " win=%p,", req
->win
);
2065 fprintf( stderr
, " msg=%08x,", req
->msg
);
2066 fprintf( stderr
, " id=%08x,", req
->id
);
2067 fprintf( stderr
, " rate=%08x,", req
->rate
);
2068 fprintf( stderr
, " lparam=%08x", req
->lparam
);
2071 static void dump_set_win_timer_reply( const struct set_win_timer_reply
*req
)
2073 fprintf( stderr
, " id=%08x", req
->id
);
2076 static void dump_kill_win_timer_request( const struct kill_win_timer_request
*req
)
2078 fprintf( stderr
, " win=%p,", req
->win
);
2079 fprintf( stderr
, " msg=%08x,", req
->msg
);
2080 fprintf( stderr
, " id=%08x", req
->id
);
2083 static void dump_get_serial_info_request( const struct get_serial_info_request
*req
)
2085 fprintf( stderr
, " handle=%p", req
->handle
);
2088 static void dump_get_serial_info_reply( const struct get_serial_info_reply
*req
)
2090 fprintf( stderr
, " readinterval=%08x,", req
->readinterval
);
2091 fprintf( stderr
, " readconst=%08x,", req
->readconst
);
2092 fprintf( stderr
, " readmult=%08x,", req
->readmult
);
2093 fprintf( stderr
, " writeconst=%08x,", req
->writeconst
);
2094 fprintf( stderr
, " writemult=%08x,", req
->writemult
);
2095 fprintf( stderr
, " eventmask=%08x,", req
->eventmask
);
2096 fprintf( stderr
, " commerror=%08x", req
->commerror
);
2099 static void dump_set_serial_info_request( const struct set_serial_info_request
*req
)
2101 fprintf( stderr
, " handle=%p,", req
->handle
);
2102 fprintf( stderr
, " flags=%d,", req
->flags
);
2103 fprintf( stderr
, " readinterval=%08x,", req
->readinterval
);
2104 fprintf( stderr
, " readconst=%08x,", req
->readconst
);
2105 fprintf( stderr
, " readmult=%08x,", req
->readmult
);
2106 fprintf( stderr
, " writeconst=%08x,", req
->writeconst
);
2107 fprintf( stderr
, " writemult=%08x,", req
->writemult
);
2108 fprintf( stderr
, " eventmask=%08x,", req
->eventmask
);
2109 fprintf( stderr
, " commerror=%08x", req
->commerror
);
2112 static void dump_register_async_request( const struct register_async_request
*req
)
2114 fprintf( stderr
, " handle=%p,", req
->handle
);
2115 fprintf( stderr
, " type=%d,", req
->type
);
2116 fprintf( stderr
, " io_apc=%p,", req
->io_apc
);
2117 fprintf( stderr
, " io_sb=%p,", req
->io_sb
);
2118 fprintf( stderr
, " io_user=%p,", req
->io_user
);
2119 fprintf( stderr
, " count=%d", req
->count
);
2122 static void dump_cancel_async_request( const struct cancel_async_request
*req
)
2124 fprintf( stderr
, " handle=%p", req
->handle
);
2127 static void dump_create_named_pipe_request( const struct create_named_pipe_request
*req
)
2129 fprintf( stderr
, " options=%08x,", req
->options
);
2130 fprintf( stderr
, " flags=%08x,", req
->flags
);
2131 fprintf( stderr
, " maxinstances=%08x,", req
->maxinstances
);
2132 fprintf( stderr
, " outsize=%08x,", req
->outsize
);
2133 fprintf( stderr
, " insize=%08x,", req
->insize
);
2134 fprintf( stderr
, " timeout=%08x,", req
->timeout
);
2135 fprintf( stderr
, " inherit=%d,", req
->inherit
);
2136 fprintf( stderr
, " name=" );
2137 dump_varargs_unicode_str( cur_size
);
2140 static void dump_create_named_pipe_reply( const struct create_named_pipe_reply
*req
)
2142 fprintf( stderr
, " handle=%p", req
->handle
);
2145 static void dump_open_named_pipe_request( const struct open_named_pipe_request
*req
)
2147 fprintf( stderr
, " access=%08x,", req
->access
);
2148 fprintf( stderr
, " inherit=%d,", req
->inherit
);
2149 fprintf( stderr
, " name=" );
2150 dump_varargs_unicode_str( cur_size
);
2153 static void dump_open_named_pipe_reply( const struct open_named_pipe_reply
*req
)
2155 fprintf( stderr
, " handle=%p", req
->handle
);
2158 static void dump_connect_named_pipe_request( const struct connect_named_pipe_request
*req
)
2160 fprintf( stderr
, " handle=%p,", req
->handle
);
2161 fprintf( stderr
, " overlapped=%p,", req
->overlapped
);
2162 fprintf( stderr
, " func=%p", req
->func
);
2165 static void dump_wait_named_pipe_request( const struct wait_named_pipe_request
*req
)
2167 fprintf( stderr
, " timeout=%08x,", req
->timeout
);
2168 fprintf( stderr
, " overlapped=%p,", req
->overlapped
);
2169 fprintf( stderr
, " func=%p,", req
->func
);
2170 fprintf( stderr
, " name=" );
2171 dump_varargs_unicode_str( cur_size
);
2174 static void dump_disconnect_named_pipe_request( const struct disconnect_named_pipe_request
*req
)
2176 fprintf( stderr
, " handle=%p", req
->handle
);
2179 static void dump_disconnect_named_pipe_reply( const struct disconnect_named_pipe_reply
*req
)
2181 fprintf( stderr
, " fd=%d", req
->fd
);
2184 static void dump_get_named_pipe_info_request( const struct get_named_pipe_info_request
*req
)
2186 fprintf( stderr
, " handle=%p", req
->handle
);
2189 static void dump_get_named_pipe_info_reply( const struct get_named_pipe_info_reply
*req
)
2191 fprintf( stderr
, " flags=%08x,", req
->flags
);
2192 fprintf( stderr
, " maxinstances=%08x,", req
->maxinstances
);
2193 fprintf( stderr
, " outsize=%08x,", req
->outsize
);
2194 fprintf( stderr
, " insize=%08x", req
->insize
);
2197 static void dump_create_window_request( const struct create_window_request
*req
)
2199 fprintf( stderr
, " parent=%p,", req
->parent
);
2200 fprintf( stderr
, " owner=%p,", req
->owner
);
2201 fprintf( stderr
, " atom=%04x,", req
->atom
);
2202 fprintf( stderr
, " instance=%p", req
->instance
);
2205 static void dump_create_window_reply( const struct create_window_reply
*req
)
2207 fprintf( stderr
, " handle=%p,", req
->handle
);
2208 fprintf( stderr
, " extra=%d,", req
->extra
);
2209 fprintf( stderr
, " class_ptr=%p", req
->class_ptr
);
2212 static void dump_destroy_window_request( const struct destroy_window_request
*req
)
2214 fprintf( stderr
, " handle=%p", req
->handle
);
2217 static void dump_set_window_owner_request( const struct set_window_owner_request
*req
)
2219 fprintf( stderr
, " handle=%p,", req
->handle
);
2220 fprintf( stderr
, " owner=%p", req
->owner
);
2223 static void dump_set_window_owner_reply( const struct set_window_owner_reply
*req
)
2225 fprintf( stderr
, " full_owner=%p,", req
->full_owner
);
2226 fprintf( stderr
, " prev_owner=%p", req
->prev_owner
);
2229 static void dump_get_window_info_request( const struct get_window_info_request
*req
)
2231 fprintf( stderr
, " handle=%p", req
->handle
);
2234 static void dump_get_window_info_reply( const struct get_window_info_reply
*req
)
2236 fprintf( stderr
, " full_handle=%p,", req
->full_handle
);
2237 fprintf( stderr
, " last_active=%p,", req
->last_active
);
2238 fprintf( stderr
, " pid=%04x,", req
->pid
);
2239 fprintf( stderr
, " tid=%04x,", req
->tid
);
2240 fprintf( stderr
, " atom=%04x", req
->atom
);
2243 static void dump_set_window_info_request( const struct set_window_info_request
*req
)
2245 fprintf( stderr
, " handle=%p,", req
->handle
);
2246 fprintf( stderr
, " flags=%08x,", req
->flags
);
2247 fprintf( stderr
, " style=%08x,", req
->style
);
2248 fprintf( stderr
, " ex_style=%08x,", req
->ex_style
);
2249 fprintf( stderr
, " id=%08x,", req
->id
);
2250 fprintf( stderr
, " instance=%p,", req
->instance
);
2251 fprintf( stderr
, " user_data=%p,", req
->user_data
);
2252 fprintf( stderr
, " extra_offset=%d,", req
->extra_offset
);
2253 fprintf( stderr
, " extra_size=%d,", req
->extra_size
);
2254 fprintf( stderr
, " extra_value=%08x", req
->extra_value
);
2257 static void dump_set_window_info_reply( const struct set_window_info_reply
*req
)
2259 fprintf( stderr
, " old_style=%08x,", req
->old_style
);
2260 fprintf( stderr
, " old_ex_style=%08x,", req
->old_ex_style
);
2261 fprintf( stderr
, " old_id=%08x,", req
->old_id
);
2262 fprintf( stderr
, " old_instance=%p,", req
->old_instance
);
2263 fprintf( stderr
, " old_user_data=%p,", req
->old_user_data
);
2264 fprintf( stderr
, " old_extra_value=%08x", req
->old_extra_value
);
2267 static void dump_set_parent_request( const struct set_parent_request
*req
)
2269 fprintf( stderr
, " handle=%p,", req
->handle
);
2270 fprintf( stderr
, " parent=%p", req
->parent
);
2273 static void dump_set_parent_reply( const struct set_parent_reply
*req
)
2275 fprintf( stderr
, " old_parent=%p,", req
->old_parent
);
2276 fprintf( stderr
, " full_parent=%p", req
->full_parent
);
2279 static void dump_get_window_parents_request( const struct get_window_parents_request
*req
)
2281 fprintf( stderr
, " handle=%p", req
->handle
);
2284 static void dump_get_window_parents_reply( const struct get_window_parents_reply
*req
)
2286 fprintf( stderr
, " count=%d,", req
->count
);
2287 fprintf( stderr
, " parents=" );
2288 dump_varargs_user_handles( cur_size
);
2291 static void dump_get_window_children_request( const struct get_window_children_request
*req
)
2293 fprintf( stderr
, " parent=%p,", req
->parent
);
2294 fprintf( stderr
, " atom=%04x,", req
->atom
);
2295 fprintf( stderr
, " tid=%04x", req
->tid
);
2298 static void dump_get_window_children_reply( const struct get_window_children_reply
*req
)
2300 fprintf( stderr
, " count=%d,", req
->count
);
2301 fprintf( stderr
, " children=" );
2302 dump_varargs_user_handles( cur_size
);
2305 static void dump_get_window_children_from_point_request( const struct get_window_children_from_point_request
*req
)
2307 fprintf( stderr
, " parent=%p,", req
->parent
);
2308 fprintf( stderr
, " x=%d,", req
->x
);
2309 fprintf( stderr
, " y=%d", req
->y
);
2312 static void dump_get_window_children_from_point_reply( const struct get_window_children_from_point_reply
*req
)
2314 fprintf( stderr
, " count=%d,", req
->count
);
2315 fprintf( stderr
, " children=" );
2316 dump_varargs_user_handles( cur_size
);
2319 static void dump_get_window_tree_request( const struct get_window_tree_request
*req
)
2321 fprintf( stderr
, " handle=%p", req
->handle
);
2324 static void dump_get_window_tree_reply( const struct get_window_tree_reply
*req
)
2326 fprintf( stderr
, " parent=%p,", req
->parent
);
2327 fprintf( stderr
, " owner=%p,", req
->owner
);
2328 fprintf( stderr
, " next_sibling=%p,", req
->next_sibling
);
2329 fprintf( stderr
, " prev_sibling=%p,", req
->prev_sibling
);
2330 fprintf( stderr
, " first_sibling=%p,", req
->first_sibling
);
2331 fprintf( stderr
, " last_sibling=%p,", req
->last_sibling
);
2332 fprintf( stderr
, " first_child=%p,", req
->first_child
);
2333 fprintf( stderr
, " last_child=%p", req
->last_child
);
2336 static void dump_set_window_pos_request( const struct set_window_pos_request
*req
)
2338 fprintf( stderr
, " handle=%p,", req
->handle
);
2339 fprintf( stderr
, " previous=%p,", req
->previous
);
2340 fprintf( stderr
, " flags=%08x,", req
->flags
);
2341 fprintf( stderr
, " window=" );
2342 dump_rectangle( &req
->window
);
2343 fprintf( stderr
, "," );
2344 fprintf( stderr
, " client=" );
2345 dump_rectangle( &req
->client
);
2346 fprintf( stderr
, "," );
2347 fprintf( stderr
, " valid=" );
2348 dump_varargs_rectangles( cur_size
);
2351 static void dump_set_window_pos_reply( const struct set_window_pos_reply
*req
)
2353 fprintf( stderr
, " new_style=%08x", req
->new_style
);
2356 static void dump_get_window_rectangles_request( const struct get_window_rectangles_request
*req
)
2358 fprintf( stderr
, " handle=%p", req
->handle
);
2361 static void dump_get_window_rectangles_reply( const struct get_window_rectangles_reply
*req
)
2363 fprintf( stderr
, " window=" );
2364 dump_rectangle( &req
->window
);
2365 fprintf( stderr
, "," );
2366 fprintf( stderr
, " visible=" );
2367 dump_rectangle( &req
->visible
);
2368 fprintf( stderr
, "," );
2369 fprintf( stderr
, " client=" );
2370 dump_rectangle( &req
->client
);
2373 static void dump_get_window_text_request( const struct get_window_text_request
*req
)
2375 fprintf( stderr
, " handle=%p", req
->handle
);
2378 static void dump_get_window_text_reply( const struct get_window_text_reply
*req
)
2380 fprintf( stderr
, " text=" );
2381 dump_varargs_unicode_str( cur_size
);
2384 static void dump_set_window_text_request( const struct set_window_text_request
*req
)
2386 fprintf( stderr
, " handle=%p,", req
->handle
);
2387 fprintf( stderr
, " text=" );
2388 dump_varargs_unicode_str( cur_size
);
2391 static void dump_get_windows_offset_request( const struct get_windows_offset_request
*req
)
2393 fprintf( stderr
, " from=%p,", req
->from
);
2394 fprintf( stderr
, " to=%p", req
->to
);
2397 static void dump_get_windows_offset_reply( const struct get_windows_offset_reply
*req
)
2399 fprintf( stderr
, " x=%d,", req
->x
);
2400 fprintf( stderr
, " y=%d", req
->y
);
2403 static void dump_get_visible_region_request( const struct get_visible_region_request
*req
)
2405 fprintf( stderr
, " window=%p,", req
->window
);
2406 fprintf( stderr
, " flags=%08x", req
->flags
);
2409 static void dump_get_visible_region_reply( const struct get_visible_region_reply
*req
)
2411 fprintf( stderr
, " top_win=%p,", req
->top_win
);
2412 fprintf( stderr
, " top_org_x=%d,", req
->top_org_x
);
2413 fprintf( stderr
, " top_org_y=%d,", req
->top_org_y
);
2414 fprintf( stderr
, " win_org_x=%d,", req
->win_org_x
);
2415 fprintf( stderr
, " win_org_y=%d,", req
->win_org_y
);
2416 fprintf( stderr
, " total_size=%d,", req
->total_size
);
2417 fprintf( stderr
, " region=" );
2418 dump_varargs_rectangles( cur_size
);
2421 static void dump_get_window_region_request( const struct get_window_region_request
*req
)
2423 fprintf( stderr
, " window=%p", req
->window
);
2426 static void dump_get_window_region_reply( const struct get_window_region_reply
*req
)
2428 fprintf( stderr
, " total_size=%d,", req
->total_size
);
2429 fprintf( stderr
, " region=" );
2430 dump_varargs_rectangles( cur_size
);
2433 static void dump_set_window_region_request( const struct set_window_region_request
*req
)
2435 fprintf( stderr
, " window=%p,", req
->window
);
2436 fprintf( stderr
, " region=" );
2437 dump_varargs_rectangles( cur_size
);
2440 static void dump_get_update_region_request( const struct get_update_region_request
*req
)
2442 fprintf( stderr
, " window=%p,", req
->window
);
2443 fprintf( stderr
, " from_child=%p,", req
->from_child
);
2444 fprintf( stderr
, " flags=%08x", req
->flags
);
2447 static void dump_get_update_region_reply( const struct get_update_region_reply
*req
)
2449 fprintf( stderr
, " child=%p,", req
->child
);
2450 fprintf( stderr
, " flags=%08x,", req
->flags
);
2451 fprintf( stderr
, " total_size=%d,", req
->total_size
);
2452 fprintf( stderr
, " region=" );
2453 dump_varargs_rectangles( cur_size
);
2456 static void dump_update_window_zorder_request( const struct update_window_zorder_request
*req
)
2458 fprintf( stderr
, " window=%p,", req
->window
);
2459 fprintf( stderr
, " rect=" );
2460 dump_rectangle( &req
->rect
);
2463 static void dump_redraw_window_request( const struct redraw_window_request
*req
)
2465 fprintf( stderr
, " window=%p,", req
->window
);
2466 fprintf( stderr
, " flags=%08x,", req
->flags
);
2467 fprintf( stderr
, " region=" );
2468 dump_varargs_rectangles( cur_size
);
2471 static void dump_set_window_property_request( const struct set_window_property_request
*req
)
2473 fprintf( stderr
, " window=%p,", req
->window
);
2474 fprintf( stderr
, " atom=%04x,", req
->atom
);
2475 fprintf( stderr
, " handle=%p,", req
->handle
);
2476 fprintf( stderr
, " name=" );
2477 dump_varargs_unicode_str( cur_size
);
2480 static void dump_remove_window_property_request( const struct remove_window_property_request
*req
)
2482 fprintf( stderr
, " window=%p,", req
->window
);
2483 fprintf( stderr
, " atom=%04x,", req
->atom
);
2484 fprintf( stderr
, " name=" );
2485 dump_varargs_unicode_str( cur_size
);
2488 static void dump_remove_window_property_reply( const struct remove_window_property_reply
*req
)
2490 fprintf( stderr
, " handle=%p", req
->handle
);
2493 static void dump_get_window_property_request( const struct get_window_property_request
*req
)
2495 fprintf( stderr
, " window=%p,", req
->window
);
2496 fprintf( stderr
, " atom=%04x,", req
->atom
);
2497 fprintf( stderr
, " name=" );
2498 dump_varargs_unicode_str( cur_size
);
2501 static void dump_get_window_property_reply( const struct get_window_property_reply
*req
)
2503 fprintf( stderr
, " handle=%p", req
->handle
);
2506 static void dump_get_window_properties_request( const struct get_window_properties_request
*req
)
2508 fprintf( stderr
, " window=%p", req
->window
);
2511 static void dump_get_window_properties_reply( const struct get_window_properties_reply
*req
)
2513 fprintf( stderr
, " total=%d,", req
->total
);
2514 fprintf( stderr
, " props=" );
2515 dump_varargs_properties( cur_size
);
2518 static void dump_attach_thread_input_request( const struct attach_thread_input_request
*req
)
2520 fprintf( stderr
, " tid_from=%04x,", req
->tid_from
);
2521 fprintf( stderr
, " tid_to=%04x,", req
->tid_to
);
2522 fprintf( stderr
, " attach=%d", req
->attach
);
2525 static void dump_get_thread_input_request( const struct get_thread_input_request
*req
)
2527 fprintf( stderr
, " tid=%04x", req
->tid
);
2530 static void dump_get_thread_input_reply( const struct get_thread_input_reply
*req
)
2532 fprintf( stderr
, " focus=%p,", req
->focus
);
2533 fprintf( stderr
, " capture=%p,", req
->capture
);
2534 fprintf( stderr
, " active=%p,", req
->active
);
2535 fprintf( stderr
, " foreground=%p,", req
->foreground
);
2536 fprintf( stderr
, " menu_owner=%p,", req
->menu_owner
);
2537 fprintf( stderr
, " move_size=%p,", req
->move_size
);
2538 fprintf( stderr
, " caret=%p,", req
->caret
);
2539 fprintf( stderr
, " rect=" );
2540 dump_rectangle( &req
->rect
);
2543 static void dump_get_last_input_time_request( const struct get_last_input_time_request
*req
)
2547 static void dump_get_last_input_time_reply( const struct get_last_input_time_reply
*req
)
2549 fprintf( stderr
, " time=%08x", req
->time
);
2552 static void dump_get_key_state_request( const struct get_key_state_request
*req
)
2554 fprintf( stderr
, " tid=%04x,", req
->tid
);
2555 fprintf( stderr
, " key=%d", req
->key
);
2558 static void dump_get_key_state_reply( const struct get_key_state_reply
*req
)
2560 fprintf( stderr
, " state=%02x,", req
->state
);
2561 fprintf( stderr
, " keystate=" );
2562 dump_varargs_bytes( cur_size
);
2565 static void dump_set_key_state_request( const struct set_key_state_request
*req
)
2567 fprintf( stderr
, " tid=%04x,", req
->tid
);
2568 fprintf( stderr
, " keystate=" );
2569 dump_varargs_bytes( cur_size
);
2572 static void dump_set_foreground_window_request( const struct set_foreground_window_request
*req
)
2574 fprintf( stderr
, " handle=%p", req
->handle
);
2577 static void dump_set_foreground_window_reply( const struct set_foreground_window_reply
*req
)
2579 fprintf( stderr
, " previous=%p,", req
->previous
);
2580 fprintf( stderr
, " send_msg_old=%d,", req
->send_msg_old
);
2581 fprintf( stderr
, " send_msg_new=%d", req
->send_msg_new
);
2584 static void dump_set_focus_window_request( const struct set_focus_window_request
*req
)
2586 fprintf( stderr
, " handle=%p", req
->handle
);
2589 static void dump_set_focus_window_reply( const struct set_focus_window_reply
*req
)
2591 fprintf( stderr
, " previous=%p", req
->previous
);
2594 static void dump_set_active_window_request( const struct set_active_window_request
*req
)
2596 fprintf( stderr
, " handle=%p", req
->handle
);
2599 static void dump_set_active_window_reply( const struct set_active_window_reply
*req
)
2601 fprintf( stderr
, " previous=%p", req
->previous
);
2604 static void dump_set_capture_window_request( const struct set_capture_window_request
*req
)
2606 fprintf( stderr
, " handle=%p,", req
->handle
);
2607 fprintf( stderr
, " flags=%08x", req
->flags
);
2610 static void dump_set_capture_window_reply( const struct set_capture_window_reply
*req
)
2612 fprintf( stderr
, " previous=%p,", req
->previous
);
2613 fprintf( stderr
, " full_handle=%p", req
->full_handle
);
2616 static void dump_set_caret_window_request( const struct set_caret_window_request
*req
)
2618 fprintf( stderr
, " handle=%p,", req
->handle
);
2619 fprintf( stderr
, " width=%d,", req
->width
);
2620 fprintf( stderr
, " height=%d", req
->height
);
2623 static void dump_set_caret_window_reply( const struct set_caret_window_reply
*req
)
2625 fprintf( stderr
, " previous=%p,", req
->previous
);
2626 fprintf( stderr
, " old_rect=" );
2627 dump_rectangle( &req
->old_rect
);
2628 fprintf( stderr
, "," );
2629 fprintf( stderr
, " old_hide=%d,", req
->old_hide
);
2630 fprintf( stderr
, " old_state=%d", req
->old_state
);
2633 static void dump_set_caret_info_request( const struct set_caret_info_request
*req
)
2635 fprintf( stderr
, " flags=%08x,", req
->flags
);
2636 fprintf( stderr
, " handle=%p,", req
->handle
);
2637 fprintf( stderr
, " x=%d,", req
->x
);
2638 fprintf( stderr
, " y=%d,", req
->y
);
2639 fprintf( stderr
, " hide=%d,", req
->hide
);
2640 fprintf( stderr
, " state=%d", req
->state
);
2643 static void dump_set_caret_info_reply( const struct set_caret_info_reply
*req
)
2645 fprintf( stderr
, " full_handle=%p,", req
->full_handle
);
2646 fprintf( stderr
, " old_rect=" );
2647 dump_rectangle( &req
->old_rect
);
2648 fprintf( stderr
, "," );
2649 fprintf( stderr
, " old_hide=%d,", req
->old_hide
);
2650 fprintf( stderr
, " old_state=%d", req
->old_state
);
2653 static void dump_set_hook_request( const struct set_hook_request
*req
)
2655 fprintf( stderr
, " id=%d,", req
->id
);
2656 fprintf( stderr
, " pid=%04x,", req
->pid
);
2657 fprintf( stderr
, " tid=%04x,", req
->tid
);
2658 fprintf( stderr
, " event_min=%d,", req
->event_min
);
2659 fprintf( stderr
, " event_max=%d,", req
->event_max
);
2660 fprintf( stderr
, " flags=%d,", req
->flags
);
2661 fprintf( stderr
, " proc=%p,", req
->proc
);
2662 fprintf( stderr
, " unicode=%d,", req
->unicode
);
2663 fprintf( stderr
, " module=" );
2664 dump_varargs_unicode_str( cur_size
);
2667 static void dump_set_hook_reply( const struct set_hook_reply
*req
)
2669 fprintf( stderr
, " handle=%p,", req
->handle
);
2670 fprintf( stderr
, " active_hooks=%08x", req
->active_hooks
);
2673 static void dump_remove_hook_request( const struct remove_hook_request
*req
)
2675 fprintf( stderr
, " handle=%p,", req
->handle
);
2676 fprintf( stderr
, " id=%d,", req
->id
);
2677 fprintf( stderr
, " proc=%p", req
->proc
);
2680 static void dump_remove_hook_reply( const struct remove_hook_reply
*req
)
2682 fprintf( stderr
, " active_hooks=%08x", req
->active_hooks
);
2685 static void dump_start_hook_chain_request( const struct start_hook_chain_request
*req
)
2687 fprintf( stderr
, " id=%d,", req
->id
);
2688 fprintf( stderr
, " event=%d,", req
->event
);
2689 fprintf( stderr
, " window=%p,", req
->window
);
2690 fprintf( stderr
, " object_id=%d,", req
->object_id
);
2691 fprintf( stderr
, " child_id=%d", req
->child_id
);
2694 static void dump_start_hook_chain_reply( const struct start_hook_chain_reply
*req
)
2696 fprintf( stderr
, " handle=%p,", req
->handle
);
2697 fprintf( stderr
, " pid=%04x,", req
->pid
);
2698 fprintf( stderr
, " tid=%04x,", req
->tid
);
2699 fprintf( stderr
, " proc=%p,", req
->proc
);
2700 fprintf( stderr
, " unicode=%d,", req
->unicode
);
2701 fprintf( stderr
, " active_hooks=%08x,", req
->active_hooks
);
2702 fprintf( stderr
, " module=" );
2703 dump_varargs_unicode_str( cur_size
);
2706 static void dump_finish_hook_chain_request( const struct finish_hook_chain_request
*req
)
2708 fprintf( stderr
, " id=%d", req
->id
);
2711 static void dump_get_next_hook_request( const struct get_next_hook_request
*req
)
2713 fprintf( stderr
, " handle=%p,", req
->handle
);
2714 fprintf( stderr
, " event=%d,", req
->event
);
2715 fprintf( stderr
, " window=%p,", req
->window
);
2716 fprintf( stderr
, " object_id=%d,", req
->object_id
);
2717 fprintf( stderr
, " child_id=%d", req
->child_id
);
2720 static void dump_get_next_hook_reply( const struct get_next_hook_reply
*req
)
2722 fprintf( stderr
, " next=%p,", req
->next
);
2723 fprintf( stderr
, " id=%d,", req
->id
);
2724 fprintf( stderr
, " pid=%04x,", req
->pid
);
2725 fprintf( stderr
, " tid=%04x,", req
->tid
);
2726 fprintf( stderr
, " proc=%p,", req
->proc
);
2727 fprintf( stderr
, " prev_unicode=%d,", req
->prev_unicode
);
2728 fprintf( stderr
, " next_unicode=%d,", req
->next_unicode
);
2729 fprintf( stderr
, " module=" );
2730 dump_varargs_unicode_str( cur_size
);
2733 static void dump_create_class_request( const struct create_class_request
*req
)
2735 fprintf( stderr
, " local=%d,", req
->local
);
2736 fprintf( stderr
, " atom=%04x,", req
->atom
);
2737 fprintf( stderr
, " style=%08x,", req
->style
);
2738 fprintf( stderr
, " instance=%p,", req
->instance
);
2739 fprintf( stderr
, " extra=%d,", req
->extra
);
2740 fprintf( stderr
, " win_extra=%d,", req
->win_extra
);
2741 fprintf( stderr
, " client_ptr=%p", req
->client_ptr
);
2744 static void dump_destroy_class_request( const struct destroy_class_request
*req
)
2746 fprintf( stderr
, " atom=%04x,", req
->atom
);
2747 fprintf( stderr
, " instance=%p", req
->instance
);
2750 static void dump_destroy_class_reply( const struct destroy_class_reply
*req
)
2752 fprintf( stderr
, " client_ptr=%p", req
->client_ptr
);
2755 static void dump_set_class_info_request( const struct set_class_info_request
*req
)
2757 fprintf( stderr
, " window=%p,", req
->window
);
2758 fprintf( stderr
, " flags=%08x,", req
->flags
);
2759 fprintf( stderr
, " atom=%04x,", req
->atom
);
2760 fprintf( stderr
, " style=%08x,", req
->style
);
2761 fprintf( stderr
, " win_extra=%d,", req
->win_extra
);
2762 fprintf( stderr
, " instance=%p,", req
->instance
);
2763 fprintf( stderr
, " extra_offset=%d,", req
->extra_offset
);
2764 fprintf( stderr
, " extra_size=%d,", req
->extra_size
);
2765 fprintf( stderr
, " extra_value=%08x", req
->extra_value
);
2768 static void dump_set_class_info_reply( const struct set_class_info_reply
*req
)
2770 fprintf( stderr
, " old_atom=%04x,", req
->old_atom
);
2771 fprintf( stderr
, " old_style=%08x,", req
->old_style
);
2772 fprintf( stderr
, " old_extra=%d,", req
->old_extra
);
2773 fprintf( stderr
, " old_win_extra=%d,", req
->old_win_extra
);
2774 fprintf( stderr
, " old_instance=%p,", req
->old_instance
);
2775 fprintf( stderr
, " old_extra_value=%08x", req
->old_extra_value
);
2778 static void dump_set_clipboard_info_request( const struct set_clipboard_info_request
*req
)
2780 fprintf( stderr
, " flags=%08x,", req
->flags
);
2781 fprintf( stderr
, " clipboard=%p,", req
->clipboard
);
2782 fprintf( stderr
, " owner=%p,", req
->owner
);
2783 fprintf( stderr
, " viewer=%p,", req
->viewer
);
2784 fprintf( stderr
, " seqno=%08x", req
->seqno
);
2787 static void dump_set_clipboard_info_reply( const struct set_clipboard_info_reply
*req
)
2789 fprintf( stderr
, " flags=%08x,", req
->flags
);
2790 fprintf( stderr
, " old_clipboard=%p,", req
->old_clipboard
);
2791 fprintf( stderr
, " old_owner=%p,", req
->old_owner
);
2792 fprintf( stderr
, " old_viewer=%p,", req
->old_viewer
);
2793 fprintf( stderr
, " seqno=%08x", req
->seqno
);
2796 static void dump_open_token_request( const struct open_token_request
*req
)
2798 fprintf( stderr
, " handle=%p,", req
->handle
);
2799 fprintf( stderr
, " flags=%08x", req
->flags
);
2802 static void dump_open_token_reply( const struct open_token_reply
*req
)
2804 fprintf( stderr
, " token=%p", req
->token
);
2807 static void dump_set_global_windows_request( const struct set_global_windows_request
*req
)
2809 fprintf( stderr
, " flags=%08x,", req
->flags
);
2810 fprintf( stderr
, " shell_window=%p,", req
->shell_window
);
2811 fprintf( stderr
, " shell_listview=%p,", req
->shell_listview
);
2812 fprintf( stderr
, " progman_window=%p,", req
->progman_window
);
2813 fprintf( stderr
, " taskman_window=%p", req
->taskman_window
);
2816 static void dump_set_global_windows_reply( const struct set_global_windows_reply
*req
)
2818 fprintf( stderr
, " old_shell_window=%p,", req
->old_shell_window
);
2819 fprintf( stderr
, " old_shell_listview=%p,", req
->old_shell_listview
);
2820 fprintf( stderr
, " old_progman_window=%p,", req
->old_progman_window
);
2821 fprintf( stderr
, " old_taskman_window=%p", req
->old_taskman_window
);
2824 static void dump_adjust_token_privileges_request( const struct adjust_token_privileges_request
*req
)
2826 fprintf( stderr
, " handle=%p,", req
->handle
);
2827 fprintf( stderr
, " disable_all=%d,", req
->disable_all
);
2828 fprintf( stderr
, " get_modified_state=%d,", req
->get_modified_state
);
2829 fprintf( stderr
, " privileges=" );
2830 dump_varargs_LUID_AND_ATTRIBUTES( cur_size
);
2833 static void dump_adjust_token_privileges_reply( const struct adjust_token_privileges_reply
*req
)
2835 fprintf( stderr
, " len=%08x,", req
->len
);
2836 fprintf( stderr
, " privileges=" );
2837 dump_varargs_LUID_AND_ATTRIBUTES( cur_size
);
2840 static void dump_get_token_privileges_request( const struct get_token_privileges_request
*req
)
2842 fprintf( stderr
, " handle=%p", req
->handle
);
2845 static void dump_get_token_privileges_reply( const struct get_token_privileges_reply
*req
)
2847 fprintf( stderr
, " len=%08x,", req
->len
);
2848 fprintf( stderr
, " privileges=" );
2849 dump_varargs_LUID_AND_ATTRIBUTES( cur_size
);
2852 static void dump_check_token_privileges_request( const struct check_token_privileges_request
*req
)
2854 fprintf( stderr
, " handle=%p,", req
->handle
);
2855 fprintf( stderr
, " all_required=%d,", req
->all_required
);
2856 fprintf( stderr
, " privileges=" );
2857 dump_varargs_LUID_AND_ATTRIBUTES( cur_size
);
2860 static void dump_check_token_privileges_reply( const struct check_token_privileges_reply
*req
)
2862 fprintf( stderr
, " has_privileges=%d,", req
->has_privileges
);
2863 fprintf( stderr
, " privileges=" );
2864 dump_varargs_LUID_AND_ATTRIBUTES( cur_size
);
2867 static void dump_duplicate_token_request( const struct duplicate_token_request
*req
)
2869 fprintf( stderr
, " handle=%p,", req
->handle
);
2870 fprintf( stderr
, " access=%08x,", req
->access
);
2871 fprintf( stderr
, " inherit=%d,", req
->inherit
);
2872 fprintf( stderr
, " primary=%d,", req
->primary
);
2873 fprintf( stderr
, " impersonation_level=%d", req
->impersonation_level
);
2876 static void dump_duplicate_token_reply( const struct duplicate_token_reply
*req
)
2878 fprintf( stderr
, " new_handle=%p", req
->new_handle
);
2881 static void dump_access_check_request( const struct access_check_request
*req
)
2883 fprintf( stderr
, " handle=%p,", req
->handle
);
2884 fprintf( stderr
, " desired_access=%08x,", req
->desired_access
);
2885 fprintf( stderr
, " mapping_read=%08x,", req
->mapping_read
);
2886 fprintf( stderr
, " mapping_write=%08x,", req
->mapping_write
);
2887 fprintf( stderr
, " mapping_execute=%08x,", req
->mapping_execute
);
2888 fprintf( stderr
, " mapping_all=%08x,", req
->mapping_all
);
2889 fprintf( stderr
, " sd=" );
2890 dump_varargs_security_descriptor( cur_size
);
2893 static void dump_access_check_reply( const struct access_check_reply
*req
)
2895 fprintf( stderr
, " access_granted=%08x,", req
->access_granted
);
2896 fprintf( stderr
, " access_status=%08x,", req
->access_status
);
2897 fprintf( stderr
, " privileges_len=%08x,", req
->privileges_len
);
2898 fprintf( stderr
, " privileges=" );
2899 dump_varargs_LUID_AND_ATTRIBUTES( cur_size
);
2902 static void dump_create_mailslot_request( const struct create_mailslot_request
*req
)
2904 fprintf( stderr
, " max_msgsize=%08x,", req
->max_msgsize
);
2905 fprintf( stderr
, " read_timeout=%08x,", req
->read_timeout
);
2906 fprintf( stderr
, " inherit=%d,", req
->inherit
);
2907 fprintf( stderr
, " name=" );
2908 dump_varargs_unicode_str( cur_size
);
2911 static void dump_create_mailslot_reply( const struct create_mailslot_reply
*req
)
2913 fprintf( stderr
, " handle=%p", req
->handle
);
2916 static void dump_open_mailslot_request( const struct open_mailslot_request
*req
)
2918 fprintf( stderr
, " access=%08x,", req
->access
);
2919 fprintf( stderr
, " inherit=%d,", req
->inherit
);
2920 fprintf( stderr
, " sharing=%08x,", req
->sharing
);
2921 fprintf( stderr
, " name=" );
2922 dump_varargs_unicode_str( cur_size
);
2925 static void dump_open_mailslot_reply( const struct open_mailslot_reply
*req
)
2927 fprintf( stderr
, " handle=%p", req
->handle
);
2930 static void dump_set_mailslot_info_request( const struct set_mailslot_info_request
*req
)
2932 fprintf( stderr
, " handle=%p,", req
->handle
);
2933 fprintf( stderr
, " flags=%08x,", req
->flags
);
2934 fprintf( stderr
, " read_timeout=%08x", req
->read_timeout
);
2937 static void dump_set_mailslot_info_reply( const struct set_mailslot_info_reply
*req
)
2939 fprintf( stderr
, " max_msgsize=%08x,", req
->max_msgsize
);
2940 fprintf( stderr
, " read_timeout=%08x,", req
->read_timeout
);
2941 fprintf( stderr
, " msg_count=%08x,", req
->msg_count
);
2942 fprintf( stderr
, " next_msgsize=%08x", req
->next_msgsize
);
2945 static const dump_func req_dumpers
[REQ_NB_REQUESTS
] = {
2946 (dump_func
)dump_new_process_request
,
2947 (dump_func
)dump_get_new_process_info_request
,
2948 (dump_func
)dump_new_thread_request
,
2949 (dump_func
)dump_boot_done_request
,
2950 (dump_func
)dump_init_process_request
,
2951 (dump_func
)dump_get_startup_info_request
,
2952 (dump_func
)dump_init_process_done_request
,
2953 (dump_func
)dump_init_thread_request
,
2954 (dump_func
)dump_terminate_process_request
,
2955 (dump_func
)dump_terminate_thread_request
,
2956 (dump_func
)dump_get_process_info_request
,
2957 (dump_func
)dump_set_process_info_request
,
2958 (dump_func
)dump_get_thread_info_request
,
2959 (dump_func
)dump_set_thread_info_request
,
2960 (dump_func
)dump_get_dll_info_request
,
2961 (dump_func
)dump_suspend_thread_request
,
2962 (dump_func
)dump_resume_thread_request
,
2963 (dump_func
)dump_load_dll_request
,
2964 (dump_func
)dump_unload_dll_request
,
2965 (dump_func
)dump_queue_apc_request
,
2966 (dump_func
)dump_get_apc_request
,
2967 (dump_func
)dump_close_handle_request
,
2968 (dump_func
)dump_set_handle_info_request
,
2969 (dump_func
)dump_dup_handle_request
,
2970 (dump_func
)dump_open_process_request
,
2971 (dump_func
)dump_open_thread_request
,
2972 (dump_func
)dump_select_request
,
2973 (dump_func
)dump_create_event_request
,
2974 (dump_func
)dump_event_op_request
,
2975 (dump_func
)dump_open_event_request
,
2976 (dump_func
)dump_create_mutex_request
,
2977 (dump_func
)dump_release_mutex_request
,
2978 (dump_func
)dump_open_mutex_request
,
2979 (dump_func
)dump_create_semaphore_request
,
2980 (dump_func
)dump_release_semaphore_request
,
2981 (dump_func
)dump_open_semaphore_request
,
2982 (dump_func
)dump_create_file_request
,
2983 (dump_func
)dump_alloc_file_handle_request
,
2984 (dump_func
)dump_get_handle_fd_request
,
2985 (dump_func
)dump_flush_file_request
,
2986 (dump_func
)dump_lock_file_request
,
2987 (dump_func
)dump_unlock_file_request
,
2988 (dump_func
)dump_create_socket_request
,
2989 (dump_func
)dump_accept_socket_request
,
2990 (dump_func
)dump_set_socket_event_request
,
2991 (dump_func
)dump_get_socket_event_request
,
2992 (dump_func
)dump_enable_socket_event_request
,
2993 (dump_func
)dump_set_socket_deferred_request
,
2994 (dump_func
)dump_alloc_console_request
,
2995 (dump_func
)dump_free_console_request
,
2996 (dump_func
)dump_get_console_renderer_events_request
,
2997 (dump_func
)dump_open_console_request
,
2998 (dump_func
)dump_get_console_wait_event_request
,
2999 (dump_func
)dump_get_console_mode_request
,
3000 (dump_func
)dump_set_console_mode_request
,
3001 (dump_func
)dump_set_console_input_info_request
,
3002 (dump_func
)dump_get_console_input_info_request
,
3003 (dump_func
)dump_append_console_input_history_request
,
3004 (dump_func
)dump_get_console_input_history_request
,
3005 (dump_func
)dump_create_console_output_request
,
3006 (dump_func
)dump_set_console_output_info_request
,
3007 (dump_func
)dump_get_console_output_info_request
,
3008 (dump_func
)dump_write_console_input_request
,
3009 (dump_func
)dump_read_console_input_request
,
3010 (dump_func
)dump_write_console_output_request
,
3011 (dump_func
)dump_fill_console_output_request
,
3012 (dump_func
)dump_read_console_output_request
,
3013 (dump_func
)dump_move_console_output_request
,
3014 (dump_func
)dump_send_console_signal_request
,
3015 (dump_func
)dump_create_change_notification_request
,
3016 (dump_func
)dump_next_change_notification_request
,
3017 (dump_func
)dump_create_mapping_request
,
3018 (dump_func
)dump_open_mapping_request
,
3019 (dump_func
)dump_get_mapping_info_request
,
3020 (dump_func
)dump_create_snapshot_request
,
3021 (dump_func
)dump_next_process_request
,
3022 (dump_func
)dump_next_thread_request
,
3023 (dump_func
)dump_next_module_request
,
3024 (dump_func
)dump_wait_debug_event_request
,
3025 (dump_func
)dump_queue_exception_event_request
,
3026 (dump_func
)dump_get_exception_status_request
,
3027 (dump_func
)dump_output_debug_string_request
,
3028 (dump_func
)dump_continue_debug_event_request
,
3029 (dump_func
)dump_debug_process_request
,
3030 (dump_func
)dump_debug_break_request
,
3031 (dump_func
)dump_set_debugger_kill_on_exit_request
,
3032 (dump_func
)dump_read_process_memory_request
,
3033 (dump_func
)dump_write_process_memory_request
,
3034 (dump_func
)dump_create_key_request
,
3035 (dump_func
)dump_open_key_request
,
3036 (dump_func
)dump_delete_key_request
,
3037 (dump_func
)dump_flush_key_request
,
3038 (dump_func
)dump_enum_key_request
,
3039 (dump_func
)dump_set_key_value_request
,
3040 (dump_func
)dump_get_key_value_request
,
3041 (dump_func
)dump_enum_key_value_request
,
3042 (dump_func
)dump_delete_key_value_request
,
3043 (dump_func
)dump_load_registry_request
,
3044 (dump_func
)dump_unload_registry_request
,
3045 (dump_func
)dump_save_registry_request
,
3046 (dump_func
)dump_load_user_registries_request
,
3047 (dump_func
)dump_set_registry_notification_request
,
3048 (dump_func
)dump_create_timer_request
,
3049 (dump_func
)dump_open_timer_request
,
3050 (dump_func
)dump_set_timer_request
,
3051 (dump_func
)dump_cancel_timer_request
,
3052 (dump_func
)dump_get_timer_info_request
,
3053 (dump_func
)dump_get_thread_context_request
,
3054 (dump_func
)dump_set_thread_context_request
,
3055 (dump_func
)dump_get_selector_entry_request
,
3056 (dump_func
)dump_add_atom_request
,
3057 (dump_func
)dump_delete_atom_request
,
3058 (dump_func
)dump_find_atom_request
,
3059 (dump_func
)dump_get_atom_information_request
,
3060 (dump_func
)dump_set_atom_information_request
,
3061 (dump_func
)dump_empty_atom_table_request
,
3062 (dump_func
)dump_init_atom_table_request
,
3063 (dump_func
)dump_get_msg_queue_request
,
3064 (dump_func
)dump_set_queue_mask_request
,
3065 (dump_func
)dump_get_queue_status_request
,
3066 (dump_func
)dump_wait_input_idle_request
,
3067 (dump_func
)dump_send_message_request
,
3068 (dump_func
)dump_get_message_request
,
3069 (dump_func
)dump_reply_message_request
,
3070 (dump_func
)dump_accept_hardware_message_request
,
3071 (dump_func
)dump_get_message_reply_request
,
3072 (dump_func
)dump_set_win_timer_request
,
3073 (dump_func
)dump_kill_win_timer_request
,
3074 (dump_func
)dump_get_serial_info_request
,
3075 (dump_func
)dump_set_serial_info_request
,
3076 (dump_func
)dump_register_async_request
,
3077 (dump_func
)dump_cancel_async_request
,
3078 (dump_func
)dump_create_named_pipe_request
,
3079 (dump_func
)dump_open_named_pipe_request
,
3080 (dump_func
)dump_connect_named_pipe_request
,
3081 (dump_func
)dump_wait_named_pipe_request
,
3082 (dump_func
)dump_disconnect_named_pipe_request
,
3083 (dump_func
)dump_get_named_pipe_info_request
,
3084 (dump_func
)dump_create_window_request
,
3085 (dump_func
)dump_destroy_window_request
,
3086 (dump_func
)dump_set_window_owner_request
,
3087 (dump_func
)dump_get_window_info_request
,
3088 (dump_func
)dump_set_window_info_request
,
3089 (dump_func
)dump_set_parent_request
,
3090 (dump_func
)dump_get_window_parents_request
,
3091 (dump_func
)dump_get_window_children_request
,
3092 (dump_func
)dump_get_window_children_from_point_request
,
3093 (dump_func
)dump_get_window_tree_request
,
3094 (dump_func
)dump_set_window_pos_request
,
3095 (dump_func
)dump_get_window_rectangles_request
,
3096 (dump_func
)dump_get_window_text_request
,
3097 (dump_func
)dump_set_window_text_request
,
3098 (dump_func
)dump_get_windows_offset_request
,
3099 (dump_func
)dump_get_visible_region_request
,
3100 (dump_func
)dump_get_window_region_request
,
3101 (dump_func
)dump_set_window_region_request
,
3102 (dump_func
)dump_get_update_region_request
,
3103 (dump_func
)dump_update_window_zorder_request
,
3104 (dump_func
)dump_redraw_window_request
,
3105 (dump_func
)dump_set_window_property_request
,
3106 (dump_func
)dump_remove_window_property_request
,
3107 (dump_func
)dump_get_window_property_request
,
3108 (dump_func
)dump_get_window_properties_request
,
3109 (dump_func
)dump_attach_thread_input_request
,
3110 (dump_func
)dump_get_thread_input_request
,
3111 (dump_func
)dump_get_last_input_time_request
,
3112 (dump_func
)dump_get_key_state_request
,
3113 (dump_func
)dump_set_key_state_request
,
3114 (dump_func
)dump_set_foreground_window_request
,
3115 (dump_func
)dump_set_focus_window_request
,
3116 (dump_func
)dump_set_active_window_request
,
3117 (dump_func
)dump_set_capture_window_request
,
3118 (dump_func
)dump_set_caret_window_request
,
3119 (dump_func
)dump_set_caret_info_request
,
3120 (dump_func
)dump_set_hook_request
,
3121 (dump_func
)dump_remove_hook_request
,
3122 (dump_func
)dump_start_hook_chain_request
,
3123 (dump_func
)dump_finish_hook_chain_request
,
3124 (dump_func
)dump_get_next_hook_request
,
3125 (dump_func
)dump_create_class_request
,
3126 (dump_func
)dump_destroy_class_request
,
3127 (dump_func
)dump_set_class_info_request
,
3128 (dump_func
)dump_set_clipboard_info_request
,
3129 (dump_func
)dump_open_token_request
,
3130 (dump_func
)dump_set_global_windows_request
,
3131 (dump_func
)dump_adjust_token_privileges_request
,
3132 (dump_func
)dump_get_token_privileges_request
,
3133 (dump_func
)dump_check_token_privileges_request
,
3134 (dump_func
)dump_duplicate_token_request
,
3135 (dump_func
)dump_access_check_request
,
3136 (dump_func
)dump_create_mailslot_request
,
3137 (dump_func
)dump_open_mailslot_request
,
3138 (dump_func
)dump_set_mailslot_info_request
,
3141 static const dump_func reply_dumpers
[REQ_NB_REQUESTS
] = {
3142 (dump_func
)dump_new_process_reply
,
3143 (dump_func
)dump_get_new_process_info_reply
,
3144 (dump_func
)dump_new_thread_reply
,
3146 (dump_func
)dump_init_process_reply
,
3147 (dump_func
)dump_get_startup_info_reply
,
3149 (dump_func
)dump_init_thread_reply
,
3150 (dump_func
)dump_terminate_process_reply
,
3151 (dump_func
)dump_terminate_thread_reply
,
3152 (dump_func
)dump_get_process_info_reply
,
3154 (dump_func
)dump_get_thread_info_reply
,
3156 (dump_func
)dump_get_dll_info_reply
,
3157 (dump_func
)dump_suspend_thread_reply
,
3158 (dump_func
)dump_resume_thread_reply
,
3162 (dump_func
)dump_get_apc_reply
,
3163 (dump_func
)dump_close_handle_reply
,
3164 (dump_func
)dump_set_handle_info_reply
,
3165 (dump_func
)dump_dup_handle_reply
,
3166 (dump_func
)dump_open_process_reply
,
3167 (dump_func
)dump_open_thread_reply
,
3169 (dump_func
)dump_create_event_reply
,
3171 (dump_func
)dump_open_event_reply
,
3172 (dump_func
)dump_create_mutex_reply
,
3173 (dump_func
)dump_release_mutex_reply
,
3174 (dump_func
)dump_open_mutex_reply
,
3175 (dump_func
)dump_create_semaphore_reply
,
3176 (dump_func
)dump_release_semaphore_reply
,
3177 (dump_func
)dump_open_semaphore_reply
,
3178 (dump_func
)dump_create_file_reply
,
3179 (dump_func
)dump_alloc_file_handle_reply
,
3180 (dump_func
)dump_get_handle_fd_reply
,
3181 (dump_func
)dump_flush_file_reply
,
3182 (dump_func
)dump_lock_file_reply
,
3184 (dump_func
)dump_create_socket_reply
,
3185 (dump_func
)dump_accept_socket_reply
,
3187 (dump_func
)dump_get_socket_event_reply
,
3190 (dump_func
)dump_alloc_console_reply
,
3192 (dump_func
)dump_get_console_renderer_events_reply
,
3193 (dump_func
)dump_open_console_reply
,
3194 (dump_func
)dump_get_console_wait_event_reply
,
3195 (dump_func
)dump_get_console_mode_reply
,
3198 (dump_func
)dump_get_console_input_info_reply
,
3200 (dump_func
)dump_get_console_input_history_reply
,
3201 (dump_func
)dump_create_console_output_reply
,
3203 (dump_func
)dump_get_console_output_info_reply
,
3204 (dump_func
)dump_write_console_input_reply
,
3205 (dump_func
)dump_read_console_input_reply
,
3206 (dump_func
)dump_write_console_output_reply
,
3207 (dump_func
)dump_fill_console_output_reply
,
3208 (dump_func
)dump_read_console_output_reply
,
3211 (dump_func
)dump_create_change_notification_reply
,
3213 (dump_func
)dump_create_mapping_reply
,
3214 (dump_func
)dump_open_mapping_reply
,
3215 (dump_func
)dump_get_mapping_info_reply
,
3216 (dump_func
)dump_create_snapshot_reply
,
3217 (dump_func
)dump_next_process_reply
,
3218 (dump_func
)dump_next_thread_reply
,
3219 (dump_func
)dump_next_module_reply
,
3220 (dump_func
)dump_wait_debug_event_reply
,
3221 (dump_func
)dump_queue_exception_event_reply
,
3222 (dump_func
)dump_get_exception_status_reply
,
3226 (dump_func
)dump_debug_break_reply
,
3228 (dump_func
)dump_read_process_memory_reply
,
3230 (dump_func
)dump_create_key_reply
,
3231 (dump_func
)dump_open_key_reply
,
3234 (dump_func
)dump_enum_key_reply
,
3236 (dump_func
)dump_get_key_value_reply
,
3237 (dump_func
)dump_enum_key_value_reply
,
3244 (dump_func
)dump_create_timer_reply
,
3245 (dump_func
)dump_open_timer_reply
,
3246 (dump_func
)dump_set_timer_reply
,
3247 (dump_func
)dump_cancel_timer_reply
,
3248 (dump_func
)dump_get_timer_info_reply
,
3249 (dump_func
)dump_get_thread_context_reply
,
3251 (dump_func
)dump_get_selector_entry_reply
,
3252 (dump_func
)dump_add_atom_reply
,
3254 (dump_func
)dump_find_atom_reply
,
3255 (dump_func
)dump_get_atom_information_reply
,
3258 (dump_func
)dump_init_atom_table_reply
,
3259 (dump_func
)dump_get_msg_queue_reply
,
3260 (dump_func
)dump_set_queue_mask_reply
,
3261 (dump_func
)dump_get_queue_status_reply
,
3262 (dump_func
)dump_wait_input_idle_reply
,
3264 (dump_func
)dump_get_message_reply
,
3267 (dump_func
)dump_get_message_reply_reply
,
3268 (dump_func
)dump_set_win_timer_reply
,
3270 (dump_func
)dump_get_serial_info_reply
,
3274 (dump_func
)dump_create_named_pipe_reply
,
3275 (dump_func
)dump_open_named_pipe_reply
,
3278 (dump_func
)dump_disconnect_named_pipe_reply
,
3279 (dump_func
)dump_get_named_pipe_info_reply
,
3280 (dump_func
)dump_create_window_reply
,
3282 (dump_func
)dump_set_window_owner_reply
,
3283 (dump_func
)dump_get_window_info_reply
,
3284 (dump_func
)dump_set_window_info_reply
,
3285 (dump_func
)dump_set_parent_reply
,
3286 (dump_func
)dump_get_window_parents_reply
,
3287 (dump_func
)dump_get_window_children_reply
,
3288 (dump_func
)dump_get_window_children_from_point_reply
,
3289 (dump_func
)dump_get_window_tree_reply
,
3290 (dump_func
)dump_set_window_pos_reply
,
3291 (dump_func
)dump_get_window_rectangles_reply
,
3292 (dump_func
)dump_get_window_text_reply
,
3294 (dump_func
)dump_get_windows_offset_reply
,
3295 (dump_func
)dump_get_visible_region_reply
,
3296 (dump_func
)dump_get_window_region_reply
,
3298 (dump_func
)dump_get_update_region_reply
,
3302 (dump_func
)dump_remove_window_property_reply
,
3303 (dump_func
)dump_get_window_property_reply
,
3304 (dump_func
)dump_get_window_properties_reply
,
3306 (dump_func
)dump_get_thread_input_reply
,
3307 (dump_func
)dump_get_last_input_time_reply
,
3308 (dump_func
)dump_get_key_state_reply
,
3310 (dump_func
)dump_set_foreground_window_reply
,
3311 (dump_func
)dump_set_focus_window_reply
,
3312 (dump_func
)dump_set_active_window_reply
,
3313 (dump_func
)dump_set_capture_window_reply
,
3314 (dump_func
)dump_set_caret_window_reply
,
3315 (dump_func
)dump_set_caret_info_reply
,
3316 (dump_func
)dump_set_hook_reply
,
3317 (dump_func
)dump_remove_hook_reply
,
3318 (dump_func
)dump_start_hook_chain_reply
,
3320 (dump_func
)dump_get_next_hook_reply
,
3322 (dump_func
)dump_destroy_class_reply
,
3323 (dump_func
)dump_set_class_info_reply
,
3324 (dump_func
)dump_set_clipboard_info_reply
,
3325 (dump_func
)dump_open_token_reply
,
3326 (dump_func
)dump_set_global_windows_reply
,
3327 (dump_func
)dump_adjust_token_privileges_reply
,
3328 (dump_func
)dump_get_token_privileges_reply
,
3329 (dump_func
)dump_check_token_privileges_reply
,
3330 (dump_func
)dump_duplicate_token_reply
,
3331 (dump_func
)dump_access_check_reply
,
3332 (dump_func
)dump_create_mailslot_reply
,
3333 (dump_func
)dump_open_mailslot_reply
,
3334 (dump_func
)dump_set_mailslot_info_reply
,
3337 static const char * const req_names
[REQ_NB_REQUESTS
] = {
3339 "get_new_process_info",
3344 "init_process_done",
3346 "terminate_process",
3372 "release_semaphore",
3375 "alloc_file_handle",
3384 "enable_socket_event",
3385 "set_socket_deferred",
3388 "get_console_renderer_events",
3390 "get_console_wait_event",
3393 "set_console_input_info",
3394 "get_console_input_info",
3395 "append_console_input_history",
3396 "get_console_input_history",
3397 "create_console_output",
3398 "set_console_output_info",
3399 "get_console_output_info",
3400 "write_console_input",
3401 "read_console_input",
3402 "write_console_output",
3403 "fill_console_output",
3404 "read_console_output",
3405 "move_console_output",
3406 "send_console_signal",
3407 "create_change_notification",
3408 "next_change_notification",
3417 "queue_exception_event",
3418 "get_exception_status",
3419 "output_debug_string",
3420 "continue_debug_event",
3423 "set_debugger_kill_on_exit",
3424 "read_process_memory",
3425 "write_process_memory",
3438 "load_user_registries",
3439 "set_registry_notification",
3445 "get_thread_context",
3446 "set_thread_context",
3447 "get_selector_entry",
3451 "get_atom_information",
3452 "set_atom_information",
3462 "accept_hardware_message",
3463 "get_message_reply",
3470 "create_named_pipe",
3472 "connect_named_pipe",
3474 "disconnect_named_pipe",
3475 "get_named_pipe_info",
3482 "get_window_parents",
3483 "get_window_children",
3484 "get_window_children_from_point",
3487 "get_window_rectangles",
3490 "get_windows_offset",
3491 "get_visible_region",
3492 "get_window_region",
3493 "set_window_region",
3494 "get_update_region",
3495 "update_window_zorder",
3497 "set_window_property",
3498 "remove_window_property",
3499 "get_window_property",
3500 "get_window_properties",
3501 "attach_thread_input",
3503 "get_last_input_time",
3506 "set_foreground_window",
3508 "set_active_window",
3509 "set_capture_window",
3515 "finish_hook_chain",
3520 "set_clipboard_info",
3522 "set_global_windows",
3523 "adjust_token_privileges",
3524 "get_token_privileges",
3525 "check_token_privileges",
3530 "set_mailslot_info",
3533 /* ### make_requests end ### */
3534 /* Everything above this line is generated automatically by tools/make_requests */
3536 static const char *get_status_name( unsigned int status
)
3538 #define NAME(status) { #status, STATUS_##status }
3539 #define NAME_WIN32(error) { #error, 0xc0010000 | error }
3546 NAME(ACCESS_DENIED
),
3547 NAME(ACCESS_VIOLATION
),
3549 NAME(BUFFER_OVERFLOW
),
3550 NAME(CHILD_MUST_BE_VOLATILE
),
3551 NAME(DIRECTORY_NOT_EMPTY
),
3553 NAME(DLL_NOT_FOUND
),
3554 NAME(FILE_IS_A_DIRECTORY
),
3555 NAME(FILE_LOCK_CONFLICT
),
3556 NAME(INVALID_FILE_FOR_SECTION
),
3557 NAME(INVALID_HANDLE
),
3558 NAME(INVALID_PARAMETER
),
3560 NAME(MEDIA_WRITE_PROTECTED
),
3561 NAME(MUTANT_NOT_OWNED
),
3562 NAME(NOT_A_DIRECTORY
),
3563 NAME(NOT_IMPLEMENTED
),
3564 NAME(NOT_REGISTRY_FILE
),
3565 NAME(NO_DATA_DETECTED
),
3567 NAME(NO_MORE_ENTRIES
),
3568 NAME(NO_MORE_FILES
),
3570 NAME(OBJECT_NAME_COLLISION
),
3571 NAME(OBJECT_NAME_INVALID
),
3572 NAME(OBJECT_NAME_NOT_FOUND
),
3573 NAME(OBJECT_PATH_INVALID
),
3574 NAME(OBJECT_TYPE_MISMATCH
),
3577 NAME(PIPE_CONNECTED
),
3578 NAME(PIPE_DISCONNECTED
),
3579 NAME(PIPE_LISTENING
),
3580 NAME(PIPE_NOT_AVAILABLE
),
3581 NAME(SEMAPHORE_LIMIT_EXCEEDED
),
3582 NAME(SHARING_VIOLATION
),
3583 NAME(SUSPEND_COUNT_EXCEEDED
),
3587 NAME_WIN32(ERROR_INVALID_INDEX
),
3588 NAME_WIN32(ERROR_INVALID_THREAD_ID
),
3589 NAME_WIN32(ERROR_NEGATIVE_SEEK
),
3590 NAME_WIN32(ERROR_SEEK
),
3591 { NULL
, 0 } /* terminator */
3596 static char buffer
[10];
3600 for (i
= 0; status_names
[i
].name
; i
++)
3601 if (status_names
[i
].value
== status
) return status_names
[i
].name
;
3603 sprintf( buffer
, "%x", status
);
3607 void trace_request(void)
3609 enum request req
= current
->req
.request_header
.req
;
3610 if (req
< REQ_NB_REQUESTS
)
3612 fprintf( stderr
, "%04x: %s(", current
->id
, req_names
[req
] );
3613 if (req_dumpers
[req
])
3616 cur_data
= get_req_data();
3617 cur_size
= get_req_data_size();
3618 req_dumpers
[req
]( ¤t
->req
);
3620 fprintf( stderr
, " )\n" );
3622 else fprintf( stderr
, "%04x: %d(?)\n", current
->id
, req
);
3625 void trace_reply( enum request req
, const union generic_reply
*reply
)
3627 if (req
< REQ_NB_REQUESTS
)
3629 fprintf( stderr
, "%04x: %s() = %s",
3630 current
->id
, req_names
[req
], get_status_name(current
->error
) );
3631 if (reply_dumpers
[req
])
3633 fprintf( stderr
, " {" );
3635 cur_data
= current
->reply_data
;
3636 cur_size
= reply
->reply_header
.reply_size
;
3637 reply_dumpers
[req
]( reply
);
3638 fprintf( stderr
, " }" );
3640 fputc( '\n', stderr
);
3642 else fprintf( stderr
, "%04x: %d() = %s\n",
3643 current
->id
, req
, get_status_name(current
->error
) );