2 * Server request tracing
4 * Copyright (C) 1999 Alexandre Julliard
6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Lesser General Public
8 * License as published by the Free Software Foundation; either
9 * version 2.1 of the License, or (at your option) any later version.
11 * This library is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 * Lesser General Public License for more details.
16 * You should have received a copy of the GNU Lesser General Public
17 * License along with this library; if not, write to the Free Software
18 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
22 #include "wine/port.h"
27 #include <sys/types.h>
34 #define WIN32_NO_STATUS
43 static const void *cur_data
;
44 static data_size_t cur_size
;
46 /* utility functions */
48 inline static void remove_data( data_size_t size
)
50 cur_data
= (const char *)cur_data
+ size
;
54 static void dump_uints( const int *ptr
, int len
)
59 fprintf( stderr
, "%08x", *ptr
++ );
60 if (--len
) fputc( ',', stderr
);
65 static void dump_abs_time( const abs_time_t
*time
)
69 if (!time
->sec
&& !time
->usec
)
71 fprintf( stderr
, "0" );
74 secs
= time
->sec
- current_time
.tv_sec
;
75 if ((usecs
= time
->usec
- current_time
.tv_usec
) < 0)
80 if (secs
> 0 || (secs
== 0 && usecs
>= 0))
81 fprintf( stderr
, "%d.%06d (+%d.%06d)", time
->sec
, time
->usec
, secs
, usecs
);
83 fprintf( stderr
, "%d.%06d (-%d.%06d)", time
->sec
, time
->usec
, abs(secs
+1), 1000000-usecs
);
86 static void dump_rectangle( const rectangle_t
*rect
)
88 fprintf( stderr
, "{%d,%d;%d,%d}",
89 rect
->left
, rect
->top
, rect
->right
, rect
->bottom
);
92 static void dump_char_info( const char_info_t
*info
)
94 fprintf( stderr
, "{'" );
95 dump_strW( &info
->ch
, 1, stderr
, "\'\'" );
96 fprintf( stderr
, "',%04x}", info
->attr
);
99 static void dump_context( const CONTEXT
*context
)
102 fprintf( stderr
, "{flags=%08x,eax=%08x,ebx=%08x,ecx=%08x,edx=%08x,esi=%08x,edi=%08x,"
103 "ebp=%08x,eip=%08x,esp=%08x,eflags=%08x,cs=%04x,ds=%04x,es=%04x,"
104 "fs=%04x,gs=%04x,dr0=%08x,dr1=%08x,dr2=%08x,dr3=%08x,dr6=%08x,dr7=%08x,",
105 context
->ContextFlags
, context
->Eax
, context
->Ebx
, context
->Ecx
, context
->Edx
,
106 context
->Esi
, context
->Edi
, context
->Ebp
, context
->Eip
, context
->Esp
, context
->EFlags
,
107 context
->SegCs
, context
->SegDs
, context
->SegEs
, context
->SegFs
, context
->SegGs
,
108 context
->Dr0
, context
->Dr1
, context
->Dr2
, context
->Dr3
, context
->Dr6
, context
->Dr7
);
109 fprintf( stderr
, "float=" );
110 dump_uints( (const int *)&context
->FloatSave
, sizeof(context
->FloatSave
) / sizeof(int) );
111 fprintf( stderr
, "}" );
113 dump_uints( (const int *)context
, sizeof(*context
) / sizeof(int) );
117 static void dump_exc_record( const EXCEPTION_RECORD
*rec
)
120 fprintf( stderr
, "{code=%x,flags=%x,rec=%p,addr=%p,params={",
121 rec
->ExceptionCode
, rec
->ExceptionFlags
, rec
->ExceptionRecord
,
122 rec
->ExceptionAddress
);
123 for (i
= 0; i
< min(rec
->NumberParameters
,EXCEPTION_MAXIMUM_PARAMETERS
); i
++)
125 if (i
) fputc( ',', stderr
);
126 fprintf( stderr
, "%lx", rec
->ExceptionInformation
[i
] );
128 fputc( '}', stderr
);
131 static void dump_varargs_ints( data_size_t size
)
133 const int *data
= cur_data
;
134 data_size_t len
= size
/ sizeof(*data
);
136 fputc( '{', stderr
);
139 fprintf( stderr
, "%d", *data
++ );
140 if (--len
) fputc( ',', stderr
);
142 fputc( '}', stderr
);
146 static void dump_varargs_handles( data_size_t size
)
148 const obj_handle_t
*data
= cur_data
;
149 data_size_t len
= size
/ sizeof(*data
);
151 fputc( '{', stderr
);
154 fprintf( stderr
, "%p", *data
++ );
155 if (--len
) fputc( ',', stderr
);
157 fputc( '}', stderr
);
161 static void dump_varargs_user_handles( data_size_t size
)
163 const user_handle_t
*data
= cur_data
;
164 data_size_t len
= size
/ sizeof(*data
);
166 fputc( '{', stderr
);
169 fprintf( stderr
, "%p", *data
++ );
170 if (--len
) fputc( ',', stderr
);
172 fputc( '}', stderr
);
176 static void dump_varargs_bytes( data_size_t size
)
178 const unsigned char *data
= cur_data
;
179 data_size_t len
= size
;
181 fputc( '{', stderr
);
184 fprintf( stderr
, "%02x", *data
++ );
185 if (--len
) fputc( ',', stderr
);
187 fputc( '}', stderr
);
191 static void dump_varargs_string( data_size_t size
)
193 fprintf( stderr
, "\"%.*s\"", (int)size
, (const char *)cur_data
);
197 static void dump_varargs_unicode_str( data_size_t size
)
199 fprintf( stderr
, "L\"" );
200 dump_strW( cur_data
, size
/ sizeof(WCHAR
), stderr
, "\"\"" );
201 fputc( '\"', stderr
);
205 static void dump_varargs_context( data_size_t size
)
209 fprintf( stderr
, "{}" );
212 dump_context( cur_data
);
216 static void dump_varargs_exc_event( data_size_t size
)
218 const CONTEXT
*ptr
= cur_data
;
222 fprintf( stderr
, "{}" );
225 fprintf( stderr
, "{context=" );
227 fprintf( stderr
, ",rec=" );
228 dump_exc_record( (const EXCEPTION_RECORD
*)(ptr
+ 1) );
229 fputc( '}', stderr
);
233 static void dump_varargs_debug_event( data_size_t size
)
235 const debug_event_t
*event
= cur_data
;
239 fprintf( stderr
, "{}" );
244 case EXCEPTION_DEBUG_EVENT
:
245 fprintf( stderr
, "{exception," );
246 dump_exc_record( &event
->info
.exception
.record
);
247 fprintf( stderr
, ",first=%d}", event
->info
.exception
.first
);
249 case CREATE_THREAD_DEBUG_EVENT
:
250 fprintf( stderr
, "{create_thread,thread=%p,teb=%p,start=%p}",
251 event
->info
.create_thread
.handle
, event
->info
.create_thread
.teb
,
252 event
->info
.create_thread
.start
);
254 case CREATE_PROCESS_DEBUG_EVENT
:
255 fprintf( stderr
, "{create_process,file=%p,process=%p,thread=%p,base=%p,offset=%d,"
256 "size=%d,teb=%p,start=%p,name=%p,unicode=%d}",
257 event
->info
.create_process
.file
, event
->info
.create_process
.process
,
258 event
->info
.create_process
.thread
, event
->info
.create_process
.base
,
259 event
->info
.create_process
.dbg_offset
, event
->info
.create_process
.dbg_size
,
260 event
->info
.create_process
.teb
, event
->info
.create_process
.start
,
261 event
->info
.create_process
.name
, event
->info
.create_process
.unicode
);
263 case EXIT_THREAD_DEBUG_EVENT
:
264 fprintf( stderr
, "{exit_thread,code=%d}", event
->info
.exit
.exit_code
);
266 case EXIT_PROCESS_DEBUG_EVENT
:
267 fprintf( stderr
, "{exit_process,code=%d}", event
->info
.exit
.exit_code
);
269 case LOAD_DLL_DEBUG_EVENT
:
270 fprintf( stderr
, "{load_dll,file=%p,base=%p,offset=%d,size=%d,name=%p,unicode=%d}",
271 event
->info
.load_dll
.handle
, event
->info
.load_dll
.base
,
272 event
->info
.load_dll
.dbg_offset
, event
->info
.load_dll
.dbg_size
,
273 event
->info
.load_dll
.name
, event
->info
.load_dll
.unicode
);
275 case UNLOAD_DLL_DEBUG_EVENT
:
276 fprintf( stderr
, "{unload_dll,base=%p}", event
->info
.unload_dll
.base
);
278 case OUTPUT_DEBUG_STRING_EVENT
:
279 fprintf( stderr
, "{output_string,data=%p,unicode=%d,len=%d}",
280 event
->info
.output_string
.string
, event
->info
.output_string
.unicode
,
281 event
->info
.output_string
.length
);
284 fprintf( stderr
, "{rip,err=%d,type=%d}",
285 event
->info
.rip_info
.error
, event
->info
.rip_info
.type
);
287 case 0: /* zero is the code returned on timeouts */
288 fprintf( stderr
, "{}" );
291 fprintf( stderr
, "{code=??? (%d)}", event
->code
);
297 /* dump a unicode string contained in a buffer; helper for dump_varargs_startup_info */
298 static void dump_inline_unicode_string( const UNICODE_STRING
*str
, const void *data
, data_size_t size
)
300 size_t length
= str
->Length
;
301 size_t offset
= (size_t)str
->Buffer
;
303 if (offset
>= size
) return;
304 if (offset
+ length
> size
) length
= size
- offset
;
305 dump_strW( (const WCHAR
*)data
+ offset
/sizeof(WCHAR
), length
/sizeof(WCHAR
), stderr
, "\"\"" );
308 static void dump_varargs_startup_info( data_size_t size
)
310 const RTL_USER_PROCESS_PARAMETERS
*ptr
= cur_data
;
311 RTL_USER_PROCESS_PARAMETERS params
;
313 if (size
< sizeof(params
.Size
))
315 fprintf( stderr
, "{}" );
318 if (size
> ptr
->Size
) size
= ptr
->Size
;
319 memset( ¶ms
, 0, sizeof(params
) );
320 memcpy( ¶ms
, ptr
, min( size
, sizeof(params
) ));
322 fprintf( stderr
, "{AllocationSize=%x,", params
.AllocationSize
);
323 fprintf( stderr
, "Size=%x,", params
.Size
);
324 fprintf( stderr
, "Flags=%x,", params
.Flags
);
325 fprintf( stderr
, "DebugFlags=%x,", params
.DebugFlags
);
326 fprintf( stderr
, "ConsoleHandle=%p,", params
.ConsoleHandle
);
327 fprintf( stderr
, "ConsoleFlags=%x,", params
.ConsoleFlags
);
328 fprintf( stderr
, "hStdInput=%p,", params
.hStdInput
);
329 fprintf( stderr
, "hStdOutput=%p,", params
.hStdOutput
);
330 fprintf( stderr
, "hStdError=%p,", params
.hStdError
);
331 fprintf( stderr
, "CurrentDirectory.Handle=%p,", params
.CurrentDirectory
.Handle
);
332 fprintf( stderr
, "dwX=%d,", params
.dwX
);
333 fprintf( stderr
, "dwY=%d,", params
.dwY
);
334 fprintf( stderr
, "dwXSize=%d,", params
.dwXSize
);
335 fprintf( stderr
, "dwYSize=%d,", params
.dwYSize
);
336 fprintf( stderr
, "dwXCountChars=%d,", params
.dwXCountChars
);
337 fprintf( stderr
, "dwYCountChars=%d,", params
.dwYCountChars
);
338 fprintf( stderr
, "dwFillAttribute=%x,", params
.dwFillAttribute
);
339 fprintf( stderr
, "dwFlags=%x,", params
.dwFlags
);
340 fprintf( stderr
, "wShowWindow=%x,", params
.wShowWindow
);
341 fprintf( stderr
, "CurrentDirectory.DosPath=L\"" );
342 dump_inline_unicode_string( ¶ms
.CurrentDirectory
.DosPath
, cur_data
, size
);
343 fprintf( stderr
, "\",DllPath=L\"" );
344 dump_inline_unicode_string( ¶ms
.DllPath
, cur_data
, size
);
345 fprintf( stderr
, "\",ImagePathName=L\"" );
346 dump_inline_unicode_string( ¶ms
.ImagePathName
, cur_data
, size
);
347 fprintf( stderr
, "\",CommandLine=L\"" );
348 dump_inline_unicode_string( ¶ms
.CommandLine
, cur_data
, size
);
349 fprintf( stderr
, "\",WindowTitle=L\"" );
350 dump_inline_unicode_string( ¶ms
.WindowTitle
, cur_data
, size
);
351 fprintf( stderr
, "\",Desktop=L\"" );
352 dump_inline_unicode_string( ¶ms
.Desktop
, cur_data
, size
);
353 fprintf( stderr
, "\",ShellInfo=L\"" );
354 dump_inline_unicode_string( ¶ms
.ShellInfo
, cur_data
, size
);
355 fprintf( stderr
, "\",RuntimeInfo=L\"" );
356 dump_inline_unicode_string( ¶ms
.RuntimeInfo
, cur_data
, size
);
357 fprintf( stderr
, "\"}" );
361 static void dump_varargs_input_records( data_size_t size
)
363 const INPUT_RECORD
*rec
= cur_data
;
364 data_size_t len
= size
/ sizeof(*rec
);
366 fputc( '{', stderr
);
369 fprintf( stderr
, "{%04x,...}", rec
->EventType
);
371 if (--len
) fputc( ',', stderr
);
373 fputc( '}', stderr
);
377 static void dump_varargs_rectangles( data_size_t size
)
379 const rectangle_t
*rect
= cur_data
;
380 data_size_t len
= size
/ sizeof(*rect
);
382 fputc( '{', stderr
);
385 dump_rectangle( rect
++ );
386 if (--len
) fputc( ',', stderr
);
388 fputc( '}', stderr
);
392 static void dump_varargs_message_data( data_size_t size
)
394 /* FIXME: dump the structured data */
395 dump_varargs_bytes( size
);
398 static void dump_varargs_properties( data_size_t size
)
400 const property_data_t
*prop
= cur_data
;
401 data_size_t len
= size
/ sizeof(*prop
);
403 fputc( '{', stderr
);
406 fprintf( stderr
, "{atom=%04x,str=%d,handle=%p}",
407 prop
->atom
, prop
->string
, prop
->handle
);
409 if (--len
) fputc( ',', stderr
);
411 fputc( '}', stderr
);
415 static void dump_varargs_LUID_AND_ATTRIBUTES( data_size_t size
)
417 const LUID_AND_ATTRIBUTES
*lat
= cur_data
;
418 data_size_t len
= size
/ sizeof(*lat
);
420 fputc( '{', stderr
);
423 fprintf( stderr
, "{luid=%08x%08x,attr=%x}",
424 lat
->Luid
.HighPart
, lat
->Luid
.LowPart
, lat
->Attributes
);
426 if (--len
) fputc( ',', stderr
);
428 fputc( '}', stderr
);
432 static void dump_inline_sid( const SID
*sid
, data_size_t size
)
437 if ((FIELD_OFFSET(SID
, SubAuthority
[0]) > size
) ||
438 (FIELD_OFFSET(SID
, SubAuthority
[sid
->SubAuthorityCount
]) > size
))
440 fprintf( stderr
, "<invalid sid>" );
444 fputc( '{', stderr
);
445 fprintf( stderr
, "S-%u-%u", sid
->Revision
, MAKELONG(
446 MAKEWORD( sid
->IdentifierAuthority
.Value
[5],
447 sid
->IdentifierAuthority
.Value
[4] ),
448 MAKEWORD( sid
->IdentifierAuthority
.Value
[3],
449 sid
->IdentifierAuthority
.Value
[2] ) ) );
450 for (i
= 0; i
< sid
->SubAuthorityCount
; i
++)
451 fprintf( stderr
, "-%u", sid
->SubAuthority
[i
] );
452 fputc( '}', stderr
);
455 static void dump_varargs_SID( data_size_t size
)
457 const SID
*sid
= cur_data
;
458 dump_inline_sid( sid
, size
);
462 static void dump_inline_acl( const ACL
*acl
, data_size_t size
)
464 const ACE_HEADER
*ace
;
466 fputc( '{', stderr
);
470 if (size
< sizeof(ACL
))
472 fprintf( stderr
, "<invalid acl>}\n" );
476 ace
= (const ACE_HEADER
*)(acl
+ 1);
477 for (i
= 0; i
< acl
->AceCount
; i
++)
479 const SID
*sid
= NULL
;
480 data_size_t sid_size
= 0;
482 if (size
< sizeof(ACE_HEADER
))
484 if (size
< ace
->AceSize
)
486 size
-= ace
->AceSize
;
487 if (i
!= 0) fputc( ',', stderr
);
488 fprintf( stderr
, "{AceType=" );
489 switch (ace
->AceType
)
491 case ACCESS_DENIED_ACE_TYPE
:
492 sid
= (const SID
*)&((const ACCESS_DENIED_ACE
*)ace
)->SidStart
;
493 sid_size
= ace
->AceSize
- FIELD_OFFSET(ACCESS_DENIED_ACE
, SidStart
);
494 fprintf( stderr
, "ACCESS_DENIED_ACE_TYPE,Mask=%x",
495 ((const ACCESS_DENIED_ACE
*)ace
)->Mask
);
497 case ACCESS_ALLOWED_ACE_TYPE
:
498 sid
= (const SID
*)&((const ACCESS_ALLOWED_ACE
*)ace
)->SidStart
;
499 sid_size
= ace
->AceSize
- FIELD_OFFSET(ACCESS_ALLOWED_ACE
, SidStart
);
500 fprintf( stderr
, "ACCESS_ALLOWED_ACE_TYPE,Mask=%x",
501 ((const ACCESS_ALLOWED_ACE
*)ace
)->Mask
);
503 case SYSTEM_AUDIT_ACE_TYPE
:
504 sid
= (const SID
*)&((const SYSTEM_AUDIT_ACE
*)ace
)->SidStart
;
505 sid_size
= ace
->AceSize
- FIELD_OFFSET(SYSTEM_AUDIT_ACE
, SidStart
);
506 fprintf( stderr
, "SYSTEM_AUDIT_ACE_TYPE,Mask=%x",
507 ((const SYSTEM_AUDIT_ACE
*)ace
)->Mask
);
509 case SYSTEM_ALARM_ACE_TYPE
:
510 sid
= (const SID
*)&((const SYSTEM_ALARM_ACE
*)ace
)->SidStart
;
511 sid_size
= ace
->AceSize
- FIELD_OFFSET(SYSTEM_ALARM_ACE
, SidStart
);
512 fprintf( stderr
, "SYSTEM_ALARM_ACE_TYPE,Mask=%x",
513 ((const SYSTEM_ALARM_ACE
*)ace
)->Mask
);
516 fprintf( stderr
, "unknown<%d>", ace
->AceType
);
519 fprintf( stderr
, ",AceFlags=%x,Sid=", ace
->AceFlags
);
521 dump_inline_sid( sid
, sid_size
);
522 ace
= (const ACE_HEADER
*)((const char *)ace
+ ace
->AceSize
);
523 fputc( '}', stderr
);
526 fputc( '}', stderr
);
529 static void dump_inline_security_descriptor( const struct security_descriptor
*sd
, data_size_t size
)
531 fputc( '{', stderr
);
532 if (size
>= sizeof(struct security_descriptor
))
534 size_t offset
= sizeof(struct security_descriptor
);
535 fprintf( stderr
, "control=%08x", sd
->control
);
536 fprintf( stderr
, ",owner=" );
537 if ((sd
->owner_len
> FIELD_OFFSET(SID
, SubAuthority
[255])) || (offset
+ sd
->owner_len
> size
))
539 dump_inline_sid( (const SID
*)((const char *)sd
+ offset
), sd
->owner_len
);
540 offset
+= sd
->owner_len
;
541 fprintf( stderr
, ",group=" );
542 if ((sd
->group_len
> FIELD_OFFSET(SID
, SubAuthority
[255])) || (offset
+ sd
->group_len
> size
))
544 dump_inline_sid( (const SID
*)((const char *)sd
+ offset
), sd
->group_len
);
545 offset
+= sd
->group_len
;
546 fprintf( stderr
, ",sacl=" );
547 if ((sd
->sacl_len
>= MAX_ACL_LEN
) || (offset
+ sd
->sacl_len
> size
))
549 dump_inline_acl( (const ACL
*)((const char *)sd
+ offset
), sd
->sacl_len
);
550 offset
+= sd
->sacl_len
;
551 fprintf( stderr
, ",dacl=" );
552 if ((sd
->dacl_len
>= MAX_ACL_LEN
) || (offset
+ sd
->dacl_len
> size
))
554 dump_inline_acl( (const ACL
*)((const char *)sd
+ offset
), sd
->dacl_len
);
555 offset
+= sd
->dacl_len
;
557 fputc( '}', stderr
);
560 static void dump_varargs_security_descriptor( data_size_t size
)
562 const struct security_descriptor
*sd
= cur_data
;
563 dump_inline_security_descriptor( sd
, size
);
567 static void dump_varargs_token_groups( data_size_t size
)
569 const struct token_groups
*tg
= cur_data
;
570 fputc( '{', stderr
);
571 if (size
>= sizeof(struct token_groups
))
573 size_t offset
= sizeof(*tg
);
574 fprintf( stderr
, "count=%08x,", tg
->count
);
575 if (tg
->count
* sizeof(unsigned int) <= size
)
578 const unsigned int *attr
= (const unsigned int *)(tg
+ 1);
580 offset
+= tg
->count
* sizeof(unsigned int);
582 fputc( '[', stderr
);
583 for (i
= 0; i
< tg
->count
; i
++)
585 const SID
*sid
= (const SID
*)((const char *)cur_data
+ offset
);
587 fputc( ',', stderr
);
588 fputc( '{', stderr
);
589 fprintf( stderr
, "attributes=%08x", attr
[i
] );
590 fprintf( stderr
, ",sid=" );
591 dump_inline_sid( sid
, size
- offset
);
592 if ((offset
+ FIELD_OFFSET(SID
, SubAuthority
[0]) > size
) ||
593 (offset
+ FIELD_OFFSET(SID
, SubAuthority
[sid
->SubAuthorityCount
]) > size
))
595 offset
+= FIELD_OFFSET(SID
, SubAuthority
[sid
->SubAuthorityCount
]);
596 fputc( '}', stderr
);
598 fputc( ']', stderr
);
601 fputc( '}', stderr
);
604 typedef void (*dump_func
)( const void *req
);
606 /* Everything below this line is generated automatically by tools/make_requests */
607 /* ### make_requests begin ### */
609 static void dump_new_process_request( const struct new_process_request
*req
)
611 fprintf( stderr
, " inherit_all=%d,", req
->inherit_all
);
612 fprintf( stderr
, " create_flags=%08x,", req
->create_flags
);
613 fprintf( stderr
, " socket_fd=%d,", req
->socket_fd
);
614 fprintf( stderr
, " exe_file=%p,", req
->exe_file
);
615 fprintf( stderr
, " hstdin=%p,", req
->hstdin
);
616 fprintf( stderr
, " hstdout=%p,", req
->hstdout
);
617 fprintf( stderr
, " hstderr=%p,", req
->hstderr
);
618 fprintf( stderr
, " process_access=%08x,", req
->process_access
);
619 fprintf( stderr
, " process_attr=%08x,", req
->process_attr
);
620 fprintf( stderr
, " thread_access=%08x,", req
->thread_access
);
621 fprintf( stderr
, " thread_attr=%08x,", req
->thread_attr
);
622 fprintf( stderr
, " info=" );
623 dump_varargs_startup_info( cur_size
);
624 fputc( ',', stderr
);
625 fprintf( stderr
, " env=" );
626 dump_varargs_unicode_str( cur_size
);
629 static void dump_new_process_reply( const struct new_process_reply
*req
)
631 fprintf( stderr
, " info=%p,", req
->info
);
632 fprintf( stderr
, " pid=%04x,", req
->pid
);
633 fprintf( stderr
, " phandle=%p,", req
->phandle
);
634 fprintf( stderr
, " tid=%04x,", req
->tid
);
635 fprintf( stderr
, " thandle=%p", req
->thandle
);
638 static void dump_get_new_process_info_request( const struct get_new_process_info_request
*req
)
640 fprintf( stderr
, " info=%p", req
->info
);
643 static void dump_get_new_process_info_reply( const struct get_new_process_info_reply
*req
)
645 fprintf( stderr
, " success=%d,", req
->success
);
646 fprintf( stderr
, " exit_code=%d", req
->exit_code
);
649 static void dump_new_thread_request( const struct new_thread_request
*req
)
651 fprintf( stderr
, " access=%08x,", req
->access
);
652 fprintf( stderr
, " attributes=%08x,", req
->attributes
);
653 fprintf( stderr
, " suspend=%d,", req
->suspend
);
654 fprintf( stderr
, " request_fd=%d", req
->request_fd
);
657 static void dump_new_thread_reply( const struct new_thread_reply
*req
)
659 fprintf( stderr
, " tid=%04x,", req
->tid
);
660 fprintf( stderr
, " handle=%p", req
->handle
);
663 static void dump_get_startup_info_request( const struct get_startup_info_request
*req
)
667 static void dump_get_startup_info_reply( const struct get_startup_info_reply
*req
)
669 fprintf( stderr
, " exe_file=%p,", req
->exe_file
);
670 fprintf( stderr
, " hstdin=%p,", req
->hstdin
);
671 fprintf( stderr
, " hstdout=%p,", req
->hstdout
);
672 fprintf( stderr
, " hstderr=%p,", req
->hstderr
);
673 fprintf( stderr
, " info=" );
674 dump_varargs_startup_info( cur_size
);
675 fputc( ',', stderr
);
676 fprintf( stderr
, " env=" );
677 dump_varargs_unicode_str( cur_size
);
680 static void dump_init_process_done_request( const struct init_process_done_request
*req
)
682 fprintf( stderr
, " module=%p,", req
->module
);
683 fprintf( stderr
, " entry=%p,", req
->entry
);
684 fprintf( stderr
, " gui=%d", req
->gui
);
687 static void dump_init_thread_request( const struct init_thread_request
*req
)
689 fprintf( stderr
, " unix_pid=%d,", req
->unix_pid
);
690 fprintf( stderr
, " unix_tid=%d,", req
->unix_tid
);
691 fprintf( stderr
, " debug_level=%d,", req
->debug_level
);
692 fprintf( stderr
, " teb=%p,", req
->teb
);
693 fprintf( stderr
, " peb=%p,", req
->peb
);
694 fprintf( stderr
, " entry=%p,", req
->entry
);
695 fprintf( stderr
, " ldt_copy=%p,", req
->ldt_copy
);
696 fprintf( stderr
, " reply_fd=%d,", req
->reply_fd
);
697 fprintf( stderr
, " wait_fd=%d", req
->wait_fd
);
700 static void dump_init_thread_reply( const struct init_thread_reply
*req
)
702 fprintf( stderr
, " pid=%04x,", req
->pid
);
703 fprintf( stderr
, " tid=%04x,", req
->tid
);
704 fprintf( stderr
, " info_size=%u,", req
->info_size
);
705 fprintf( stderr
, " server_start=" );
706 dump_abs_time( &req
->server_start
);
707 fprintf( stderr
, "," );
708 fprintf( stderr
, " version=%d", req
->version
);
711 static void dump_terminate_process_request( const struct terminate_process_request
*req
)
713 fprintf( stderr
, " handle=%p,", req
->handle
);
714 fprintf( stderr
, " exit_code=%d", req
->exit_code
);
717 static void dump_terminate_process_reply( const struct terminate_process_reply
*req
)
719 fprintf( stderr
, " self=%d", req
->self
);
722 static void dump_terminate_thread_request( const struct terminate_thread_request
*req
)
724 fprintf( stderr
, " handle=%p,", req
->handle
);
725 fprintf( stderr
, " exit_code=%d", req
->exit_code
);
728 static void dump_terminate_thread_reply( const struct terminate_thread_reply
*req
)
730 fprintf( stderr
, " self=%d,", req
->self
);
731 fprintf( stderr
, " last=%d", req
->last
);
734 static void dump_get_process_info_request( const struct get_process_info_request
*req
)
736 fprintf( stderr
, " handle=%p", req
->handle
);
739 static void dump_get_process_info_reply( const struct get_process_info_reply
*req
)
741 fprintf( stderr
, " pid=%04x,", req
->pid
);
742 fprintf( stderr
, " ppid=%04x,", req
->ppid
);
743 fprintf( stderr
, " exit_code=%d,", req
->exit_code
);
744 fprintf( stderr
, " priority=%d,", req
->priority
);
745 fprintf( stderr
, " affinity=%d,", req
->affinity
);
746 fprintf( stderr
, " peb=%p,", req
->peb
);
747 fprintf( stderr
, " start_time=" );
748 dump_abs_time( &req
->start_time
);
749 fprintf( stderr
, "," );
750 fprintf( stderr
, " end_time=" );
751 dump_abs_time( &req
->end_time
);
754 static void dump_set_process_info_request( const struct set_process_info_request
*req
)
756 fprintf( stderr
, " handle=%p,", req
->handle
);
757 fprintf( stderr
, " mask=%d,", req
->mask
);
758 fprintf( stderr
, " priority=%d,", req
->priority
);
759 fprintf( stderr
, " affinity=%d", req
->affinity
);
762 static void dump_get_thread_info_request( const struct get_thread_info_request
*req
)
764 fprintf( stderr
, " handle=%p,", req
->handle
);
765 fprintf( stderr
, " tid_in=%04x", req
->tid_in
);
768 static void dump_get_thread_info_reply( const struct get_thread_info_reply
*req
)
770 fprintf( stderr
, " pid=%04x,", req
->pid
);
771 fprintf( stderr
, " tid=%04x,", req
->tid
);
772 fprintf( stderr
, " teb=%p,", req
->teb
);
773 fprintf( stderr
, " exit_code=%d,", req
->exit_code
);
774 fprintf( stderr
, " priority=%d,", req
->priority
);
775 fprintf( stderr
, " affinity=%d,", req
->affinity
);
776 fprintf( stderr
, " creation_time=" );
777 dump_abs_time( &req
->creation_time
);
778 fprintf( stderr
, "," );
779 fprintf( stderr
, " exit_time=" );
780 dump_abs_time( &req
->exit_time
);
781 fprintf( stderr
, "," );
782 fprintf( stderr
, " last=%d", req
->last
);
785 static void dump_set_thread_info_request( const struct set_thread_info_request
*req
)
787 fprintf( stderr
, " handle=%p,", req
->handle
);
788 fprintf( stderr
, " mask=%d,", req
->mask
);
789 fprintf( stderr
, " priority=%d,", req
->priority
);
790 fprintf( stderr
, " affinity=%d,", req
->affinity
);
791 fprintf( stderr
, " token=%p", req
->token
);
794 static void dump_get_dll_info_request( const struct get_dll_info_request
*req
)
796 fprintf( stderr
, " handle=%p,", req
->handle
);
797 fprintf( stderr
, " base_address=%p", req
->base_address
);
800 static void dump_get_dll_info_reply( const struct get_dll_info_reply
*req
)
802 fprintf( stderr
, " size=%lu,", (unsigned long)req
->size
);
803 fprintf( stderr
, " entry_point=%p,", req
->entry_point
);
804 fprintf( stderr
, " filename=" );
805 dump_varargs_unicode_str( cur_size
);
808 static void dump_suspend_thread_request( const struct suspend_thread_request
*req
)
810 fprintf( stderr
, " handle=%p", req
->handle
);
813 static void dump_suspend_thread_reply( const struct suspend_thread_reply
*req
)
815 fprintf( stderr
, " count=%d", req
->count
);
818 static void dump_resume_thread_request( const struct resume_thread_request
*req
)
820 fprintf( stderr
, " handle=%p", req
->handle
);
823 static void dump_resume_thread_reply( const struct resume_thread_reply
*req
)
825 fprintf( stderr
, " count=%d", req
->count
);
828 static void dump_load_dll_request( const struct load_dll_request
*req
)
830 fprintf( stderr
, " handle=%p,", req
->handle
);
831 fprintf( stderr
, " base=%p,", req
->base
);
832 fprintf( stderr
, " size=%lu,", (unsigned long)req
->size
);
833 fprintf( stderr
, " dbg_offset=%d,", req
->dbg_offset
);
834 fprintf( stderr
, " dbg_size=%d,", req
->dbg_size
);
835 fprintf( stderr
, " name=%p,", req
->name
);
836 fprintf( stderr
, " filename=" );
837 dump_varargs_unicode_str( cur_size
);
840 static void dump_unload_dll_request( const struct unload_dll_request
*req
)
842 fprintf( stderr
, " base=%p", req
->base
);
845 static void dump_queue_apc_request( const struct queue_apc_request
*req
)
847 fprintf( stderr
, " handle=%p,", req
->handle
);
848 fprintf( stderr
, " user=%d,", req
->user
);
849 fprintf( stderr
, " func=%p,", req
->func
);
850 fprintf( stderr
, " arg1=%p,", req
->arg1
);
851 fprintf( stderr
, " arg2=%p,", req
->arg2
);
852 fprintf( stderr
, " arg3=%p", req
->arg3
);
855 static void dump_get_apc_request( const struct get_apc_request
*req
)
857 fprintf( stderr
, " alertable=%d", req
->alertable
);
860 static void dump_get_apc_reply( const struct get_apc_reply
*req
)
862 fprintf( stderr
, " func=%p,", req
->func
);
863 fprintf( stderr
, " type=%d,", req
->type
);
864 fprintf( stderr
, " arg1=%p,", req
->arg1
);
865 fprintf( stderr
, " arg2=%p,", req
->arg2
);
866 fprintf( stderr
, " arg3=%p", req
->arg3
);
869 static void dump_close_handle_request( const struct close_handle_request
*req
)
871 fprintf( stderr
, " handle=%p", req
->handle
);
874 static void dump_close_handle_reply( const struct close_handle_reply
*req
)
876 fprintf( stderr
, " fd=%d", req
->fd
);
879 static void dump_set_handle_info_request( const struct set_handle_info_request
*req
)
881 fprintf( stderr
, " handle=%p,", req
->handle
);
882 fprintf( stderr
, " flags=%d,", req
->flags
);
883 fprintf( stderr
, " mask=%d", req
->mask
);
886 static void dump_set_handle_info_reply( const struct set_handle_info_reply
*req
)
888 fprintf( stderr
, " old_flags=%d", req
->old_flags
);
891 static void dump_dup_handle_request( const struct dup_handle_request
*req
)
893 fprintf( stderr
, " src_process=%p,", req
->src_process
);
894 fprintf( stderr
, " src_handle=%p,", req
->src_handle
);
895 fprintf( stderr
, " dst_process=%p,", req
->dst_process
);
896 fprintf( stderr
, " access=%08x,", req
->access
);
897 fprintf( stderr
, " attributes=%08x,", req
->attributes
);
898 fprintf( stderr
, " options=%08x", req
->options
);
901 static void dump_dup_handle_reply( const struct dup_handle_reply
*req
)
903 fprintf( stderr
, " handle=%p,", req
->handle
);
904 fprintf( stderr
, " fd=%d", req
->fd
);
907 static void dump_open_process_request( const struct open_process_request
*req
)
909 fprintf( stderr
, " pid=%04x,", req
->pid
);
910 fprintf( stderr
, " access=%08x,", req
->access
);
911 fprintf( stderr
, " attributes=%08x", req
->attributes
);
914 static void dump_open_process_reply( const struct open_process_reply
*req
)
916 fprintf( stderr
, " handle=%p", req
->handle
);
919 static void dump_open_thread_request( const struct open_thread_request
*req
)
921 fprintf( stderr
, " tid=%04x,", req
->tid
);
922 fprintf( stderr
, " access=%08x,", req
->access
);
923 fprintf( stderr
, " attributes=%08x", req
->attributes
);
926 static void dump_open_thread_reply( const struct open_thread_reply
*req
)
928 fprintf( stderr
, " handle=%p", req
->handle
);
931 static void dump_select_request( const struct select_request
*req
)
933 fprintf( stderr
, " flags=%d,", req
->flags
);
934 fprintf( stderr
, " cookie=%p,", req
->cookie
);
935 fprintf( stderr
, " signal=%p,", req
->signal
);
936 fprintf( stderr
, " timeout=" );
937 dump_abs_time( &req
->timeout
);
938 fprintf( stderr
, "," );
939 fprintf( stderr
, " handles=" );
940 dump_varargs_handles( cur_size
);
943 static void dump_create_event_request( const struct create_event_request
*req
)
945 fprintf( stderr
, " access=%08x,", req
->access
);
946 fprintf( stderr
, " attributes=%08x,", req
->attributes
);
947 fprintf( stderr
, " rootdir=%p,", req
->rootdir
);
948 fprintf( stderr
, " manual_reset=%d,", req
->manual_reset
);
949 fprintf( stderr
, " initial_state=%d,", req
->initial_state
);
950 fprintf( stderr
, " name=" );
951 dump_varargs_unicode_str( cur_size
);
954 static void dump_create_event_reply( const struct create_event_reply
*req
)
956 fprintf( stderr
, " handle=%p", req
->handle
);
959 static void dump_event_op_request( const struct event_op_request
*req
)
961 fprintf( stderr
, " handle=%p,", req
->handle
);
962 fprintf( stderr
, " op=%d", req
->op
);
965 static void dump_open_event_request( const struct open_event_request
*req
)
967 fprintf( stderr
, " access=%08x,", req
->access
);
968 fprintf( stderr
, " attributes=%08x,", req
->attributes
);
969 fprintf( stderr
, " rootdir=%p,", req
->rootdir
);
970 fprintf( stderr
, " name=" );
971 dump_varargs_unicode_str( cur_size
);
974 static void dump_open_event_reply( const struct open_event_reply
*req
)
976 fprintf( stderr
, " handle=%p", req
->handle
);
979 static void dump_create_mutex_request( const struct create_mutex_request
*req
)
981 fprintf( stderr
, " access=%08x,", req
->access
);
982 fprintf( stderr
, " attributes=%08x,", req
->attributes
);
983 fprintf( stderr
, " rootdir=%p,", req
->rootdir
);
984 fprintf( stderr
, " owned=%d,", req
->owned
);
985 fprintf( stderr
, " name=" );
986 dump_varargs_unicode_str( cur_size
);
989 static void dump_create_mutex_reply( const struct create_mutex_reply
*req
)
991 fprintf( stderr
, " handle=%p", req
->handle
);
994 static void dump_release_mutex_request( const struct release_mutex_request
*req
)
996 fprintf( stderr
, " handle=%p", req
->handle
);
999 static void dump_release_mutex_reply( const struct release_mutex_reply
*req
)
1001 fprintf( stderr
, " prev_count=%08x", req
->prev_count
);
1004 static void dump_open_mutex_request( const struct open_mutex_request
*req
)
1006 fprintf( stderr
, " access=%08x,", req
->access
);
1007 fprintf( stderr
, " attributes=%08x,", req
->attributes
);
1008 fprintf( stderr
, " rootdir=%p,", req
->rootdir
);
1009 fprintf( stderr
, " name=" );
1010 dump_varargs_unicode_str( cur_size
);
1013 static void dump_open_mutex_reply( const struct open_mutex_reply
*req
)
1015 fprintf( stderr
, " handle=%p", req
->handle
);
1018 static void dump_create_semaphore_request( const struct create_semaphore_request
*req
)
1020 fprintf( stderr
, " access=%08x,", req
->access
);
1021 fprintf( stderr
, " attributes=%08x,", req
->attributes
);
1022 fprintf( stderr
, " rootdir=%p,", req
->rootdir
);
1023 fprintf( stderr
, " initial=%08x,", req
->initial
);
1024 fprintf( stderr
, " max=%08x,", req
->max
);
1025 fprintf( stderr
, " name=" );
1026 dump_varargs_unicode_str( cur_size
);
1029 static void dump_create_semaphore_reply( const struct create_semaphore_reply
*req
)
1031 fprintf( stderr
, " handle=%p", req
->handle
);
1034 static void dump_release_semaphore_request( const struct release_semaphore_request
*req
)
1036 fprintf( stderr
, " handle=%p,", req
->handle
);
1037 fprintf( stderr
, " count=%08x", req
->count
);
1040 static void dump_release_semaphore_reply( const struct release_semaphore_reply
*req
)
1042 fprintf( stderr
, " prev_count=%08x", req
->prev_count
);
1045 static void dump_open_semaphore_request( const struct open_semaphore_request
*req
)
1047 fprintf( stderr
, " access=%08x,", req
->access
);
1048 fprintf( stderr
, " attributes=%08x,", req
->attributes
);
1049 fprintf( stderr
, " rootdir=%p,", req
->rootdir
);
1050 fprintf( stderr
, " name=" );
1051 dump_varargs_unicode_str( cur_size
);
1054 static void dump_open_semaphore_reply( const struct open_semaphore_reply
*req
)
1056 fprintf( stderr
, " handle=%p", req
->handle
);
1059 static void dump_create_file_request( const struct create_file_request
*req
)
1061 fprintf( stderr
, " access=%08x,", req
->access
);
1062 fprintf( stderr
, " attributes=%08x,", req
->attributes
);
1063 fprintf( stderr
, " sharing=%08x,", req
->sharing
);
1064 fprintf( stderr
, " create=%d,", req
->create
);
1065 fprintf( stderr
, " options=%08x,", req
->options
);
1066 fprintf( stderr
, " attrs=%08x,", req
->attrs
);
1067 fprintf( stderr
, " filename=" );
1068 dump_varargs_string( cur_size
);
1071 static void dump_create_file_reply( const struct create_file_reply
*req
)
1073 fprintf( stderr
, " handle=%p", req
->handle
);
1076 static void dump_open_file_object_request( const struct open_file_object_request
*req
)
1078 fprintf( stderr
, " access=%08x,", req
->access
);
1079 fprintf( stderr
, " attributes=%08x,", req
->attributes
);
1080 fprintf( stderr
, " rootdir=%p,", req
->rootdir
);
1081 fprintf( stderr
, " sharing=%08x,", req
->sharing
);
1082 fprintf( stderr
, " filename=" );
1083 dump_varargs_unicode_str( cur_size
);
1086 static void dump_open_file_object_reply( const struct open_file_object_reply
*req
)
1088 fprintf( stderr
, " handle=%p", req
->handle
);
1091 static void dump_alloc_file_handle_request( const struct alloc_file_handle_request
*req
)
1093 fprintf( stderr
, " access=%08x,", req
->access
);
1094 fprintf( stderr
, " attributes=%08x,", req
->attributes
);
1095 fprintf( stderr
, " fd=%d", req
->fd
);
1098 static void dump_alloc_file_handle_reply( const struct alloc_file_handle_reply
*req
)
1100 fprintf( stderr
, " handle=%p", req
->handle
);
1103 static void dump_get_handle_fd_request( const struct get_handle_fd_request
*req
)
1105 fprintf( stderr
, " handle=%p,", req
->handle
);
1106 fprintf( stderr
, " access=%08x", req
->access
);
1109 static void dump_get_handle_fd_reply( const struct get_handle_fd_reply
*req
)
1111 fprintf( stderr
, " fd=%d,", req
->fd
);
1112 fprintf( stderr
, " removable=%d,", req
->removable
);
1113 fprintf( stderr
, " flags=%d", req
->flags
);
1116 static void dump_set_handle_fd_request( const struct set_handle_fd_request
*req
)
1118 fprintf( stderr
, " handle=%p,", req
->handle
);
1119 fprintf( stderr
, " fd=%d,", req
->fd
);
1120 fprintf( stderr
, " removable=%d", req
->removable
);
1123 static void dump_set_handle_fd_reply( const struct set_handle_fd_reply
*req
)
1125 fprintf( stderr
, " cur_fd=%d", req
->cur_fd
);
1128 static void dump_flush_file_request( const struct flush_file_request
*req
)
1130 fprintf( stderr
, " handle=%p", req
->handle
);
1133 static void dump_flush_file_reply( const struct flush_file_reply
*req
)
1135 fprintf( stderr
, " event=%p", req
->event
);
1138 static void dump_lock_file_request( const struct lock_file_request
*req
)
1140 fprintf( stderr
, " handle=%p,", req
->handle
);
1141 fprintf( stderr
, " offset_low=%08x,", req
->offset_low
);
1142 fprintf( stderr
, " offset_high=%08x,", req
->offset_high
);
1143 fprintf( stderr
, " count_low=%08x,", req
->count_low
);
1144 fprintf( stderr
, " count_high=%08x,", req
->count_high
);
1145 fprintf( stderr
, " shared=%d,", req
->shared
);
1146 fprintf( stderr
, " wait=%d", req
->wait
);
1149 static void dump_lock_file_reply( const struct lock_file_reply
*req
)
1151 fprintf( stderr
, " handle=%p,", req
->handle
);
1152 fprintf( stderr
, " overlapped=%d", req
->overlapped
);
1155 static void dump_unlock_file_request( const struct unlock_file_request
*req
)
1157 fprintf( stderr
, " handle=%p,", req
->handle
);
1158 fprintf( stderr
, " offset_low=%08x,", req
->offset_low
);
1159 fprintf( stderr
, " offset_high=%08x,", req
->offset_high
);
1160 fprintf( stderr
, " count_low=%08x,", req
->count_low
);
1161 fprintf( stderr
, " count_high=%08x", req
->count_high
);
1164 static void dump_unmount_device_request( const struct unmount_device_request
*req
)
1166 fprintf( stderr
, " handle=%p", req
->handle
);
1169 static void dump_create_socket_request( const struct create_socket_request
*req
)
1171 fprintf( stderr
, " access=%08x,", req
->access
);
1172 fprintf( stderr
, " attributes=%08x,", req
->attributes
);
1173 fprintf( stderr
, " family=%d,", req
->family
);
1174 fprintf( stderr
, " type=%d,", req
->type
);
1175 fprintf( stderr
, " protocol=%d,", req
->protocol
);
1176 fprintf( stderr
, " flags=%08x", req
->flags
);
1179 static void dump_create_socket_reply( const struct create_socket_reply
*req
)
1181 fprintf( stderr
, " handle=%p", req
->handle
);
1184 static void dump_accept_socket_request( const struct accept_socket_request
*req
)
1186 fprintf( stderr
, " lhandle=%p,", req
->lhandle
);
1187 fprintf( stderr
, " access=%08x,", req
->access
);
1188 fprintf( stderr
, " attributes=%08x", req
->attributes
);
1191 static void dump_accept_socket_reply( const struct accept_socket_reply
*req
)
1193 fprintf( stderr
, " handle=%p", req
->handle
);
1196 static void dump_set_socket_event_request( const struct set_socket_event_request
*req
)
1198 fprintf( stderr
, " handle=%p,", req
->handle
);
1199 fprintf( stderr
, " mask=%08x,", req
->mask
);
1200 fprintf( stderr
, " event=%p,", req
->event
);
1201 fprintf( stderr
, " window=%p,", req
->window
);
1202 fprintf( stderr
, " msg=%08x", req
->msg
);
1205 static void dump_get_socket_event_request( const struct get_socket_event_request
*req
)
1207 fprintf( stderr
, " handle=%p,", req
->handle
);
1208 fprintf( stderr
, " service=%d,", req
->service
);
1209 fprintf( stderr
, " c_event=%p", req
->c_event
);
1212 static void dump_get_socket_event_reply( const struct get_socket_event_reply
*req
)
1214 fprintf( stderr
, " mask=%08x,", req
->mask
);
1215 fprintf( stderr
, " pmask=%08x,", req
->pmask
);
1216 fprintf( stderr
, " state=%08x,", req
->state
);
1217 fprintf( stderr
, " errors=" );
1218 dump_varargs_ints( cur_size
);
1221 static void dump_enable_socket_event_request( const struct enable_socket_event_request
*req
)
1223 fprintf( stderr
, " handle=%p,", req
->handle
);
1224 fprintf( stderr
, " mask=%08x,", req
->mask
);
1225 fprintf( stderr
, " sstate=%08x,", req
->sstate
);
1226 fprintf( stderr
, " cstate=%08x", req
->cstate
);
1229 static void dump_set_socket_deferred_request( const struct set_socket_deferred_request
*req
)
1231 fprintf( stderr
, " handle=%p,", req
->handle
);
1232 fprintf( stderr
, " deferred=%p", req
->deferred
);
1235 static void dump_alloc_console_request( const struct alloc_console_request
*req
)
1237 fprintf( stderr
, " access=%08x,", req
->access
);
1238 fprintf( stderr
, " attributes=%08x,", req
->attributes
);
1239 fprintf( stderr
, " pid=%04x", req
->pid
);
1242 static void dump_alloc_console_reply( const struct alloc_console_reply
*req
)
1244 fprintf( stderr
, " handle_in=%p,", req
->handle_in
);
1245 fprintf( stderr
, " event=%p", req
->event
);
1248 static void dump_free_console_request( const struct free_console_request
*req
)
1252 static void dump_get_console_renderer_events_request( const struct get_console_renderer_events_request
*req
)
1254 fprintf( stderr
, " handle=%p", req
->handle
);
1257 static void dump_get_console_renderer_events_reply( const struct get_console_renderer_events_reply
*req
)
1259 fprintf( stderr
, " data=" );
1260 dump_varargs_bytes( cur_size
);
1263 static void dump_open_console_request( const struct open_console_request
*req
)
1265 fprintf( stderr
, " from=%p,", req
->from
);
1266 fprintf( stderr
, " access=%08x,", req
->access
);
1267 fprintf( stderr
, " attributes=%08x,", req
->attributes
);
1268 fprintf( stderr
, " share=%d", req
->share
);
1271 static void dump_open_console_reply( const struct open_console_reply
*req
)
1273 fprintf( stderr
, " handle=%p", req
->handle
);
1276 static void dump_get_console_wait_event_request( const struct get_console_wait_event_request
*req
)
1280 static void dump_get_console_wait_event_reply( const struct get_console_wait_event_reply
*req
)
1282 fprintf( stderr
, " handle=%p", req
->handle
);
1285 static void dump_get_console_mode_request( const struct get_console_mode_request
*req
)
1287 fprintf( stderr
, " handle=%p", req
->handle
);
1290 static void dump_get_console_mode_reply( const struct get_console_mode_reply
*req
)
1292 fprintf( stderr
, " mode=%d", req
->mode
);
1295 static void dump_set_console_mode_request( const struct set_console_mode_request
*req
)
1297 fprintf( stderr
, " handle=%p,", req
->handle
);
1298 fprintf( stderr
, " mode=%d", req
->mode
);
1301 static void dump_set_console_input_info_request( const struct set_console_input_info_request
*req
)
1303 fprintf( stderr
, " handle=%p,", req
->handle
);
1304 fprintf( stderr
, " mask=%d,", req
->mask
);
1305 fprintf( stderr
, " active_sb=%p,", req
->active_sb
);
1306 fprintf( stderr
, " history_mode=%d,", req
->history_mode
);
1307 fprintf( stderr
, " history_size=%d,", req
->history_size
);
1308 fprintf( stderr
, " edition_mode=%d,", req
->edition_mode
);
1309 fprintf( stderr
, " title=" );
1310 dump_varargs_unicode_str( cur_size
);
1313 static void dump_get_console_input_info_request( const struct get_console_input_info_request
*req
)
1315 fprintf( stderr
, " handle=%p", req
->handle
);
1318 static void dump_get_console_input_info_reply( const struct get_console_input_info_reply
*req
)
1320 fprintf( stderr
, " history_mode=%d,", req
->history_mode
);
1321 fprintf( stderr
, " history_size=%d,", req
->history_size
);
1322 fprintf( stderr
, " history_index=%d,", req
->history_index
);
1323 fprintf( stderr
, " edition_mode=%d,", req
->edition_mode
);
1324 fprintf( stderr
, " title=" );
1325 dump_varargs_unicode_str( cur_size
);
1328 static void dump_append_console_input_history_request( const struct append_console_input_history_request
*req
)
1330 fprintf( stderr
, " handle=%p,", req
->handle
);
1331 fprintf( stderr
, " line=" );
1332 dump_varargs_unicode_str( cur_size
);
1335 static void dump_get_console_input_history_request( const struct get_console_input_history_request
*req
)
1337 fprintf( stderr
, " handle=%p,", req
->handle
);
1338 fprintf( stderr
, " index=%d", req
->index
);
1341 static void dump_get_console_input_history_reply( const struct get_console_input_history_reply
*req
)
1343 fprintf( stderr
, " total=%d,", req
->total
);
1344 fprintf( stderr
, " line=" );
1345 dump_varargs_unicode_str( cur_size
);
1348 static void dump_create_console_output_request( const struct create_console_output_request
*req
)
1350 fprintf( stderr
, " handle_in=%p,", req
->handle_in
);
1351 fprintf( stderr
, " access=%08x,", req
->access
);
1352 fprintf( stderr
, " attributes=%08x,", req
->attributes
);
1353 fprintf( stderr
, " share=%08x", req
->share
);
1356 static void dump_create_console_output_reply( const struct create_console_output_reply
*req
)
1358 fprintf( stderr
, " handle_out=%p", req
->handle_out
);
1361 static void dump_set_console_output_info_request( const struct set_console_output_info_request
*req
)
1363 fprintf( stderr
, " handle=%p,", req
->handle
);
1364 fprintf( stderr
, " mask=%d,", req
->mask
);
1365 fprintf( stderr
, " cursor_size=%d,", req
->cursor_size
);
1366 fprintf( stderr
, " cursor_visible=%d,", req
->cursor_visible
);
1367 fprintf( stderr
, " cursor_x=%d,", req
->cursor_x
);
1368 fprintf( stderr
, " cursor_y=%d,", req
->cursor_y
);
1369 fprintf( stderr
, " width=%d,", req
->width
);
1370 fprintf( stderr
, " height=%d,", req
->height
);
1371 fprintf( stderr
, " attr=%d,", req
->attr
);
1372 fprintf( stderr
, " win_left=%d,", req
->win_left
);
1373 fprintf( stderr
, " win_top=%d,", req
->win_top
);
1374 fprintf( stderr
, " win_right=%d,", req
->win_right
);
1375 fprintf( stderr
, " win_bottom=%d,", req
->win_bottom
);
1376 fprintf( stderr
, " max_width=%d,", req
->max_width
);
1377 fprintf( stderr
, " max_height=%d", req
->max_height
);
1380 static void dump_get_console_output_info_request( const struct get_console_output_info_request
*req
)
1382 fprintf( stderr
, " handle=%p", req
->handle
);
1385 static void dump_get_console_output_info_reply( const struct get_console_output_info_reply
*req
)
1387 fprintf( stderr
, " cursor_size=%d,", req
->cursor_size
);
1388 fprintf( stderr
, " cursor_visible=%d,", req
->cursor_visible
);
1389 fprintf( stderr
, " cursor_x=%d,", req
->cursor_x
);
1390 fprintf( stderr
, " cursor_y=%d,", req
->cursor_y
);
1391 fprintf( stderr
, " width=%d,", req
->width
);
1392 fprintf( stderr
, " height=%d,", req
->height
);
1393 fprintf( stderr
, " attr=%d,", req
->attr
);
1394 fprintf( stderr
, " win_left=%d,", req
->win_left
);
1395 fprintf( stderr
, " win_top=%d,", req
->win_top
);
1396 fprintf( stderr
, " win_right=%d,", req
->win_right
);
1397 fprintf( stderr
, " win_bottom=%d,", req
->win_bottom
);
1398 fprintf( stderr
, " max_width=%d,", req
->max_width
);
1399 fprintf( stderr
, " max_height=%d", req
->max_height
);
1402 static void dump_write_console_input_request( const struct write_console_input_request
*req
)
1404 fprintf( stderr
, " handle=%p,", req
->handle
);
1405 fprintf( stderr
, " rec=" );
1406 dump_varargs_input_records( cur_size
);
1409 static void dump_write_console_input_reply( const struct write_console_input_reply
*req
)
1411 fprintf( stderr
, " written=%d", req
->written
);
1414 static void dump_read_console_input_request( const struct read_console_input_request
*req
)
1416 fprintf( stderr
, " handle=%p,", req
->handle
);
1417 fprintf( stderr
, " flush=%d", req
->flush
);
1420 static void dump_read_console_input_reply( const struct read_console_input_reply
*req
)
1422 fprintf( stderr
, " read=%d,", req
->read
);
1423 fprintf( stderr
, " rec=" );
1424 dump_varargs_input_records( cur_size
);
1427 static void dump_write_console_output_request( const struct write_console_output_request
*req
)
1429 fprintf( stderr
, " handle=%p,", req
->handle
);
1430 fprintf( stderr
, " x=%d,", req
->x
);
1431 fprintf( stderr
, " y=%d,", req
->y
);
1432 fprintf( stderr
, " mode=%d,", req
->mode
);
1433 fprintf( stderr
, " wrap=%d,", req
->wrap
);
1434 fprintf( stderr
, " data=" );
1435 dump_varargs_bytes( cur_size
);
1438 static void dump_write_console_output_reply( const struct write_console_output_reply
*req
)
1440 fprintf( stderr
, " written=%d,", req
->written
);
1441 fprintf( stderr
, " width=%d,", req
->width
);
1442 fprintf( stderr
, " height=%d", req
->height
);
1445 static void dump_fill_console_output_request( const struct fill_console_output_request
*req
)
1447 fprintf( stderr
, " handle=%p,", req
->handle
);
1448 fprintf( stderr
, " x=%d,", req
->x
);
1449 fprintf( stderr
, " y=%d,", req
->y
);
1450 fprintf( stderr
, " mode=%d,", req
->mode
);
1451 fprintf( stderr
, " count=%d,", req
->count
);
1452 fprintf( stderr
, " wrap=%d,", req
->wrap
);
1453 fprintf( stderr
, " data=" );
1454 dump_char_info( &req
->data
);
1457 static void dump_fill_console_output_reply( const struct fill_console_output_reply
*req
)
1459 fprintf( stderr
, " written=%d", req
->written
);
1462 static void dump_read_console_output_request( const struct read_console_output_request
*req
)
1464 fprintf( stderr
, " handle=%p,", req
->handle
);
1465 fprintf( stderr
, " x=%d,", req
->x
);
1466 fprintf( stderr
, " y=%d,", req
->y
);
1467 fprintf( stderr
, " mode=%d,", req
->mode
);
1468 fprintf( stderr
, " wrap=%d", req
->wrap
);
1471 static void dump_read_console_output_reply( const struct read_console_output_reply
*req
)
1473 fprintf( stderr
, " width=%d,", req
->width
);
1474 fprintf( stderr
, " height=%d,", req
->height
);
1475 fprintf( stderr
, " data=" );
1476 dump_varargs_bytes( cur_size
);
1479 static void dump_move_console_output_request( const struct move_console_output_request
*req
)
1481 fprintf( stderr
, " handle=%p,", req
->handle
);
1482 fprintf( stderr
, " x_src=%d,", req
->x_src
);
1483 fprintf( stderr
, " y_src=%d,", req
->y_src
);
1484 fprintf( stderr
, " x_dst=%d,", req
->x_dst
);
1485 fprintf( stderr
, " y_dst=%d,", req
->y_dst
);
1486 fprintf( stderr
, " w=%d,", req
->w
);
1487 fprintf( stderr
, " h=%d", req
->h
);
1490 static void dump_send_console_signal_request( const struct send_console_signal_request
*req
)
1492 fprintf( stderr
, " signal=%d,", req
->signal
);
1493 fprintf( stderr
, " group_id=%04x", req
->group_id
);
1496 static void dump_read_directory_changes_request( const struct read_directory_changes_request
*req
)
1498 fprintf( stderr
, " filter=%08x,", req
->filter
);
1499 fprintf( stderr
, " handle=%p,", req
->handle
);
1500 fprintf( stderr
, " event=%p,", req
->event
);
1501 fprintf( stderr
, " subtree=%d,", req
->subtree
);
1502 fprintf( stderr
, " want_data=%d,", req
->want_data
);
1503 fprintf( stderr
, " io_apc=%p,", req
->io_apc
);
1504 fprintf( stderr
, " io_sb=%p,", req
->io_sb
);
1505 fprintf( stderr
, " io_user=%p", req
->io_user
);
1508 static void dump_read_change_request( const struct read_change_request
*req
)
1510 fprintf( stderr
, " handle=%p", req
->handle
);
1513 static void dump_read_change_reply( const struct read_change_reply
*req
)
1515 fprintf( stderr
, " action=%d,", req
->action
);
1516 fprintf( stderr
, " name=" );
1517 dump_varargs_string( cur_size
);
1520 static void dump_create_mapping_request( const struct create_mapping_request
*req
)
1522 fprintf( stderr
, " access=%08x,", req
->access
);
1523 fprintf( stderr
, " attributes=%08x,", req
->attributes
);
1524 fprintf( stderr
, " rootdir=%p,", req
->rootdir
);
1525 fprintf( stderr
, " size_high=%d,", req
->size_high
);
1526 fprintf( stderr
, " size_low=%d,", req
->size_low
);
1527 fprintf( stderr
, " protect=%d,", req
->protect
);
1528 fprintf( stderr
, " file_handle=%p,", req
->file_handle
);
1529 fprintf( stderr
, " name=" );
1530 dump_varargs_unicode_str( cur_size
);
1533 static void dump_create_mapping_reply( const struct create_mapping_reply
*req
)
1535 fprintf( stderr
, " handle=%p", req
->handle
);
1538 static void dump_open_mapping_request( const struct open_mapping_request
*req
)
1540 fprintf( stderr
, " access=%08x,", req
->access
);
1541 fprintf( stderr
, " attributes=%08x,", req
->attributes
);
1542 fprintf( stderr
, " rootdir=%p,", req
->rootdir
);
1543 fprintf( stderr
, " name=" );
1544 dump_varargs_unicode_str( cur_size
);
1547 static void dump_open_mapping_reply( const struct open_mapping_reply
*req
)
1549 fprintf( stderr
, " handle=%p", req
->handle
);
1552 static void dump_get_mapping_info_request( const struct get_mapping_info_request
*req
)
1554 fprintf( stderr
, " handle=%p", req
->handle
);
1557 static void dump_get_mapping_info_reply( const struct get_mapping_info_reply
*req
)
1559 fprintf( stderr
, " size_high=%d,", req
->size_high
);
1560 fprintf( stderr
, " size_low=%d,", req
->size_low
);
1561 fprintf( stderr
, " protect=%d,", req
->protect
);
1562 fprintf( stderr
, " header_size=%d,", req
->header_size
);
1563 fprintf( stderr
, " base=%p,", req
->base
);
1564 fprintf( stderr
, " shared_file=%p,", req
->shared_file
);
1565 fprintf( stderr
, " shared_size=%d", req
->shared_size
);
1568 static void dump_create_snapshot_request( const struct create_snapshot_request
*req
)
1570 fprintf( stderr
, " attributes=%08x,", req
->attributes
);
1571 fprintf( stderr
, " flags=%d,", req
->flags
);
1572 fprintf( stderr
, " pid=%04x", req
->pid
);
1575 static void dump_create_snapshot_reply( const struct create_snapshot_reply
*req
)
1577 fprintf( stderr
, " handle=%p", req
->handle
);
1580 static void dump_next_process_request( const struct next_process_request
*req
)
1582 fprintf( stderr
, " handle=%p,", req
->handle
);
1583 fprintf( stderr
, " reset=%d", req
->reset
);
1586 static void dump_next_process_reply( const struct next_process_reply
*req
)
1588 fprintf( stderr
, " count=%d,", req
->count
);
1589 fprintf( stderr
, " pid=%04x,", req
->pid
);
1590 fprintf( stderr
, " ppid=%04x,", req
->ppid
);
1591 fprintf( stderr
, " heap=%p,", req
->heap
);
1592 fprintf( stderr
, " module=%p,", req
->module
);
1593 fprintf( stderr
, " threads=%d,", req
->threads
);
1594 fprintf( stderr
, " priority=%d,", req
->priority
);
1595 fprintf( stderr
, " handles=%d,", req
->handles
);
1596 fprintf( stderr
, " filename=" );
1597 dump_varargs_unicode_str( cur_size
);
1600 static void dump_next_thread_request( const struct next_thread_request
*req
)
1602 fprintf( stderr
, " handle=%p,", req
->handle
);
1603 fprintf( stderr
, " reset=%d", req
->reset
);
1606 static void dump_next_thread_reply( const struct next_thread_reply
*req
)
1608 fprintf( stderr
, " count=%d,", req
->count
);
1609 fprintf( stderr
, " pid=%04x,", req
->pid
);
1610 fprintf( stderr
, " tid=%04x,", req
->tid
);
1611 fprintf( stderr
, " base_pri=%d,", req
->base_pri
);
1612 fprintf( stderr
, " delta_pri=%d", req
->delta_pri
);
1615 static void dump_next_module_request( const struct next_module_request
*req
)
1617 fprintf( stderr
, " handle=%p,", req
->handle
);
1618 fprintf( stderr
, " reset=%d", req
->reset
);
1621 static void dump_next_module_reply( const struct next_module_reply
*req
)
1623 fprintf( stderr
, " pid=%04x,", req
->pid
);
1624 fprintf( stderr
, " base=%p,", req
->base
);
1625 fprintf( stderr
, " size=%lu,", (unsigned long)req
->size
);
1626 fprintf( stderr
, " filename=" );
1627 dump_varargs_unicode_str( cur_size
);
1630 static void dump_wait_debug_event_request( const struct wait_debug_event_request
*req
)
1632 fprintf( stderr
, " get_handle=%d", req
->get_handle
);
1635 static void dump_wait_debug_event_reply( const struct wait_debug_event_reply
*req
)
1637 fprintf( stderr
, " pid=%04x,", req
->pid
);
1638 fprintf( stderr
, " tid=%04x,", req
->tid
);
1639 fprintf( stderr
, " wait=%p,", req
->wait
);
1640 fprintf( stderr
, " event=" );
1641 dump_varargs_debug_event( cur_size
);
1644 static void dump_queue_exception_event_request( const struct queue_exception_event_request
*req
)
1646 fprintf( stderr
, " first=%d,", req
->first
);
1647 fprintf( stderr
, " record=" );
1648 dump_varargs_exc_event( cur_size
);
1651 static void dump_queue_exception_event_reply( const struct queue_exception_event_reply
*req
)
1653 fprintf( stderr
, " handle=%p", req
->handle
);
1656 static void dump_get_exception_status_request( const struct get_exception_status_request
*req
)
1658 fprintf( stderr
, " handle=%p", req
->handle
);
1661 static void dump_get_exception_status_reply( const struct get_exception_status_reply
*req
)
1663 fprintf( stderr
, " context=" );
1664 dump_varargs_context( cur_size
);
1667 static void dump_output_debug_string_request( const struct output_debug_string_request
*req
)
1669 fprintf( stderr
, " string=%p,", req
->string
);
1670 fprintf( stderr
, " unicode=%d,", req
->unicode
);
1671 fprintf( stderr
, " length=%d", req
->length
);
1674 static void dump_continue_debug_event_request( const struct continue_debug_event_request
*req
)
1676 fprintf( stderr
, " pid=%04x,", req
->pid
);
1677 fprintf( stderr
, " tid=%04x,", req
->tid
);
1678 fprintf( stderr
, " status=%d", req
->status
);
1681 static void dump_debug_process_request( const struct debug_process_request
*req
)
1683 fprintf( stderr
, " pid=%04x,", req
->pid
);
1684 fprintf( stderr
, " attach=%d", req
->attach
);
1687 static void dump_debug_break_request( const struct debug_break_request
*req
)
1689 fprintf( stderr
, " handle=%p", req
->handle
);
1692 static void dump_debug_break_reply( const struct debug_break_reply
*req
)
1694 fprintf( stderr
, " self=%d", req
->self
);
1697 static void dump_set_debugger_kill_on_exit_request( const struct set_debugger_kill_on_exit_request
*req
)
1699 fprintf( stderr
, " kill_on_exit=%d", req
->kill_on_exit
);
1702 static void dump_read_process_memory_request( const struct read_process_memory_request
*req
)
1704 fprintf( stderr
, " handle=%p,", req
->handle
);
1705 fprintf( stderr
, " addr=%p", req
->addr
);
1708 static void dump_read_process_memory_reply( const struct read_process_memory_reply
*req
)
1710 fprintf( stderr
, " data=" );
1711 dump_varargs_bytes( cur_size
);
1714 static void dump_write_process_memory_request( const struct write_process_memory_request
*req
)
1716 fprintf( stderr
, " handle=%p,", req
->handle
);
1717 fprintf( stderr
, " addr=%p,", req
->addr
);
1718 fprintf( stderr
, " data=" );
1719 dump_varargs_bytes( cur_size
);
1722 static void dump_create_key_request( const struct create_key_request
*req
)
1724 fprintf( stderr
, " parent=%p,", req
->parent
);
1725 fprintf( stderr
, " access=%08x,", req
->access
);
1726 fprintf( stderr
, " attributes=%08x,", req
->attributes
);
1727 fprintf( stderr
, " options=%08x,", req
->options
);
1728 fprintf( stderr
, " modif=%ld,", (long)req
->modif
);
1729 fprintf( stderr
, " namelen=%u,", req
->namelen
);
1730 fprintf( stderr
, " name=" );
1731 dump_varargs_unicode_str( min(cur_size
,req
->namelen
) );
1732 fputc( ',', stderr
);
1733 fprintf( stderr
, " class=" );
1734 dump_varargs_unicode_str( cur_size
);
1737 static void dump_create_key_reply( const struct create_key_reply
*req
)
1739 fprintf( stderr
, " hkey=%p,", req
->hkey
);
1740 fprintf( stderr
, " created=%d", req
->created
);
1743 static void dump_open_key_request( const struct open_key_request
*req
)
1745 fprintf( stderr
, " parent=%p,", req
->parent
);
1746 fprintf( stderr
, " access=%08x,", req
->access
);
1747 fprintf( stderr
, " attributes=%08x,", req
->attributes
);
1748 fprintf( stderr
, " name=" );
1749 dump_varargs_unicode_str( cur_size
);
1752 static void dump_open_key_reply( const struct open_key_reply
*req
)
1754 fprintf( stderr
, " hkey=%p", req
->hkey
);
1757 static void dump_delete_key_request( const struct delete_key_request
*req
)
1759 fprintf( stderr
, " hkey=%p", req
->hkey
);
1762 static void dump_flush_key_request( const struct flush_key_request
*req
)
1764 fprintf( stderr
, " hkey=%p", req
->hkey
);
1767 static void dump_enum_key_request( const struct enum_key_request
*req
)
1769 fprintf( stderr
, " hkey=%p,", req
->hkey
);
1770 fprintf( stderr
, " index=%d,", req
->index
);
1771 fprintf( stderr
, " info_class=%d", req
->info_class
);
1774 static void dump_enum_key_reply( const struct enum_key_reply
*req
)
1776 fprintf( stderr
, " subkeys=%d,", req
->subkeys
);
1777 fprintf( stderr
, " max_subkey=%d,", req
->max_subkey
);
1778 fprintf( stderr
, " max_class=%d,", req
->max_class
);
1779 fprintf( stderr
, " values=%d,", req
->values
);
1780 fprintf( stderr
, " max_value=%d,", req
->max_value
);
1781 fprintf( stderr
, " max_data=%d,", req
->max_data
);
1782 fprintf( stderr
, " modif=%ld,", (long)req
->modif
);
1783 fprintf( stderr
, " total=%u,", req
->total
);
1784 fprintf( stderr
, " namelen=%u,", req
->namelen
);
1785 fprintf( stderr
, " name=" );
1786 dump_varargs_unicode_str( min(cur_size
,req
->namelen
) );
1787 fputc( ',', stderr
);
1788 fprintf( stderr
, " class=" );
1789 dump_varargs_unicode_str( cur_size
);
1792 static void dump_set_key_value_request( const struct set_key_value_request
*req
)
1794 fprintf( stderr
, " hkey=%p,", req
->hkey
);
1795 fprintf( stderr
, " type=%d,", req
->type
);
1796 fprintf( stderr
, " namelen=%u,", req
->namelen
);
1797 fprintf( stderr
, " name=" );
1798 dump_varargs_unicode_str( min(cur_size
,req
->namelen
) );
1799 fputc( ',', stderr
);
1800 fprintf( stderr
, " data=" );
1801 dump_varargs_bytes( cur_size
);
1804 static void dump_get_key_value_request( const struct get_key_value_request
*req
)
1806 fprintf( stderr
, " hkey=%p,", req
->hkey
);
1807 fprintf( stderr
, " name=" );
1808 dump_varargs_unicode_str( cur_size
);
1811 static void dump_get_key_value_reply( const struct get_key_value_reply
*req
)
1813 fprintf( stderr
, " type=%d,", req
->type
);
1814 fprintf( stderr
, " total=%u,", req
->total
);
1815 fprintf( stderr
, " data=" );
1816 dump_varargs_bytes( cur_size
);
1819 static void dump_enum_key_value_request( const struct enum_key_value_request
*req
)
1821 fprintf( stderr
, " hkey=%p,", req
->hkey
);
1822 fprintf( stderr
, " index=%d,", req
->index
);
1823 fprintf( stderr
, " info_class=%d", req
->info_class
);
1826 static void dump_enum_key_value_reply( const struct enum_key_value_reply
*req
)
1828 fprintf( stderr
, " type=%d,", req
->type
);
1829 fprintf( stderr
, " total=%u,", req
->total
);
1830 fprintf( stderr
, " namelen=%u,", req
->namelen
);
1831 fprintf( stderr
, " name=" );
1832 dump_varargs_unicode_str( min(cur_size
,req
->namelen
) );
1833 fputc( ',', stderr
);
1834 fprintf( stderr
, " data=" );
1835 dump_varargs_bytes( cur_size
);
1838 static void dump_delete_key_value_request( const struct delete_key_value_request
*req
)
1840 fprintf( stderr
, " hkey=%p,", req
->hkey
);
1841 fprintf( stderr
, " name=" );
1842 dump_varargs_unicode_str( cur_size
);
1845 static void dump_load_registry_request( const struct load_registry_request
*req
)
1847 fprintf( stderr
, " hkey=%p,", req
->hkey
);
1848 fprintf( stderr
, " file=%p,", req
->file
);
1849 fprintf( stderr
, " name=" );
1850 dump_varargs_unicode_str( cur_size
);
1853 static void dump_unload_registry_request( const struct unload_registry_request
*req
)
1855 fprintf( stderr
, " hkey=%p", req
->hkey
);
1858 static void dump_save_registry_request( const struct save_registry_request
*req
)
1860 fprintf( stderr
, " hkey=%p,", req
->hkey
);
1861 fprintf( stderr
, " file=%p", req
->file
);
1864 static void dump_set_registry_notification_request( const struct set_registry_notification_request
*req
)
1866 fprintf( stderr
, " hkey=%p,", req
->hkey
);
1867 fprintf( stderr
, " event=%p,", req
->event
);
1868 fprintf( stderr
, " subtree=%d,", req
->subtree
);
1869 fprintf( stderr
, " filter=%08x", req
->filter
);
1872 static void dump_create_timer_request( const struct create_timer_request
*req
)
1874 fprintf( stderr
, " access=%08x,", req
->access
);
1875 fprintf( stderr
, " attributes=%08x,", req
->attributes
);
1876 fprintf( stderr
, " rootdir=%p,", req
->rootdir
);
1877 fprintf( stderr
, " manual=%d,", req
->manual
);
1878 fprintf( stderr
, " name=" );
1879 dump_varargs_unicode_str( cur_size
);
1882 static void dump_create_timer_reply( const struct create_timer_reply
*req
)
1884 fprintf( stderr
, " handle=%p", req
->handle
);
1887 static void dump_open_timer_request( const struct open_timer_request
*req
)
1889 fprintf( stderr
, " access=%08x,", req
->access
);
1890 fprintf( stderr
, " attributes=%08x,", req
->attributes
);
1891 fprintf( stderr
, " rootdir=%p,", req
->rootdir
);
1892 fprintf( stderr
, " name=" );
1893 dump_varargs_unicode_str( cur_size
);
1896 static void dump_open_timer_reply( const struct open_timer_reply
*req
)
1898 fprintf( stderr
, " handle=%p", req
->handle
);
1901 static void dump_set_timer_request( const struct set_timer_request
*req
)
1903 fprintf( stderr
, " handle=%p,", req
->handle
);
1904 fprintf( stderr
, " expire=" );
1905 dump_abs_time( &req
->expire
);
1906 fprintf( stderr
, "," );
1907 fprintf( stderr
, " period=%d,", req
->period
);
1908 fprintf( stderr
, " callback=%p,", req
->callback
);
1909 fprintf( stderr
, " arg=%p", req
->arg
);
1912 static void dump_set_timer_reply( const struct set_timer_reply
*req
)
1914 fprintf( stderr
, " signaled=%d", req
->signaled
);
1917 static void dump_cancel_timer_request( const struct cancel_timer_request
*req
)
1919 fprintf( stderr
, " handle=%p", req
->handle
);
1922 static void dump_cancel_timer_reply( const struct cancel_timer_reply
*req
)
1924 fprintf( stderr
, " signaled=%d", req
->signaled
);
1927 static void dump_get_timer_info_request( const struct get_timer_info_request
*req
)
1929 fprintf( stderr
, " handle=%p", req
->handle
);
1932 static void dump_get_timer_info_reply( const struct get_timer_info_reply
*req
)
1934 fprintf( stderr
, " when=" );
1935 dump_abs_time( &req
->when
);
1936 fprintf( stderr
, "," );
1937 fprintf( stderr
, " signaled=%d", req
->signaled
);
1940 static void dump_get_thread_context_request( const struct get_thread_context_request
*req
)
1942 fprintf( stderr
, " handle=%p,", req
->handle
);
1943 fprintf( stderr
, " flags=%08x,", req
->flags
);
1944 fprintf( stderr
, " suspend=%d", req
->suspend
);
1947 static void dump_get_thread_context_reply( const struct get_thread_context_reply
*req
)
1949 fprintf( stderr
, " self=%d,", req
->self
);
1950 fprintf( stderr
, " context=" );
1951 dump_varargs_context( cur_size
);
1954 static void dump_set_thread_context_request( const struct set_thread_context_request
*req
)
1956 fprintf( stderr
, " handle=%p,", req
->handle
);
1957 fprintf( stderr
, " flags=%08x,", req
->flags
);
1958 fprintf( stderr
, " suspend=%d,", req
->suspend
);
1959 fprintf( stderr
, " context=" );
1960 dump_varargs_context( cur_size
);
1963 static void dump_set_thread_context_reply( const struct set_thread_context_reply
*req
)
1965 fprintf( stderr
, " self=%d", req
->self
);
1968 static void dump_get_selector_entry_request( const struct get_selector_entry_request
*req
)
1970 fprintf( stderr
, " handle=%p,", req
->handle
);
1971 fprintf( stderr
, " entry=%d", req
->entry
);
1974 static void dump_get_selector_entry_reply( const struct get_selector_entry_reply
*req
)
1976 fprintf( stderr
, " base=%08x,", req
->base
);
1977 fprintf( stderr
, " limit=%08x,", req
->limit
);
1978 fprintf( stderr
, " flags=%02x", req
->flags
);
1981 static void dump_add_atom_request( const struct add_atom_request
*req
)
1983 fprintf( stderr
, " table=%p,", req
->table
);
1984 fprintf( stderr
, " name=" );
1985 dump_varargs_unicode_str( cur_size
);
1988 static void dump_add_atom_reply( const struct add_atom_reply
*req
)
1990 fprintf( stderr
, " atom=%04x", req
->atom
);
1993 static void dump_delete_atom_request( const struct delete_atom_request
*req
)
1995 fprintf( stderr
, " table=%p,", req
->table
);
1996 fprintf( stderr
, " atom=%04x", req
->atom
);
1999 static void dump_find_atom_request( const struct find_atom_request
*req
)
2001 fprintf( stderr
, " table=%p,", req
->table
);
2002 fprintf( stderr
, " name=" );
2003 dump_varargs_unicode_str( cur_size
);
2006 static void dump_find_atom_reply( const struct find_atom_reply
*req
)
2008 fprintf( stderr
, " atom=%04x", req
->atom
);
2011 static void dump_get_atom_information_request( const struct get_atom_information_request
*req
)
2013 fprintf( stderr
, " table=%p,", req
->table
);
2014 fprintf( stderr
, " atom=%04x", req
->atom
);
2017 static void dump_get_atom_information_reply( const struct get_atom_information_reply
*req
)
2019 fprintf( stderr
, " count=%d,", req
->count
);
2020 fprintf( stderr
, " pinned=%d,", req
->pinned
);
2021 fprintf( stderr
, " total=%u,", req
->total
);
2022 fprintf( stderr
, " name=" );
2023 dump_varargs_unicode_str( cur_size
);
2026 static void dump_set_atom_information_request( const struct set_atom_information_request
*req
)
2028 fprintf( stderr
, " table=%p,", req
->table
);
2029 fprintf( stderr
, " atom=%04x,", req
->atom
);
2030 fprintf( stderr
, " pinned=%d", req
->pinned
);
2033 static void dump_empty_atom_table_request( const struct empty_atom_table_request
*req
)
2035 fprintf( stderr
, " table=%p,", req
->table
);
2036 fprintf( stderr
, " if_pinned=%d", req
->if_pinned
);
2039 static void dump_init_atom_table_request( const struct init_atom_table_request
*req
)
2041 fprintf( stderr
, " entries=%d", req
->entries
);
2044 static void dump_init_atom_table_reply( const struct init_atom_table_reply
*req
)
2046 fprintf( stderr
, " table=%p", req
->table
);
2049 static void dump_get_msg_queue_request( const struct get_msg_queue_request
*req
)
2053 static void dump_get_msg_queue_reply( const struct get_msg_queue_reply
*req
)
2055 fprintf( stderr
, " handle=%p", req
->handle
);
2058 static void dump_set_queue_mask_request( const struct set_queue_mask_request
*req
)
2060 fprintf( stderr
, " wake_mask=%08x,", req
->wake_mask
);
2061 fprintf( stderr
, " changed_mask=%08x,", req
->changed_mask
);
2062 fprintf( stderr
, " skip_wait=%d", req
->skip_wait
);
2065 static void dump_set_queue_mask_reply( const struct set_queue_mask_reply
*req
)
2067 fprintf( stderr
, " wake_bits=%08x,", req
->wake_bits
);
2068 fprintf( stderr
, " changed_bits=%08x", req
->changed_bits
);
2071 static void dump_get_queue_status_request( const struct get_queue_status_request
*req
)
2073 fprintf( stderr
, " clear=%d", req
->clear
);
2076 static void dump_get_queue_status_reply( const struct get_queue_status_reply
*req
)
2078 fprintf( stderr
, " wake_bits=%08x,", req
->wake_bits
);
2079 fprintf( stderr
, " changed_bits=%08x", req
->changed_bits
);
2082 static void dump_get_process_idle_event_request( const struct get_process_idle_event_request
*req
)
2084 fprintf( stderr
, " handle=%p", req
->handle
);
2087 static void dump_get_process_idle_event_reply( const struct get_process_idle_event_reply
*req
)
2089 fprintf( stderr
, " event=%p", req
->event
);
2092 static void dump_send_message_request( const struct send_message_request
*req
)
2094 fprintf( stderr
, " id=%04x,", req
->id
);
2095 fprintf( stderr
, " type=%d,", req
->type
);
2096 fprintf( stderr
, " flags=%d,", req
->flags
);
2097 fprintf( stderr
, " win=%p,", req
->win
);
2098 fprintf( stderr
, " msg=%08x,", req
->msg
);
2099 fprintf( stderr
, " wparam=%lx,", req
->wparam
);
2100 fprintf( stderr
, " lparam=%lx,", req
->lparam
);
2101 fprintf( stderr
, " timeout=%d,", req
->timeout
);
2102 fprintf( stderr
, " data=" );
2103 dump_varargs_message_data( cur_size
);
2106 static void dump_post_quit_message_request( const struct post_quit_message_request
*req
)
2108 fprintf( stderr
, " exit_code=%d", req
->exit_code
);
2111 static void dump_send_hardware_message_request( const struct send_hardware_message_request
*req
)
2113 fprintf( stderr
, " id=%04x,", req
->id
);
2114 fprintf( stderr
, " win=%p,", req
->win
);
2115 fprintf( stderr
, " msg=%08x,", req
->msg
);
2116 fprintf( stderr
, " time=%08x,", req
->time
);
2117 fprintf( stderr
, " wparam=%lx,", req
->wparam
);
2118 fprintf( stderr
, " lparam=%lx,", req
->lparam
);
2119 fprintf( stderr
, " info=%lx,", req
->info
);
2120 fprintf( stderr
, " x=%d,", req
->x
);
2121 fprintf( stderr
, " y=%d", req
->y
);
2124 static void dump_get_message_request( const struct get_message_request
*req
)
2126 fprintf( stderr
, " flags=%d,", req
->flags
);
2127 fprintf( stderr
, " get_win=%p,", req
->get_win
);
2128 fprintf( stderr
, " get_first=%08x,", req
->get_first
);
2129 fprintf( stderr
, " get_last=%08x,", req
->get_last
);
2130 fprintf( stderr
, " hw_id=%08x", req
->hw_id
);
2133 static void dump_get_message_reply( const struct get_message_reply
*req
)
2135 fprintf( stderr
, " win=%p,", req
->win
);
2136 fprintf( stderr
, " type=%d,", req
->type
);
2137 fprintf( stderr
, " msg=%08x,", req
->msg
);
2138 fprintf( stderr
, " wparam=%lx,", req
->wparam
);
2139 fprintf( stderr
, " lparam=%lx,", req
->lparam
);
2140 fprintf( stderr
, " info=%lx,", req
->info
);
2141 fprintf( stderr
, " x=%d,", req
->x
);
2142 fprintf( stderr
, " y=%d,", req
->y
);
2143 fprintf( stderr
, " time=%08x,", req
->time
);
2144 fprintf( stderr
, " hw_id=%08x,", req
->hw_id
);
2145 fprintf( stderr
, " active_hooks=%08x,", req
->active_hooks
);
2146 fprintf( stderr
, " total=%u,", req
->total
);
2147 fprintf( stderr
, " data=" );
2148 dump_varargs_message_data( cur_size
);
2151 static void dump_reply_message_request( const struct reply_message_request
*req
)
2153 fprintf( stderr
, " result=%08x,", req
->result
);
2154 fprintf( stderr
, " remove=%d,", req
->remove
);
2155 fprintf( stderr
, " data=" );
2156 dump_varargs_bytes( cur_size
);
2159 static void dump_accept_hardware_message_request( const struct accept_hardware_message_request
*req
)
2161 fprintf( stderr
, " hw_id=%08x,", req
->hw_id
);
2162 fprintf( stderr
, " remove=%d,", req
->remove
);
2163 fprintf( stderr
, " new_win=%p", req
->new_win
);
2166 static void dump_get_message_reply_request( const struct get_message_reply_request
*req
)
2168 fprintf( stderr
, " cancel=%d", req
->cancel
);
2171 static void dump_get_message_reply_reply( const struct get_message_reply_reply
*req
)
2173 fprintf( stderr
, " result=%08x,", req
->result
);
2174 fprintf( stderr
, " data=" );
2175 dump_varargs_bytes( cur_size
);
2178 static void dump_set_win_timer_request( const struct set_win_timer_request
*req
)
2180 fprintf( stderr
, " win=%p,", req
->win
);
2181 fprintf( stderr
, " msg=%08x,", req
->msg
);
2182 fprintf( stderr
, " rate=%08x,", req
->rate
);
2183 fprintf( stderr
, " id=%lx,", req
->id
);
2184 fprintf( stderr
, " lparam=%lx", req
->lparam
);
2187 static void dump_set_win_timer_reply( const struct set_win_timer_reply
*req
)
2189 fprintf( stderr
, " id=%lx", req
->id
);
2192 static void dump_kill_win_timer_request( const struct kill_win_timer_request
*req
)
2194 fprintf( stderr
, " win=%p,", req
->win
);
2195 fprintf( stderr
, " msg=%08x,", req
->msg
);
2196 fprintf( stderr
, " id=%lx", req
->id
);
2199 static void dump_get_serial_info_request( const struct get_serial_info_request
*req
)
2201 fprintf( stderr
, " handle=%p", req
->handle
);
2204 static void dump_get_serial_info_reply( const struct get_serial_info_reply
*req
)
2206 fprintf( stderr
, " readinterval=%08x,", req
->readinterval
);
2207 fprintf( stderr
, " readconst=%08x,", req
->readconst
);
2208 fprintf( stderr
, " readmult=%08x,", req
->readmult
);
2209 fprintf( stderr
, " writeconst=%08x,", req
->writeconst
);
2210 fprintf( stderr
, " writemult=%08x,", req
->writemult
);
2211 fprintf( stderr
, " eventmask=%08x", req
->eventmask
);
2214 static void dump_set_serial_info_request( const struct set_serial_info_request
*req
)
2216 fprintf( stderr
, " handle=%p,", req
->handle
);
2217 fprintf( stderr
, " flags=%d,", req
->flags
);
2218 fprintf( stderr
, " readinterval=%08x,", req
->readinterval
);
2219 fprintf( stderr
, " readconst=%08x,", req
->readconst
);
2220 fprintf( stderr
, " readmult=%08x,", req
->readmult
);
2221 fprintf( stderr
, " writeconst=%08x,", req
->writeconst
);
2222 fprintf( stderr
, " writemult=%08x,", req
->writemult
);
2223 fprintf( stderr
, " eventmask=%08x", req
->eventmask
);
2226 static void dump_register_async_request( const struct register_async_request
*req
)
2228 fprintf( stderr
, " handle=%p,", req
->handle
);
2229 fprintf( stderr
, " type=%d,", req
->type
);
2230 fprintf( stderr
, " io_apc=%p,", req
->io_apc
);
2231 fprintf( stderr
, " io_sb=%p,", req
->io_sb
);
2232 fprintf( stderr
, " io_user=%p,", req
->io_user
);
2233 fprintf( stderr
, " count=%d", req
->count
);
2236 static void dump_cancel_async_request( const struct cancel_async_request
*req
)
2238 fprintf( stderr
, " handle=%p", req
->handle
);
2241 static void dump_create_named_pipe_request( const struct create_named_pipe_request
*req
)
2243 fprintf( stderr
, " access=%08x,", req
->access
);
2244 fprintf( stderr
, " attributes=%08x,", req
->attributes
);
2245 fprintf( stderr
, " rootdir=%p,", req
->rootdir
);
2246 fprintf( stderr
, " options=%08x,", req
->options
);
2247 fprintf( stderr
, " flags=%08x,", req
->flags
);
2248 fprintf( stderr
, " maxinstances=%08x,", req
->maxinstances
);
2249 fprintf( stderr
, " outsize=%08x,", req
->outsize
);
2250 fprintf( stderr
, " insize=%08x,", req
->insize
);
2251 fprintf( stderr
, " timeout=%08x,", req
->timeout
);
2252 fprintf( stderr
, " name=" );
2253 dump_varargs_unicode_str( cur_size
);
2256 static void dump_create_named_pipe_reply( const struct create_named_pipe_reply
*req
)
2258 fprintf( stderr
, " handle=%p", req
->handle
);
2261 static void dump_open_named_pipe_request( const struct open_named_pipe_request
*req
)
2263 fprintf( stderr
, " access=%08x,", req
->access
);
2264 fprintf( stderr
, " attributes=%08x,", req
->attributes
);
2265 fprintf( stderr
, " rootdir=%p,", req
->rootdir
);
2266 fprintf( stderr
, " flags=%08x,", req
->flags
);
2267 fprintf( stderr
, " name=" );
2268 dump_varargs_unicode_str( cur_size
);
2271 static void dump_open_named_pipe_reply( const struct open_named_pipe_reply
*req
)
2273 fprintf( stderr
, " handle=%p", req
->handle
);
2276 static void dump_connect_named_pipe_request( const struct connect_named_pipe_request
*req
)
2278 fprintf( stderr
, " handle=%p,", req
->handle
);
2279 fprintf( stderr
, " event=%p,", req
->event
);
2280 fprintf( stderr
, " func=%p", req
->func
);
2283 static void dump_wait_named_pipe_request( const struct wait_named_pipe_request
*req
)
2285 fprintf( stderr
, " handle=%p,", req
->handle
);
2286 fprintf( stderr
, " timeout=%08x,", req
->timeout
);
2287 fprintf( stderr
, " event=%p,", req
->event
);
2288 fprintf( stderr
, " func=%p,", req
->func
);
2289 fprintf( stderr
, " name=" );
2290 dump_varargs_unicode_str( cur_size
);
2293 static void dump_disconnect_named_pipe_request( const struct disconnect_named_pipe_request
*req
)
2295 fprintf( stderr
, " handle=%p", req
->handle
);
2298 static void dump_disconnect_named_pipe_reply( const struct disconnect_named_pipe_reply
*req
)
2300 fprintf( stderr
, " fd=%d", req
->fd
);
2303 static void dump_get_named_pipe_info_request( const struct get_named_pipe_info_request
*req
)
2305 fprintf( stderr
, " handle=%p", req
->handle
);
2308 static void dump_get_named_pipe_info_reply( const struct get_named_pipe_info_reply
*req
)
2310 fprintf( stderr
, " flags=%08x,", req
->flags
);
2311 fprintf( stderr
, " maxinstances=%08x,", req
->maxinstances
);
2312 fprintf( stderr
, " instances=%08x,", req
->instances
);
2313 fprintf( stderr
, " outsize=%08x,", req
->outsize
);
2314 fprintf( stderr
, " insize=%08x", req
->insize
);
2317 static void dump_create_window_request( const struct create_window_request
*req
)
2319 fprintf( stderr
, " parent=%p,", req
->parent
);
2320 fprintf( stderr
, " owner=%p,", req
->owner
);
2321 fprintf( stderr
, " atom=%04x,", req
->atom
);
2322 fprintf( stderr
, " instance=%p", req
->instance
);
2325 static void dump_create_window_reply( const struct create_window_reply
*req
)
2327 fprintf( stderr
, " handle=%p,", req
->handle
);
2328 fprintf( stderr
, " parent=%p,", req
->parent
);
2329 fprintf( stderr
, " owner=%p,", req
->owner
);
2330 fprintf( stderr
, " extra=%d,", req
->extra
);
2331 fprintf( stderr
, " class_ptr=%p", req
->class_ptr
);
2334 static void dump_destroy_window_request( const struct destroy_window_request
*req
)
2336 fprintf( stderr
, " handle=%p", req
->handle
);
2339 static void dump_get_desktop_window_request( const struct get_desktop_window_request
*req
)
2341 fprintf( stderr
, " force=%d", req
->force
);
2344 static void dump_get_desktop_window_reply( const struct get_desktop_window_reply
*req
)
2346 fprintf( stderr
, " handle=%p", req
->handle
);
2349 static void dump_set_window_owner_request( const struct set_window_owner_request
*req
)
2351 fprintf( stderr
, " handle=%p,", req
->handle
);
2352 fprintf( stderr
, " owner=%p", req
->owner
);
2355 static void dump_set_window_owner_reply( const struct set_window_owner_reply
*req
)
2357 fprintf( stderr
, " full_owner=%p,", req
->full_owner
);
2358 fprintf( stderr
, " prev_owner=%p", req
->prev_owner
);
2361 static void dump_get_window_info_request( const struct get_window_info_request
*req
)
2363 fprintf( stderr
, " handle=%p", req
->handle
);
2366 static void dump_get_window_info_reply( const struct get_window_info_reply
*req
)
2368 fprintf( stderr
, " full_handle=%p,", req
->full_handle
);
2369 fprintf( stderr
, " last_active=%p,", req
->last_active
);
2370 fprintf( stderr
, " pid=%04x,", req
->pid
);
2371 fprintf( stderr
, " tid=%04x,", req
->tid
);
2372 fprintf( stderr
, " atom=%04x,", req
->atom
);
2373 fprintf( stderr
, " is_unicode=%d", req
->is_unicode
);
2376 static void dump_set_window_info_request( const struct set_window_info_request
*req
)
2378 fprintf( stderr
, " flags=%08x,", req
->flags
);
2379 fprintf( stderr
, " handle=%p,", req
->handle
);
2380 fprintf( stderr
, " style=%08x,", req
->style
);
2381 fprintf( stderr
, " ex_style=%08x,", req
->ex_style
);
2382 fprintf( stderr
, " id=%08x,", req
->id
);
2383 fprintf( stderr
, " is_unicode=%d,", req
->is_unicode
);
2384 fprintf( stderr
, " instance=%p,", req
->instance
);
2385 fprintf( stderr
, " user_data=%lx,", req
->user_data
);
2386 fprintf( stderr
, " extra_offset=%d,", req
->extra_offset
);
2387 fprintf( stderr
, " extra_size=%u,", req
->extra_size
);
2388 fprintf( stderr
, " extra_value=%lx", req
->extra_value
);
2391 static void dump_set_window_info_reply( const struct set_window_info_reply
*req
)
2393 fprintf( stderr
, " old_style=%08x,", req
->old_style
);
2394 fprintf( stderr
, " old_ex_style=%08x,", req
->old_ex_style
);
2395 fprintf( stderr
, " old_id=%08x,", req
->old_id
);
2396 fprintf( stderr
, " old_instance=%p,", req
->old_instance
);
2397 fprintf( stderr
, " old_user_data=%lx,", req
->old_user_data
);
2398 fprintf( stderr
, " old_extra_value=%lx", req
->old_extra_value
);
2401 static void dump_set_parent_request( const struct set_parent_request
*req
)
2403 fprintf( stderr
, " handle=%p,", req
->handle
);
2404 fprintf( stderr
, " parent=%p", req
->parent
);
2407 static void dump_set_parent_reply( const struct set_parent_reply
*req
)
2409 fprintf( stderr
, " old_parent=%p,", req
->old_parent
);
2410 fprintf( stderr
, " full_parent=%p", req
->full_parent
);
2413 static void dump_get_window_parents_request( const struct get_window_parents_request
*req
)
2415 fprintf( stderr
, " handle=%p", req
->handle
);
2418 static void dump_get_window_parents_reply( const struct get_window_parents_reply
*req
)
2420 fprintf( stderr
, " count=%d,", req
->count
);
2421 fprintf( stderr
, " parents=" );
2422 dump_varargs_user_handles( cur_size
);
2425 static void dump_get_window_children_request( const struct get_window_children_request
*req
)
2427 fprintf( stderr
, " parent=%p,", req
->parent
);
2428 fprintf( stderr
, " atom=%04x,", req
->atom
);
2429 fprintf( stderr
, " tid=%04x", req
->tid
);
2432 static void dump_get_window_children_reply( const struct get_window_children_reply
*req
)
2434 fprintf( stderr
, " count=%d,", req
->count
);
2435 fprintf( stderr
, " children=" );
2436 dump_varargs_user_handles( cur_size
);
2439 static void dump_get_window_children_from_point_request( const struct get_window_children_from_point_request
*req
)
2441 fprintf( stderr
, " parent=%p,", req
->parent
);
2442 fprintf( stderr
, " x=%d,", req
->x
);
2443 fprintf( stderr
, " y=%d", req
->y
);
2446 static void dump_get_window_children_from_point_reply( const struct get_window_children_from_point_reply
*req
)
2448 fprintf( stderr
, " count=%d,", req
->count
);
2449 fprintf( stderr
, " children=" );
2450 dump_varargs_user_handles( cur_size
);
2453 static void dump_get_window_tree_request( const struct get_window_tree_request
*req
)
2455 fprintf( stderr
, " handle=%p", req
->handle
);
2458 static void dump_get_window_tree_reply( const struct get_window_tree_reply
*req
)
2460 fprintf( stderr
, " parent=%p,", req
->parent
);
2461 fprintf( stderr
, " owner=%p,", req
->owner
);
2462 fprintf( stderr
, " next_sibling=%p,", req
->next_sibling
);
2463 fprintf( stderr
, " prev_sibling=%p,", req
->prev_sibling
);
2464 fprintf( stderr
, " first_sibling=%p,", req
->first_sibling
);
2465 fprintf( stderr
, " last_sibling=%p,", req
->last_sibling
);
2466 fprintf( stderr
, " first_child=%p,", req
->first_child
);
2467 fprintf( stderr
, " last_child=%p", req
->last_child
);
2470 static void dump_set_window_pos_request( const struct set_window_pos_request
*req
)
2472 fprintf( stderr
, " flags=%08x,", req
->flags
);
2473 fprintf( stderr
, " handle=%p,", req
->handle
);
2474 fprintf( stderr
, " previous=%p,", req
->previous
);
2475 fprintf( stderr
, " window=" );
2476 dump_rectangle( &req
->window
);
2477 fprintf( stderr
, "," );
2478 fprintf( stderr
, " client=" );
2479 dump_rectangle( &req
->client
);
2480 fprintf( stderr
, "," );
2481 fprintf( stderr
, " valid=" );
2482 dump_varargs_rectangles( cur_size
);
2485 static void dump_set_window_pos_reply( const struct set_window_pos_reply
*req
)
2487 fprintf( stderr
, " new_style=%08x", req
->new_style
);
2490 static void dump_get_window_rectangles_request( const struct get_window_rectangles_request
*req
)
2492 fprintf( stderr
, " handle=%p", req
->handle
);
2495 static void dump_get_window_rectangles_reply( const struct get_window_rectangles_reply
*req
)
2497 fprintf( stderr
, " window=" );
2498 dump_rectangle( &req
->window
);
2499 fprintf( stderr
, "," );
2500 fprintf( stderr
, " visible=" );
2501 dump_rectangle( &req
->visible
);
2502 fprintf( stderr
, "," );
2503 fprintf( stderr
, " client=" );
2504 dump_rectangle( &req
->client
);
2507 static void dump_get_window_text_request( const struct get_window_text_request
*req
)
2509 fprintf( stderr
, " handle=%p", req
->handle
);
2512 static void dump_get_window_text_reply( const struct get_window_text_reply
*req
)
2514 fprintf( stderr
, " text=" );
2515 dump_varargs_unicode_str( cur_size
);
2518 static void dump_set_window_text_request( const struct set_window_text_request
*req
)
2520 fprintf( stderr
, " handle=%p,", req
->handle
);
2521 fprintf( stderr
, " text=" );
2522 dump_varargs_unicode_str( cur_size
);
2525 static void dump_get_windows_offset_request( const struct get_windows_offset_request
*req
)
2527 fprintf( stderr
, " from=%p,", req
->from
);
2528 fprintf( stderr
, " to=%p", req
->to
);
2531 static void dump_get_windows_offset_reply( const struct get_windows_offset_reply
*req
)
2533 fprintf( stderr
, " x=%d,", req
->x
);
2534 fprintf( stderr
, " y=%d", req
->y
);
2537 static void dump_get_visible_region_request( const struct get_visible_region_request
*req
)
2539 fprintf( stderr
, " window=%p,", req
->window
);
2540 fprintf( stderr
, " flags=%08x", req
->flags
);
2543 static void dump_get_visible_region_reply( const struct get_visible_region_reply
*req
)
2545 fprintf( stderr
, " top_win=%p,", req
->top_win
);
2546 fprintf( stderr
, " top_org_x=%d,", req
->top_org_x
);
2547 fprintf( stderr
, " top_org_y=%d,", req
->top_org_y
);
2548 fprintf( stderr
, " win_org_x=%d,", req
->win_org_x
);
2549 fprintf( stderr
, " win_org_y=%d,", req
->win_org_y
);
2550 fprintf( stderr
, " total_size=%u,", req
->total_size
);
2551 fprintf( stderr
, " region=" );
2552 dump_varargs_rectangles( cur_size
);
2555 static void dump_get_window_region_request( const struct get_window_region_request
*req
)
2557 fprintf( stderr
, " window=%p", req
->window
);
2560 static void dump_get_window_region_reply( const struct get_window_region_reply
*req
)
2562 fprintf( stderr
, " total_size=%u,", req
->total_size
);
2563 fprintf( stderr
, " region=" );
2564 dump_varargs_rectangles( cur_size
);
2567 static void dump_set_window_region_request( const struct set_window_region_request
*req
)
2569 fprintf( stderr
, " window=%p,", req
->window
);
2570 fprintf( stderr
, " region=" );
2571 dump_varargs_rectangles( cur_size
);
2574 static void dump_get_update_region_request( const struct get_update_region_request
*req
)
2576 fprintf( stderr
, " window=%p,", req
->window
);
2577 fprintf( stderr
, " from_child=%p,", req
->from_child
);
2578 fprintf( stderr
, " flags=%08x", req
->flags
);
2581 static void dump_get_update_region_reply( const struct get_update_region_reply
*req
)
2583 fprintf( stderr
, " child=%p,", req
->child
);
2584 fprintf( stderr
, " flags=%08x,", req
->flags
);
2585 fprintf( stderr
, " total_size=%u,", req
->total_size
);
2586 fprintf( stderr
, " region=" );
2587 dump_varargs_rectangles( cur_size
);
2590 static void dump_update_window_zorder_request( const struct update_window_zorder_request
*req
)
2592 fprintf( stderr
, " window=%p,", req
->window
);
2593 fprintf( stderr
, " rect=" );
2594 dump_rectangle( &req
->rect
);
2597 static void dump_redraw_window_request( const struct redraw_window_request
*req
)
2599 fprintf( stderr
, " window=%p,", req
->window
);
2600 fprintf( stderr
, " flags=%08x,", req
->flags
);
2601 fprintf( stderr
, " region=" );
2602 dump_varargs_rectangles( cur_size
);
2605 static void dump_set_window_property_request( const struct set_window_property_request
*req
)
2607 fprintf( stderr
, " window=%p,", req
->window
);
2608 fprintf( stderr
, " atom=%04x,", req
->atom
);
2609 fprintf( stderr
, " handle=%p,", req
->handle
);
2610 fprintf( stderr
, " name=" );
2611 dump_varargs_unicode_str( cur_size
);
2614 static void dump_remove_window_property_request( const struct remove_window_property_request
*req
)
2616 fprintf( stderr
, " window=%p,", req
->window
);
2617 fprintf( stderr
, " atom=%04x,", req
->atom
);
2618 fprintf( stderr
, " name=" );
2619 dump_varargs_unicode_str( cur_size
);
2622 static void dump_remove_window_property_reply( const struct remove_window_property_reply
*req
)
2624 fprintf( stderr
, " handle=%p", req
->handle
);
2627 static void dump_get_window_property_request( const struct get_window_property_request
*req
)
2629 fprintf( stderr
, " window=%p,", req
->window
);
2630 fprintf( stderr
, " atom=%04x,", req
->atom
);
2631 fprintf( stderr
, " name=" );
2632 dump_varargs_unicode_str( cur_size
);
2635 static void dump_get_window_property_reply( const struct get_window_property_reply
*req
)
2637 fprintf( stderr
, " handle=%p", req
->handle
);
2640 static void dump_get_window_properties_request( const struct get_window_properties_request
*req
)
2642 fprintf( stderr
, " window=%p", req
->window
);
2645 static void dump_get_window_properties_reply( const struct get_window_properties_reply
*req
)
2647 fprintf( stderr
, " total=%d,", req
->total
);
2648 fprintf( stderr
, " props=" );
2649 dump_varargs_properties( cur_size
);
2652 static void dump_create_winstation_request( const struct create_winstation_request
*req
)
2654 fprintf( stderr
, " flags=%08x,", req
->flags
);
2655 fprintf( stderr
, " access=%08x,", req
->access
);
2656 fprintf( stderr
, " attributes=%08x,", req
->attributes
);
2657 fprintf( stderr
, " name=" );
2658 dump_varargs_unicode_str( cur_size
);
2661 static void dump_create_winstation_reply( const struct create_winstation_reply
*req
)
2663 fprintf( stderr
, " handle=%p", req
->handle
);
2666 static void dump_open_winstation_request( const struct open_winstation_request
*req
)
2668 fprintf( stderr
, " access=%08x,", req
->access
);
2669 fprintf( stderr
, " attributes=%08x,", req
->attributes
);
2670 fprintf( stderr
, " name=" );
2671 dump_varargs_unicode_str( cur_size
);
2674 static void dump_open_winstation_reply( const struct open_winstation_reply
*req
)
2676 fprintf( stderr
, " handle=%p", req
->handle
);
2679 static void dump_close_winstation_request( const struct close_winstation_request
*req
)
2681 fprintf( stderr
, " handle=%p", req
->handle
);
2684 static void dump_get_process_winstation_request( const struct get_process_winstation_request
*req
)
2688 static void dump_get_process_winstation_reply( const struct get_process_winstation_reply
*req
)
2690 fprintf( stderr
, " handle=%p", req
->handle
);
2693 static void dump_set_process_winstation_request( const struct set_process_winstation_request
*req
)
2695 fprintf( stderr
, " handle=%p", req
->handle
);
2698 static void dump_create_desktop_request( const struct create_desktop_request
*req
)
2700 fprintf( stderr
, " flags=%08x,", req
->flags
);
2701 fprintf( stderr
, " access=%08x,", req
->access
);
2702 fprintf( stderr
, " attributes=%08x,", req
->attributes
);
2703 fprintf( stderr
, " name=" );
2704 dump_varargs_unicode_str( cur_size
);
2707 static void dump_create_desktop_reply( const struct create_desktop_reply
*req
)
2709 fprintf( stderr
, " handle=%p", req
->handle
);
2712 static void dump_open_desktop_request( const struct open_desktop_request
*req
)
2714 fprintf( stderr
, " flags=%08x,", req
->flags
);
2715 fprintf( stderr
, " access=%08x,", req
->access
);
2716 fprintf( stderr
, " attributes=%08x,", req
->attributes
);
2717 fprintf( stderr
, " name=" );
2718 dump_varargs_unicode_str( cur_size
);
2721 static void dump_open_desktop_reply( const struct open_desktop_reply
*req
)
2723 fprintf( stderr
, " handle=%p", req
->handle
);
2726 static void dump_close_desktop_request( const struct close_desktop_request
*req
)
2728 fprintf( stderr
, " handle=%p", req
->handle
);
2731 static void dump_get_thread_desktop_request( const struct get_thread_desktop_request
*req
)
2733 fprintf( stderr
, " tid=%04x", req
->tid
);
2736 static void dump_get_thread_desktop_reply( const struct get_thread_desktop_reply
*req
)
2738 fprintf( stderr
, " handle=%p", req
->handle
);
2741 static void dump_set_thread_desktop_request( const struct set_thread_desktop_request
*req
)
2743 fprintf( stderr
, " handle=%p", req
->handle
);
2746 static void dump_set_user_object_info_request( const struct set_user_object_info_request
*req
)
2748 fprintf( stderr
, " handle=%p,", req
->handle
);
2749 fprintf( stderr
, " flags=%08x,", req
->flags
);
2750 fprintf( stderr
, " obj_flags=%08x", req
->obj_flags
);
2753 static void dump_set_user_object_info_reply( const struct set_user_object_info_reply
*req
)
2755 fprintf( stderr
, " is_desktop=%d,", req
->is_desktop
);
2756 fprintf( stderr
, " old_obj_flags=%08x,", req
->old_obj_flags
);
2757 fprintf( stderr
, " name=" );
2758 dump_varargs_unicode_str( cur_size
);
2761 static void dump_attach_thread_input_request( const struct attach_thread_input_request
*req
)
2763 fprintf( stderr
, " tid_from=%04x,", req
->tid_from
);
2764 fprintf( stderr
, " tid_to=%04x,", req
->tid_to
);
2765 fprintf( stderr
, " attach=%d", req
->attach
);
2768 static void dump_get_thread_input_request( const struct get_thread_input_request
*req
)
2770 fprintf( stderr
, " tid=%04x", req
->tid
);
2773 static void dump_get_thread_input_reply( const struct get_thread_input_reply
*req
)
2775 fprintf( stderr
, " focus=%p,", req
->focus
);
2776 fprintf( stderr
, " capture=%p,", req
->capture
);
2777 fprintf( stderr
, " active=%p,", req
->active
);
2778 fprintf( stderr
, " foreground=%p,", req
->foreground
);
2779 fprintf( stderr
, " menu_owner=%p,", req
->menu_owner
);
2780 fprintf( stderr
, " move_size=%p,", req
->move_size
);
2781 fprintf( stderr
, " caret=%p,", req
->caret
);
2782 fprintf( stderr
, " rect=" );
2783 dump_rectangle( &req
->rect
);
2786 static void dump_get_last_input_time_request( const struct get_last_input_time_request
*req
)
2790 static void dump_get_last_input_time_reply( const struct get_last_input_time_reply
*req
)
2792 fprintf( stderr
, " time=%08x", req
->time
);
2795 static void dump_get_key_state_request( const struct get_key_state_request
*req
)
2797 fprintf( stderr
, " tid=%04x,", req
->tid
);
2798 fprintf( stderr
, " key=%d", req
->key
);
2801 static void dump_get_key_state_reply( const struct get_key_state_reply
*req
)
2803 fprintf( stderr
, " state=%02x,", req
->state
);
2804 fprintf( stderr
, " keystate=" );
2805 dump_varargs_bytes( cur_size
);
2808 static void dump_set_key_state_request( const struct set_key_state_request
*req
)
2810 fprintf( stderr
, " tid=%04x,", req
->tid
);
2811 fprintf( stderr
, " keystate=" );
2812 dump_varargs_bytes( cur_size
);
2815 static void dump_set_foreground_window_request( const struct set_foreground_window_request
*req
)
2817 fprintf( stderr
, " handle=%p", req
->handle
);
2820 static void dump_set_foreground_window_reply( const struct set_foreground_window_reply
*req
)
2822 fprintf( stderr
, " previous=%p,", req
->previous
);
2823 fprintf( stderr
, " send_msg_old=%d,", req
->send_msg_old
);
2824 fprintf( stderr
, " send_msg_new=%d", req
->send_msg_new
);
2827 static void dump_set_focus_window_request( const struct set_focus_window_request
*req
)
2829 fprintf( stderr
, " handle=%p", req
->handle
);
2832 static void dump_set_focus_window_reply( const struct set_focus_window_reply
*req
)
2834 fprintf( stderr
, " previous=%p", req
->previous
);
2837 static void dump_set_active_window_request( const struct set_active_window_request
*req
)
2839 fprintf( stderr
, " handle=%p", req
->handle
);
2842 static void dump_set_active_window_reply( const struct set_active_window_reply
*req
)
2844 fprintf( stderr
, " previous=%p", req
->previous
);
2847 static void dump_set_capture_window_request( const struct set_capture_window_request
*req
)
2849 fprintf( stderr
, " handle=%p,", req
->handle
);
2850 fprintf( stderr
, " flags=%08x", req
->flags
);
2853 static void dump_set_capture_window_reply( const struct set_capture_window_reply
*req
)
2855 fprintf( stderr
, " previous=%p,", req
->previous
);
2856 fprintf( stderr
, " full_handle=%p", req
->full_handle
);
2859 static void dump_set_caret_window_request( const struct set_caret_window_request
*req
)
2861 fprintf( stderr
, " handle=%p,", req
->handle
);
2862 fprintf( stderr
, " width=%d,", req
->width
);
2863 fprintf( stderr
, " height=%d", req
->height
);
2866 static void dump_set_caret_window_reply( const struct set_caret_window_reply
*req
)
2868 fprintf( stderr
, " previous=%p,", req
->previous
);
2869 fprintf( stderr
, " old_rect=" );
2870 dump_rectangle( &req
->old_rect
);
2871 fprintf( stderr
, "," );
2872 fprintf( stderr
, " old_hide=%d,", req
->old_hide
);
2873 fprintf( stderr
, " old_state=%d", req
->old_state
);
2876 static void dump_set_caret_info_request( const struct set_caret_info_request
*req
)
2878 fprintf( stderr
, " flags=%08x,", req
->flags
);
2879 fprintf( stderr
, " handle=%p,", req
->handle
);
2880 fprintf( stderr
, " x=%d,", req
->x
);
2881 fprintf( stderr
, " y=%d,", req
->y
);
2882 fprintf( stderr
, " hide=%d,", req
->hide
);
2883 fprintf( stderr
, " state=%d", req
->state
);
2886 static void dump_set_caret_info_reply( const struct set_caret_info_reply
*req
)
2888 fprintf( stderr
, " full_handle=%p,", req
->full_handle
);
2889 fprintf( stderr
, " old_rect=" );
2890 dump_rectangle( &req
->old_rect
);
2891 fprintf( stderr
, "," );
2892 fprintf( stderr
, " old_hide=%d,", req
->old_hide
);
2893 fprintf( stderr
, " old_state=%d", req
->old_state
);
2896 static void dump_set_hook_request( const struct set_hook_request
*req
)
2898 fprintf( stderr
, " id=%d,", req
->id
);
2899 fprintf( stderr
, " pid=%04x,", req
->pid
);
2900 fprintf( stderr
, " tid=%04x,", req
->tid
);
2901 fprintf( stderr
, " event_min=%d,", req
->event_min
);
2902 fprintf( stderr
, " event_max=%d,", req
->event_max
);
2903 fprintf( stderr
, " flags=%d,", req
->flags
);
2904 fprintf( stderr
, " proc=%p,", req
->proc
);
2905 fprintf( stderr
, " unicode=%d,", req
->unicode
);
2906 fprintf( stderr
, " module=" );
2907 dump_varargs_unicode_str( cur_size
);
2910 static void dump_set_hook_reply( const struct set_hook_reply
*req
)
2912 fprintf( stderr
, " handle=%p,", req
->handle
);
2913 fprintf( stderr
, " active_hooks=%08x", req
->active_hooks
);
2916 static void dump_remove_hook_request( const struct remove_hook_request
*req
)
2918 fprintf( stderr
, " handle=%p,", req
->handle
);
2919 fprintf( stderr
, " id=%d,", req
->id
);
2920 fprintf( stderr
, " proc=%p", req
->proc
);
2923 static void dump_remove_hook_reply( const struct remove_hook_reply
*req
)
2925 fprintf( stderr
, " active_hooks=%08x", req
->active_hooks
);
2928 static void dump_start_hook_chain_request( const struct start_hook_chain_request
*req
)
2930 fprintf( stderr
, " id=%d,", req
->id
);
2931 fprintf( stderr
, " event=%d,", req
->event
);
2932 fprintf( stderr
, " window=%p,", req
->window
);
2933 fprintf( stderr
, " object_id=%d,", req
->object_id
);
2934 fprintf( stderr
, " child_id=%d", req
->child_id
);
2937 static void dump_start_hook_chain_reply( const struct start_hook_chain_reply
*req
)
2939 fprintf( stderr
, " handle=%p,", req
->handle
);
2940 fprintf( stderr
, " pid=%04x,", req
->pid
);
2941 fprintf( stderr
, " tid=%04x,", req
->tid
);
2942 fprintf( stderr
, " proc=%p,", req
->proc
);
2943 fprintf( stderr
, " unicode=%d,", req
->unicode
);
2944 fprintf( stderr
, " active_hooks=%08x,", req
->active_hooks
);
2945 fprintf( stderr
, " module=" );
2946 dump_varargs_unicode_str( cur_size
);
2949 static void dump_finish_hook_chain_request( const struct finish_hook_chain_request
*req
)
2951 fprintf( stderr
, " id=%d", req
->id
);
2954 static void dump_get_hook_info_request( const struct get_hook_info_request
*req
)
2956 fprintf( stderr
, " handle=%p,", req
->handle
);
2957 fprintf( stderr
, " get_next=%d,", req
->get_next
);
2958 fprintf( stderr
, " event=%d,", req
->event
);
2959 fprintf( stderr
, " window=%p,", req
->window
);
2960 fprintf( stderr
, " object_id=%d,", req
->object_id
);
2961 fprintf( stderr
, " child_id=%d", req
->child_id
);
2964 static void dump_get_hook_info_reply( const struct get_hook_info_reply
*req
)
2966 fprintf( stderr
, " handle=%p,", req
->handle
);
2967 fprintf( stderr
, " id=%d,", req
->id
);
2968 fprintf( stderr
, " pid=%04x,", req
->pid
);
2969 fprintf( stderr
, " tid=%04x,", req
->tid
);
2970 fprintf( stderr
, " proc=%p,", req
->proc
);
2971 fprintf( stderr
, " unicode=%d,", req
->unicode
);
2972 fprintf( stderr
, " module=" );
2973 dump_varargs_unicode_str( cur_size
);
2976 static void dump_create_class_request( const struct create_class_request
*req
)
2978 fprintf( stderr
, " local=%d,", req
->local
);
2979 fprintf( stderr
, " atom=%04x,", req
->atom
);
2980 fprintf( stderr
, " style=%08x,", req
->style
);
2981 fprintf( stderr
, " instance=%p,", req
->instance
);
2982 fprintf( stderr
, " extra=%d,", req
->extra
);
2983 fprintf( stderr
, " win_extra=%d,", req
->win_extra
);
2984 fprintf( stderr
, " client_ptr=%p", req
->client_ptr
);
2987 static void dump_destroy_class_request( const struct destroy_class_request
*req
)
2989 fprintf( stderr
, " atom=%04x,", req
->atom
);
2990 fprintf( stderr
, " instance=%p", req
->instance
);
2993 static void dump_destroy_class_reply( const struct destroy_class_reply
*req
)
2995 fprintf( stderr
, " client_ptr=%p", req
->client_ptr
);
2998 static void dump_set_class_info_request( const struct set_class_info_request
*req
)
3000 fprintf( stderr
, " window=%p,", req
->window
);
3001 fprintf( stderr
, " flags=%08x,", req
->flags
);
3002 fprintf( stderr
, " atom=%04x,", req
->atom
);
3003 fprintf( stderr
, " style=%08x,", req
->style
);
3004 fprintf( stderr
, " win_extra=%d,", req
->win_extra
);
3005 fprintf( stderr
, " instance=%p,", req
->instance
);
3006 fprintf( stderr
, " extra_offset=%d,", req
->extra_offset
);
3007 fprintf( stderr
, " extra_size=%u,", req
->extra_size
);
3008 fprintf( stderr
, " extra_value=%lx", req
->extra_value
);
3011 static void dump_set_class_info_reply( const struct set_class_info_reply
*req
)
3013 fprintf( stderr
, " old_atom=%04x,", req
->old_atom
);
3014 fprintf( stderr
, " old_style=%08x,", req
->old_style
);
3015 fprintf( stderr
, " old_extra=%d,", req
->old_extra
);
3016 fprintf( stderr
, " old_win_extra=%d,", req
->old_win_extra
);
3017 fprintf( stderr
, " old_instance=%p,", req
->old_instance
);
3018 fprintf( stderr
, " old_extra_value=%lx", req
->old_extra_value
);
3021 static void dump_set_clipboard_info_request( const struct set_clipboard_info_request
*req
)
3023 fprintf( stderr
, " flags=%08x,", req
->flags
);
3024 fprintf( stderr
, " clipboard=%p,", req
->clipboard
);
3025 fprintf( stderr
, " owner=%p,", req
->owner
);
3026 fprintf( stderr
, " viewer=%p,", req
->viewer
);
3027 fprintf( stderr
, " seqno=%08x", req
->seqno
);
3030 static void dump_set_clipboard_info_reply( const struct set_clipboard_info_reply
*req
)
3032 fprintf( stderr
, " flags=%08x,", req
->flags
);
3033 fprintf( stderr
, " old_clipboard=%p,", req
->old_clipboard
);
3034 fprintf( stderr
, " old_owner=%p,", req
->old_owner
);
3035 fprintf( stderr
, " old_viewer=%p,", req
->old_viewer
);
3036 fprintf( stderr
, " seqno=%08x", req
->seqno
);
3039 static void dump_open_token_request( const struct open_token_request
*req
)
3041 fprintf( stderr
, " handle=%p,", req
->handle
);
3042 fprintf( stderr
, " access=%08x,", req
->access
);
3043 fprintf( stderr
, " attributes=%08x,", req
->attributes
);
3044 fprintf( stderr
, " flags=%08x", req
->flags
);
3047 static void dump_open_token_reply( const struct open_token_reply
*req
)
3049 fprintf( stderr
, " token=%p", req
->token
);
3052 static void dump_set_global_windows_request( const struct set_global_windows_request
*req
)
3054 fprintf( stderr
, " flags=%08x,", req
->flags
);
3055 fprintf( stderr
, " shell_window=%p,", req
->shell_window
);
3056 fprintf( stderr
, " shell_listview=%p,", req
->shell_listview
);
3057 fprintf( stderr
, " progman_window=%p,", req
->progman_window
);
3058 fprintf( stderr
, " taskman_window=%p", req
->taskman_window
);
3061 static void dump_set_global_windows_reply( const struct set_global_windows_reply
*req
)
3063 fprintf( stderr
, " old_shell_window=%p,", req
->old_shell_window
);
3064 fprintf( stderr
, " old_shell_listview=%p,", req
->old_shell_listview
);
3065 fprintf( stderr
, " old_progman_window=%p,", req
->old_progman_window
);
3066 fprintf( stderr
, " old_taskman_window=%p", req
->old_taskman_window
);
3069 static void dump_adjust_token_privileges_request( const struct adjust_token_privileges_request
*req
)
3071 fprintf( stderr
, " handle=%p,", req
->handle
);
3072 fprintf( stderr
, " disable_all=%d,", req
->disable_all
);
3073 fprintf( stderr
, " get_modified_state=%d,", req
->get_modified_state
);
3074 fprintf( stderr
, " privileges=" );
3075 dump_varargs_LUID_AND_ATTRIBUTES( cur_size
);
3078 static void dump_adjust_token_privileges_reply( const struct adjust_token_privileges_reply
*req
)
3080 fprintf( stderr
, " len=%08x,", req
->len
);
3081 fprintf( stderr
, " privileges=" );
3082 dump_varargs_LUID_AND_ATTRIBUTES( cur_size
);
3085 static void dump_get_token_privileges_request( const struct get_token_privileges_request
*req
)
3087 fprintf( stderr
, " handle=%p", req
->handle
);
3090 static void dump_get_token_privileges_reply( const struct get_token_privileges_reply
*req
)
3092 fprintf( stderr
, " len=%08x,", req
->len
);
3093 fprintf( stderr
, " privileges=" );
3094 dump_varargs_LUID_AND_ATTRIBUTES( cur_size
);
3097 static void dump_check_token_privileges_request( const struct check_token_privileges_request
*req
)
3099 fprintf( stderr
, " handle=%p,", req
->handle
);
3100 fprintf( stderr
, " all_required=%d,", req
->all_required
);
3101 fprintf( stderr
, " privileges=" );
3102 dump_varargs_LUID_AND_ATTRIBUTES( cur_size
);
3105 static void dump_check_token_privileges_reply( const struct check_token_privileges_reply
*req
)
3107 fprintf( stderr
, " has_privileges=%d,", req
->has_privileges
);
3108 fprintf( stderr
, " privileges=" );
3109 dump_varargs_LUID_AND_ATTRIBUTES( cur_size
);
3112 static void dump_duplicate_token_request( const struct duplicate_token_request
*req
)
3114 fprintf( stderr
, " handle=%p,", req
->handle
);
3115 fprintf( stderr
, " access=%08x,", req
->access
);
3116 fprintf( stderr
, " attributes=%08x,", req
->attributes
);
3117 fprintf( stderr
, " primary=%d,", req
->primary
);
3118 fprintf( stderr
, " impersonation_level=%d", req
->impersonation_level
);
3121 static void dump_duplicate_token_reply( const struct duplicate_token_reply
*req
)
3123 fprintf( stderr
, " new_handle=%p", req
->new_handle
);
3126 static void dump_access_check_request( const struct access_check_request
*req
)
3128 fprintf( stderr
, " handle=%p,", req
->handle
);
3129 fprintf( stderr
, " desired_access=%08x,", req
->desired_access
);
3130 fprintf( stderr
, " mapping_read=%08x,", req
->mapping_read
);
3131 fprintf( stderr
, " mapping_write=%08x,", req
->mapping_write
);
3132 fprintf( stderr
, " mapping_execute=%08x,", req
->mapping_execute
);
3133 fprintf( stderr
, " mapping_all=%08x,", req
->mapping_all
);
3134 fprintf( stderr
, " sd=" );
3135 dump_varargs_security_descriptor( cur_size
);
3138 static void dump_access_check_reply( const struct access_check_reply
*req
)
3140 fprintf( stderr
, " access_granted=%08x,", req
->access_granted
);
3141 fprintf( stderr
, " access_status=%08x,", req
->access_status
);
3142 fprintf( stderr
, " privileges_len=%08x,", req
->privileges_len
);
3143 fprintf( stderr
, " privileges=" );
3144 dump_varargs_LUID_AND_ATTRIBUTES( cur_size
);
3147 static void dump_get_token_user_request( const struct get_token_user_request
*req
)
3149 fprintf( stderr
, " handle=%p", req
->handle
);
3152 static void dump_get_token_user_reply( const struct get_token_user_reply
*req
)
3154 fprintf( stderr
, " user_len=%u,", req
->user_len
);
3155 fprintf( stderr
, " user=" );
3156 dump_varargs_SID( cur_size
);
3159 static void dump_get_token_groups_request( const struct get_token_groups_request
*req
)
3161 fprintf( stderr
, " handle=%p", req
->handle
);
3164 static void dump_get_token_groups_reply( const struct get_token_groups_reply
*req
)
3166 fprintf( stderr
, " user_len=%u,", req
->user_len
);
3167 fprintf( stderr
, " user=" );
3168 dump_varargs_token_groups( cur_size
);
3171 static void dump_create_mailslot_request( const struct create_mailslot_request
*req
)
3173 fprintf( stderr
, " access=%08x,", req
->access
);
3174 fprintf( stderr
, " attributes=%08x,", req
->attributes
);
3175 fprintf( stderr
, " rootdir=%p,", req
->rootdir
);
3176 fprintf( stderr
, " max_msgsize=%08x,", req
->max_msgsize
);
3177 fprintf( stderr
, " read_timeout=%d,", req
->read_timeout
);
3178 fprintf( stderr
, " name=" );
3179 dump_varargs_unicode_str( cur_size
);
3182 static void dump_create_mailslot_reply( const struct create_mailslot_reply
*req
)
3184 fprintf( stderr
, " handle=%p", req
->handle
);
3187 static void dump_open_mailslot_request( const struct open_mailslot_request
*req
)
3189 fprintf( stderr
, " access=%08x,", req
->access
);
3190 fprintf( stderr
, " attributes=%08x,", req
->attributes
);
3191 fprintf( stderr
, " rootdir=%p,", req
->rootdir
);
3192 fprintf( stderr
, " sharing=%08x,", req
->sharing
);
3193 fprintf( stderr
, " name=" );
3194 dump_varargs_unicode_str( cur_size
);
3197 static void dump_open_mailslot_reply( const struct open_mailslot_reply
*req
)
3199 fprintf( stderr
, " handle=%p", req
->handle
);
3202 static void dump_set_mailslot_info_request( const struct set_mailslot_info_request
*req
)
3204 fprintf( stderr
, " handle=%p,", req
->handle
);
3205 fprintf( stderr
, " flags=%08x,", req
->flags
);
3206 fprintf( stderr
, " read_timeout=%d", req
->read_timeout
);
3209 static void dump_set_mailslot_info_reply( const struct set_mailslot_info_reply
*req
)
3211 fprintf( stderr
, " max_msgsize=%08x,", req
->max_msgsize
);
3212 fprintf( stderr
, " read_timeout=%d,", req
->read_timeout
);
3213 fprintf( stderr
, " msg_count=%08x,", req
->msg_count
);
3214 fprintf( stderr
, " next_msgsize=%08x", req
->next_msgsize
);
3217 static void dump_create_directory_request( const struct create_directory_request
*req
)
3219 fprintf( stderr
, " access=%08x,", req
->access
);
3220 fprintf( stderr
, " attributes=%08x,", req
->attributes
);
3221 fprintf( stderr
, " rootdir=%p,", req
->rootdir
);
3222 fprintf( stderr
, " directory_name=" );
3223 dump_varargs_unicode_str( cur_size
);
3226 static void dump_create_directory_reply( const struct create_directory_reply
*req
)
3228 fprintf( stderr
, " handle=%p", req
->handle
);
3231 static void dump_open_directory_request( const struct open_directory_request
*req
)
3233 fprintf( stderr
, " access=%08x,", req
->access
);
3234 fprintf( stderr
, " attributes=%08x,", req
->attributes
);
3235 fprintf( stderr
, " rootdir=%p,", req
->rootdir
);
3236 fprintf( stderr
, " directory_name=" );
3237 dump_varargs_unicode_str( cur_size
);
3240 static void dump_open_directory_reply( const struct open_directory_reply
*req
)
3242 fprintf( stderr
, " handle=%p", req
->handle
);
3245 static void dump_create_symlink_request( const struct create_symlink_request
*req
)
3247 fprintf( stderr
, " access=%08x,", req
->access
);
3248 fprintf( stderr
, " attributes=%08x,", req
->attributes
);
3249 fprintf( stderr
, " rootdir=%p,", req
->rootdir
);
3250 fprintf( stderr
, " name_len=%u,", req
->name_len
);
3251 fprintf( stderr
, " name=" );
3252 dump_varargs_unicode_str( min(cur_size
,req
->name_len
) );
3253 fputc( ',', stderr
);
3254 fprintf( stderr
, " target_name=" );
3255 dump_varargs_unicode_str( cur_size
);
3258 static void dump_create_symlink_reply( const struct create_symlink_reply
*req
)
3260 fprintf( stderr
, " handle=%p", req
->handle
);
3263 static void dump_open_symlink_request( const struct open_symlink_request
*req
)
3265 fprintf( stderr
, " access=%08x,", req
->access
);
3266 fprintf( stderr
, " attributes=%08x,", req
->attributes
);
3267 fprintf( stderr
, " rootdir=%p,", req
->rootdir
);
3268 fprintf( stderr
, " name=" );
3269 dump_varargs_unicode_str( cur_size
);
3272 static void dump_open_symlink_reply( const struct open_symlink_reply
*req
)
3274 fprintf( stderr
, " handle=%p", req
->handle
);
3277 static void dump_query_symlink_request( const struct query_symlink_request
*req
)
3279 fprintf( stderr
, " handle=%p", req
->handle
);
3282 static void dump_query_symlink_reply( const struct query_symlink_reply
*req
)
3284 fprintf( stderr
, " target_name=" );
3285 dump_varargs_unicode_str( cur_size
);
3288 static const dump_func req_dumpers
[REQ_NB_REQUESTS
] = {
3289 (dump_func
)dump_new_process_request
,
3290 (dump_func
)dump_get_new_process_info_request
,
3291 (dump_func
)dump_new_thread_request
,
3292 (dump_func
)dump_get_startup_info_request
,
3293 (dump_func
)dump_init_process_done_request
,
3294 (dump_func
)dump_init_thread_request
,
3295 (dump_func
)dump_terminate_process_request
,
3296 (dump_func
)dump_terminate_thread_request
,
3297 (dump_func
)dump_get_process_info_request
,
3298 (dump_func
)dump_set_process_info_request
,
3299 (dump_func
)dump_get_thread_info_request
,
3300 (dump_func
)dump_set_thread_info_request
,
3301 (dump_func
)dump_get_dll_info_request
,
3302 (dump_func
)dump_suspend_thread_request
,
3303 (dump_func
)dump_resume_thread_request
,
3304 (dump_func
)dump_load_dll_request
,
3305 (dump_func
)dump_unload_dll_request
,
3306 (dump_func
)dump_queue_apc_request
,
3307 (dump_func
)dump_get_apc_request
,
3308 (dump_func
)dump_close_handle_request
,
3309 (dump_func
)dump_set_handle_info_request
,
3310 (dump_func
)dump_dup_handle_request
,
3311 (dump_func
)dump_open_process_request
,
3312 (dump_func
)dump_open_thread_request
,
3313 (dump_func
)dump_select_request
,
3314 (dump_func
)dump_create_event_request
,
3315 (dump_func
)dump_event_op_request
,
3316 (dump_func
)dump_open_event_request
,
3317 (dump_func
)dump_create_mutex_request
,
3318 (dump_func
)dump_release_mutex_request
,
3319 (dump_func
)dump_open_mutex_request
,
3320 (dump_func
)dump_create_semaphore_request
,
3321 (dump_func
)dump_release_semaphore_request
,
3322 (dump_func
)dump_open_semaphore_request
,
3323 (dump_func
)dump_create_file_request
,
3324 (dump_func
)dump_open_file_object_request
,
3325 (dump_func
)dump_alloc_file_handle_request
,
3326 (dump_func
)dump_get_handle_fd_request
,
3327 (dump_func
)dump_set_handle_fd_request
,
3328 (dump_func
)dump_flush_file_request
,
3329 (dump_func
)dump_lock_file_request
,
3330 (dump_func
)dump_unlock_file_request
,
3331 (dump_func
)dump_unmount_device_request
,
3332 (dump_func
)dump_create_socket_request
,
3333 (dump_func
)dump_accept_socket_request
,
3334 (dump_func
)dump_set_socket_event_request
,
3335 (dump_func
)dump_get_socket_event_request
,
3336 (dump_func
)dump_enable_socket_event_request
,
3337 (dump_func
)dump_set_socket_deferred_request
,
3338 (dump_func
)dump_alloc_console_request
,
3339 (dump_func
)dump_free_console_request
,
3340 (dump_func
)dump_get_console_renderer_events_request
,
3341 (dump_func
)dump_open_console_request
,
3342 (dump_func
)dump_get_console_wait_event_request
,
3343 (dump_func
)dump_get_console_mode_request
,
3344 (dump_func
)dump_set_console_mode_request
,
3345 (dump_func
)dump_set_console_input_info_request
,
3346 (dump_func
)dump_get_console_input_info_request
,
3347 (dump_func
)dump_append_console_input_history_request
,
3348 (dump_func
)dump_get_console_input_history_request
,
3349 (dump_func
)dump_create_console_output_request
,
3350 (dump_func
)dump_set_console_output_info_request
,
3351 (dump_func
)dump_get_console_output_info_request
,
3352 (dump_func
)dump_write_console_input_request
,
3353 (dump_func
)dump_read_console_input_request
,
3354 (dump_func
)dump_write_console_output_request
,
3355 (dump_func
)dump_fill_console_output_request
,
3356 (dump_func
)dump_read_console_output_request
,
3357 (dump_func
)dump_move_console_output_request
,
3358 (dump_func
)dump_send_console_signal_request
,
3359 (dump_func
)dump_read_directory_changes_request
,
3360 (dump_func
)dump_read_change_request
,
3361 (dump_func
)dump_create_mapping_request
,
3362 (dump_func
)dump_open_mapping_request
,
3363 (dump_func
)dump_get_mapping_info_request
,
3364 (dump_func
)dump_create_snapshot_request
,
3365 (dump_func
)dump_next_process_request
,
3366 (dump_func
)dump_next_thread_request
,
3367 (dump_func
)dump_next_module_request
,
3368 (dump_func
)dump_wait_debug_event_request
,
3369 (dump_func
)dump_queue_exception_event_request
,
3370 (dump_func
)dump_get_exception_status_request
,
3371 (dump_func
)dump_output_debug_string_request
,
3372 (dump_func
)dump_continue_debug_event_request
,
3373 (dump_func
)dump_debug_process_request
,
3374 (dump_func
)dump_debug_break_request
,
3375 (dump_func
)dump_set_debugger_kill_on_exit_request
,
3376 (dump_func
)dump_read_process_memory_request
,
3377 (dump_func
)dump_write_process_memory_request
,
3378 (dump_func
)dump_create_key_request
,
3379 (dump_func
)dump_open_key_request
,
3380 (dump_func
)dump_delete_key_request
,
3381 (dump_func
)dump_flush_key_request
,
3382 (dump_func
)dump_enum_key_request
,
3383 (dump_func
)dump_set_key_value_request
,
3384 (dump_func
)dump_get_key_value_request
,
3385 (dump_func
)dump_enum_key_value_request
,
3386 (dump_func
)dump_delete_key_value_request
,
3387 (dump_func
)dump_load_registry_request
,
3388 (dump_func
)dump_unload_registry_request
,
3389 (dump_func
)dump_save_registry_request
,
3390 (dump_func
)dump_set_registry_notification_request
,
3391 (dump_func
)dump_create_timer_request
,
3392 (dump_func
)dump_open_timer_request
,
3393 (dump_func
)dump_set_timer_request
,
3394 (dump_func
)dump_cancel_timer_request
,
3395 (dump_func
)dump_get_timer_info_request
,
3396 (dump_func
)dump_get_thread_context_request
,
3397 (dump_func
)dump_set_thread_context_request
,
3398 (dump_func
)dump_get_selector_entry_request
,
3399 (dump_func
)dump_add_atom_request
,
3400 (dump_func
)dump_delete_atom_request
,
3401 (dump_func
)dump_find_atom_request
,
3402 (dump_func
)dump_get_atom_information_request
,
3403 (dump_func
)dump_set_atom_information_request
,
3404 (dump_func
)dump_empty_atom_table_request
,
3405 (dump_func
)dump_init_atom_table_request
,
3406 (dump_func
)dump_get_msg_queue_request
,
3407 (dump_func
)dump_set_queue_mask_request
,
3408 (dump_func
)dump_get_queue_status_request
,
3409 (dump_func
)dump_get_process_idle_event_request
,
3410 (dump_func
)dump_send_message_request
,
3411 (dump_func
)dump_post_quit_message_request
,
3412 (dump_func
)dump_send_hardware_message_request
,
3413 (dump_func
)dump_get_message_request
,
3414 (dump_func
)dump_reply_message_request
,
3415 (dump_func
)dump_accept_hardware_message_request
,
3416 (dump_func
)dump_get_message_reply_request
,
3417 (dump_func
)dump_set_win_timer_request
,
3418 (dump_func
)dump_kill_win_timer_request
,
3419 (dump_func
)dump_get_serial_info_request
,
3420 (dump_func
)dump_set_serial_info_request
,
3421 (dump_func
)dump_register_async_request
,
3422 (dump_func
)dump_cancel_async_request
,
3423 (dump_func
)dump_create_named_pipe_request
,
3424 (dump_func
)dump_open_named_pipe_request
,
3425 (dump_func
)dump_connect_named_pipe_request
,
3426 (dump_func
)dump_wait_named_pipe_request
,
3427 (dump_func
)dump_disconnect_named_pipe_request
,
3428 (dump_func
)dump_get_named_pipe_info_request
,
3429 (dump_func
)dump_create_window_request
,
3430 (dump_func
)dump_destroy_window_request
,
3431 (dump_func
)dump_get_desktop_window_request
,
3432 (dump_func
)dump_set_window_owner_request
,
3433 (dump_func
)dump_get_window_info_request
,
3434 (dump_func
)dump_set_window_info_request
,
3435 (dump_func
)dump_set_parent_request
,
3436 (dump_func
)dump_get_window_parents_request
,
3437 (dump_func
)dump_get_window_children_request
,
3438 (dump_func
)dump_get_window_children_from_point_request
,
3439 (dump_func
)dump_get_window_tree_request
,
3440 (dump_func
)dump_set_window_pos_request
,
3441 (dump_func
)dump_get_window_rectangles_request
,
3442 (dump_func
)dump_get_window_text_request
,
3443 (dump_func
)dump_set_window_text_request
,
3444 (dump_func
)dump_get_windows_offset_request
,
3445 (dump_func
)dump_get_visible_region_request
,
3446 (dump_func
)dump_get_window_region_request
,
3447 (dump_func
)dump_set_window_region_request
,
3448 (dump_func
)dump_get_update_region_request
,
3449 (dump_func
)dump_update_window_zorder_request
,
3450 (dump_func
)dump_redraw_window_request
,
3451 (dump_func
)dump_set_window_property_request
,
3452 (dump_func
)dump_remove_window_property_request
,
3453 (dump_func
)dump_get_window_property_request
,
3454 (dump_func
)dump_get_window_properties_request
,
3455 (dump_func
)dump_create_winstation_request
,
3456 (dump_func
)dump_open_winstation_request
,
3457 (dump_func
)dump_close_winstation_request
,
3458 (dump_func
)dump_get_process_winstation_request
,
3459 (dump_func
)dump_set_process_winstation_request
,
3460 (dump_func
)dump_create_desktop_request
,
3461 (dump_func
)dump_open_desktop_request
,
3462 (dump_func
)dump_close_desktop_request
,
3463 (dump_func
)dump_get_thread_desktop_request
,
3464 (dump_func
)dump_set_thread_desktop_request
,
3465 (dump_func
)dump_set_user_object_info_request
,
3466 (dump_func
)dump_attach_thread_input_request
,
3467 (dump_func
)dump_get_thread_input_request
,
3468 (dump_func
)dump_get_last_input_time_request
,
3469 (dump_func
)dump_get_key_state_request
,
3470 (dump_func
)dump_set_key_state_request
,
3471 (dump_func
)dump_set_foreground_window_request
,
3472 (dump_func
)dump_set_focus_window_request
,
3473 (dump_func
)dump_set_active_window_request
,
3474 (dump_func
)dump_set_capture_window_request
,
3475 (dump_func
)dump_set_caret_window_request
,
3476 (dump_func
)dump_set_caret_info_request
,
3477 (dump_func
)dump_set_hook_request
,
3478 (dump_func
)dump_remove_hook_request
,
3479 (dump_func
)dump_start_hook_chain_request
,
3480 (dump_func
)dump_finish_hook_chain_request
,
3481 (dump_func
)dump_get_hook_info_request
,
3482 (dump_func
)dump_create_class_request
,
3483 (dump_func
)dump_destroy_class_request
,
3484 (dump_func
)dump_set_class_info_request
,
3485 (dump_func
)dump_set_clipboard_info_request
,
3486 (dump_func
)dump_open_token_request
,
3487 (dump_func
)dump_set_global_windows_request
,
3488 (dump_func
)dump_adjust_token_privileges_request
,
3489 (dump_func
)dump_get_token_privileges_request
,
3490 (dump_func
)dump_check_token_privileges_request
,
3491 (dump_func
)dump_duplicate_token_request
,
3492 (dump_func
)dump_access_check_request
,
3493 (dump_func
)dump_get_token_user_request
,
3494 (dump_func
)dump_get_token_groups_request
,
3495 (dump_func
)dump_create_mailslot_request
,
3496 (dump_func
)dump_open_mailslot_request
,
3497 (dump_func
)dump_set_mailslot_info_request
,
3498 (dump_func
)dump_create_directory_request
,
3499 (dump_func
)dump_open_directory_request
,
3500 (dump_func
)dump_create_symlink_request
,
3501 (dump_func
)dump_open_symlink_request
,
3502 (dump_func
)dump_query_symlink_request
,
3505 static const dump_func reply_dumpers
[REQ_NB_REQUESTS
] = {
3506 (dump_func
)dump_new_process_reply
,
3507 (dump_func
)dump_get_new_process_info_reply
,
3508 (dump_func
)dump_new_thread_reply
,
3509 (dump_func
)dump_get_startup_info_reply
,
3511 (dump_func
)dump_init_thread_reply
,
3512 (dump_func
)dump_terminate_process_reply
,
3513 (dump_func
)dump_terminate_thread_reply
,
3514 (dump_func
)dump_get_process_info_reply
,
3516 (dump_func
)dump_get_thread_info_reply
,
3518 (dump_func
)dump_get_dll_info_reply
,
3519 (dump_func
)dump_suspend_thread_reply
,
3520 (dump_func
)dump_resume_thread_reply
,
3524 (dump_func
)dump_get_apc_reply
,
3525 (dump_func
)dump_close_handle_reply
,
3526 (dump_func
)dump_set_handle_info_reply
,
3527 (dump_func
)dump_dup_handle_reply
,
3528 (dump_func
)dump_open_process_reply
,
3529 (dump_func
)dump_open_thread_reply
,
3531 (dump_func
)dump_create_event_reply
,
3533 (dump_func
)dump_open_event_reply
,
3534 (dump_func
)dump_create_mutex_reply
,
3535 (dump_func
)dump_release_mutex_reply
,
3536 (dump_func
)dump_open_mutex_reply
,
3537 (dump_func
)dump_create_semaphore_reply
,
3538 (dump_func
)dump_release_semaphore_reply
,
3539 (dump_func
)dump_open_semaphore_reply
,
3540 (dump_func
)dump_create_file_reply
,
3541 (dump_func
)dump_open_file_object_reply
,
3542 (dump_func
)dump_alloc_file_handle_reply
,
3543 (dump_func
)dump_get_handle_fd_reply
,
3544 (dump_func
)dump_set_handle_fd_reply
,
3545 (dump_func
)dump_flush_file_reply
,
3546 (dump_func
)dump_lock_file_reply
,
3549 (dump_func
)dump_create_socket_reply
,
3550 (dump_func
)dump_accept_socket_reply
,
3552 (dump_func
)dump_get_socket_event_reply
,
3555 (dump_func
)dump_alloc_console_reply
,
3557 (dump_func
)dump_get_console_renderer_events_reply
,
3558 (dump_func
)dump_open_console_reply
,
3559 (dump_func
)dump_get_console_wait_event_reply
,
3560 (dump_func
)dump_get_console_mode_reply
,
3563 (dump_func
)dump_get_console_input_info_reply
,
3565 (dump_func
)dump_get_console_input_history_reply
,
3566 (dump_func
)dump_create_console_output_reply
,
3568 (dump_func
)dump_get_console_output_info_reply
,
3569 (dump_func
)dump_write_console_input_reply
,
3570 (dump_func
)dump_read_console_input_reply
,
3571 (dump_func
)dump_write_console_output_reply
,
3572 (dump_func
)dump_fill_console_output_reply
,
3573 (dump_func
)dump_read_console_output_reply
,
3577 (dump_func
)dump_read_change_reply
,
3578 (dump_func
)dump_create_mapping_reply
,
3579 (dump_func
)dump_open_mapping_reply
,
3580 (dump_func
)dump_get_mapping_info_reply
,
3581 (dump_func
)dump_create_snapshot_reply
,
3582 (dump_func
)dump_next_process_reply
,
3583 (dump_func
)dump_next_thread_reply
,
3584 (dump_func
)dump_next_module_reply
,
3585 (dump_func
)dump_wait_debug_event_reply
,
3586 (dump_func
)dump_queue_exception_event_reply
,
3587 (dump_func
)dump_get_exception_status_reply
,
3591 (dump_func
)dump_debug_break_reply
,
3593 (dump_func
)dump_read_process_memory_reply
,
3595 (dump_func
)dump_create_key_reply
,
3596 (dump_func
)dump_open_key_reply
,
3599 (dump_func
)dump_enum_key_reply
,
3601 (dump_func
)dump_get_key_value_reply
,
3602 (dump_func
)dump_enum_key_value_reply
,
3608 (dump_func
)dump_create_timer_reply
,
3609 (dump_func
)dump_open_timer_reply
,
3610 (dump_func
)dump_set_timer_reply
,
3611 (dump_func
)dump_cancel_timer_reply
,
3612 (dump_func
)dump_get_timer_info_reply
,
3613 (dump_func
)dump_get_thread_context_reply
,
3614 (dump_func
)dump_set_thread_context_reply
,
3615 (dump_func
)dump_get_selector_entry_reply
,
3616 (dump_func
)dump_add_atom_reply
,
3618 (dump_func
)dump_find_atom_reply
,
3619 (dump_func
)dump_get_atom_information_reply
,
3622 (dump_func
)dump_init_atom_table_reply
,
3623 (dump_func
)dump_get_msg_queue_reply
,
3624 (dump_func
)dump_set_queue_mask_reply
,
3625 (dump_func
)dump_get_queue_status_reply
,
3626 (dump_func
)dump_get_process_idle_event_reply
,
3630 (dump_func
)dump_get_message_reply
,
3633 (dump_func
)dump_get_message_reply_reply
,
3634 (dump_func
)dump_set_win_timer_reply
,
3636 (dump_func
)dump_get_serial_info_reply
,
3640 (dump_func
)dump_create_named_pipe_reply
,
3641 (dump_func
)dump_open_named_pipe_reply
,
3644 (dump_func
)dump_disconnect_named_pipe_reply
,
3645 (dump_func
)dump_get_named_pipe_info_reply
,
3646 (dump_func
)dump_create_window_reply
,
3648 (dump_func
)dump_get_desktop_window_reply
,
3649 (dump_func
)dump_set_window_owner_reply
,
3650 (dump_func
)dump_get_window_info_reply
,
3651 (dump_func
)dump_set_window_info_reply
,
3652 (dump_func
)dump_set_parent_reply
,
3653 (dump_func
)dump_get_window_parents_reply
,
3654 (dump_func
)dump_get_window_children_reply
,
3655 (dump_func
)dump_get_window_children_from_point_reply
,
3656 (dump_func
)dump_get_window_tree_reply
,
3657 (dump_func
)dump_set_window_pos_reply
,
3658 (dump_func
)dump_get_window_rectangles_reply
,
3659 (dump_func
)dump_get_window_text_reply
,
3661 (dump_func
)dump_get_windows_offset_reply
,
3662 (dump_func
)dump_get_visible_region_reply
,
3663 (dump_func
)dump_get_window_region_reply
,
3665 (dump_func
)dump_get_update_region_reply
,
3669 (dump_func
)dump_remove_window_property_reply
,
3670 (dump_func
)dump_get_window_property_reply
,
3671 (dump_func
)dump_get_window_properties_reply
,
3672 (dump_func
)dump_create_winstation_reply
,
3673 (dump_func
)dump_open_winstation_reply
,
3675 (dump_func
)dump_get_process_winstation_reply
,
3677 (dump_func
)dump_create_desktop_reply
,
3678 (dump_func
)dump_open_desktop_reply
,
3680 (dump_func
)dump_get_thread_desktop_reply
,
3682 (dump_func
)dump_set_user_object_info_reply
,
3684 (dump_func
)dump_get_thread_input_reply
,
3685 (dump_func
)dump_get_last_input_time_reply
,
3686 (dump_func
)dump_get_key_state_reply
,
3688 (dump_func
)dump_set_foreground_window_reply
,
3689 (dump_func
)dump_set_focus_window_reply
,
3690 (dump_func
)dump_set_active_window_reply
,
3691 (dump_func
)dump_set_capture_window_reply
,
3692 (dump_func
)dump_set_caret_window_reply
,
3693 (dump_func
)dump_set_caret_info_reply
,
3694 (dump_func
)dump_set_hook_reply
,
3695 (dump_func
)dump_remove_hook_reply
,
3696 (dump_func
)dump_start_hook_chain_reply
,
3698 (dump_func
)dump_get_hook_info_reply
,
3700 (dump_func
)dump_destroy_class_reply
,
3701 (dump_func
)dump_set_class_info_reply
,
3702 (dump_func
)dump_set_clipboard_info_reply
,
3703 (dump_func
)dump_open_token_reply
,
3704 (dump_func
)dump_set_global_windows_reply
,
3705 (dump_func
)dump_adjust_token_privileges_reply
,
3706 (dump_func
)dump_get_token_privileges_reply
,
3707 (dump_func
)dump_check_token_privileges_reply
,
3708 (dump_func
)dump_duplicate_token_reply
,
3709 (dump_func
)dump_access_check_reply
,
3710 (dump_func
)dump_get_token_user_reply
,
3711 (dump_func
)dump_get_token_groups_reply
,
3712 (dump_func
)dump_create_mailslot_reply
,
3713 (dump_func
)dump_open_mailslot_reply
,
3714 (dump_func
)dump_set_mailslot_info_reply
,
3715 (dump_func
)dump_create_directory_reply
,
3716 (dump_func
)dump_open_directory_reply
,
3717 (dump_func
)dump_create_symlink_reply
,
3718 (dump_func
)dump_open_symlink_reply
,
3719 (dump_func
)dump_query_symlink_reply
,
3722 static const char * const req_names
[REQ_NB_REQUESTS
] = {
3724 "get_new_process_info",
3727 "init_process_done",
3729 "terminate_process",
3755 "release_semaphore",
3759 "alloc_file_handle",
3770 "enable_socket_event",
3771 "set_socket_deferred",
3774 "get_console_renderer_events",
3776 "get_console_wait_event",
3779 "set_console_input_info",
3780 "get_console_input_info",
3781 "append_console_input_history",
3782 "get_console_input_history",
3783 "create_console_output",
3784 "set_console_output_info",
3785 "get_console_output_info",
3786 "write_console_input",
3787 "read_console_input",
3788 "write_console_output",
3789 "fill_console_output",
3790 "read_console_output",
3791 "move_console_output",
3792 "send_console_signal",
3793 "read_directory_changes",
3803 "queue_exception_event",
3804 "get_exception_status",
3805 "output_debug_string",
3806 "continue_debug_event",
3809 "set_debugger_kill_on_exit",
3810 "read_process_memory",
3811 "write_process_memory",
3824 "set_registry_notification",
3830 "get_thread_context",
3831 "set_thread_context",
3832 "get_selector_entry",
3836 "get_atom_information",
3837 "set_atom_information",
3843 "get_process_idle_event",
3845 "post_quit_message",
3846 "send_hardware_message",
3849 "accept_hardware_message",
3850 "get_message_reply",
3857 "create_named_pipe",
3859 "connect_named_pipe",
3861 "disconnect_named_pipe",
3862 "get_named_pipe_info",
3865 "get_desktop_window",
3870 "get_window_parents",
3871 "get_window_children",
3872 "get_window_children_from_point",
3875 "get_window_rectangles",
3878 "get_windows_offset",
3879 "get_visible_region",
3880 "get_window_region",
3881 "set_window_region",
3882 "get_update_region",
3883 "update_window_zorder",
3885 "set_window_property",
3886 "remove_window_property",
3887 "get_window_property",
3888 "get_window_properties",
3889 "create_winstation",
3892 "get_process_winstation",
3893 "set_process_winstation",
3897 "get_thread_desktop",
3898 "set_thread_desktop",
3899 "set_user_object_info",
3900 "attach_thread_input",
3902 "get_last_input_time",
3905 "set_foreground_window",
3907 "set_active_window",
3908 "set_capture_window",
3914 "finish_hook_chain",
3919 "set_clipboard_info",
3921 "set_global_windows",
3922 "adjust_token_privileges",
3923 "get_token_privileges",
3924 "check_token_privileges",
3931 "set_mailslot_info",
3945 { "ACCESS_DENIED", STATUS_ACCESS_DENIED
},
3946 { "ACCESS_VIOLATION", STATUS_ACCESS_VIOLATION
},
3947 { "ALIAS_EXISTS", STATUS_ALIAS_EXISTS
},
3948 { "BAD_DEVICE_TYPE", STATUS_BAD_DEVICE_TYPE
},
3949 { "BUFFER_OVERFLOW", STATUS_BUFFER_OVERFLOW
},
3950 { "BUFFER_TOO_SMALL", STATUS_BUFFER_TOO_SMALL
},
3951 { "CHILD_MUST_BE_VOLATILE", STATUS_CHILD_MUST_BE_VOLATILE
},
3952 { "DEVICE_BUSY", STATUS_DEVICE_BUSY
},
3953 { "DIRECTORY_NOT_EMPTY", STATUS_DIRECTORY_NOT_EMPTY
},
3954 { "DISK_FULL", STATUS_DISK_FULL
},
3955 { "DLL_NOT_FOUND", STATUS_DLL_NOT_FOUND
},
3956 { "ERROR_CLASS_ALREADY_EXISTS", 0xc0010000 | ERROR_CLASS_ALREADY_EXISTS
},
3957 { "ERROR_CLASS_DOES_NOT_EXIST", 0xc0010000 | ERROR_CLASS_DOES_NOT_EXIST
},
3958 { "ERROR_CLASS_HAS_WINDOWS", 0xc0010000 | ERROR_CLASS_HAS_WINDOWS
},
3959 { "ERROR_CLIPBOARD_NOT_OPEN", 0xc0010000 | ERROR_CLIPBOARD_NOT_OPEN
},
3960 { "ERROR_INVALID_INDEX", 0xc0010000 | ERROR_INVALID_INDEX
},
3961 { "ERROR_INVALID_WINDOW_HANDLE", 0xc0010000 | ERROR_INVALID_WINDOW_HANDLE
},
3962 { "ERROR_SEEK", 0xc0010000 | ERROR_SEEK
},
3963 { "FILE_IS_A_DIRECTORY", STATUS_FILE_IS_A_DIRECTORY
},
3964 { "FILE_LOCK_CONFLICT", STATUS_FILE_LOCK_CONFLICT
},
3965 { "HANDLE_NOT_CLOSABLE", STATUS_HANDLE_NOT_CLOSABLE
},
3966 { "INSTANCE_NOT_AVAILABLE", STATUS_INSTANCE_NOT_AVAILABLE
},
3967 { "INVALID_CID", STATUS_INVALID_CID
},
3968 { "INVALID_FILE_FOR_SECTION", STATUS_INVALID_FILE_FOR_SECTION
},
3969 { "INVALID_HANDLE", STATUS_INVALID_HANDLE
},
3970 { "INVALID_PARAMETER", STATUS_INVALID_PARAMETER
},
3971 { "IO_TIMEOUT", STATUS_IO_TIMEOUT
},
3972 { "KEY_DELETED", STATUS_KEY_DELETED
},
3973 { "MAPPED_FILE_SIZE_ZERO", STATUS_MAPPED_FILE_SIZE_ZERO
},
3974 { "MEDIA_WRITE_PROTECTED", STATUS_MEDIA_WRITE_PROTECTED
},
3975 { "MUTANT_NOT_OWNED", STATUS_MUTANT_NOT_OWNED
},
3976 { "NAME_TOO_LONG", STATUS_NAME_TOO_LONG
},
3977 { "NOT_ALL_ASSIGNED", STATUS_NOT_ALL_ASSIGNED
},
3978 { "NOT_A_DIRECTORY", STATUS_NOT_A_DIRECTORY
},
3979 { "NOT_IMPLEMENTED", STATUS_NOT_IMPLEMENTED
},
3980 { "NOT_REGISTRY_FILE", STATUS_NOT_REGISTRY_FILE
},
3981 { "NO_DATA_DETECTED", STATUS_NO_DATA_DETECTED
},
3982 { "NO_IMPERSONATION_TOKEN", STATUS_NO_IMPERSONATION_TOKEN
},
3983 { "NO_MEMORY", STATUS_NO_MEMORY
},
3984 { "NO_MORE_ENTRIES", STATUS_NO_MORE_ENTRIES
},
3985 { "NO_MORE_FILES", STATUS_NO_MORE_FILES
},
3986 { "NO_SUCH_DEVICE", STATUS_NO_SUCH_DEVICE
},
3987 { "NO_SUCH_FILE", STATUS_NO_SUCH_FILE
},
3988 { "NO_TOKEN", STATUS_NO_TOKEN
},
3989 { "OBJECT_NAME_COLLISION", STATUS_OBJECT_NAME_COLLISION
},
3990 { "OBJECT_NAME_EXISTS", STATUS_OBJECT_NAME_EXISTS
},
3991 { "OBJECT_NAME_INVALID", STATUS_OBJECT_NAME_INVALID
},
3992 { "OBJECT_NAME_NOT_FOUND", STATUS_OBJECT_NAME_NOT_FOUND
},
3993 { "OBJECT_PATH_INVALID", STATUS_OBJECT_PATH_INVALID
},
3994 { "OBJECT_PATH_NOT_FOUND", STATUS_OBJECT_PATH_NOT_FOUND
},
3995 { "OBJECT_PATH_SYNTAX_BAD", STATUS_OBJECT_PATH_SYNTAX_BAD
},
3996 { "OBJECT_TYPE_MISMATCH", STATUS_OBJECT_TYPE_MISMATCH
},
3997 { "PENDING", STATUS_PENDING
},
3998 { "PIPE_BUSY", STATUS_PIPE_BUSY
},
3999 { "PIPE_CONNECTED", STATUS_PIPE_CONNECTED
},
4000 { "PIPE_DISCONNECTED", STATUS_PIPE_DISCONNECTED
},
4001 { "PIPE_LISTENING", STATUS_PIPE_LISTENING
},
4002 { "PIPE_NOT_AVAILABLE", STATUS_PIPE_NOT_AVAILABLE
},
4003 { "PRIVILEGE_NOT_HELD", STATUS_PRIVILEGE_NOT_HELD
},
4004 { "SECTION_TOO_BIG", STATUS_SECTION_TOO_BIG
},
4005 { "SEMAPHORE_LIMIT_EXCEEDED", STATUS_SEMAPHORE_LIMIT_EXCEEDED
},
4006 { "SHARING_VIOLATION", STATUS_SHARING_VIOLATION
},
4007 { "SUSPEND_COUNT_EXCEEDED", STATUS_SUSPEND_COUNT_EXCEEDED
},
4008 { "TIMEOUT", STATUS_TIMEOUT
},
4009 { "TOO_MANY_OPENED_FILES", STATUS_TOO_MANY_OPENED_FILES
},
4010 { "UNSUCCESSFUL", STATUS_UNSUCCESSFUL
},
4011 { "VOLUME_DISMOUNTED", STATUS_VOLUME_DISMOUNTED
},
4012 { "WAS_LOCKED", STATUS_WAS_LOCKED
},
4016 /* ### make_requests end ### */
4017 /* Everything above this line is generated automatically by tools/make_requests */
4019 static const char *get_status_name( unsigned int status
)
4022 static char buffer
[10];
4026 for (i
= 0; status_names
[i
].name
; i
++)
4027 if (status_names
[i
].value
== status
) return status_names
[i
].name
;
4029 sprintf( buffer
, "%x", status
);
4033 void trace_request(void)
4035 enum request req
= current
->req
.request_header
.req
;
4036 if (req
< REQ_NB_REQUESTS
)
4038 fprintf( stderr
, "%04x: %s(", current
->id
, req_names
[req
] );
4039 if (req_dumpers
[req
])
4041 cur_data
= get_req_data();
4042 cur_size
= get_req_data_size();
4043 req_dumpers
[req
]( ¤t
->req
);
4045 fprintf( stderr
, " )\n" );
4047 else fprintf( stderr
, "%04x: %d(?)\n", current
->id
, req
);
4050 void trace_reply( enum request req
, const union generic_reply
*reply
)
4052 if (req
< REQ_NB_REQUESTS
)
4054 fprintf( stderr
, "%04x: %s() = %s",
4055 current
->id
, req_names
[req
], get_status_name(current
->error
) );
4056 if (reply_dumpers
[req
])
4058 fprintf( stderr
, " {" );
4059 cur_data
= current
->reply_data
;
4060 cur_size
= reply
->reply_header
.reply_size
;
4061 reply_dumpers
[req
]( reply
);
4062 fprintf( stderr
, " }" );
4064 fputc( '\n', stderr
);
4066 else fprintf( stderr
, "%04x: %d() = %s\n",
4067 current
->id
, req
, get_status_name(current
->error
) );