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_set_handle_info_request( const struct set_handle_info_request
*req
)
876 fprintf( stderr
, " handle=%p,", req
->handle
);
877 fprintf( stderr
, " flags=%d,", req
->flags
);
878 fprintf( stderr
, " mask=%d", req
->mask
);
881 static void dump_set_handle_info_reply( const struct set_handle_info_reply
*req
)
883 fprintf( stderr
, " old_flags=%d", req
->old_flags
);
886 static void dump_dup_handle_request( const struct dup_handle_request
*req
)
888 fprintf( stderr
, " src_process=%p,", req
->src_process
);
889 fprintf( stderr
, " src_handle=%p,", req
->src_handle
);
890 fprintf( stderr
, " dst_process=%p,", req
->dst_process
);
891 fprintf( stderr
, " access=%08x,", req
->access
);
892 fprintf( stderr
, " attributes=%08x,", req
->attributes
);
893 fprintf( stderr
, " options=%08x", req
->options
);
896 static void dump_dup_handle_reply( const struct dup_handle_reply
*req
)
898 fprintf( stderr
, " handle=%p,", req
->handle
);
899 fprintf( stderr
, " closed=%d", req
->closed
);
902 static void dump_open_process_request( const struct open_process_request
*req
)
904 fprintf( stderr
, " pid=%04x,", req
->pid
);
905 fprintf( stderr
, " access=%08x,", req
->access
);
906 fprintf( stderr
, " attributes=%08x", req
->attributes
);
909 static void dump_open_process_reply( const struct open_process_reply
*req
)
911 fprintf( stderr
, " handle=%p", req
->handle
);
914 static void dump_open_thread_request( const struct open_thread_request
*req
)
916 fprintf( stderr
, " tid=%04x,", req
->tid
);
917 fprintf( stderr
, " access=%08x,", req
->access
);
918 fprintf( stderr
, " attributes=%08x", req
->attributes
);
921 static void dump_open_thread_reply( const struct open_thread_reply
*req
)
923 fprintf( stderr
, " handle=%p", req
->handle
);
926 static void dump_select_request( const struct select_request
*req
)
928 fprintf( stderr
, " flags=%d,", req
->flags
);
929 fprintf( stderr
, " cookie=%p,", req
->cookie
);
930 fprintf( stderr
, " signal=%p,", req
->signal
);
931 fprintf( stderr
, " timeout=" );
932 dump_abs_time( &req
->timeout
);
933 fprintf( stderr
, "," );
934 fprintf( stderr
, " handles=" );
935 dump_varargs_handles( cur_size
);
938 static void dump_create_event_request( const struct create_event_request
*req
)
940 fprintf( stderr
, " access=%08x,", req
->access
);
941 fprintf( stderr
, " attributes=%08x,", req
->attributes
);
942 fprintf( stderr
, " rootdir=%p,", req
->rootdir
);
943 fprintf( stderr
, " manual_reset=%d,", req
->manual_reset
);
944 fprintf( stderr
, " initial_state=%d,", req
->initial_state
);
945 fprintf( stderr
, " name=" );
946 dump_varargs_unicode_str( cur_size
);
949 static void dump_create_event_reply( const struct create_event_reply
*req
)
951 fprintf( stderr
, " handle=%p", req
->handle
);
954 static void dump_event_op_request( const struct event_op_request
*req
)
956 fprintf( stderr
, " handle=%p,", req
->handle
);
957 fprintf( stderr
, " op=%d", req
->op
);
960 static void dump_open_event_request( const struct open_event_request
*req
)
962 fprintf( stderr
, " access=%08x,", req
->access
);
963 fprintf( stderr
, " attributes=%08x,", req
->attributes
);
964 fprintf( stderr
, " rootdir=%p,", req
->rootdir
);
965 fprintf( stderr
, " name=" );
966 dump_varargs_unicode_str( cur_size
);
969 static void dump_open_event_reply( const struct open_event_reply
*req
)
971 fprintf( stderr
, " handle=%p", req
->handle
);
974 static void dump_create_mutex_request( const struct create_mutex_request
*req
)
976 fprintf( stderr
, " access=%08x,", req
->access
);
977 fprintf( stderr
, " attributes=%08x,", req
->attributes
);
978 fprintf( stderr
, " rootdir=%p,", req
->rootdir
);
979 fprintf( stderr
, " owned=%d,", req
->owned
);
980 fprintf( stderr
, " name=" );
981 dump_varargs_unicode_str( cur_size
);
984 static void dump_create_mutex_reply( const struct create_mutex_reply
*req
)
986 fprintf( stderr
, " handle=%p", req
->handle
);
989 static void dump_release_mutex_request( const struct release_mutex_request
*req
)
991 fprintf( stderr
, " handle=%p", req
->handle
);
994 static void dump_release_mutex_reply( const struct release_mutex_reply
*req
)
996 fprintf( stderr
, " prev_count=%08x", req
->prev_count
);
999 static void dump_open_mutex_request( const struct open_mutex_request
*req
)
1001 fprintf( stderr
, " access=%08x,", req
->access
);
1002 fprintf( stderr
, " attributes=%08x,", req
->attributes
);
1003 fprintf( stderr
, " rootdir=%p,", req
->rootdir
);
1004 fprintf( stderr
, " name=" );
1005 dump_varargs_unicode_str( cur_size
);
1008 static void dump_open_mutex_reply( const struct open_mutex_reply
*req
)
1010 fprintf( stderr
, " handle=%p", req
->handle
);
1013 static void dump_create_semaphore_request( const struct create_semaphore_request
*req
)
1015 fprintf( stderr
, " access=%08x,", req
->access
);
1016 fprintf( stderr
, " attributes=%08x,", req
->attributes
);
1017 fprintf( stderr
, " rootdir=%p,", req
->rootdir
);
1018 fprintf( stderr
, " initial=%08x,", req
->initial
);
1019 fprintf( stderr
, " max=%08x,", req
->max
);
1020 fprintf( stderr
, " name=" );
1021 dump_varargs_unicode_str( cur_size
);
1024 static void dump_create_semaphore_reply( const struct create_semaphore_reply
*req
)
1026 fprintf( stderr
, " handle=%p", req
->handle
);
1029 static void dump_release_semaphore_request( const struct release_semaphore_request
*req
)
1031 fprintf( stderr
, " handle=%p,", req
->handle
);
1032 fprintf( stderr
, " count=%08x", req
->count
);
1035 static void dump_release_semaphore_reply( const struct release_semaphore_reply
*req
)
1037 fprintf( stderr
, " prev_count=%08x", req
->prev_count
);
1040 static void dump_open_semaphore_request( const struct open_semaphore_request
*req
)
1042 fprintf( stderr
, " access=%08x,", req
->access
);
1043 fprintf( stderr
, " attributes=%08x,", req
->attributes
);
1044 fprintf( stderr
, " rootdir=%p,", req
->rootdir
);
1045 fprintf( stderr
, " name=" );
1046 dump_varargs_unicode_str( cur_size
);
1049 static void dump_open_semaphore_reply( const struct open_semaphore_reply
*req
)
1051 fprintf( stderr
, " handle=%p", req
->handle
);
1054 static void dump_create_file_request( const struct create_file_request
*req
)
1056 fprintf( stderr
, " access=%08x,", req
->access
);
1057 fprintf( stderr
, " attributes=%08x,", req
->attributes
);
1058 fprintf( stderr
, " sharing=%08x,", req
->sharing
);
1059 fprintf( stderr
, " create=%d,", req
->create
);
1060 fprintf( stderr
, " options=%08x,", req
->options
);
1061 fprintf( stderr
, " attrs=%08x,", req
->attrs
);
1062 fprintf( stderr
, " filename=" );
1063 dump_varargs_string( cur_size
);
1066 static void dump_create_file_reply( const struct create_file_reply
*req
)
1068 fprintf( stderr
, " handle=%p", req
->handle
);
1071 static void dump_open_file_object_request( const struct open_file_object_request
*req
)
1073 fprintf( stderr
, " access=%08x,", req
->access
);
1074 fprintf( stderr
, " attributes=%08x,", req
->attributes
);
1075 fprintf( stderr
, " rootdir=%p,", req
->rootdir
);
1076 fprintf( stderr
, " sharing=%08x,", req
->sharing
);
1077 fprintf( stderr
, " filename=" );
1078 dump_varargs_unicode_str( cur_size
);
1081 static void dump_open_file_object_reply( const struct open_file_object_reply
*req
)
1083 fprintf( stderr
, " handle=%p", req
->handle
);
1086 static void dump_alloc_file_handle_request( const struct alloc_file_handle_request
*req
)
1088 fprintf( stderr
, " access=%08x,", req
->access
);
1089 fprintf( stderr
, " attributes=%08x,", req
->attributes
);
1090 fprintf( stderr
, " fd=%d", req
->fd
);
1093 static void dump_alloc_file_handle_reply( const struct alloc_file_handle_reply
*req
)
1095 fprintf( stderr
, " handle=%p", req
->handle
);
1098 static void dump_get_handle_fd_request( const struct get_handle_fd_request
*req
)
1100 fprintf( stderr
, " handle=%p,", req
->handle
);
1101 fprintf( stderr
, " access=%08x,", req
->access
);
1102 fprintf( stderr
, " cached=%d", req
->cached
);
1105 static void dump_get_handle_fd_reply( const struct get_handle_fd_reply
*req
)
1107 fprintf( stderr
, " flags=%d", req
->flags
);
1110 static void dump_flush_file_request( const struct flush_file_request
*req
)
1112 fprintf( stderr
, " handle=%p", req
->handle
);
1115 static void dump_flush_file_reply( const struct flush_file_reply
*req
)
1117 fprintf( stderr
, " event=%p", req
->event
);
1120 static void dump_lock_file_request( const struct lock_file_request
*req
)
1122 fprintf( stderr
, " handle=%p,", req
->handle
);
1123 fprintf( stderr
, " offset_low=%08x,", req
->offset_low
);
1124 fprintf( stderr
, " offset_high=%08x,", req
->offset_high
);
1125 fprintf( stderr
, " count_low=%08x,", req
->count_low
);
1126 fprintf( stderr
, " count_high=%08x,", req
->count_high
);
1127 fprintf( stderr
, " shared=%d,", req
->shared
);
1128 fprintf( stderr
, " wait=%d", req
->wait
);
1131 static void dump_lock_file_reply( const struct lock_file_reply
*req
)
1133 fprintf( stderr
, " handle=%p,", req
->handle
);
1134 fprintf( stderr
, " overlapped=%d", req
->overlapped
);
1137 static void dump_unlock_file_request( const struct unlock_file_request
*req
)
1139 fprintf( stderr
, " handle=%p,", req
->handle
);
1140 fprintf( stderr
, " offset_low=%08x,", req
->offset_low
);
1141 fprintf( stderr
, " offset_high=%08x,", req
->offset_high
);
1142 fprintf( stderr
, " count_low=%08x,", req
->count_low
);
1143 fprintf( stderr
, " count_high=%08x", req
->count_high
);
1146 static void dump_unmount_device_request( const struct unmount_device_request
*req
)
1148 fprintf( stderr
, " handle=%p", req
->handle
);
1151 static void dump_create_socket_request( const struct create_socket_request
*req
)
1153 fprintf( stderr
, " access=%08x,", req
->access
);
1154 fprintf( stderr
, " attributes=%08x,", req
->attributes
);
1155 fprintf( stderr
, " family=%d,", req
->family
);
1156 fprintf( stderr
, " type=%d,", req
->type
);
1157 fprintf( stderr
, " protocol=%d,", req
->protocol
);
1158 fprintf( stderr
, " flags=%08x", req
->flags
);
1161 static void dump_create_socket_reply( const struct create_socket_reply
*req
)
1163 fprintf( stderr
, " handle=%p", req
->handle
);
1166 static void dump_accept_socket_request( const struct accept_socket_request
*req
)
1168 fprintf( stderr
, " lhandle=%p,", req
->lhandle
);
1169 fprintf( stderr
, " access=%08x,", req
->access
);
1170 fprintf( stderr
, " attributes=%08x", req
->attributes
);
1173 static void dump_accept_socket_reply( const struct accept_socket_reply
*req
)
1175 fprintf( stderr
, " handle=%p", req
->handle
);
1178 static void dump_set_socket_event_request( const struct set_socket_event_request
*req
)
1180 fprintf( stderr
, " handle=%p,", req
->handle
);
1181 fprintf( stderr
, " mask=%08x,", req
->mask
);
1182 fprintf( stderr
, " event=%p,", req
->event
);
1183 fprintf( stderr
, " window=%p,", req
->window
);
1184 fprintf( stderr
, " msg=%08x", req
->msg
);
1187 static void dump_get_socket_event_request( const struct get_socket_event_request
*req
)
1189 fprintf( stderr
, " handle=%p,", req
->handle
);
1190 fprintf( stderr
, " service=%d,", req
->service
);
1191 fprintf( stderr
, " c_event=%p", req
->c_event
);
1194 static void dump_get_socket_event_reply( const struct get_socket_event_reply
*req
)
1196 fprintf( stderr
, " mask=%08x,", req
->mask
);
1197 fprintf( stderr
, " pmask=%08x,", req
->pmask
);
1198 fprintf( stderr
, " state=%08x,", req
->state
);
1199 fprintf( stderr
, " errors=" );
1200 dump_varargs_ints( cur_size
);
1203 static void dump_enable_socket_event_request( const struct enable_socket_event_request
*req
)
1205 fprintf( stderr
, " handle=%p,", req
->handle
);
1206 fprintf( stderr
, " mask=%08x,", req
->mask
);
1207 fprintf( stderr
, " sstate=%08x,", req
->sstate
);
1208 fprintf( stderr
, " cstate=%08x", req
->cstate
);
1211 static void dump_set_socket_deferred_request( const struct set_socket_deferred_request
*req
)
1213 fprintf( stderr
, " handle=%p,", req
->handle
);
1214 fprintf( stderr
, " deferred=%p", req
->deferred
);
1217 static void dump_alloc_console_request( const struct alloc_console_request
*req
)
1219 fprintf( stderr
, " access=%08x,", req
->access
);
1220 fprintf( stderr
, " attributes=%08x,", req
->attributes
);
1221 fprintf( stderr
, " pid=%04x", req
->pid
);
1224 static void dump_alloc_console_reply( const struct alloc_console_reply
*req
)
1226 fprintf( stderr
, " handle_in=%p,", req
->handle_in
);
1227 fprintf( stderr
, " event=%p", req
->event
);
1230 static void dump_free_console_request( const struct free_console_request
*req
)
1234 static void dump_get_console_renderer_events_request( const struct get_console_renderer_events_request
*req
)
1236 fprintf( stderr
, " handle=%p", req
->handle
);
1239 static void dump_get_console_renderer_events_reply( const struct get_console_renderer_events_reply
*req
)
1241 fprintf( stderr
, " data=" );
1242 dump_varargs_bytes( cur_size
);
1245 static void dump_open_console_request( const struct open_console_request
*req
)
1247 fprintf( stderr
, " from=%p,", req
->from
);
1248 fprintf( stderr
, " access=%08x,", req
->access
);
1249 fprintf( stderr
, " attributes=%08x,", req
->attributes
);
1250 fprintf( stderr
, " share=%d", req
->share
);
1253 static void dump_open_console_reply( const struct open_console_reply
*req
)
1255 fprintf( stderr
, " handle=%p", req
->handle
);
1258 static void dump_get_console_wait_event_request( const struct get_console_wait_event_request
*req
)
1262 static void dump_get_console_wait_event_reply( const struct get_console_wait_event_reply
*req
)
1264 fprintf( stderr
, " handle=%p", req
->handle
);
1267 static void dump_get_console_mode_request( const struct get_console_mode_request
*req
)
1269 fprintf( stderr
, " handle=%p", req
->handle
);
1272 static void dump_get_console_mode_reply( const struct get_console_mode_reply
*req
)
1274 fprintf( stderr
, " mode=%d", req
->mode
);
1277 static void dump_set_console_mode_request( const struct set_console_mode_request
*req
)
1279 fprintf( stderr
, " handle=%p,", req
->handle
);
1280 fprintf( stderr
, " mode=%d", req
->mode
);
1283 static void dump_set_console_input_info_request( const struct set_console_input_info_request
*req
)
1285 fprintf( stderr
, " handle=%p,", req
->handle
);
1286 fprintf( stderr
, " mask=%d,", req
->mask
);
1287 fprintf( stderr
, " active_sb=%p,", req
->active_sb
);
1288 fprintf( stderr
, " history_mode=%d,", req
->history_mode
);
1289 fprintf( stderr
, " history_size=%d,", req
->history_size
);
1290 fprintf( stderr
, " edition_mode=%d,", req
->edition_mode
);
1291 fprintf( stderr
, " title=" );
1292 dump_varargs_unicode_str( cur_size
);
1295 static void dump_get_console_input_info_request( const struct get_console_input_info_request
*req
)
1297 fprintf( stderr
, " handle=%p", req
->handle
);
1300 static void dump_get_console_input_info_reply( const struct get_console_input_info_reply
*req
)
1302 fprintf( stderr
, " history_mode=%d,", req
->history_mode
);
1303 fprintf( stderr
, " history_size=%d,", req
->history_size
);
1304 fprintf( stderr
, " history_index=%d,", req
->history_index
);
1305 fprintf( stderr
, " edition_mode=%d,", req
->edition_mode
);
1306 fprintf( stderr
, " title=" );
1307 dump_varargs_unicode_str( cur_size
);
1310 static void dump_append_console_input_history_request( const struct append_console_input_history_request
*req
)
1312 fprintf( stderr
, " handle=%p,", req
->handle
);
1313 fprintf( stderr
, " line=" );
1314 dump_varargs_unicode_str( cur_size
);
1317 static void dump_get_console_input_history_request( const struct get_console_input_history_request
*req
)
1319 fprintf( stderr
, " handle=%p,", req
->handle
);
1320 fprintf( stderr
, " index=%d", req
->index
);
1323 static void dump_get_console_input_history_reply( const struct get_console_input_history_reply
*req
)
1325 fprintf( stderr
, " total=%d,", req
->total
);
1326 fprintf( stderr
, " line=" );
1327 dump_varargs_unicode_str( cur_size
);
1330 static void dump_create_console_output_request( const struct create_console_output_request
*req
)
1332 fprintf( stderr
, " handle_in=%p,", req
->handle_in
);
1333 fprintf( stderr
, " access=%08x,", req
->access
);
1334 fprintf( stderr
, " attributes=%08x,", req
->attributes
);
1335 fprintf( stderr
, " share=%08x", req
->share
);
1338 static void dump_create_console_output_reply( const struct create_console_output_reply
*req
)
1340 fprintf( stderr
, " handle_out=%p", req
->handle_out
);
1343 static void dump_set_console_output_info_request( const struct set_console_output_info_request
*req
)
1345 fprintf( stderr
, " handle=%p,", req
->handle
);
1346 fprintf( stderr
, " mask=%d,", req
->mask
);
1347 fprintf( stderr
, " cursor_size=%d,", req
->cursor_size
);
1348 fprintf( stderr
, " cursor_visible=%d,", req
->cursor_visible
);
1349 fprintf( stderr
, " cursor_x=%d,", req
->cursor_x
);
1350 fprintf( stderr
, " cursor_y=%d,", req
->cursor_y
);
1351 fprintf( stderr
, " width=%d,", req
->width
);
1352 fprintf( stderr
, " height=%d,", req
->height
);
1353 fprintf( stderr
, " attr=%d,", req
->attr
);
1354 fprintf( stderr
, " win_left=%d,", req
->win_left
);
1355 fprintf( stderr
, " win_top=%d,", req
->win_top
);
1356 fprintf( stderr
, " win_right=%d,", req
->win_right
);
1357 fprintf( stderr
, " win_bottom=%d,", req
->win_bottom
);
1358 fprintf( stderr
, " max_width=%d,", req
->max_width
);
1359 fprintf( stderr
, " max_height=%d", req
->max_height
);
1362 static void dump_get_console_output_info_request( const struct get_console_output_info_request
*req
)
1364 fprintf( stderr
, " handle=%p", req
->handle
);
1367 static void dump_get_console_output_info_reply( const struct get_console_output_info_reply
*req
)
1369 fprintf( stderr
, " cursor_size=%d,", req
->cursor_size
);
1370 fprintf( stderr
, " cursor_visible=%d,", req
->cursor_visible
);
1371 fprintf( stderr
, " cursor_x=%d,", req
->cursor_x
);
1372 fprintf( stderr
, " cursor_y=%d,", req
->cursor_y
);
1373 fprintf( stderr
, " width=%d,", req
->width
);
1374 fprintf( stderr
, " height=%d,", req
->height
);
1375 fprintf( stderr
, " attr=%d,", req
->attr
);
1376 fprintf( stderr
, " win_left=%d,", req
->win_left
);
1377 fprintf( stderr
, " win_top=%d,", req
->win_top
);
1378 fprintf( stderr
, " win_right=%d,", req
->win_right
);
1379 fprintf( stderr
, " win_bottom=%d,", req
->win_bottom
);
1380 fprintf( stderr
, " max_width=%d,", req
->max_width
);
1381 fprintf( stderr
, " max_height=%d", req
->max_height
);
1384 static void dump_write_console_input_request( const struct write_console_input_request
*req
)
1386 fprintf( stderr
, " handle=%p,", req
->handle
);
1387 fprintf( stderr
, " rec=" );
1388 dump_varargs_input_records( cur_size
);
1391 static void dump_write_console_input_reply( const struct write_console_input_reply
*req
)
1393 fprintf( stderr
, " written=%d", req
->written
);
1396 static void dump_read_console_input_request( const struct read_console_input_request
*req
)
1398 fprintf( stderr
, " handle=%p,", req
->handle
);
1399 fprintf( stderr
, " flush=%d", req
->flush
);
1402 static void dump_read_console_input_reply( const struct read_console_input_reply
*req
)
1404 fprintf( stderr
, " read=%d,", req
->read
);
1405 fprintf( stderr
, " rec=" );
1406 dump_varargs_input_records( cur_size
);
1409 static void dump_write_console_output_request( const struct write_console_output_request
*req
)
1411 fprintf( stderr
, " handle=%p,", req
->handle
);
1412 fprintf( stderr
, " x=%d,", req
->x
);
1413 fprintf( stderr
, " y=%d,", req
->y
);
1414 fprintf( stderr
, " mode=%d,", req
->mode
);
1415 fprintf( stderr
, " wrap=%d,", req
->wrap
);
1416 fprintf( stderr
, " data=" );
1417 dump_varargs_bytes( cur_size
);
1420 static void dump_write_console_output_reply( const struct write_console_output_reply
*req
)
1422 fprintf( stderr
, " written=%d,", req
->written
);
1423 fprintf( stderr
, " width=%d,", req
->width
);
1424 fprintf( stderr
, " height=%d", req
->height
);
1427 static void dump_fill_console_output_request( const struct fill_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
, " count=%d,", req
->count
);
1434 fprintf( stderr
, " wrap=%d,", req
->wrap
);
1435 fprintf( stderr
, " data=" );
1436 dump_char_info( &req
->data
);
1439 static void dump_fill_console_output_reply( const struct fill_console_output_reply
*req
)
1441 fprintf( stderr
, " written=%d", req
->written
);
1444 static void dump_read_console_output_request( const struct read_console_output_request
*req
)
1446 fprintf( stderr
, " handle=%p,", req
->handle
);
1447 fprintf( stderr
, " x=%d,", req
->x
);
1448 fprintf( stderr
, " y=%d,", req
->y
);
1449 fprintf( stderr
, " mode=%d,", req
->mode
);
1450 fprintf( stderr
, " wrap=%d", req
->wrap
);
1453 static void dump_read_console_output_reply( const struct read_console_output_reply
*req
)
1455 fprintf( stderr
, " width=%d,", req
->width
);
1456 fprintf( stderr
, " height=%d,", req
->height
);
1457 fprintf( stderr
, " data=" );
1458 dump_varargs_bytes( cur_size
);
1461 static void dump_move_console_output_request( const struct move_console_output_request
*req
)
1463 fprintf( stderr
, " handle=%p,", req
->handle
);
1464 fprintf( stderr
, " x_src=%d,", req
->x_src
);
1465 fprintf( stderr
, " y_src=%d,", req
->y_src
);
1466 fprintf( stderr
, " x_dst=%d,", req
->x_dst
);
1467 fprintf( stderr
, " y_dst=%d,", req
->y_dst
);
1468 fprintf( stderr
, " w=%d,", req
->w
);
1469 fprintf( stderr
, " h=%d", req
->h
);
1472 static void dump_send_console_signal_request( const struct send_console_signal_request
*req
)
1474 fprintf( stderr
, " signal=%d,", req
->signal
);
1475 fprintf( stderr
, " group_id=%04x", req
->group_id
);
1478 static void dump_read_directory_changes_request( const struct read_directory_changes_request
*req
)
1480 fprintf( stderr
, " filter=%08x,", req
->filter
);
1481 fprintf( stderr
, " handle=%p,", req
->handle
);
1482 fprintf( stderr
, " event=%p,", req
->event
);
1483 fprintf( stderr
, " subtree=%d,", req
->subtree
);
1484 fprintf( stderr
, " want_data=%d,", req
->want_data
);
1485 fprintf( stderr
, " io_apc=%p,", req
->io_apc
);
1486 fprintf( stderr
, " io_sb=%p,", req
->io_sb
);
1487 fprintf( stderr
, " io_user=%p", req
->io_user
);
1490 static void dump_read_change_request( const struct read_change_request
*req
)
1492 fprintf( stderr
, " handle=%p", req
->handle
);
1495 static void dump_read_change_reply( const struct read_change_reply
*req
)
1497 fprintf( stderr
, " action=%d,", req
->action
);
1498 fprintf( stderr
, " name=" );
1499 dump_varargs_string( cur_size
);
1502 static void dump_create_mapping_request( const struct create_mapping_request
*req
)
1504 fprintf( stderr
, " access=%08x,", req
->access
);
1505 fprintf( stderr
, " attributes=%08x,", req
->attributes
);
1506 fprintf( stderr
, " rootdir=%p,", req
->rootdir
);
1507 fprintf( stderr
, " size_high=%d,", req
->size_high
);
1508 fprintf( stderr
, " size_low=%d,", req
->size_low
);
1509 fprintf( stderr
, " protect=%d,", req
->protect
);
1510 fprintf( stderr
, " file_handle=%p,", req
->file_handle
);
1511 fprintf( stderr
, " name=" );
1512 dump_varargs_unicode_str( cur_size
);
1515 static void dump_create_mapping_reply( const struct create_mapping_reply
*req
)
1517 fprintf( stderr
, " handle=%p", req
->handle
);
1520 static void dump_open_mapping_request( const struct open_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
, " name=" );
1526 dump_varargs_unicode_str( cur_size
);
1529 static void dump_open_mapping_reply( const struct open_mapping_reply
*req
)
1531 fprintf( stderr
, " handle=%p", req
->handle
);
1534 static void dump_get_mapping_info_request( const struct get_mapping_info_request
*req
)
1536 fprintf( stderr
, " handle=%p", req
->handle
);
1539 static void dump_get_mapping_info_reply( const struct get_mapping_info_reply
*req
)
1541 fprintf( stderr
, " size_high=%d,", req
->size_high
);
1542 fprintf( stderr
, " size_low=%d,", req
->size_low
);
1543 fprintf( stderr
, " protect=%d,", req
->protect
);
1544 fprintf( stderr
, " header_size=%d,", req
->header_size
);
1545 fprintf( stderr
, " base=%p,", req
->base
);
1546 fprintf( stderr
, " shared_file=%p,", req
->shared_file
);
1547 fprintf( stderr
, " shared_size=%d", req
->shared_size
);
1550 static void dump_create_snapshot_request( const struct create_snapshot_request
*req
)
1552 fprintf( stderr
, " attributes=%08x,", req
->attributes
);
1553 fprintf( stderr
, " flags=%d,", req
->flags
);
1554 fprintf( stderr
, " pid=%04x", req
->pid
);
1557 static void dump_create_snapshot_reply( const struct create_snapshot_reply
*req
)
1559 fprintf( stderr
, " handle=%p", req
->handle
);
1562 static void dump_next_process_request( const struct next_process_request
*req
)
1564 fprintf( stderr
, " handle=%p,", req
->handle
);
1565 fprintf( stderr
, " reset=%d", req
->reset
);
1568 static void dump_next_process_reply( const struct next_process_reply
*req
)
1570 fprintf( stderr
, " count=%d,", req
->count
);
1571 fprintf( stderr
, " pid=%04x,", req
->pid
);
1572 fprintf( stderr
, " ppid=%04x,", req
->ppid
);
1573 fprintf( stderr
, " heap=%p,", req
->heap
);
1574 fprintf( stderr
, " module=%p,", req
->module
);
1575 fprintf( stderr
, " threads=%d,", req
->threads
);
1576 fprintf( stderr
, " priority=%d,", req
->priority
);
1577 fprintf( stderr
, " handles=%d,", req
->handles
);
1578 fprintf( stderr
, " filename=" );
1579 dump_varargs_unicode_str( cur_size
);
1582 static void dump_next_thread_request( const struct next_thread_request
*req
)
1584 fprintf( stderr
, " handle=%p,", req
->handle
);
1585 fprintf( stderr
, " reset=%d", req
->reset
);
1588 static void dump_next_thread_reply( const struct next_thread_reply
*req
)
1590 fprintf( stderr
, " count=%d,", req
->count
);
1591 fprintf( stderr
, " pid=%04x,", req
->pid
);
1592 fprintf( stderr
, " tid=%04x,", req
->tid
);
1593 fprintf( stderr
, " base_pri=%d,", req
->base_pri
);
1594 fprintf( stderr
, " delta_pri=%d", req
->delta_pri
);
1597 static void dump_next_module_request( const struct next_module_request
*req
)
1599 fprintf( stderr
, " handle=%p,", req
->handle
);
1600 fprintf( stderr
, " reset=%d", req
->reset
);
1603 static void dump_next_module_reply( const struct next_module_reply
*req
)
1605 fprintf( stderr
, " pid=%04x,", req
->pid
);
1606 fprintf( stderr
, " base=%p,", req
->base
);
1607 fprintf( stderr
, " size=%lu,", (unsigned long)req
->size
);
1608 fprintf( stderr
, " filename=" );
1609 dump_varargs_unicode_str( cur_size
);
1612 static void dump_wait_debug_event_request( const struct wait_debug_event_request
*req
)
1614 fprintf( stderr
, " get_handle=%d", req
->get_handle
);
1617 static void dump_wait_debug_event_reply( const struct wait_debug_event_reply
*req
)
1619 fprintf( stderr
, " pid=%04x,", req
->pid
);
1620 fprintf( stderr
, " tid=%04x,", req
->tid
);
1621 fprintf( stderr
, " wait=%p,", req
->wait
);
1622 fprintf( stderr
, " event=" );
1623 dump_varargs_debug_event( cur_size
);
1626 static void dump_queue_exception_event_request( const struct queue_exception_event_request
*req
)
1628 fprintf( stderr
, " first=%d,", req
->first
);
1629 fprintf( stderr
, " record=" );
1630 dump_varargs_exc_event( cur_size
);
1633 static void dump_queue_exception_event_reply( const struct queue_exception_event_reply
*req
)
1635 fprintf( stderr
, " handle=%p", req
->handle
);
1638 static void dump_get_exception_status_request( const struct get_exception_status_request
*req
)
1640 fprintf( stderr
, " handle=%p", req
->handle
);
1643 static void dump_get_exception_status_reply( const struct get_exception_status_reply
*req
)
1645 fprintf( stderr
, " context=" );
1646 dump_varargs_context( cur_size
);
1649 static void dump_output_debug_string_request( const struct output_debug_string_request
*req
)
1651 fprintf( stderr
, " string=%p,", req
->string
);
1652 fprintf( stderr
, " unicode=%d,", req
->unicode
);
1653 fprintf( stderr
, " length=%d", req
->length
);
1656 static void dump_continue_debug_event_request( const struct continue_debug_event_request
*req
)
1658 fprintf( stderr
, " pid=%04x,", req
->pid
);
1659 fprintf( stderr
, " tid=%04x,", req
->tid
);
1660 fprintf( stderr
, " status=%d", req
->status
);
1663 static void dump_debug_process_request( const struct debug_process_request
*req
)
1665 fprintf( stderr
, " pid=%04x,", req
->pid
);
1666 fprintf( stderr
, " attach=%d", req
->attach
);
1669 static void dump_debug_break_request( const struct debug_break_request
*req
)
1671 fprintf( stderr
, " handle=%p", req
->handle
);
1674 static void dump_debug_break_reply( const struct debug_break_reply
*req
)
1676 fprintf( stderr
, " self=%d", req
->self
);
1679 static void dump_set_debugger_kill_on_exit_request( const struct set_debugger_kill_on_exit_request
*req
)
1681 fprintf( stderr
, " kill_on_exit=%d", req
->kill_on_exit
);
1684 static void dump_read_process_memory_request( const struct read_process_memory_request
*req
)
1686 fprintf( stderr
, " handle=%p,", req
->handle
);
1687 fprintf( stderr
, " addr=%p", req
->addr
);
1690 static void dump_read_process_memory_reply( const struct read_process_memory_reply
*req
)
1692 fprintf( stderr
, " data=" );
1693 dump_varargs_bytes( cur_size
);
1696 static void dump_write_process_memory_request( const struct write_process_memory_request
*req
)
1698 fprintf( stderr
, " handle=%p,", req
->handle
);
1699 fprintf( stderr
, " addr=%p,", req
->addr
);
1700 fprintf( stderr
, " data=" );
1701 dump_varargs_bytes( cur_size
);
1704 static void dump_create_key_request( const struct create_key_request
*req
)
1706 fprintf( stderr
, " parent=%p,", req
->parent
);
1707 fprintf( stderr
, " access=%08x,", req
->access
);
1708 fprintf( stderr
, " attributes=%08x,", req
->attributes
);
1709 fprintf( stderr
, " options=%08x,", req
->options
);
1710 fprintf( stderr
, " modif=%ld,", (long)req
->modif
);
1711 fprintf( stderr
, " namelen=%u,", req
->namelen
);
1712 fprintf( stderr
, " name=" );
1713 dump_varargs_unicode_str( min(cur_size
,req
->namelen
) );
1714 fputc( ',', stderr
);
1715 fprintf( stderr
, " class=" );
1716 dump_varargs_unicode_str( cur_size
);
1719 static void dump_create_key_reply( const struct create_key_reply
*req
)
1721 fprintf( stderr
, " hkey=%p,", req
->hkey
);
1722 fprintf( stderr
, " created=%d", req
->created
);
1725 static void dump_open_key_request( const struct open_key_request
*req
)
1727 fprintf( stderr
, " parent=%p,", req
->parent
);
1728 fprintf( stderr
, " access=%08x,", req
->access
);
1729 fprintf( stderr
, " attributes=%08x,", req
->attributes
);
1730 fprintf( stderr
, " name=" );
1731 dump_varargs_unicode_str( cur_size
);
1734 static void dump_open_key_reply( const struct open_key_reply
*req
)
1736 fprintf( stderr
, " hkey=%p", req
->hkey
);
1739 static void dump_delete_key_request( const struct delete_key_request
*req
)
1741 fprintf( stderr
, " hkey=%p", req
->hkey
);
1744 static void dump_flush_key_request( const struct flush_key_request
*req
)
1746 fprintf( stderr
, " hkey=%p", req
->hkey
);
1749 static void dump_enum_key_request( const struct enum_key_request
*req
)
1751 fprintf( stderr
, " hkey=%p,", req
->hkey
);
1752 fprintf( stderr
, " index=%d,", req
->index
);
1753 fprintf( stderr
, " info_class=%d", req
->info_class
);
1756 static void dump_enum_key_reply( const struct enum_key_reply
*req
)
1758 fprintf( stderr
, " subkeys=%d,", req
->subkeys
);
1759 fprintf( stderr
, " max_subkey=%d,", req
->max_subkey
);
1760 fprintf( stderr
, " max_class=%d,", req
->max_class
);
1761 fprintf( stderr
, " values=%d,", req
->values
);
1762 fprintf( stderr
, " max_value=%d,", req
->max_value
);
1763 fprintf( stderr
, " max_data=%d,", req
->max_data
);
1764 fprintf( stderr
, " modif=%ld,", (long)req
->modif
);
1765 fprintf( stderr
, " total=%u,", req
->total
);
1766 fprintf( stderr
, " namelen=%u,", req
->namelen
);
1767 fprintf( stderr
, " name=" );
1768 dump_varargs_unicode_str( min(cur_size
,req
->namelen
) );
1769 fputc( ',', stderr
);
1770 fprintf( stderr
, " class=" );
1771 dump_varargs_unicode_str( cur_size
);
1774 static void dump_set_key_value_request( const struct set_key_value_request
*req
)
1776 fprintf( stderr
, " hkey=%p,", req
->hkey
);
1777 fprintf( stderr
, " type=%d,", req
->type
);
1778 fprintf( stderr
, " namelen=%u,", req
->namelen
);
1779 fprintf( stderr
, " name=" );
1780 dump_varargs_unicode_str( min(cur_size
,req
->namelen
) );
1781 fputc( ',', stderr
);
1782 fprintf( stderr
, " data=" );
1783 dump_varargs_bytes( cur_size
);
1786 static void dump_get_key_value_request( const struct get_key_value_request
*req
)
1788 fprintf( stderr
, " hkey=%p,", req
->hkey
);
1789 fprintf( stderr
, " name=" );
1790 dump_varargs_unicode_str( cur_size
);
1793 static void dump_get_key_value_reply( const struct get_key_value_reply
*req
)
1795 fprintf( stderr
, " type=%d,", req
->type
);
1796 fprintf( stderr
, " total=%u,", req
->total
);
1797 fprintf( stderr
, " data=" );
1798 dump_varargs_bytes( cur_size
);
1801 static void dump_enum_key_value_request( const struct enum_key_value_request
*req
)
1803 fprintf( stderr
, " hkey=%p,", req
->hkey
);
1804 fprintf( stderr
, " index=%d,", req
->index
);
1805 fprintf( stderr
, " info_class=%d", req
->info_class
);
1808 static void dump_enum_key_value_reply( const struct enum_key_value_reply
*req
)
1810 fprintf( stderr
, " type=%d,", req
->type
);
1811 fprintf( stderr
, " total=%u,", req
->total
);
1812 fprintf( stderr
, " namelen=%u,", req
->namelen
);
1813 fprintf( stderr
, " name=" );
1814 dump_varargs_unicode_str( min(cur_size
,req
->namelen
) );
1815 fputc( ',', stderr
);
1816 fprintf( stderr
, " data=" );
1817 dump_varargs_bytes( cur_size
);
1820 static void dump_delete_key_value_request( const struct delete_key_value_request
*req
)
1822 fprintf( stderr
, " hkey=%p,", req
->hkey
);
1823 fprintf( stderr
, " name=" );
1824 dump_varargs_unicode_str( cur_size
);
1827 static void dump_load_registry_request( const struct load_registry_request
*req
)
1829 fprintf( stderr
, " hkey=%p,", req
->hkey
);
1830 fprintf( stderr
, " file=%p,", req
->file
);
1831 fprintf( stderr
, " name=" );
1832 dump_varargs_unicode_str( cur_size
);
1835 static void dump_unload_registry_request( const struct unload_registry_request
*req
)
1837 fprintf( stderr
, " hkey=%p", req
->hkey
);
1840 static void dump_save_registry_request( const struct save_registry_request
*req
)
1842 fprintf( stderr
, " hkey=%p,", req
->hkey
);
1843 fprintf( stderr
, " file=%p", req
->file
);
1846 static void dump_set_registry_notification_request( const struct set_registry_notification_request
*req
)
1848 fprintf( stderr
, " hkey=%p,", req
->hkey
);
1849 fprintf( stderr
, " event=%p,", req
->event
);
1850 fprintf( stderr
, " subtree=%d,", req
->subtree
);
1851 fprintf( stderr
, " filter=%08x", req
->filter
);
1854 static void dump_create_timer_request( const struct create_timer_request
*req
)
1856 fprintf( stderr
, " access=%08x,", req
->access
);
1857 fprintf( stderr
, " attributes=%08x,", req
->attributes
);
1858 fprintf( stderr
, " rootdir=%p,", req
->rootdir
);
1859 fprintf( stderr
, " manual=%d,", req
->manual
);
1860 fprintf( stderr
, " name=" );
1861 dump_varargs_unicode_str( cur_size
);
1864 static void dump_create_timer_reply( const struct create_timer_reply
*req
)
1866 fprintf( stderr
, " handle=%p", req
->handle
);
1869 static void dump_open_timer_request( const struct open_timer_request
*req
)
1871 fprintf( stderr
, " access=%08x,", req
->access
);
1872 fprintf( stderr
, " attributes=%08x,", req
->attributes
);
1873 fprintf( stderr
, " rootdir=%p,", req
->rootdir
);
1874 fprintf( stderr
, " name=" );
1875 dump_varargs_unicode_str( cur_size
);
1878 static void dump_open_timer_reply( const struct open_timer_reply
*req
)
1880 fprintf( stderr
, " handle=%p", req
->handle
);
1883 static void dump_set_timer_request( const struct set_timer_request
*req
)
1885 fprintf( stderr
, " handle=%p,", req
->handle
);
1886 fprintf( stderr
, " expire=" );
1887 dump_abs_time( &req
->expire
);
1888 fprintf( stderr
, "," );
1889 fprintf( stderr
, " period=%d,", req
->period
);
1890 fprintf( stderr
, " callback=%p,", req
->callback
);
1891 fprintf( stderr
, " arg=%p", req
->arg
);
1894 static void dump_set_timer_reply( const struct set_timer_reply
*req
)
1896 fprintf( stderr
, " signaled=%d", req
->signaled
);
1899 static void dump_cancel_timer_request( const struct cancel_timer_request
*req
)
1901 fprintf( stderr
, " handle=%p", req
->handle
);
1904 static void dump_cancel_timer_reply( const struct cancel_timer_reply
*req
)
1906 fprintf( stderr
, " signaled=%d", req
->signaled
);
1909 static void dump_get_timer_info_request( const struct get_timer_info_request
*req
)
1911 fprintf( stderr
, " handle=%p", req
->handle
);
1914 static void dump_get_timer_info_reply( const struct get_timer_info_reply
*req
)
1916 fprintf( stderr
, " when=" );
1917 dump_abs_time( &req
->when
);
1918 fprintf( stderr
, "," );
1919 fprintf( stderr
, " signaled=%d", req
->signaled
);
1922 static void dump_get_thread_context_request( const struct get_thread_context_request
*req
)
1924 fprintf( stderr
, " handle=%p,", req
->handle
);
1925 fprintf( stderr
, " flags=%08x,", req
->flags
);
1926 fprintf( stderr
, " suspend=%d", req
->suspend
);
1929 static void dump_get_thread_context_reply( const struct get_thread_context_reply
*req
)
1931 fprintf( stderr
, " self=%d,", req
->self
);
1932 fprintf( stderr
, " context=" );
1933 dump_varargs_context( cur_size
);
1936 static void dump_set_thread_context_request( const struct set_thread_context_request
*req
)
1938 fprintf( stderr
, " handle=%p,", req
->handle
);
1939 fprintf( stderr
, " flags=%08x,", req
->flags
);
1940 fprintf( stderr
, " suspend=%d,", req
->suspend
);
1941 fprintf( stderr
, " context=" );
1942 dump_varargs_context( cur_size
);
1945 static void dump_set_thread_context_reply( const struct set_thread_context_reply
*req
)
1947 fprintf( stderr
, " self=%d", req
->self
);
1950 static void dump_get_selector_entry_request( const struct get_selector_entry_request
*req
)
1952 fprintf( stderr
, " handle=%p,", req
->handle
);
1953 fprintf( stderr
, " entry=%d", req
->entry
);
1956 static void dump_get_selector_entry_reply( const struct get_selector_entry_reply
*req
)
1958 fprintf( stderr
, " base=%08x,", req
->base
);
1959 fprintf( stderr
, " limit=%08x,", req
->limit
);
1960 fprintf( stderr
, " flags=%02x", req
->flags
);
1963 static void dump_add_atom_request( const struct add_atom_request
*req
)
1965 fprintf( stderr
, " table=%p,", req
->table
);
1966 fprintf( stderr
, " name=" );
1967 dump_varargs_unicode_str( cur_size
);
1970 static void dump_add_atom_reply( const struct add_atom_reply
*req
)
1972 fprintf( stderr
, " atom=%04x", req
->atom
);
1975 static void dump_delete_atom_request( const struct delete_atom_request
*req
)
1977 fprintf( stderr
, " table=%p,", req
->table
);
1978 fprintf( stderr
, " atom=%04x", req
->atom
);
1981 static void dump_find_atom_request( const struct find_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_find_atom_reply( const struct find_atom_reply
*req
)
1990 fprintf( stderr
, " atom=%04x", req
->atom
);
1993 static void dump_get_atom_information_request( const struct get_atom_information_request
*req
)
1995 fprintf( stderr
, " table=%p,", req
->table
);
1996 fprintf( stderr
, " atom=%04x", req
->atom
);
1999 static void dump_get_atom_information_reply( const struct get_atom_information_reply
*req
)
2001 fprintf( stderr
, " count=%d,", req
->count
);
2002 fprintf( stderr
, " pinned=%d,", req
->pinned
);
2003 fprintf( stderr
, " total=%u,", req
->total
);
2004 fprintf( stderr
, " name=" );
2005 dump_varargs_unicode_str( cur_size
);
2008 static void dump_set_atom_information_request( const struct set_atom_information_request
*req
)
2010 fprintf( stderr
, " table=%p,", req
->table
);
2011 fprintf( stderr
, " atom=%04x,", req
->atom
);
2012 fprintf( stderr
, " pinned=%d", req
->pinned
);
2015 static void dump_empty_atom_table_request( const struct empty_atom_table_request
*req
)
2017 fprintf( stderr
, " table=%p,", req
->table
);
2018 fprintf( stderr
, " if_pinned=%d", req
->if_pinned
);
2021 static void dump_init_atom_table_request( const struct init_atom_table_request
*req
)
2023 fprintf( stderr
, " entries=%d", req
->entries
);
2026 static void dump_init_atom_table_reply( const struct init_atom_table_reply
*req
)
2028 fprintf( stderr
, " table=%p", req
->table
);
2031 static void dump_get_msg_queue_request( const struct get_msg_queue_request
*req
)
2035 static void dump_get_msg_queue_reply( const struct get_msg_queue_reply
*req
)
2037 fprintf( stderr
, " handle=%p", req
->handle
);
2040 static void dump_set_queue_mask_request( const struct set_queue_mask_request
*req
)
2042 fprintf( stderr
, " wake_mask=%08x,", req
->wake_mask
);
2043 fprintf( stderr
, " changed_mask=%08x,", req
->changed_mask
);
2044 fprintf( stderr
, " skip_wait=%d", req
->skip_wait
);
2047 static void dump_set_queue_mask_reply( const struct set_queue_mask_reply
*req
)
2049 fprintf( stderr
, " wake_bits=%08x,", req
->wake_bits
);
2050 fprintf( stderr
, " changed_bits=%08x", req
->changed_bits
);
2053 static void dump_get_queue_status_request( const struct get_queue_status_request
*req
)
2055 fprintf( stderr
, " clear=%d", req
->clear
);
2058 static void dump_get_queue_status_reply( const struct get_queue_status_reply
*req
)
2060 fprintf( stderr
, " wake_bits=%08x,", req
->wake_bits
);
2061 fprintf( stderr
, " changed_bits=%08x", req
->changed_bits
);
2064 static void dump_get_process_idle_event_request( const struct get_process_idle_event_request
*req
)
2066 fprintf( stderr
, " handle=%p", req
->handle
);
2069 static void dump_get_process_idle_event_reply( const struct get_process_idle_event_reply
*req
)
2071 fprintf( stderr
, " event=%p", req
->event
);
2074 static void dump_send_message_request( const struct send_message_request
*req
)
2076 fprintf( stderr
, " id=%04x,", req
->id
);
2077 fprintf( stderr
, " type=%d,", req
->type
);
2078 fprintf( stderr
, " flags=%d,", req
->flags
);
2079 fprintf( stderr
, " win=%p,", req
->win
);
2080 fprintf( stderr
, " msg=%08x,", req
->msg
);
2081 fprintf( stderr
, " wparam=%lx,", req
->wparam
);
2082 fprintf( stderr
, " lparam=%lx,", req
->lparam
);
2083 fprintf( stderr
, " timeout=%d,", req
->timeout
);
2084 fprintf( stderr
, " data=" );
2085 dump_varargs_message_data( cur_size
);
2088 static void dump_post_quit_message_request( const struct post_quit_message_request
*req
)
2090 fprintf( stderr
, " exit_code=%d", req
->exit_code
);
2093 static void dump_send_hardware_message_request( const struct send_hardware_message_request
*req
)
2095 fprintf( stderr
, " id=%04x,", req
->id
);
2096 fprintf( stderr
, " win=%p,", req
->win
);
2097 fprintf( stderr
, " msg=%08x,", req
->msg
);
2098 fprintf( stderr
, " time=%08x,", req
->time
);
2099 fprintf( stderr
, " wparam=%lx,", req
->wparam
);
2100 fprintf( stderr
, " lparam=%lx,", req
->lparam
);
2101 fprintf( stderr
, " info=%lx,", req
->info
);
2102 fprintf( stderr
, " x=%d,", req
->x
);
2103 fprintf( stderr
, " y=%d", req
->y
);
2106 static void dump_get_message_request( const struct get_message_request
*req
)
2108 fprintf( stderr
, " flags=%d,", req
->flags
);
2109 fprintf( stderr
, " get_win=%p,", req
->get_win
);
2110 fprintf( stderr
, " get_first=%08x,", req
->get_first
);
2111 fprintf( stderr
, " get_last=%08x,", req
->get_last
);
2112 fprintf( stderr
, " hw_id=%08x", req
->hw_id
);
2115 static void dump_get_message_reply( const struct get_message_reply
*req
)
2117 fprintf( stderr
, " win=%p,", req
->win
);
2118 fprintf( stderr
, " type=%d,", req
->type
);
2119 fprintf( stderr
, " msg=%08x,", req
->msg
);
2120 fprintf( stderr
, " wparam=%lx,", req
->wparam
);
2121 fprintf( stderr
, " lparam=%lx,", req
->lparam
);
2122 fprintf( stderr
, " info=%lx,", req
->info
);
2123 fprintf( stderr
, " x=%d,", req
->x
);
2124 fprintf( stderr
, " y=%d,", req
->y
);
2125 fprintf( stderr
, " time=%08x,", req
->time
);
2126 fprintf( stderr
, " hw_id=%08x,", req
->hw_id
);
2127 fprintf( stderr
, " active_hooks=%08x,", req
->active_hooks
);
2128 fprintf( stderr
, " total=%u,", req
->total
);
2129 fprintf( stderr
, " data=" );
2130 dump_varargs_message_data( cur_size
);
2133 static void dump_reply_message_request( const struct reply_message_request
*req
)
2135 fprintf( stderr
, " result=%08x,", req
->result
);
2136 fprintf( stderr
, " remove=%d,", req
->remove
);
2137 fprintf( stderr
, " data=" );
2138 dump_varargs_bytes( cur_size
);
2141 static void dump_accept_hardware_message_request( const struct accept_hardware_message_request
*req
)
2143 fprintf( stderr
, " hw_id=%08x,", req
->hw_id
);
2144 fprintf( stderr
, " remove=%d,", req
->remove
);
2145 fprintf( stderr
, " new_win=%p", req
->new_win
);
2148 static void dump_get_message_reply_request( const struct get_message_reply_request
*req
)
2150 fprintf( stderr
, " cancel=%d", req
->cancel
);
2153 static void dump_get_message_reply_reply( const struct get_message_reply_reply
*req
)
2155 fprintf( stderr
, " result=%08x,", req
->result
);
2156 fprintf( stderr
, " data=" );
2157 dump_varargs_bytes( cur_size
);
2160 static void dump_set_win_timer_request( const struct set_win_timer_request
*req
)
2162 fprintf( stderr
, " win=%p,", req
->win
);
2163 fprintf( stderr
, " msg=%08x,", req
->msg
);
2164 fprintf( stderr
, " rate=%08x,", req
->rate
);
2165 fprintf( stderr
, " id=%lx,", req
->id
);
2166 fprintf( stderr
, " lparam=%lx", req
->lparam
);
2169 static void dump_set_win_timer_reply( const struct set_win_timer_reply
*req
)
2171 fprintf( stderr
, " id=%lx", req
->id
);
2174 static void dump_kill_win_timer_request( const struct kill_win_timer_request
*req
)
2176 fprintf( stderr
, " win=%p,", req
->win
);
2177 fprintf( stderr
, " msg=%08x,", req
->msg
);
2178 fprintf( stderr
, " id=%lx", req
->id
);
2181 static void dump_get_serial_info_request( const struct get_serial_info_request
*req
)
2183 fprintf( stderr
, " handle=%p", req
->handle
);
2186 static void dump_get_serial_info_reply( const struct get_serial_info_reply
*req
)
2188 fprintf( stderr
, " readinterval=%08x,", req
->readinterval
);
2189 fprintf( stderr
, " readconst=%08x,", req
->readconst
);
2190 fprintf( stderr
, " readmult=%08x,", req
->readmult
);
2191 fprintf( stderr
, " writeconst=%08x,", req
->writeconst
);
2192 fprintf( stderr
, " writemult=%08x,", req
->writemult
);
2193 fprintf( stderr
, " eventmask=%08x", req
->eventmask
);
2196 static void dump_set_serial_info_request( const struct set_serial_info_request
*req
)
2198 fprintf( stderr
, " handle=%p,", req
->handle
);
2199 fprintf( stderr
, " flags=%d,", req
->flags
);
2200 fprintf( stderr
, " readinterval=%08x,", req
->readinterval
);
2201 fprintf( stderr
, " readconst=%08x,", req
->readconst
);
2202 fprintf( stderr
, " readmult=%08x,", req
->readmult
);
2203 fprintf( stderr
, " writeconst=%08x,", req
->writeconst
);
2204 fprintf( stderr
, " writemult=%08x,", req
->writemult
);
2205 fprintf( stderr
, " eventmask=%08x", req
->eventmask
);
2208 static void dump_register_async_request( const struct register_async_request
*req
)
2210 fprintf( stderr
, " handle=%p,", req
->handle
);
2211 fprintf( stderr
, " type=%d,", req
->type
);
2212 fprintf( stderr
, " io_apc=%p,", req
->io_apc
);
2213 fprintf( stderr
, " io_sb=%p,", req
->io_sb
);
2214 fprintf( stderr
, " io_user=%p,", req
->io_user
);
2215 fprintf( stderr
, " count=%d", req
->count
);
2218 static void dump_cancel_async_request( const struct cancel_async_request
*req
)
2220 fprintf( stderr
, " handle=%p", req
->handle
);
2223 static void dump_create_named_pipe_request( const struct create_named_pipe_request
*req
)
2225 fprintf( stderr
, " access=%08x,", req
->access
);
2226 fprintf( stderr
, " attributes=%08x,", req
->attributes
);
2227 fprintf( stderr
, " rootdir=%p,", req
->rootdir
);
2228 fprintf( stderr
, " options=%08x,", req
->options
);
2229 fprintf( stderr
, " flags=%08x,", req
->flags
);
2230 fprintf( stderr
, " maxinstances=%08x,", req
->maxinstances
);
2231 fprintf( stderr
, " outsize=%08x,", req
->outsize
);
2232 fprintf( stderr
, " insize=%08x,", req
->insize
);
2233 fprintf( stderr
, " timeout=%08x,", req
->timeout
);
2234 fprintf( stderr
, " name=" );
2235 dump_varargs_unicode_str( cur_size
);
2238 static void dump_create_named_pipe_reply( const struct create_named_pipe_reply
*req
)
2240 fprintf( stderr
, " handle=%p", req
->handle
);
2243 static void dump_open_named_pipe_request( const struct open_named_pipe_request
*req
)
2245 fprintf( stderr
, " access=%08x,", req
->access
);
2246 fprintf( stderr
, " attributes=%08x,", req
->attributes
);
2247 fprintf( stderr
, " rootdir=%p,", req
->rootdir
);
2248 fprintf( stderr
, " flags=%08x,", req
->flags
);
2249 fprintf( stderr
, " name=" );
2250 dump_varargs_unicode_str( cur_size
);
2253 static void dump_open_named_pipe_reply( const struct open_named_pipe_reply
*req
)
2255 fprintf( stderr
, " handle=%p", req
->handle
);
2258 static void dump_connect_named_pipe_request( const struct connect_named_pipe_request
*req
)
2260 fprintf( stderr
, " handle=%p,", req
->handle
);
2261 fprintf( stderr
, " event=%p,", req
->event
);
2262 fprintf( stderr
, " func=%p", req
->func
);
2265 static void dump_wait_named_pipe_request( const struct wait_named_pipe_request
*req
)
2267 fprintf( stderr
, " handle=%p,", req
->handle
);
2268 fprintf( stderr
, " timeout=%08x,", req
->timeout
);
2269 fprintf( stderr
, " event=%p,", req
->event
);
2270 fprintf( stderr
, " func=%p,", req
->func
);
2271 fprintf( stderr
, " name=" );
2272 dump_varargs_unicode_str( cur_size
);
2275 static void dump_disconnect_named_pipe_request( const struct disconnect_named_pipe_request
*req
)
2277 fprintf( stderr
, " handle=%p", req
->handle
);
2280 static void dump_get_named_pipe_info_request( const struct get_named_pipe_info_request
*req
)
2282 fprintf( stderr
, " handle=%p", req
->handle
);
2285 static void dump_get_named_pipe_info_reply( const struct get_named_pipe_info_reply
*req
)
2287 fprintf( stderr
, " flags=%08x,", req
->flags
);
2288 fprintf( stderr
, " maxinstances=%08x,", req
->maxinstances
);
2289 fprintf( stderr
, " instances=%08x,", req
->instances
);
2290 fprintf( stderr
, " outsize=%08x,", req
->outsize
);
2291 fprintf( stderr
, " insize=%08x", req
->insize
);
2294 static void dump_create_window_request( const struct create_window_request
*req
)
2296 fprintf( stderr
, " parent=%p,", req
->parent
);
2297 fprintf( stderr
, " owner=%p,", req
->owner
);
2298 fprintf( stderr
, " atom=%04x,", req
->atom
);
2299 fprintf( stderr
, " instance=%p", req
->instance
);
2302 static void dump_create_window_reply( const struct create_window_reply
*req
)
2304 fprintf( stderr
, " handle=%p,", req
->handle
);
2305 fprintf( stderr
, " parent=%p,", req
->parent
);
2306 fprintf( stderr
, " owner=%p,", req
->owner
);
2307 fprintf( stderr
, " extra=%d,", req
->extra
);
2308 fprintf( stderr
, " class_ptr=%p", req
->class_ptr
);
2311 static void dump_destroy_window_request( const struct destroy_window_request
*req
)
2313 fprintf( stderr
, " handle=%p", req
->handle
);
2316 static void dump_get_desktop_window_request( const struct get_desktop_window_request
*req
)
2318 fprintf( stderr
, " force=%d", req
->force
);
2321 static void dump_get_desktop_window_reply( const struct get_desktop_window_reply
*req
)
2323 fprintf( stderr
, " handle=%p", req
->handle
);
2326 static void dump_set_window_owner_request( const struct set_window_owner_request
*req
)
2328 fprintf( stderr
, " handle=%p,", req
->handle
);
2329 fprintf( stderr
, " owner=%p", req
->owner
);
2332 static void dump_set_window_owner_reply( const struct set_window_owner_reply
*req
)
2334 fprintf( stderr
, " full_owner=%p,", req
->full_owner
);
2335 fprintf( stderr
, " prev_owner=%p", req
->prev_owner
);
2338 static void dump_get_window_info_request( const struct get_window_info_request
*req
)
2340 fprintf( stderr
, " handle=%p", req
->handle
);
2343 static void dump_get_window_info_reply( const struct get_window_info_reply
*req
)
2345 fprintf( stderr
, " full_handle=%p,", req
->full_handle
);
2346 fprintf( stderr
, " last_active=%p,", req
->last_active
);
2347 fprintf( stderr
, " pid=%04x,", req
->pid
);
2348 fprintf( stderr
, " tid=%04x,", req
->tid
);
2349 fprintf( stderr
, " atom=%04x,", req
->atom
);
2350 fprintf( stderr
, " is_unicode=%d", req
->is_unicode
);
2353 static void dump_set_window_info_request( const struct set_window_info_request
*req
)
2355 fprintf( stderr
, " flags=%08x,", req
->flags
);
2356 fprintf( stderr
, " handle=%p,", req
->handle
);
2357 fprintf( stderr
, " style=%08x,", req
->style
);
2358 fprintf( stderr
, " ex_style=%08x,", req
->ex_style
);
2359 fprintf( stderr
, " id=%08x,", req
->id
);
2360 fprintf( stderr
, " is_unicode=%d,", req
->is_unicode
);
2361 fprintf( stderr
, " instance=%p,", req
->instance
);
2362 fprintf( stderr
, " user_data=%lx,", req
->user_data
);
2363 fprintf( stderr
, " extra_offset=%d,", req
->extra_offset
);
2364 fprintf( stderr
, " extra_size=%u,", req
->extra_size
);
2365 fprintf( stderr
, " extra_value=%lx", req
->extra_value
);
2368 static void dump_set_window_info_reply( const struct set_window_info_reply
*req
)
2370 fprintf( stderr
, " old_style=%08x,", req
->old_style
);
2371 fprintf( stderr
, " old_ex_style=%08x,", req
->old_ex_style
);
2372 fprintf( stderr
, " old_id=%08x,", req
->old_id
);
2373 fprintf( stderr
, " old_instance=%p,", req
->old_instance
);
2374 fprintf( stderr
, " old_user_data=%lx,", req
->old_user_data
);
2375 fprintf( stderr
, " old_extra_value=%lx", req
->old_extra_value
);
2378 static void dump_set_parent_request( const struct set_parent_request
*req
)
2380 fprintf( stderr
, " handle=%p,", req
->handle
);
2381 fprintf( stderr
, " parent=%p", req
->parent
);
2384 static void dump_set_parent_reply( const struct set_parent_reply
*req
)
2386 fprintf( stderr
, " old_parent=%p,", req
->old_parent
);
2387 fprintf( stderr
, " full_parent=%p", req
->full_parent
);
2390 static void dump_get_window_parents_request( const struct get_window_parents_request
*req
)
2392 fprintf( stderr
, " handle=%p", req
->handle
);
2395 static void dump_get_window_parents_reply( const struct get_window_parents_reply
*req
)
2397 fprintf( stderr
, " count=%d,", req
->count
);
2398 fprintf( stderr
, " parents=" );
2399 dump_varargs_user_handles( cur_size
);
2402 static void dump_get_window_children_request( const struct get_window_children_request
*req
)
2404 fprintf( stderr
, " parent=%p,", req
->parent
);
2405 fprintf( stderr
, " atom=%04x,", req
->atom
);
2406 fprintf( stderr
, " tid=%04x", req
->tid
);
2409 static void dump_get_window_children_reply( const struct get_window_children_reply
*req
)
2411 fprintf( stderr
, " count=%d,", req
->count
);
2412 fprintf( stderr
, " children=" );
2413 dump_varargs_user_handles( cur_size
);
2416 static void dump_get_window_children_from_point_request( const struct get_window_children_from_point_request
*req
)
2418 fprintf( stderr
, " parent=%p,", req
->parent
);
2419 fprintf( stderr
, " x=%d,", req
->x
);
2420 fprintf( stderr
, " y=%d", req
->y
);
2423 static void dump_get_window_children_from_point_reply( const struct get_window_children_from_point_reply
*req
)
2425 fprintf( stderr
, " count=%d,", req
->count
);
2426 fprintf( stderr
, " children=" );
2427 dump_varargs_user_handles( cur_size
);
2430 static void dump_get_window_tree_request( const struct get_window_tree_request
*req
)
2432 fprintf( stderr
, " handle=%p", req
->handle
);
2435 static void dump_get_window_tree_reply( const struct get_window_tree_reply
*req
)
2437 fprintf( stderr
, " parent=%p,", req
->parent
);
2438 fprintf( stderr
, " owner=%p,", req
->owner
);
2439 fprintf( stderr
, " next_sibling=%p,", req
->next_sibling
);
2440 fprintf( stderr
, " prev_sibling=%p,", req
->prev_sibling
);
2441 fprintf( stderr
, " first_sibling=%p,", req
->first_sibling
);
2442 fprintf( stderr
, " last_sibling=%p,", req
->last_sibling
);
2443 fprintf( stderr
, " first_child=%p,", req
->first_child
);
2444 fprintf( stderr
, " last_child=%p", req
->last_child
);
2447 static void dump_set_window_pos_request( const struct set_window_pos_request
*req
)
2449 fprintf( stderr
, " flags=%08x,", req
->flags
);
2450 fprintf( stderr
, " handle=%p,", req
->handle
);
2451 fprintf( stderr
, " previous=%p,", req
->previous
);
2452 fprintf( stderr
, " window=" );
2453 dump_rectangle( &req
->window
);
2454 fprintf( stderr
, "," );
2455 fprintf( stderr
, " client=" );
2456 dump_rectangle( &req
->client
);
2457 fprintf( stderr
, "," );
2458 fprintf( stderr
, " valid=" );
2459 dump_varargs_rectangles( cur_size
);
2462 static void dump_set_window_pos_reply( const struct set_window_pos_reply
*req
)
2464 fprintf( stderr
, " new_style=%08x", req
->new_style
);
2467 static void dump_get_window_rectangles_request( const struct get_window_rectangles_request
*req
)
2469 fprintf( stderr
, " handle=%p", req
->handle
);
2472 static void dump_get_window_rectangles_reply( const struct get_window_rectangles_reply
*req
)
2474 fprintf( stderr
, " window=" );
2475 dump_rectangle( &req
->window
);
2476 fprintf( stderr
, "," );
2477 fprintf( stderr
, " visible=" );
2478 dump_rectangle( &req
->visible
);
2479 fprintf( stderr
, "," );
2480 fprintf( stderr
, " client=" );
2481 dump_rectangle( &req
->client
);
2484 static void dump_get_window_text_request( const struct get_window_text_request
*req
)
2486 fprintf( stderr
, " handle=%p", req
->handle
);
2489 static void dump_get_window_text_reply( const struct get_window_text_reply
*req
)
2491 fprintf( stderr
, " text=" );
2492 dump_varargs_unicode_str( cur_size
);
2495 static void dump_set_window_text_request( const struct set_window_text_request
*req
)
2497 fprintf( stderr
, " handle=%p,", req
->handle
);
2498 fprintf( stderr
, " text=" );
2499 dump_varargs_unicode_str( cur_size
);
2502 static void dump_get_windows_offset_request( const struct get_windows_offset_request
*req
)
2504 fprintf( stderr
, " from=%p,", req
->from
);
2505 fprintf( stderr
, " to=%p", req
->to
);
2508 static void dump_get_windows_offset_reply( const struct get_windows_offset_reply
*req
)
2510 fprintf( stderr
, " x=%d,", req
->x
);
2511 fprintf( stderr
, " y=%d", req
->y
);
2514 static void dump_get_visible_region_request( const struct get_visible_region_request
*req
)
2516 fprintf( stderr
, " window=%p,", req
->window
);
2517 fprintf( stderr
, " flags=%08x", req
->flags
);
2520 static void dump_get_visible_region_reply( const struct get_visible_region_reply
*req
)
2522 fprintf( stderr
, " top_win=%p,", req
->top_win
);
2523 fprintf( stderr
, " top_org_x=%d,", req
->top_org_x
);
2524 fprintf( stderr
, " top_org_y=%d,", req
->top_org_y
);
2525 fprintf( stderr
, " win_org_x=%d,", req
->win_org_x
);
2526 fprintf( stderr
, " win_org_y=%d,", req
->win_org_y
);
2527 fprintf( stderr
, " total_size=%u,", req
->total_size
);
2528 fprintf( stderr
, " region=" );
2529 dump_varargs_rectangles( cur_size
);
2532 static void dump_get_window_region_request( const struct get_window_region_request
*req
)
2534 fprintf( stderr
, " window=%p", req
->window
);
2537 static void dump_get_window_region_reply( const struct get_window_region_reply
*req
)
2539 fprintf( stderr
, " total_size=%u,", req
->total_size
);
2540 fprintf( stderr
, " region=" );
2541 dump_varargs_rectangles( cur_size
);
2544 static void dump_set_window_region_request( const struct set_window_region_request
*req
)
2546 fprintf( stderr
, " window=%p,", req
->window
);
2547 fprintf( stderr
, " region=" );
2548 dump_varargs_rectangles( cur_size
);
2551 static void dump_get_update_region_request( const struct get_update_region_request
*req
)
2553 fprintf( stderr
, " window=%p,", req
->window
);
2554 fprintf( stderr
, " from_child=%p,", req
->from_child
);
2555 fprintf( stderr
, " flags=%08x", req
->flags
);
2558 static void dump_get_update_region_reply( const struct get_update_region_reply
*req
)
2560 fprintf( stderr
, " child=%p,", req
->child
);
2561 fprintf( stderr
, " flags=%08x,", req
->flags
);
2562 fprintf( stderr
, " total_size=%u,", req
->total_size
);
2563 fprintf( stderr
, " region=" );
2564 dump_varargs_rectangles( cur_size
);
2567 static void dump_update_window_zorder_request( const struct update_window_zorder_request
*req
)
2569 fprintf( stderr
, " window=%p,", req
->window
);
2570 fprintf( stderr
, " rect=" );
2571 dump_rectangle( &req
->rect
);
2574 static void dump_redraw_window_request( const struct redraw_window_request
*req
)
2576 fprintf( stderr
, " window=%p,", req
->window
);
2577 fprintf( stderr
, " flags=%08x,", req
->flags
);
2578 fprintf( stderr
, " region=" );
2579 dump_varargs_rectangles( cur_size
);
2582 static void dump_set_window_property_request( const struct set_window_property_request
*req
)
2584 fprintf( stderr
, " window=%p,", req
->window
);
2585 fprintf( stderr
, " atom=%04x,", req
->atom
);
2586 fprintf( stderr
, " handle=%p,", req
->handle
);
2587 fprintf( stderr
, " name=" );
2588 dump_varargs_unicode_str( cur_size
);
2591 static void dump_remove_window_property_request( const struct remove_window_property_request
*req
)
2593 fprintf( stderr
, " window=%p,", req
->window
);
2594 fprintf( stderr
, " atom=%04x,", req
->atom
);
2595 fprintf( stderr
, " name=" );
2596 dump_varargs_unicode_str( cur_size
);
2599 static void dump_remove_window_property_reply( const struct remove_window_property_reply
*req
)
2601 fprintf( stderr
, " handle=%p", req
->handle
);
2604 static void dump_get_window_property_request( const struct get_window_property_request
*req
)
2606 fprintf( stderr
, " window=%p,", req
->window
);
2607 fprintf( stderr
, " atom=%04x,", req
->atom
);
2608 fprintf( stderr
, " name=" );
2609 dump_varargs_unicode_str( cur_size
);
2612 static void dump_get_window_property_reply( const struct get_window_property_reply
*req
)
2614 fprintf( stderr
, " handle=%p", req
->handle
);
2617 static void dump_get_window_properties_request( const struct get_window_properties_request
*req
)
2619 fprintf( stderr
, " window=%p", req
->window
);
2622 static void dump_get_window_properties_reply( const struct get_window_properties_reply
*req
)
2624 fprintf( stderr
, " total=%d,", req
->total
);
2625 fprintf( stderr
, " props=" );
2626 dump_varargs_properties( cur_size
);
2629 static void dump_create_winstation_request( const struct create_winstation_request
*req
)
2631 fprintf( stderr
, " flags=%08x,", req
->flags
);
2632 fprintf( stderr
, " access=%08x,", req
->access
);
2633 fprintf( stderr
, " attributes=%08x,", req
->attributes
);
2634 fprintf( stderr
, " name=" );
2635 dump_varargs_unicode_str( cur_size
);
2638 static void dump_create_winstation_reply( const struct create_winstation_reply
*req
)
2640 fprintf( stderr
, " handle=%p", req
->handle
);
2643 static void dump_open_winstation_request( const struct open_winstation_request
*req
)
2645 fprintf( stderr
, " access=%08x,", req
->access
);
2646 fprintf( stderr
, " attributes=%08x,", req
->attributes
);
2647 fprintf( stderr
, " name=" );
2648 dump_varargs_unicode_str( cur_size
);
2651 static void dump_open_winstation_reply( const struct open_winstation_reply
*req
)
2653 fprintf( stderr
, " handle=%p", req
->handle
);
2656 static void dump_close_winstation_request( const struct close_winstation_request
*req
)
2658 fprintf( stderr
, " handle=%p", req
->handle
);
2661 static void dump_get_process_winstation_request( const struct get_process_winstation_request
*req
)
2665 static void dump_get_process_winstation_reply( const struct get_process_winstation_reply
*req
)
2667 fprintf( stderr
, " handle=%p", req
->handle
);
2670 static void dump_set_process_winstation_request( const struct set_process_winstation_request
*req
)
2672 fprintf( stderr
, " handle=%p", req
->handle
);
2675 static void dump_create_desktop_request( const struct create_desktop_request
*req
)
2677 fprintf( stderr
, " flags=%08x,", req
->flags
);
2678 fprintf( stderr
, " access=%08x,", req
->access
);
2679 fprintf( stderr
, " attributes=%08x,", req
->attributes
);
2680 fprintf( stderr
, " name=" );
2681 dump_varargs_unicode_str( cur_size
);
2684 static void dump_create_desktop_reply( const struct create_desktop_reply
*req
)
2686 fprintf( stderr
, " handle=%p", req
->handle
);
2689 static void dump_open_desktop_request( const struct open_desktop_request
*req
)
2691 fprintf( stderr
, " flags=%08x,", req
->flags
);
2692 fprintf( stderr
, " access=%08x,", req
->access
);
2693 fprintf( stderr
, " attributes=%08x,", req
->attributes
);
2694 fprintf( stderr
, " name=" );
2695 dump_varargs_unicode_str( cur_size
);
2698 static void dump_open_desktop_reply( const struct open_desktop_reply
*req
)
2700 fprintf( stderr
, " handle=%p", req
->handle
);
2703 static void dump_close_desktop_request( const struct close_desktop_request
*req
)
2705 fprintf( stderr
, " handle=%p", req
->handle
);
2708 static void dump_get_thread_desktop_request( const struct get_thread_desktop_request
*req
)
2710 fprintf( stderr
, " tid=%04x", req
->tid
);
2713 static void dump_get_thread_desktop_reply( const struct get_thread_desktop_reply
*req
)
2715 fprintf( stderr
, " handle=%p", req
->handle
);
2718 static void dump_set_thread_desktop_request( const struct set_thread_desktop_request
*req
)
2720 fprintf( stderr
, " handle=%p", req
->handle
);
2723 static void dump_set_user_object_info_request( const struct set_user_object_info_request
*req
)
2725 fprintf( stderr
, " handle=%p,", req
->handle
);
2726 fprintf( stderr
, " flags=%08x,", req
->flags
);
2727 fprintf( stderr
, " obj_flags=%08x", req
->obj_flags
);
2730 static void dump_set_user_object_info_reply( const struct set_user_object_info_reply
*req
)
2732 fprintf( stderr
, " is_desktop=%d,", req
->is_desktop
);
2733 fprintf( stderr
, " old_obj_flags=%08x,", req
->old_obj_flags
);
2734 fprintf( stderr
, " name=" );
2735 dump_varargs_unicode_str( cur_size
);
2738 static void dump_attach_thread_input_request( const struct attach_thread_input_request
*req
)
2740 fprintf( stderr
, " tid_from=%04x,", req
->tid_from
);
2741 fprintf( stderr
, " tid_to=%04x,", req
->tid_to
);
2742 fprintf( stderr
, " attach=%d", req
->attach
);
2745 static void dump_get_thread_input_request( const struct get_thread_input_request
*req
)
2747 fprintf( stderr
, " tid=%04x", req
->tid
);
2750 static void dump_get_thread_input_reply( const struct get_thread_input_reply
*req
)
2752 fprintf( stderr
, " focus=%p,", req
->focus
);
2753 fprintf( stderr
, " capture=%p,", req
->capture
);
2754 fprintf( stderr
, " active=%p,", req
->active
);
2755 fprintf( stderr
, " foreground=%p,", req
->foreground
);
2756 fprintf( stderr
, " menu_owner=%p,", req
->menu_owner
);
2757 fprintf( stderr
, " move_size=%p,", req
->move_size
);
2758 fprintf( stderr
, " caret=%p,", req
->caret
);
2759 fprintf( stderr
, " rect=" );
2760 dump_rectangle( &req
->rect
);
2763 static void dump_get_last_input_time_request( const struct get_last_input_time_request
*req
)
2767 static void dump_get_last_input_time_reply( const struct get_last_input_time_reply
*req
)
2769 fprintf( stderr
, " time=%08x", req
->time
);
2772 static void dump_get_key_state_request( const struct get_key_state_request
*req
)
2774 fprintf( stderr
, " tid=%04x,", req
->tid
);
2775 fprintf( stderr
, " key=%d", req
->key
);
2778 static void dump_get_key_state_reply( const struct get_key_state_reply
*req
)
2780 fprintf( stderr
, " state=%02x,", req
->state
);
2781 fprintf( stderr
, " keystate=" );
2782 dump_varargs_bytes( cur_size
);
2785 static void dump_set_key_state_request( const struct set_key_state_request
*req
)
2787 fprintf( stderr
, " tid=%04x,", req
->tid
);
2788 fprintf( stderr
, " keystate=" );
2789 dump_varargs_bytes( cur_size
);
2792 static void dump_set_foreground_window_request( const struct set_foreground_window_request
*req
)
2794 fprintf( stderr
, " handle=%p", req
->handle
);
2797 static void dump_set_foreground_window_reply( const struct set_foreground_window_reply
*req
)
2799 fprintf( stderr
, " previous=%p,", req
->previous
);
2800 fprintf( stderr
, " send_msg_old=%d,", req
->send_msg_old
);
2801 fprintf( stderr
, " send_msg_new=%d", req
->send_msg_new
);
2804 static void dump_set_focus_window_request( const struct set_focus_window_request
*req
)
2806 fprintf( stderr
, " handle=%p", req
->handle
);
2809 static void dump_set_focus_window_reply( const struct set_focus_window_reply
*req
)
2811 fprintf( stderr
, " previous=%p", req
->previous
);
2814 static void dump_set_active_window_request( const struct set_active_window_request
*req
)
2816 fprintf( stderr
, " handle=%p", req
->handle
);
2819 static void dump_set_active_window_reply( const struct set_active_window_reply
*req
)
2821 fprintf( stderr
, " previous=%p", req
->previous
);
2824 static void dump_set_capture_window_request( const struct set_capture_window_request
*req
)
2826 fprintf( stderr
, " handle=%p,", req
->handle
);
2827 fprintf( stderr
, " flags=%08x", req
->flags
);
2830 static void dump_set_capture_window_reply( const struct set_capture_window_reply
*req
)
2832 fprintf( stderr
, " previous=%p,", req
->previous
);
2833 fprintf( stderr
, " full_handle=%p", req
->full_handle
);
2836 static void dump_set_caret_window_request( const struct set_caret_window_request
*req
)
2838 fprintf( stderr
, " handle=%p,", req
->handle
);
2839 fprintf( stderr
, " width=%d,", req
->width
);
2840 fprintf( stderr
, " height=%d", req
->height
);
2843 static void dump_set_caret_window_reply( const struct set_caret_window_reply
*req
)
2845 fprintf( stderr
, " previous=%p,", req
->previous
);
2846 fprintf( stderr
, " old_rect=" );
2847 dump_rectangle( &req
->old_rect
);
2848 fprintf( stderr
, "," );
2849 fprintf( stderr
, " old_hide=%d,", req
->old_hide
);
2850 fprintf( stderr
, " old_state=%d", req
->old_state
);
2853 static void dump_set_caret_info_request( const struct set_caret_info_request
*req
)
2855 fprintf( stderr
, " flags=%08x,", req
->flags
);
2856 fprintf( stderr
, " handle=%p,", req
->handle
);
2857 fprintf( stderr
, " x=%d,", req
->x
);
2858 fprintf( stderr
, " y=%d,", req
->y
);
2859 fprintf( stderr
, " hide=%d,", req
->hide
);
2860 fprintf( stderr
, " state=%d", req
->state
);
2863 static void dump_set_caret_info_reply( const struct set_caret_info_reply
*req
)
2865 fprintf( stderr
, " full_handle=%p,", req
->full_handle
);
2866 fprintf( stderr
, " old_rect=" );
2867 dump_rectangle( &req
->old_rect
);
2868 fprintf( stderr
, "," );
2869 fprintf( stderr
, " old_hide=%d,", req
->old_hide
);
2870 fprintf( stderr
, " old_state=%d", req
->old_state
);
2873 static void dump_set_hook_request( const struct set_hook_request
*req
)
2875 fprintf( stderr
, " id=%d,", req
->id
);
2876 fprintf( stderr
, " pid=%04x,", req
->pid
);
2877 fprintf( stderr
, " tid=%04x,", req
->tid
);
2878 fprintf( stderr
, " event_min=%d,", req
->event_min
);
2879 fprintf( stderr
, " event_max=%d,", req
->event_max
);
2880 fprintf( stderr
, " flags=%d,", req
->flags
);
2881 fprintf( stderr
, " proc=%p,", req
->proc
);
2882 fprintf( stderr
, " unicode=%d,", req
->unicode
);
2883 fprintf( stderr
, " module=" );
2884 dump_varargs_unicode_str( cur_size
);
2887 static void dump_set_hook_reply( const struct set_hook_reply
*req
)
2889 fprintf( stderr
, " handle=%p,", req
->handle
);
2890 fprintf( stderr
, " active_hooks=%08x", req
->active_hooks
);
2893 static void dump_remove_hook_request( const struct remove_hook_request
*req
)
2895 fprintf( stderr
, " handle=%p,", req
->handle
);
2896 fprintf( stderr
, " id=%d,", req
->id
);
2897 fprintf( stderr
, " proc=%p", req
->proc
);
2900 static void dump_remove_hook_reply( const struct remove_hook_reply
*req
)
2902 fprintf( stderr
, " active_hooks=%08x", req
->active_hooks
);
2905 static void dump_start_hook_chain_request( const struct start_hook_chain_request
*req
)
2907 fprintf( stderr
, " id=%d,", req
->id
);
2908 fprintf( stderr
, " event=%d,", req
->event
);
2909 fprintf( stderr
, " window=%p,", req
->window
);
2910 fprintf( stderr
, " object_id=%d,", req
->object_id
);
2911 fprintf( stderr
, " child_id=%d", req
->child_id
);
2914 static void dump_start_hook_chain_reply( const struct start_hook_chain_reply
*req
)
2916 fprintf( stderr
, " handle=%p,", req
->handle
);
2917 fprintf( stderr
, " pid=%04x,", req
->pid
);
2918 fprintf( stderr
, " tid=%04x,", req
->tid
);
2919 fprintf( stderr
, " proc=%p,", req
->proc
);
2920 fprintf( stderr
, " unicode=%d,", req
->unicode
);
2921 fprintf( stderr
, " active_hooks=%08x,", req
->active_hooks
);
2922 fprintf( stderr
, " module=" );
2923 dump_varargs_unicode_str( cur_size
);
2926 static void dump_finish_hook_chain_request( const struct finish_hook_chain_request
*req
)
2928 fprintf( stderr
, " id=%d", req
->id
);
2931 static void dump_get_hook_info_request( const struct get_hook_info_request
*req
)
2933 fprintf( stderr
, " handle=%p,", req
->handle
);
2934 fprintf( stderr
, " get_next=%d,", req
->get_next
);
2935 fprintf( stderr
, " event=%d,", req
->event
);
2936 fprintf( stderr
, " window=%p,", req
->window
);
2937 fprintf( stderr
, " object_id=%d,", req
->object_id
);
2938 fprintf( stderr
, " child_id=%d", req
->child_id
);
2941 static void dump_get_hook_info_reply( const struct get_hook_info_reply
*req
)
2943 fprintf( stderr
, " handle=%p,", req
->handle
);
2944 fprintf( stderr
, " id=%d,", req
->id
);
2945 fprintf( stderr
, " pid=%04x,", req
->pid
);
2946 fprintf( stderr
, " tid=%04x,", req
->tid
);
2947 fprintf( stderr
, " proc=%p,", req
->proc
);
2948 fprintf( stderr
, " unicode=%d,", req
->unicode
);
2949 fprintf( stderr
, " module=" );
2950 dump_varargs_unicode_str( cur_size
);
2953 static void dump_create_class_request( const struct create_class_request
*req
)
2955 fprintf( stderr
, " local=%d,", req
->local
);
2956 fprintf( stderr
, " atom=%04x,", req
->atom
);
2957 fprintf( stderr
, " style=%08x,", req
->style
);
2958 fprintf( stderr
, " instance=%p,", req
->instance
);
2959 fprintf( stderr
, " extra=%d,", req
->extra
);
2960 fprintf( stderr
, " win_extra=%d,", req
->win_extra
);
2961 fprintf( stderr
, " client_ptr=%p", req
->client_ptr
);
2964 static void dump_destroy_class_request( const struct destroy_class_request
*req
)
2966 fprintf( stderr
, " atom=%04x,", req
->atom
);
2967 fprintf( stderr
, " instance=%p", req
->instance
);
2970 static void dump_destroy_class_reply( const struct destroy_class_reply
*req
)
2972 fprintf( stderr
, " client_ptr=%p", req
->client_ptr
);
2975 static void dump_set_class_info_request( const struct set_class_info_request
*req
)
2977 fprintf( stderr
, " window=%p,", req
->window
);
2978 fprintf( stderr
, " flags=%08x,", req
->flags
);
2979 fprintf( stderr
, " atom=%04x,", req
->atom
);
2980 fprintf( stderr
, " style=%08x,", req
->style
);
2981 fprintf( stderr
, " win_extra=%d,", req
->win_extra
);
2982 fprintf( stderr
, " instance=%p,", req
->instance
);
2983 fprintf( stderr
, " extra_offset=%d,", req
->extra_offset
);
2984 fprintf( stderr
, " extra_size=%u,", req
->extra_size
);
2985 fprintf( stderr
, " extra_value=%lx", req
->extra_value
);
2988 static void dump_set_class_info_reply( const struct set_class_info_reply
*req
)
2990 fprintf( stderr
, " old_atom=%04x,", req
->old_atom
);
2991 fprintf( stderr
, " old_style=%08x,", req
->old_style
);
2992 fprintf( stderr
, " old_extra=%d,", req
->old_extra
);
2993 fprintf( stderr
, " old_win_extra=%d,", req
->old_win_extra
);
2994 fprintf( stderr
, " old_instance=%p,", req
->old_instance
);
2995 fprintf( stderr
, " old_extra_value=%lx", req
->old_extra_value
);
2998 static void dump_set_clipboard_info_request( const struct set_clipboard_info_request
*req
)
3000 fprintf( stderr
, " flags=%08x,", req
->flags
);
3001 fprintf( stderr
, " clipboard=%p,", req
->clipboard
);
3002 fprintf( stderr
, " owner=%p,", req
->owner
);
3003 fprintf( stderr
, " viewer=%p,", req
->viewer
);
3004 fprintf( stderr
, " seqno=%08x", req
->seqno
);
3007 static void dump_set_clipboard_info_reply( const struct set_clipboard_info_reply
*req
)
3009 fprintf( stderr
, " flags=%08x,", req
->flags
);
3010 fprintf( stderr
, " old_clipboard=%p,", req
->old_clipboard
);
3011 fprintf( stderr
, " old_owner=%p,", req
->old_owner
);
3012 fprintf( stderr
, " old_viewer=%p,", req
->old_viewer
);
3013 fprintf( stderr
, " seqno=%08x", req
->seqno
);
3016 static void dump_open_token_request( const struct open_token_request
*req
)
3018 fprintf( stderr
, " handle=%p,", req
->handle
);
3019 fprintf( stderr
, " access=%08x,", req
->access
);
3020 fprintf( stderr
, " attributes=%08x,", req
->attributes
);
3021 fprintf( stderr
, " flags=%08x", req
->flags
);
3024 static void dump_open_token_reply( const struct open_token_reply
*req
)
3026 fprintf( stderr
, " token=%p", req
->token
);
3029 static void dump_set_global_windows_request( const struct set_global_windows_request
*req
)
3031 fprintf( stderr
, " flags=%08x,", req
->flags
);
3032 fprintf( stderr
, " shell_window=%p,", req
->shell_window
);
3033 fprintf( stderr
, " shell_listview=%p,", req
->shell_listview
);
3034 fprintf( stderr
, " progman_window=%p,", req
->progman_window
);
3035 fprintf( stderr
, " taskman_window=%p", req
->taskman_window
);
3038 static void dump_set_global_windows_reply( const struct set_global_windows_reply
*req
)
3040 fprintf( stderr
, " old_shell_window=%p,", req
->old_shell_window
);
3041 fprintf( stderr
, " old_shell_listview=%p,", req
->old_shell_listview
);
3042 fprintf( stderr
, " old_progman_window=%p,", req
->old_progman_window
);
3043 fprintf( stderr
, " old_taskman_window=%p", req
->old_taskman_window
);
3046 static void dump_adjust_token_privileges_request( const struct adjust_token_privileges_request
*req
)
3048 fprintf( stderr
, " handle=%p,", req
->handle
);
3049 fprintf( stderr
, " disable_all=%d,", req
->disable_all
);
3050 fprintf( stderr
, " get_modified_state=%d,", req
->get_modified_state
);
3051 fprintf( stderr
, " privileges=" );
3052 dump_varargs_LUID_AND_ATTRIBUTES( cur_size
);
3055 static void dump_adjust_token_privileges_reply( const struct adjust_token_privileges_reply
*req
)
3057 fprintf( stderr
, " len=%08x,", req
->len
);
3058 fprintf( stderr
, " privileges=" );
3059 dump_varargs_LUID_AND_ATTRIBUTES( cur_size
);
3062 static void dump_get_token_privileges_request( const struct get_token_privileges_request
*req
)
3064 fprintf( stderr
, " handle=%p", req
->handle
);
3067 static void dump_get_token_privileges_reply( const struct get_token_privileges_reply
*req
)
3069 fprintf( stderr
, " len=%08x,", req
->len
);
3070 fprintf( stderr
, " privileges=" );
3071 dump_varargs_LUID_AND_ATTRIBUTES( cur_size
);
3074 static void dump_check_token_privileges_request( const struct check_token_privileges_request
*req
)
3076 fprintf( stderr
, " handle=%p,", req
->handle
);
3077 fprintf( stderr
, " all_required=%d,", req
->all_required
);
3078 fprintf( stderr
, " privileges=" );
3079 dump_varargs_LUID_AND_ATTRIBUTES( cur_size
);
3082 static void dump_check_token_privileges_reply( const struct check_token_privileges_reply
*req
)
3084 fprintf( stderr
, " has_privileges=%d,", req
->has_privileges
);
3085 fprintf( stderr
, " privileges=" );
3086 dump_varargs_LUID_AND_ATTRIBUTES( cur_size
);
3089 static void dump_duplicate_token_request( const struct duplicate_token_request
*req
)
3091 fprintf( stderr
, " handle=%p,", req
->handle
);
3092 fprintf( stderr
, " access=%08x,", req
->access
);
3093 fprintf( stderr
, " attributes=%08x,", req
->attributes
);
3094 fprintf( stderr
, " primary=%d,", req
->primary
);
3095 fprintf( stderr
, " impersonation_level=%d", req
->impersonation_level
);
3098 static void dump_duplicate_token_reply( const struct duplicate_token_reply
*req
)
3100 fprintf( stderr
, " new_handle=%p", req
->new_handle
);
3103 static void dump_access_check_request( const struct access_check_request
*req
)
3105 fprintf( stderr
, " handle=%p,", req
->handle
);
3106 fprintf( stderr
, " desired_access=%08x,", req
->desired_access
);
3107 fprintf( stderr
, " mapping_read=%08x,", req
->mapping_read
);
3108 fprintf( stderr
, " mapping_write=%08x,", req
->mapping_write
);
3109 fprintf( stderr
, " mapping_execute=%08x,", req
->mapping_execute
);
3110 fprintf( stderr
, " mapping_all=%08x,", req
->mapping_all
);
3111 fprintf( stderr
, " sd=" );
3112 dump_varargs_security_descriptor( cur_size
);
3115 static void dump_access_check_reply( const struct access_check_reply
*req
)
3117 fprintf( stderr
, " access_granted=%08x,", req
->access_granted
);
3118 fprintf( stderr
, " access_status=%08x,", req
->access_status
);
3119 fprintf( stderr
, " privileges_len=%08x,", req
->privileges_len
);
3120 fprintf( stderr
, " privileges=" );
3121 dump_varargs_LUID_AND_ATTRIBUTES( cur_size
);
3124 static void dump_get_token_user_request( const struct get_token_user_request
*req
)
3126 fprintf( stderr
, " handle=%p", req
->handle
);
3129 static void dump_get_token_user_reply( const struct get_token_user_reply
*req
)
3131 fprintf( stderr
, " user_len=%u,", req
->user_len
);
3132 fprintf( stderr
, " user=" );
3133 dump_varargs_SID( cur_size
);
3136 static void dump_get_token_groups_request( const struct get_token_groups_request
*req
)
3138 fprintf( stderr
, " handle=%p", req
->handle
);
3141 static void dump_get_token_groups_reply( const struct get_token_groups_reply
*req
)
3143 fprintf( stderr
, " user_len=%u,", req
->user_len
);
3144 fprintf( stderr
, " user=" );
3145 dump_varargs_token_groups( cur_size
);
3148 static void dump_create_mailslot_request( const struct create_mailslot_request
*req
)
3150 fprintf( stderr
, " access=%08x,", req
->access
);
3151 fprintf( stderr
, " attributes=%08x,", req
->attributes
);
3152 fprintf( stderr
, " rootdir=%p,", req
->rootdir
);
3153 fprintf( stderr
, " max_msgsize=%08x,", req
->max_msgsize
);
3154 fprintf( stderr
, " read_timeout=%d,", req
->read_timeout
);
3155 fprintf( stderr
, " name=" );
3156 dump_varargs_unicode_str( cur_size
);
3159 static void dump_create_mailslot_reply( const struct create_mailslot_reply
*req
)
3161 fprintf( stderr
, " handle=%p", req
->handle
);
3164 static void dump_open_mailslot_request( const struct open_mailslot_request
*req
)
3166 fprintf( stderr
, " access=%08x,", req
->access
);
3167 fprintf( stderr
, " attributes=%08x,", req
->attributes
);
3168 fprintf( stderr
, " rootdir=%p,", req
->rootdir
);
3169 fprintf( stderr
, " sharing=%08x,", req
->sharing
);
3170 fprintf( stderr
, " name=" );
3171 dump_varargs_unicode_str( cur_size
);
3174 static void dump_open_mailslot_reply( const struct open_mailslot_reply
*req
)
3176 fprintf( stderr
, " handle=%p", req
->handle
);
3179 static void dump_set_mailslot_info_request( const struct set_mailslot_info_request
*req
)
3181 fprintf( stderr
, " handle=%p,", req
->handle
);
3182 fprintf( stderr
, " flags=%08x,", req
->flags
);
3183 fprintf( stderr
, " read_timeout=%d", req
->read_timeout
);
3186 static void dump_set_mailslot_info_reply( const struct set_mailslot_info_reply
*req
)
3188 fprintf( stderr
, " max_msgsize=%08x,", req
->max_msgsize
);
3189 fprintf( stderr
, " read_timeout=%d", req
->read_timeout
);
3192 static void dump_create_directory_request( const struct create_directory_request
*req
)
3194 fprintf( stderr
, " access=%08x,", req
->access
);
3195 fprintf( stderr
, " attributes=%08x,", req
->attributes
);
3196 fprintf( stderr
, " rootdir=%p,", req
->rootdir
);
3197 fprintf( stderr
, " directory_name=" );
3198 dump_varargs_unicode_str( cur_size
);
3201 static void dump_create_directory_reply( const struct create_directory_reply
*req
)
3203 fprintf( stderr
, " handle=%p", req
->handle
);
3206 static void dump_open_directory_request( const struct open_directory_request
*req
)
3208 fprintf( stderr
, " access=%08x,", req
->access
);
3209 fprintf( stderr
, " attributes=%08x,", req
->attributes
);
3210 fprintf( stderr
, " rootdir=%p,", req
->rootdir
);
3211 fprintf( stderr
, " directory_name=" );
3212 dump_varargs_unicode_str( cur_size
);
3215 static void dump_open_directory_reply( const struct open_directory_reply
*req
)
3217 fprintf( stderr
, " handle=%p", req
->handle
);
3220 static void dump_create_symlink_request( const struct create_symlink_request
*req
)
3222 fprintf( stderr
, " access=%08x,", req
->access
);
3223 fprintf( stderr
, " attributes=%08x,", req
->attributes
);
3224 fprintf( stderr
, " rootdir=%p,", req
->rootdir
);
3225 fprintf( stderr
, " name_len=%u,", req
->name_len
);
3226 fprintf( stderr
, " name=" );
3227 dump_varargs_unicode_str( min(cur_size
,req
->name_len
) );
3228 fputc( ',', stderr
);
3229 fprintf( stderr
, " target_name=" );
3230 dump_varargs_unicode_str( cur_size
);
3233 static void dump_create_symlink_reply( const struct create_symlink_reply
*req
)
3235 fprintf( stderr
, " handle=%p", req
->handle
);
3238 static void dump_open_symlink_request( const struct open_symlink_request
*req
)
3240 fprintf( stderr
, " access=%08x,", req
->access
);
3241 fprintf( stderr
, " attributes=%08x,", req
->attributes
);
3242 fprintf( stderr
, " rootdir=%p,", req
->rootdir
);
3243 fprintf( stderr
, " name=" );
3244 dump_varargs_unicode_str( cur_size
);
3247 static void dump_open_symlink_reply( const struct open_symlink_reply
*req
)
3249 fprintf( stderr
, " handle=%p", req
->handle
);
3252 static void dump_query_symlink_request( const struct query_symlink_request
*req
)
3254 fprintf( stderr
, " handle=%p", req
->handle
);
3257 static void dump_query_symlink_reply( const struct query_symlink_reply
*req
)
3259 fprintf( stderr
, " target_name=" );
3260 dump_varargs_unicode_str( cur_size
);
3263 static const dump_func req_dumpers
[REQ_NB_REQUESTS
] = {
3264 (dump_func
)dump_new_process_request
,
3265 (dump_func
)dump_get_new_process_info_request
,
3266 (dump_func
)dump_new_thread_request
,
3267 (dump_func
)dump_get_startup_info_request
,
3268 (dump_func
)dump_init_process_done_request
,
3269 (dump_func
)dump_init_thread_request
,
3270 (dump_func
)dump_terminate_process_request
,
3271 (dump_func
)dump_terminate_thread_request
,
3272 (dump_func
)dump_get_process_info_request
,
3273 (dump_func
)dump_set_process_info_request
,
3274 (dump_func
)dump_get_thread_info_request
,
3275 (dump_func
)dump_set_thread_info_request
,
3276 (dump_func
)dump_get_dll_info_request
,
3277 (dump_func
)dump_suspend_thread_request
,
3278 (dump_func
)dump_resume_thread_request
,
3279 (dump_func
)dump_load_dll_request
,
3280 (dump_func
)dump_unload_dll_request
,
3281 (dump_func
)dump_queue_apc_request
,
3282 (dump_func
)dump_get_apc_request
,
3283 (dump_func
)dump_close_handle_request
,
3284 (dump_func
)dump_set_handle_info_request
,
3285 (dump_func
)dump_dup_handle_request
,
3286 (dump_func
)dump_open_process_request
,
3287 (dump_func
)dump_open_thread_request
,
3288 (dump_func
)dump_select_request
,
3289 (dump_func
)dump_create_event_request
,
3290 (dump_func
)dump_event_op_request
,
3291 (dump_func
)dump_open_event_request
,
3292 (dump_func
)dump_create_mutex_request
,
3293 (dump_func
)dump_release_mutex_request
,
3294 (dump_func
)dump_open_mutex_request
,
3295 (dump_func
)dump_create_semaphore_request
,
3296 (dump_func
)dump_release_semaphore_request
,
3297 (dump_func
)dump_open_semaphore_request
,
3298 (dump_func
)dump_create_file_request
,
3299 (dump_func
)dump_open_file_object_request
,
3300 (dump_func
)dump_alloc_file_handle_request
,
3301 (dump_func
)dump_get_handle_fd_request
,
3302 (dump_func
)dump_flush_file_request
,
3303 (dump_func
)dump_lock_file_request
,
3304 (dump_func
)dump_unlock_file_request
,
3305 (dump_func
)dump_unmount_device_request
,
3306 (dump_func
)dump_create_socket_request
,
3307 (dump_func
)dump_accept_socket_request
,
3308 (dump_func
)dump_set_socket_event_request
,
3309 (dump_func
)dump_get_socket_event_request
,
3310 (dump_func
)dump_enable_socket_event_request
,
3311 (dump_func
)dump_set_socket_deferred_request
,
3312 (dump_func
)dump_alloc_console_request
,
3313 (dump_func
)dump_free_console_request
,
3314 (dump_func
)dump_get_console_renderer_events_request
,
3315 (dump_func
)dump_open_console_request
,
3316 (dump_func
)dump_get_console_wait_event_request
,
3317 (dump_func
)dump_get_console_mode_request
,
3318 (dump_func
)dump_set_console_mode_request
,
3319 (dump_func
)dump_set_console_input_info_request
,
3320 (dump_func
)dump_get_console_input_info_request
,
3321 (dump_func
)dump_append_console_input_history_request
,
3322 (dump_func
)dump_get_console_input_history_request
,
3323 (dump_func
)dump_create_console_output_request
,
3324 (dump_func
)dump_set_console_output_info_request
,
3325 (dump_func
)dump_get_console_output_info_request
,
3326 (dump_func
)dump_write_console_input_request
,
3327 (dump_func
)dump_read_console_input_request
,
3328 (dump_func
)dump_write_console_output_request
,
3329 (dump_func
)dump_fill_console_output_request
,
3330 (dump_func
)dump_read_console_output_request
,
3331 (dump_func
)dump_move_console_output_request
,
3332 (dump_func
)dump_send_console_signal_request
,
3333 (dump_func
)dump_read_directory_changes_request
,
3334 (dump_func
)dump_read_change_request
,
3335 (dump_func
)dump_create_mapping_request
,
3336 (dump_func
)dump_open_mapping_request
,
3337 (dump_func
)dump_get_mapping_info_request
,
3338 (dump_func
)dump_create_snapshot_request
,
3339 (dump_func
)dump_next_process_request
,
3340 (dump_func
)dump_next_thread_request
,
3341 (dump_func
)dump_next_module_request
,
3342 (dump_func
)dump_wait_debug_event_request
,
3343 (dump_func
)dump_queue_exception_event_request
,
3344 (dump_func
)dump_get_exception_status_request
,
3345 (dump_func
)dump_output_debug_string_request
,
3346 (dump_func
)dump_continue_debug_event_request
,
3347 (dump_func
)dump_debug_process_request
,
3348 (dump_func
)dump_debug_break_request
,
3349 (dump_func
)dump_set_debugger_kill_on_exit_request
,
3350 (dump_func
)dump_read_process_memory_request
,
3351 (dump_func
)dump_write_process_memory_request
,
3352 (dump_func
)dump_create_key_request
,
3353 (dump_func
)dump_open_key_request
,
3354 (dump_func
)dump_delete_key_request
,
3355 (dump_func
)dump_flush_key_request
,
3356 (dump_func
)dump_enum_key_request
,
3357 (dump_func
)dump_set_key_value_request
,
3358 (dump_func
)dump_get_key_value_request
,
3359 (dump_func
)dump_enum_key_value_request
,
3360 (dump_func
)dump_delete_key_value_request
,
3361 (dump_func
)dump_load_registry_request
,
3362 (dump_func
)dump_unload_registry_request
,
3363 (dump_func
)dump_save_registry_request
,
3364 (dump_func
)dump_set_registry_notification_request
,
3365 (dump_func
)dump_create_timer_request
,
3366 (dump_func
)dump_open_timer_request
,
3367 (dump_func
)dump_set_timer_request
,
3368 (dump_func
)dump_cancel_timer_request
,
3369 (dump_func
)dump_get_timer_info_request
,
3370 (dump_func
)dump_get_thread_context_request
,
3371 (dump_func
)dump_set_thread_context_request
,
3372 (dump_func
)dump_get_selector_entry_request
,
3373 (dump_func
)dump_add_atom_request
,
3374 (dump_func
)dump_delete_atom_request
,
3375 (dump_func
)dump_find_atom_request
,
3376 (dump_func
)dump_get_atom_information_request
,
3377 (dump_func
)dump_set_atom_information_request
,
3378 (dump_func
)dump_empty_atom_table_request
,
3379 (dump_func
)dump_init_atom_table_request
,
3380 (dump_func
)dump_get_msg_queue_request
,
3381 (dump_func
)dump_set_queue_mask_request
,
3382 (dump_func
)dump_get_queue_status_request
,
3383 (dump_func
)dump_get_process_idle_event_request
,
3384 (dump_func
)dump_send_message_request
,
3385 (dump_func
)dump_post_quit_message_request
,
3386 (dump_func
)dump_send_hardware_message_request
,
3387 (dump_func
)dump_get_message_request
,
3388 (dump_func
)dump_reply_message_request
,
3389 (dump_func
)dump_accept_hardware_message_request
,
3390 (dump_func
)dump_get_message_reply_request
,
3391 (dump_func
)dump_set_win_timer_request
,
3392 (dump_func
)dump_kill_win_timer_request
,
3393 (dump_func
)dump_get_serial_info_request
,
3394 (dump_func
)dump_set_serial_info_request
,
3395 (dump_func
)dump_register_async_request
,
3396 (dump_func
)dump_cancel_async_request
,
3397 (dump_func
)dump_create_named_pipe_request
,
3398 (dump_func
)dump_open_named_pipe_request
,
3399 (dump_func
)dump_connect_named_pipe_request
,
3400 (dump_func
)dump_wait_named_pipe_request
,
3401 (dump_func
)dump_disconnect_named_pipe_request
,
3402 (dump_func
)dump_get_named_pipe_info_request
,
3403 (dump_func
)dump_create_window_request
,
3404 (dump_func
)dump_destroy_window_request
,
3405 (dump_func
)dump_get_desktop_window_request
,
3406 (dump_func
)dump_set_window_owner_request
,
3407 (dump_func
)dump_get_window_info_request
,
3408 (dump_func
)dump_set_window_info_request
,
3409 (dump_func
)dump_set_parent_request
,
3410 (dump_func
)dump_get_window_parents_request
,
3411 (dump_func
)dump_get_window_children_request
,
3412 (dump_func
)dump_get_window_children_from_point_request
,
3413 (dump_func
)dump_get_window_tree_request
,
3414 (dump_func
)dump_set_window_pos_request
,
3415 (dump_func
)dump_get_window_rectangles_request
,
3416 (dump_func
)dump_get_window_text_request
,
3417 (dump_func
)dump_set_window_text_request
,
3418 (dump_func
)dump_get_windows_offset_request
,
3419 (dump_func
)dump_get_visible_region_request
,
3420 (dump_func
)dump_get_window_region_request
,
3421 (dump_func
)dump_set_window_region_request
,
3422 (dump_func
)dump_get_update_region_request
,
3423 (dump_func
)dump_update_window_zorder_request
,
3424 (dump_func
)dump_redraw_window_request
,
3425 (dump_func
)dump_set_window_property_request
,
3426 (dump_func
)dump_remove_window_property_request
,
3427 (dump_func
)dump_get_window_property_request
,
3428 (dump_func
)dump_get_window_properties_request
,
3429 (dump_func
)dump_create_winstation_request
,
3430 (dump_func
)dump_open_winstation_request
,
3431 (dump_func
)dump_close_winstation_request
,
3432 (dump_func
)dump_get_process_winstation_request
,
3433 (dump_func
)dump_set_process_winstation_request
,
3434 (dump_func
)dump_create_desktop_request
,
3435 (dump_func
)dump_open_desktop_request
,
3436 (dump_func
)dump_close_desktop_request
,
3437 (dump_func
)dump_get_thread_desktop_request
,
3438 (dump_func
)dump_set_thread_desktop_request
,
3439 (dump_func
)dump_set_user_object_info_request
,
3440 (dump_func
)dump_attach_thread_input_request
,
3441 (dump_func
)dump_get_thread_input_request
,
3442 (dump_func
)dump_get_last_input_time_request
,
3443 (dump_func
)dump_get_key_state_request
,
3444 (dump_func
)dump_set_key_state_request
,
3445 (dump_func
)dump_set_foreground_window_request
,
3446 (dump_func
)dump_set_focus_window_request
,
3447 (dump_func
)dump_set_active_window_request
,
3448 (dump_func
)dump_set_capture_window_request
,
3449 (dump_func
)dump_set_caret_window_request
,
3450 (dump_func
)dump_set_caret_info_request
,
3451 (dump_func
)dump_set_hook_request
,
3452 (dump_func
)dump_remove_hook_request
,
3453 (dump_func
)dump_start_hook_chain_request
,
3454 (dump_func
)dump_finish_hook_chain_request
,
3455 (dump_func
)dump_get_hook_info_request
,
3456 (dump_func
)dump_create_class_request
,
3457 (dump_func
)dump_destroy_class_request
,
3458 (dump_func
)dump_set_class_info_request
,
3459 (dump_func
)dump_set_clipboard_info_request
,
3460 (dump_func
)dump_open_token_request
,
3461 (dump_func
)dump_set_global_windows_request
,
3462 (dump_func
)dump_adjust_token_privileges_request
,
3463 (dump_func
)dump_get_token_privileges_request
,
3464 (dump_func
)dump_check_token_privileges_request
,
3465 (dump_func
)dump_duplicate_token_request
,
3466 (dump_func
)dump_access_check_request
,
3467 (dump_func
)dump_get_token_user_request
,
3468 (dump_func
)dump_get_token_groups_request
,
3469 (dump_func
)dump_create_mailslot_request
,
3470 (dump_func
)dump_open_mailslot_request
,
3471 (dump_func
)dump_set_mailslot_info_request
,
3472 (dump_func
)dump_create_directory_request
,
3473 (dump_func
)dump_open_directory_request
,
3474 (dump_func
)dump_create_symlink_request
,
3475 (dump_func
)dump_open_symlink_request
,
3476 (dump_func
)dump_query_symlink_request
,
3479 static const dump_func reply_dumpers
[REQ_NB_REQUESTS
] = {
3480 (dump_func
)dump_new_process_reply
,
3481 (dump_func
)dump_get_new_process_info_reply
,
3482 (dump_func
)dump_new_thread_reply
,
3483 (dump_func
)dump_get_startup_info_reply
,
3485 (dump_func
)dump_init_thread_reply
,
3486 (dump_func
)dump_terminate_process_reply
,
3487 (dump_func
)dump_terminate_thread_reply
,
3488 (dump_func
)dump_get_process_info_reply
,
3490 (dump_func
)dump_get_thread_info_reply
,
3492 (dump_func
)dump_get_dll_info_reply
,
3493 (dump_func
)dump_suspend_thread_reply
,
3494 (dump_func
)dump_resume_thread_reply
,
3498 (dump_func
)dump_get_apc_reply
,
3500 (dump_func
)dump_set_handle_info_reply
,
3501 (dump_func
)dump_dup_handle_reply
,
3502 (dump_func
)dump_open_process_reply
,
3503 (dump_func
)dump_open_thread_reply
,
3505 (dump_func
)dump_create_event_reply
,
3507 (dump_func
)dump_open_event_reply
,
3508 (dump_func
)dump_create_mutex_reply
,
3509 (dump_func
)dump_release_mutex_reply
,
3510 (dump_func
)dump_open_mutex_reply
,
3511 (dump_func
)dump_create_semaphore_reply
,
3512 (dump_func
)dump_release_semaphore_reply
,
3513 (dump_func
)dump_open_semaphore_reply
,
3514 (dump_func
)dump_create_file_reply
,
3515 (dump_func
)dump_open_file_object_reply
,
3516 (dump_func
)dump_alloc_file_handle_reply
,
3517 (dump_func
)dump_get_handle_fd_reply
,
3518 (dump_func
)dump_flush_file_reply
,
3519 (dump_func
)dump_lock_file_reply
,
3522 (dump_func
)dump_create_socket_reply
,
3523 (dump_func
)dump_accept_socket_reply
,
3525 (dump_func
)dump_get_socket_event_reply
,
3528 (dump_func
)dump_alloc_console_reply
,
3530 (dump_func
)dump_get_console_renderer_events_reply
,
3531 (dump_func
)dump_open_console_reply
,
3532 (dump_func
)dump_get_console_wait_event_reply
,
3533 (dump_func
)dump_get_console_mode_reply
,
3536 (dump_func
)dump_get_console_input_info_reply
,
3538 (dump_func
)dump_get_console_input_history_reply
,
3539 (dump_func
)dump_create_console_output_reply
,
3541 (dump_func
)dump_get_console_output_info_reply
,
3542 (dump_func
)dump_write_console_input_reply
,
3543 (dump_func
)dump_read_console_input_reply
,
3544 (dump_func
)dump_write_console_output_reply
,
3545 (dump_func
)dump_fill_console_output_reply
,
3546 (dump_func
)dump_read_console_output_reply
,
3550 (dump_func
)dump_read_change_reply
,
3551 (dump_func
)dump_create_mapping_reply
,
3552 (dump_func
)dump_open_mapping_reply
,
3553 (dump_func
)dump_get_mapping_info_reply
,
3554 (dump_func
)dump_create_snapshot_reply
,
3555 (dump_func
)dump_next_process_reply
,
3556 (dump_func
)dump_next_thread_reply
,
3557 (dump_func
)dump_next_module_reply
,
3558 (dump_func
)dump_wait_debug_event_reply
,
3559 (dump_func
)dump_queue_exception_event_reply
,
3560 (dump_func
)dump_get_exception_status_reply
,
3564 (dump_func
)dump_debug_break_reply
,
3566 (dump_func
)dump_read_process_memory_reply
,
3568 (dump_func
)dump_create_key_reply
,
3569 (dump_func
)dump_open_key_reply
,
3572 (dump_func
)dump_enum_key_reply
,
3574 (dump_func
)dump_get_key_value_reply
,
3575 (dump_func
)dump_enum_key_value_reply
,
3581 (dump_func
)dump_create_timer_reply
,
3582 (dump_func
)dump_open_timer_reply
,
3583 (dump_func
)dump_set_timer_reply
,
3584 (dump_func
)dump_cancel_timer_reply
,
3585 (dump_func
)dump_get_timer_info_reply
,
3586 (dump_func
)dump_get_thread_context_reply
,
3587 (dump_func
)dump_set_thread_context_reply
,
3588 (dump_func
)dump_get_selector_entry_reply
,
3589 (dump_func
)dump_add_atom_reply
,
3591 (dump_func
)dump_find_atom_reply
,
3592 (dump_func
)dump_get_atom_information_reply
,
3595 (dump_func
)dump_init_atom_table_reply
,
3596 (dump_func
)dump_get_msg_queue_reply
,
3597 (dump_func
)dump_set_queue_mask_reply
,
3598 (dump_func
)dump_get_queue_status_reply
,
3599 (dump_func
)dump_get_process_idle_event_reply
,
3603 (dump_func
)dump_get_message_reply
,
3606 (dump_func
)dump_get_message_reply_reply
,
3607 (dump_func
)dump_set_win_timer_reply
,
3609 (dump_func
)dump_get_serial_info_reply
,
3613 (dump_func
)dump_create_named_pipe_reply
,
3614 (dump_func
)dump_open_named_pipe_reply
,
3618 (dump_func
)dump_get_named_pipe_info_reply
,
3619 (dump_func
)dump_create_window_reply
,
3621 (dump_func
)dump_get_desktop_window_reply
,
3622 (dump_func
)dump_set_window_owner_reply
,
3623 (dump_func
)dump_get_window_info_reply
,
3624 (dump_func
)dump_set_window_info_reply
,
3625 (dump_func
)dump_set_parent_reply
,
3626 (dump_func
)dump_get_window_parents_reply
,
3627 (dump_func
)dump_get_window_children_reply
,
3628 (dump_func
)dump_get_window_children_from_point_reply
,
3629 (dump_func
)dump_get_window_tree_reply
,
3630 (dump_func
)dump_set_window_pos_reply
,
3631 (dump_func
)dump_get_window_rectangles_reply
,
3632 (dump_func
)dump_get_window_text_reply
,
3634 (dump_func
)dump_get_windows_offset_reply
,
3635 (dump_func
)dump_get_visible_region_reply
,
3636 (dump_func
)dump_get_window_region_reply
,
3638 (dump_func
)dump_get_update_region_reply
,
3642 (dump_func
)dump_remove_window_property_reply
,
3643 (dump_func
)dump_get_window_property_reply
,
3644 (dump_func
)dump_get_window_properties_reply
,
3645 (dump_func
)dump_create_winstation_reply
,
3646 (dump_func
)dump_open_winstation_reply
,
3648 (dump_func
)dump_get_process_winstation_reply
,
3650 (dump_func
)dump_create_desktop_reply
,
3651 (dump_func
)dump_open_desktop_reply
,
3653 (dump_func
)dump_get_thread_desktop_reply
,
3655 (dump_func
)dump_set_user_object_info_reply
,
3657 (dump_func
)dump_get_thread_input_reply
,
3658 (dump_func
)dump_get_last_input_time_reply
,
3659 (dump_func
)dump_get_key_state_reply
,
3661 (dump_func
)dump_set_foreground_window_reply
,
3662 (dump_func
)dump_set_focus_window_reply
,
3663 (dump_func
)dump_set_active_window_reply
,
3664 (dump_func
)dump_set_capture_window_reply
,
3665 (dump_func
)dump_set_caret_window_reply
,
3666 (dump_func
)dump_set_caret_info_reply
,
3667 (dump_func
)dump_set_hook_reply
,
3668 (dump_func
)dump_remove_hook_reply
,
3669 (dump_func
)dump_start_hook_chain_reply
,
3671 (dump_func
)dump_get_hook_info_reply
,
3673 (dump_func
)dump_destroy_class_reply
,
3674 (dump_func
)dump_set_class_info_reply
,
3675 (dump_func
)dump_set_clipboard_info_reply
,
3676 (dump_func
)dump_open_token_reply
,
3677 (dump_func
)dump_set_global_windows_reply
,
3678 (dump_func
)dump_adjust_token_privileges_reply
,
3679 (dump_func
)dump_get_token_privileges_reply
,
3680 (dump_func
)dump_check_token_privileges_reply
,
3681 (dump_func
)dump_duplicate_token_reply
,
3682 (dump_func
)dump_access_check_reply
,
3683 (dump_func
)dump_get_token_user_reply
,
3684 (dump_func
)dump_get_token_groups_reply
,
3685 (dump_func
)dump_create_mailslot_reply
,
3686 (dump_func
)dump_open_mailslot_reply
,
3687 (dump_func
)dump_set_mailslot_info_reply
,
3688 (dump_func
)dump_create_directory_reply
,
3689 (dump_func
)dump_open_directory_reply
,
3690 (dump_func
)dump_create_symlink_reply
,
3691 (dump_func
)dump_open_symlink_reply
,
3692 (dump_func
)dump_query_symlink_reply
,
3695 static const char * const req_names
[REQ_NB_REQUESTS
] = {
3697 "get_new_process_info",
3700 "init_process_done",
3702 "terminate_process",
3728 "release_semaphore",
3732 "alloc_file_handle",
3742 "enable_socket_event",
3743 "set_socket_deferred",
3746 "get_console_renderer_events",
3748 "get_console_wait_event",
3751 "set_console_input_info",
3752 "get_console_input_info",
3753 "append_console_input_history",
3754 "get_console_input_history",
3755 "create_console_output",
3756 "set_console_output_info",
3757 "get_console_output_info",
3758 "write_console_input",
3759 "read_console_input",
3760 "write_console_output",
3761 "fill_console_output",
3762 "read_console_output",
3763 "move_console_output",
3764 "send_console_signal",
3765 "read_directory_changes",
3775 "queue_exception_event",
3776 "get_exception_status",
3777 "output_debug_string",
3778 "continue_debug_event",
3781 "set_debugger_kill_on_exit",
3782 "read_process_memory",
3783 "write_process_memory",
3796 "set_registry_notification",
3802 "get_thread_context",
3803 "set_thread_context",
3804 "get_selector_entry",
3808 "get_atom_information",
3809 "set_atom_information",
3815 "get_process_idle_event",
3817 "post_quit_message",
3818 "send_hardware_message",
3821 "accept_hardware_message",
3822 "get_message_reply",
3829 "create_named_pipe",
3831 "connect_named_pipe",
3833 "disconnect_named_pipe",
3834 "get_named_pipe_info",
3837 "get_desktop_window",
3842 "get_window_parents",
3843 "get_window_children",
3844 "get_window_children_from_point",
3847 "get_window_rectangles",
3850 "get_windows_offset",
3851 "get_visible_region",
3852 "get_window_region",
3853 "set_window_region",
3854 "get_update_region",
3855 "update_window_zorder",
3857 "set_window_property",
3858 "remove_window_property",
3859 "get_window_property",
3860 "get_window_properties",
3861 "create_winstation",
3864 "get_process_winstation",
3865 "set_process_winstation",
3869 "get_thread_desktop",
3870 "set_thread_desktop",
3871 "set_user_object_info",
3872 "attach_thread_input",
3874 "get_last_input_time",
3877 "set_foreground_window",
3879 "set_active_window",
3880 "set_capture_window",
3886 "finish_hook_chain",
3891 "set_clipboard_info",
3893 "set_global_windows",
3894 "adjust_token_privileges",
3895 "get_token_privileges",
3896 "check_token_privileges",
3903 "set_mailslot_info",
3917 { "ACCESS_DENIED", STATUS_ACCESS_DENIED
},
3918 { "ACCESS_VIOLATION", STATUS_ACCESS_VIOLATION
},
3919 { "ALIAS_EXISTS", STATUS_ALIAS_EXISTS
},
3920 { "BAD_DEVICE_TYPE", STATUS_BAD_DEVICE_TYPE
},
3921 { "BUFFER_OVERFLOW", STATUS_BUFFER_OVERFLOW
},
3922 { "BUFFER_TOO_SMALL", STATUS_BUFFER_TOO_SMALL
},
3923 { "CHILD_MUST_BE_VOLATILE", STATUS_CHILD_MUST_BE_VOLATILE
},
3924 { "DEVICE_BUSY", STATUS_DEVICE_BUSY
},
3925 { "DIRECTORY_NOT_EMPTY", STATUS_DIRECTORY_NOT_EMPTY
},
3926 { "DISK_FULL", STATUS_DISK_FULL
},
3927 { "DLL_NOT_FOUND", STATUS_DLL_NOT_FOUND
},
3928 { "ERROR_CLASS_ALREADY_EXISTS", 0xc0010000 | ERROR_CLASS_ALREADY_EXISTS
},
3929 { "ERROR_CLASS_DOES_NOT_EXIST", 0xc0010000 | ERROR_CLASS_DOES_NOT_EXIST
},
3930 { "ERROR_CLASS_HAS_WINDOWS", 0xc0010000 | ERROR_CLASS_HAS_WINDOWS
},
3931 { "ERROR_CLIPBOARD_NOT_OPEN", 0xc0010000 | ERROR_CLIPBOARD_NOT_OPEN
},
3932 { "ERROR_INVALID_INDEX", 0xc0010000 | ERROR_INVALID_INDEX
},
3933 { "ERROR_INVALID_WINDOW_HANDLE", 0xc0010000 | ERROR_INVALID_WINDOW_HANDLE
},
3934 { "ERROR_SEEK", 0xc0010000 | ERROR_SEEK
},
3935 { "FILE_IS_A_DIRECTORY", STATUS_FILE_IS_A_DIRECTORY
},
3936 { "FILE_LOCK_CONFLICT", STATUS_FILE_LOCK_CONFLICT
},
3937 { "HANDLE_NOT_CLOSABLE", STATUS_HANDLE_NOT_CLOSABLE
},
3938 { "INSTANCE_NOT_AVAILABLE", STATUS_INSTANCE_NOT_AVAILABLE
},
3939 { "INVALID_CID", STATUS_INVALID_CID
},
3940 { "INVALID_FILE_FOR_SECTION", STATUS_INVALID_FILE_FOR_SECTION
},
3941 { "INVALID_HANDLE", STATUS_INVALID_HANDLE
},
3942 { "INVALID_PARAMETER", STATUS_INVALID_PARAMETER
},
3943 { "IO_TIMEOUT", STATUS_IO_TIMEOUT
},
3944 { "KEY_DELETED", STATUS_KEY_DELETED
},
3945 { "MAPPED_FILE_SIZE_ZERO", STATUS_MAPPED_FILE_SIZE_ZERO
},
3946 { "MEDIA_WRITE_PROTECTED", STATUS_MEDIA_WRITE_PROTECTED
},
3947 { "MUTANT_NOT_OWNED", STATUS_MUTANT_NOT_OWNED
},
3948 { "NAME_TOO_LONG", STATUS_NAME_TOO_LONG
},
3949 { "NOT_ALL_ASSIGNED", STATUS_NOT_ALL_ASSIGNED
},
3950 { "NOT_A_DIRECTORY", STATUS_NOT_A_DIRECTORY
},
3951 { "NOT_IMPLEMENTED", STATUS_NOT_IMPLEMENTED
},
3952 { "NOT_REGISTRY_FILE", STATUS_NOT_REGISTRY_FILE
},
3953 { "NO_DATA_DETECTED", STATUS_NO_DATA_DETECTED
},
3954 { "NO_IMPERSONATION_TOKEN", STATUS_NO_IMPERSONATION_TOKEN
},
3955 { "NO_MEMORY", STATUS_NO_MEMORY
},
3956 { "NO_MORE_ENTRIES", STATUS_NO_MORE_ENTRIES
},
3957 { "NO_MORE_FILES", STATUS_NO_MORE_FILES
},
3958 { "NO_SUCH_DEVICE", STATUS_NO_SUCH_DEVICE
},
3959 { "NO_SUCH_FILE", STATUS_NO_SUCH_FILE
},
3960 { "NO_TOKEN", STATUS_NO_TOKEN
},
3961 { "OBJECT_NAME_COLLISION", STATUS_OBJECT_NAME_COLLISION
},
3962 { "OBJECT_NAME_EXISTS", STATUS_OBJECT_NAME_EXISTS
},
3963 { "OBJECT_NAME_INVALID", STATUS_OBJECT_NAME_INVALID
},
3964 { "OBJECT_NAME_NOT_FOUND", STATUS_OBJECT_NAME_NOT_FOUND
},
3965 { "OBJECT_PATH_INVALID", STATUS_OBJECT_PATH_INVALID
},
3966 { "OBJECT_PATH_NOT_FOUND", STATUS_OBJECT_PATH_NOT_FOUND
},
3967 { "OBJECT_PATH_SYNTAX_BAD", STATUS_OBJECT_PATH_SYNTAX_BAD
},
3968 { "OBJECT_TYPE_MISMATCH", STATUS_OBJECT_TYPE_MISMATCH
},
3969 { "PENDING", STATUS_PENDING
},
3970 { "PIPE_BUSY", STATUS_PIPE_BUSY
},
3971 { "PIPE_CONNECTED", STATUS_PIPE_CONNECTED
},
3972 { "PIPE_DISCONNECTED", STATUS_PIPE_DISCONNECTED
},
3973 { "PIPE_LISTENING", STATUS_PIPE_LISTENING
},
3974 { "PIPE_NOT_AVAILABLE", STATUS_PIPE_NOT_AVAILABLE
},
3975 { "PRIVILEGE_NOT_HELD", STATUS_PRIVILEGE_NOT_HELD
},
3976 { "SECTION_TOO_BIG", STATUS_SECTION_TOO_BIG
},
3977 { "SEMAPHORE_LIMIT_EXCEEDED", STATUS_SEMAPHORE_LIMIT_EXCEEDED
},
3978 { "SHARING_VIOLATION", STATUS_SHARING_VIOLATION
},
3979 { "SUSPEND_COUNT_EXCEEDED", STATUS_SUSPEND_COUNT_EXCEEDED
},
3980 { "TIMEOUT", STATUS_TIMEOUT
},
3981 { "TOO_MANY_OPENED_FILES", STATUS_TOO_MANY_OPENED_FILES
},
3982 { "UNSUCCESSFUL", STATUS_UNSUCCESSFUL
},
3983 { "VOLUME_DISMOUNTED", STATUS_VOLUME_DISMOUNTED
},
3984 { "WAS_LOCKED", STATUS_WAS_LOCKED
},
3988 /* ### make_requests end ### */
3989 /* Everything above this line is generated automatically by tools/make_requests */
3991 static const char *get_status_name( unsigned int status
)
3994 static char buffer
[10];
3998 for (i
= 0; status_names
[i
].name
; i
++)
3999 if (status_names
[i
].value
== status
) return status_names
[i
].name
;
4001 sprintf( buffer
, "%x", status
);
4005 void trace_request(void)
4007 enum request req
= current
->req
.request_header
.req
;
4008 if (req
< REQ_NB_REQUESTS
)
4010 fprintf( stderr
, "%04x: %s(", current
->id
, req_names
[req
] );
4011 if (req_dumpers
[req
])
4013 cur_data
= get_req_data();
4014 cur_size
= get_req_data_size();
4015 req_dumpers
[req
]( ¤t
->req
);
4017 fprintf( stderr
, " )\n" );
4019 else fprintf( stderr
, "%04x: %d(?)\n", current
->id
, req
);
4022 void trace_reply( enum request req
, const union generic_reply
*reply
)
4024 if (req
< REQ_NB_REQUESTS
)
4026 fprintf( stderr
, "%04x: %s() = %s",
4027 current
->id
, req_names
[req
], get_status_name(current
->error
) );
4028 if (reply_dumpers
[req
])
4030 fprintf( stderr
, " {" );
4031 cur_data
= current
->reply_data
;
4032 cur_size
= reply
->reply_header
.reply_size
;
4033 reply_dumpers
[req
]( reply
);
4034 fprintf( stderr
, " }" );
4036 fputc( '\n', stderr
);
4038 else fprintf( stderr
, "%04x: %d() = %s\n",
4039 current
->id
, req
, get_status_name(current
->error
) );