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 static const char *get_status_name( unsigned int status
);
48 /* utility functions */
50 inline static void remove_data( data_size_t size
)
52 cur_data
= (const char *)cur_data
+ size
;
56 static void dump_uints( const int *ptr
, int len
)
61 fprintf( stderr
, "%08x", *ptr
++ );
62 if (--len
) fputc( ',', stderr
);
67 static void dump_abs_time( const abs_time_t
*time
)
71 if (!time
->sec
&& !time
->usec
)
73 fprintf( stderr
, "0" );
76 secs
= time
->sec
- current_time
.tv_sec
;
77 if ((usecs
= time
->usec
- current_time
.tv_usec
) < 0)
82 if (secs
> 0 || (secs
== 0 && usecs
>= 0))
83 fprintf( stderr
, "%d.%06d (+%d.%06d)", time
->sec
, time
->usec
, secs
, usecs
);
85 fprintf( stderr
, "%d.%06d (-%d.%06d)", time
->sec
, time
->usec
, abs(secs
+1), 1000000-usecs
);
88 static void dump_rectangle( const rectangle_t
*rect
)
90 fprintf( stderr
, "{%d,%d;%d,%d}",
91 rect
->left
, rect
->top
, rect
->right
, rect
->bottom
);
94 static void dump_char_info( const char_info_t
*info
)
96 fprintf( stderr
, "{'" );
97 dump_strW( &info
->ch
, 1, stderr
, "\'\'" );
98 fprintf( stderr
, "',%04x}", info
->attr
);
101 static void dump_apc_call( const apc_call_t
*call
)
103 fputc( '{', stderr
);
107 fprintf( stderr
, "APC_NONE" );
110 fprintf( stderr
, "APC_USER,args={%lx,%lx,%lx}",
111 call
->user
.args
[0], call
->user
.args
[1], call
->user
.args
[2] );
114 fprintf( stderr
, "APC_TIMER,time=" );
115 dump_abs_time( &call
->timer
.time
);
116 fprintf( stderr
, ",arg=%p", call
->timer
.arg
);
119 fprintf( stderr
, "APC_ASYNC_IO,user=%p,sb=%p,status=%s",
120 call
->async_io
.user
, call
->async_io
.sb
, get_status_name(call
->async_io
.status
) );
123 fprintf( stderr
, "type=%u", call
->type
);
126 fputc( '}', stderr
);
129 static void dump_context( const CONTEXT
*context
)
132 fprintf( stderr
, "{flags=%08x,eax=%08x,ebx=%08x,ecx=%08x,edx=%08x,esi=%08x,edi=%08x,"
133 "ebp=%08x,eip=%08x,esp=%08x,eflags=%08x,cs=%04x,ds=%04x,es=%04x,"
134 "fs=%04x,gs=%04x,dr0=%08x,dr1=%08x,dr2=%08x,dr3=%08x,dr6=%08x,dr7=%08x,",
135 context
->ContextFlags
, context
->Eax
, context
->Ebx
, context
->Ecx
, context
->Edx
,
136 context
->Esi
, context
->Edi
, context
->Ebp
, context
->Eip
, context
->Esp
, context
->EFlags
,
137 context
->SegCs
, context
->SegDs
, context
->SegEs
, context
->SegFs
, context
->SegGs
,
138 context
->Dr0
, context
->Dr1
, context
->Dr2
, context
->Dr3
, context
->Dr6
, context
->Dr7
);
139 fprintf( stderr
, "float=" );
140 dump_uints( (const int *)&context
->FloatSave
, sizeof(context
->FloatSave
) / sizeof(int) );
141 fprintf( stderr
, "}" );
143 dump_uints( (const int *)context
, sizeof(*context
) / sizeof(int) );
147 static void dump_exc_record( const EXCEPTION_RECORD
*rec
)
150 fprintf( stderr
, "{code=%x,flags=%x,rec=%p,addr=%p,params={",
151 rec
->ExceptionCode
, rec
->ExceptionFlags
, rec
->ExceptionRecord
,
152 rec
->ExceptionAddress
);
153 for (i
= 0; i
< min(rec
->NumberParameters
,EXCEPTION_MAXIMUM_PARAMETERS
); i
++)
155 if (i
) fputc( ',', stderr
);
156 fprintf( stderr
, "%lx", rec
->ExceptionInformation
[i
] );
158 fputc( '}', stderr
);
161 static void dump_varargs_ints( data_size_t size
)
163 const int *data
= cur_data
;
164 data_size_t len
= size
/ sizeof(*data
);
166 fputc( '{', stderr
);
169 fprintf( stderr
, "%d", *data
++ );
170 if (--len
) fputc( ',', stderr
);
172 fputc( '}', stderr
);
176 static void dump_varargs_handles( data_size_t size
)
178 const obj_handle_t
*data
= cur_data
;
179 data_size_t len
= size
/ sizeof(*data
);
181 fputc( '{', stderr
);
184 fprintf( stderr
, "%p", *data
++ );
185 if (--len
) fputc( ',', stderr
);
187 fputc( '}', stderr
);
191 static void dump_varargs_user_handles( data_size_t size
)
193 const user_handle_t
*data
= cur_data
;
194 data_size_t len
= size
/ sizeof(*data
);
196 fputc( '{', stderr
);
199 fprintf( stderr
, "%p", *data
++ );
200 if (--len
) fputc( ',', stderr
);
202 fputc( '}', stderr
);
206 static void dump_varargs_bytes( data_size_t size
)
208 const unsigned char *data
= cur_data
;
209 data_size_t len
= size
;
211 fputc( '{', stderr
);
214 fprintf( stderr
, "%02x", *data
++ );
215 if (--len
) fputc( ',', stderr
);
217 fputc( '}', stderr
);
221 static void dump_varargs_string( data_size_t size
)
223 fprintf( stderr
, "\"%.*s\"", (int)size
, (const char *)cur_data
);
227 static void dump_varargs_unicode_str( data_size_t size
)
229 fprintf( stderr
, "L\"" );
230 dump_strW( cur_data
, size
/ sizeof(WCHAR
), stderr
, "\"\"" );
231 fputc( '\"', stderr
);
235 static void dump_varargs_context( data_size_t size
)
239 fprintf( stderr
, "{}" );
242 dump_context( cur_data
);
246 static void dump_varargs_exc_event( data_size_t size
)
248 const CONTEXT
*ptr
= cur_data
;
252 fprintf( stderr
, "{}" );
255 fprintf( stderr
, "{context=" );
257 fprintf( stderr
, ",rec=" );
258 dump_exc_record( (const EXCEPTION_RECORD
*)(ptr
+ 1) );
259 fputc( '}', stderr
);
263 static void dump_varargs_debug_event( data_size_t size
)
265 const debug_event_t
*event
= cur_data
;
269 fprintf( stderr
, "{}" );
274 case EXCEPTION_DEBUG_EVENT
:
275 fprintf( stderr
, "{exception," );
276 dump_exc_record( &event
->info
.exception
.record
);
277 fprintf( stderr
, ",first=%d}", event
->info
.exception
.first
);
279 case CREATE_THREAD_DEBUG_EVENT
:
280 fprintf( stderr
, "{create_thread,thread=%p,teb=%p,start=%p}",
281 event
->info
.create_thread
.handle
, event
->info
.create_thread
.teb
,
282 event
->info
.create_thread
.start
);
284 case CREATE_PROCESS_DEBUG_EVENT
:
285 fprintf( stderr
, "{create_process,file=%p,process=%p,thread=%p,base=%p,offset=%d,"
286 "size=%d,teb=%p,start=%p,name=%p,unicode=%d}",
287 event
->info
.create_process
.file
, event
->info
.create_process
.process
,
288 event
->info
.create_process
.thread
, event
->info
.create_process
.base
,
289 event
->info
.create_process
.dbg_offset
, event
->info
.create_process
.dbg_size
,
290 event
->info
.create_process
.teb
, event
->info
.create_process
.start
,
291 event
->info
.create_process
.name
, event
->info
.create_process
.unicode
);
293 case EXIT_THREAD_DEBUG_EVENT
:
294 fprintf( stderr
, "{exit_thread,code=%d}", event
->info
.exit
.exit_code
);
296 case EXIT_PROCESS_DEBUG_EVENT
:
297 fprintf( stderr
, "{exit_process,code=%d}", event
->info
.exit
.exit_code
);
299 case LOAD_DLL_DEBUG_EVENT
:
300 fprintf( stderr
, "{load_dll,file=%p,base=%p,offset=%d,size=%d,name=%p,unicode=%d}",
301 event
->info
.load_dll
.handle
, event
->info
.load_dll
.base
,
302 event
->info
.load_dll
.dbg_offset
, event
->info
.load_dll
.dbg_size
,
303 event
->info
.load_dll
.name
, event
->info
.load_dll
.unicode
);
305 case UNLOAD_DLL_DEBUG_EVENT
:
306 fprintf( stderr
, "{unload_dll,base=%p}", event
->info
.unload_dll
.base
);
308 case OUTPUT_DEBUG_STRING_EVENT
:
309 fprintf( stderr
, "{output_string,data=%p,unicode=%d,len=%d}",
310 event
->info
.output_string
.string
, event
->info
.output_string
.unicode
,
311 event
->info
.output_string
.length
);
314 fprintf( stderr
, "{rip,err=%d,type=%d}",
315 event
->info
.rip_info
.error
, event
->info
.rip_info
.type
);
317 case 0: /* zero is the code returned on timeouts */
318 fprintf( stderr
, "{}" );
321 fprintf( stderr
, "{code=??? (%d)}", event
->code
);
327 /* dump a unicode string contained in a buffer; helper for dump_varargs_startup_info */
328 static void dump_inline_unicode_string( const UNICODE_STRING
*str
, const void *data
, data_size_t size
)
330 size_t length
= str
->Length
;
331 size_t offset
= (size_t)str
->Buffer
;
333 if (offset
>= size
) return;
334 if (offset
+ length
> size
) length
= size
- offset
;
335 dump_strW( (const WCHAR
*)data
+ offset
/sizeof(WCHAR
), length
/sizeof(WCHAR
), stderr
, "\"\"" );
338 static void dump_varargs_startup_info( data_size_t size
)
340 const RTL_USER_PROCESS_PARAMETERS
*ptr
= cur_data
;
341 RTL_USER_PROCESS_PARAMETERS params
;
343 if (size
< sizeof(params
.Size
))
345 fprintf( stderr
, "{}" );
348 if (size
> ptr
->Size
) size
= ptr
->Size
;
349 memset( ¶ms
, 0, sizeof(params
) );
350 memcpy( ¶ms
, ptr
, min( size
, sizeof(params
) ));
352 fprintf( stderr
, "{AllocationSize=%x,", params
.AllocationSize
);
353 fprintf( stderr
, "Size=%x,", params
.Size
);
354 fprintf( stderr
, "Flags=%x,", params
.Flags
);
355 fprintf( stderr
, "DebugFlags=%x,", params
.DebugFlags
);
356 fprintf( stderr
, "ConsoleHandle=%p,", params
.ConsoleHandle
);
357 fprintf( stderr
, "ConsoleFlags=%x,", params
.ConsoleFlags
);
358 fprintf( stderr
, "hStdInput=%p,", params
.hStdInput
);
359 fprintf( stderr
, "hStdOutput=%p,", params
.hStdOutput
);
360 fprintf( stderr
, "hStdError=%p,", params
.hStdError
);
361 fprintf( stderr
, "CurrentDirectory.Handle=%p,", params
.CurrentDirectory
.Handle
);
362 fprintf( stderr
, "dwX=%d,", params
.dwX
);
363 fprintf( stderr
, "dwY=%d,", params
.dwY
);
364 fprintf( stderr
, "dwXSize=%d,", params
.dwXSize
);
365 fprintf( stderr
, "dwYSize=%d,", params
.dwYSize
);
366 fprintf( stderr
, "dwXCountChars=%d,", params
.dwXCountChars
);
367 fprintf( stderr
, "dwYCountChars=%d,", params
.dwYCountChars
);
368 fprintf( stderr
, "dwFillAttribute=%x,", params
.dwFillAttribute
);
369 fprintf( stderr
, "dwFlags=%x,", params
.dwFlags
);
370 fprintf( stderr
, "wShowWindow=%x,", params
.wShowWindow
);
371 fprintf( stderr
, "CurrentDirectory.DosPath=L\"" );
372 dump_inline_unicode_string( ¶ms
.CurrentDirectory
.DosPath
, cur_data
, size
);
373 fprintf( stderr
, "\",DllPath=L\"" );
374 dump_inline_unicode_string( ¶ms
.DllPath
, cur_data
, size
);
375 fprintf( stderr
, "\",ImagePathName=L\"" );
376 dump_inline_unicode_string( ¶ms
.ImagePathName
, cur_data
, size
);
377 fprintf( stderr
, "\",CommandLine=L\"" );
378 dump_inline_unicode_string( ¶ms
.CommandLine
, cur_data
, size
);
379 fprintf( stderr
, "\",WindowTitle=L\"" );
380 dump_inline_unicode_string( ¶ms
.WindowTitle
, cur_data
, size
);
381 fprintf( stderr
, "\",Desktop=L\"" );
382 dump_inline_unicode_string( ¶ms
.Desktop
, cur_data
, size
);
383 fprintf( stderr
, "\",ShellInfo=L\"" );
384 dump_inline_unicode_string( ¶ms
.ShellInfo
, cur_data
, size
);
385 fprintf( stderr
, "\",RuntimeInfo=L\"" );
386 dump_inline_unicode_string( ¶ms
.RuntimeInfo
, cur_data
, size
);
387 fprintf( stderr
, "\"}" );
391 static void dump_varargs_input_records( data_size_t size
)
393 const INPUT_RECORD
*rec
= cur_data
;
394 data_size_t len
= size
/ sizeof(*rec
);
396 fputc( '{', stderr
);
399 fprintf( stderr
, "{%04x,...}", rec
->EventType
);
401 if (--len
) fputc( ',', stderr
);
403 fputc( '}', stderr
);
407 static void dump_varargs_rectangles( data_size_t size
)
409 const rectangle_t
*rect
= cur_data
;
410 data_size_t len
= size
/ sizeof(*rect
);
412 fputc( '{', stderr
);
415 dump_rectangle( rect
++ );
416 if (--len
) fputc( ',', stderr
);
418 fputc( '}', stderr
);
422 static void dump_varargs_message_data( data_size_t size
)
424 /* FIXME: dump the structured data */
425 dump_varargs_bytes( size
);
428 static void dump_varargs_properties( data_size_t size
)
430 const property_data_t
*prop
= cur_data
;
431 data_size_t len
= size
/ sizeof(*prop
);
433 fputc( '{', stderr
);
436 fprintf( stderr
, "{atom=%04x,str=%d,handle=%p}",
437 prop
->atom
, prop
->string
, prop
->handle
);
439 if (--len
) fputc( ',', stderr
);
441 fputc( '}', stderr
);
445 static void dump_varargs_LUID_AND_ATTRIBUTES( data_size_t size
)
447 const LUID_AND_ATTRIBUTES
*lat
= cur_data
;
448 data_size_t len
= size
/ sizeof(*lat
);
450 fputc( '{', stderr
);
453 fprintf( stderr
, "{luid=%08x%08x,attr=%x}",
454 lat
->Luid
.HighPart
, lat
->Luid
.LowPart
, lat
->Attributes
);
456 if (--len
) fputc( ',', stderr
);
458 fputc( '}', stderr
);
462 static void dump_inline_sid( const SID
*sid
, data_size_t size
)
467 if ((FIELD_OFFSET(SID
, SubAuthority
[0]) > size
) ||
468 (FIELD_OFFSET(SID
, SubAuthority
[sid
->SubAuthorityCount
]) > size
))
470 fprintf( stderr
, "<invalid sid>" );
474 fputc( '{', stderr
);
475 fprintf( stderr
, "S-%u-%u", sid
->Revision
, MAKELONG(
476 MAKEWORD( sid
->IdentifierAuthority
.Value
[5],
477 sid
->IdentifierAuthority
.Value
[4] ),
478 MAKEWORD( sid
->IdentifierAuthority
.Value
[3],
479 sid
->IdentifierAuthority
.Value
[2] ) ) );
480 for (i
= 0; i
< sid
->SubAuthorityCount
; i
++)
481 fprintf( stderr
, "-%u", sid
->SubAuthority
[i
] );
482 fputc( '}', stderr
);
485 static void dump_varargs_SID( data_size_t size
)
487 const SID
*sid
= cur_data
;
488 dump_inline_sid( sid
, size
);
492 static void dump_inline_acl( const ACL
*acl
, data_size_t size
)
494 const ACE_HEADER
*ace
;
496 fputc( '{', stderr
);
500 if (size
< sizeof(ACL
))
502 fprintf( stderr
, "<invalid acl>}\n" );
506 ace
= (const ACE_HEADER
*)(acl
+ 1);
507 for (i
= 0; i
< acl
->AceCount
; i
++)
509 const SID
*sid
= NULL
;
510 data_size_t sid_size
= 0;
512 if (size
< sizeof(ACE_HEADER
))
514 if (size
< ace
->AceSize
)
516 size
-= ace
->AceSize
;
517 if (i
!= 0) fputc( ',', stderr
);
518 fprintf( stderr
, "{AceType=" );
519 switch (ace
->AceType
)
521 case ACCESS_DENIED_ACE_TYPE
:
522 sid
= (const SID
*)&((const ACCESS_DENIED_ACE
*)ace
)->SidStart
;
523 sid_size
= ace
->AceSize
- FIELD_OFFSET(ACCESS_DENIED_ACE
, SidStart
);
524 fprintf( stderr
, "ACCESS_DENIED_ACE_TYPE,Mask=%x",
525 ((const ACCESS_DENIED_ACE
*)ace
)->Mask
);
527 case ACCESS_ALLOWED_ACE_TYPE
:
528 sid
= (const SID
*)&((const ACCESS_ALLOWED_ACE
*)ace
)->SidStart
;
529 sid_size
= ace
->AceSize
- FIELD_OFFSET(ACCESS_ALLOWED_ACE
, SidStart
);
530 fprintf( stderr
, "ACCESS_ALLOWED_ACE_TYPE,Mask=%x",
531 ((const ACCESS_ALLOWED_ACE
*)ace
)->Mask
);
533 case SYSTEM_AUDIT_ACE_TYPE
:
534 sid
= (const SID
*)&((const SYSTEM_AUDIT_ACE
*)ace
)->SidStart
;
535 sid_size
= ace
->AceSize
- FIELD_OFFSET(SYSTEM_AUDIT_ACE
, SidStart
);
536 fprintf( stderr
, "SYSTEM_AUDIT_ACE_TYPE,Mask=%x",
537 ((const SYSTEM_AUDIT_ACE
*)ace
)->Mask
);
539 case SYSTEM_ALARM_ACE_TYPE
:
540 sid
= (const SID
*)&((const SYSTEM_ALARM_ACE
*)ace
)->SidStart
;
541 sid_size
= ace
->AceSize
- FIELD_OFFSET(SYSTEM_ALARM_ACE
, SidStart
);
542 fprintf( stderr
, "SYSTEM_ALARM_ACE_TYPE,Mask=%x",
543 ((const SYSTEM_ALARM_ACE
*)ace
)->Mask
);
546 fprintf( stderr
, "unknown<%d>", ace
->AceType
);
549 fprintf( stderr
, ",AceFlags=%x,Sid=", ace
->AceFlags
);
551 dump_inline_sid( sid
, sid_size
);
552 ace
= (const ACE_HEADER
*)((const char *)ace
+ ace
->AceSize
);
553 fputc( '}', stderr
);
556 fputc( '}', stderr
);
559 static void dump_inline_security_descriptor( const struct security_descriptor
*sd
, data_size_t size
)
561 fputc( '{', stderr
);
562 if (size
>= sizeof(struct security_descriptor
))
564 size_t offset
= sizeof(struct security_descriptor
);
565 fprintf( stderr
, "control=%08x", sd
->control
);
566 fprintf( stderr
, ",owner=" );
567 if ((sd
->owner_len
> FIELD_OFFSET(SID
, SubAuthority
[255])) || (offset
+ sd
->owner_len
> size
))
569 dump_inline_sid( (const SID
*)((const char *)sd
+ offset
), sd
->owner_len
);
570 offset
+= sd
->owner_len
;
571 fprintf( stderr
, ",group=" );
572 if ((sd
->group_len
> FIELD_OFFSET(SID
, SubAuthority
[255])) || (offset
+ sd
->group_len
> size
))
574 dump_inline_sid( (const SID
*)((const char *)sd
+ offset
), sd
->group_len
);
575 offset
+= sd
->group_len
;
576 fprintf( stderr
, ",sacl=" );
577 if ((sd
->sacl_len
>= MAX_ACL_LEN
) || (offset
+ sd
->sacl_len
> size
))
579 dump_inline_acl( (const ACL
*)((const char *)sd
+ offset
), sd
->sacl_len
);
580 offset
+= sd
->sacl_len
;
581 fprintf( stderr
, ",dacl=" );
582 if ((sd
->dacl_len
>= MAX_ACL_LEN
) || (offset
+ sd
->dacl_len
> size
))
584 dump_inline_acl( (const ACL
*)((const char *)sd
+ offset
), sd
->dacl_len
);
585 offset
+= sd
->dacl_len
;
587 fputc( '}', stderr
);
590 static void dump_varargs_security_descriptor( data_size_t size
)
592 const struct security_descriptor
*sd
= cur_data
;
593 dump_inline_security_descriptor( sd
, size
);
597 static void dump_varargs_token_groups( data_size_t size
)
599 const struct token_groups
*tg
= cur_data
;
600 fputc( '{', stderr
);
601 if (size
>= sizeof(struct token_groups
))
603 size_t offset
= sizeof(*tg
);
604 fprintf( stderr
, "count=%08x,", tg
->count
);
605 if (tg
->count
* sizeof(unsigned int) <= size
)
608 const unsigned int *attr
= (const unsigned int *)(tg
+ 1);
610 offset
+= tg
->count
* sizeof(unsigned int);
612 fputc( '[', stderr
);
613 for (i
= 0; i
< tg
->count
; i
++)
615 const SID
*sid
= (const SID
*)((const char *)cur_data
+ offset
);
617 fputc( ',', stderr
);
618 fputc( '{', stderr
);
619 fprintf( stderr
, "attributes=%08x", attr
[i
] );
620 fprintf( stderr
, ",sid=" );
621 dump_inline_sid( sid
, size
- offset
);
622 if ((offset
+ FIELD_OFFSET(SID
, SubAuthority
[0]) > size
) ||
623 (offset
+ FIELD_OFFSET(SID
, SubAuthority
[sid
->SubAuthorityCount
]) > size
))
625 offset
+= FIELD_OFFSET(SID
, SubAuthority
[sid
->SubAuthorityCount
]);
626 fputc( '}', stderr
);
628 fputc( ']', stderr
);
631 fputc( '}', stderr
);
634 typedef void (*dump_func
)( const void *req
);
636 /* Everything below this line is generated automatically by tools/make_requests */
637 /* ### make_requests begin ### */
639 static void dump_new_process_request( const struct new_process_request
*req
)
641 fprintf( stderr
, " inherit_all=%d,", req
->inherit_all
);
642 fprintf( stderr
, " create_flags=%08x,", req
->create_flags
);
643 fprintf( stderr
, " socket_fd=%d,", req
->socket_fd
);
644 fprintf( stderr
, " exe_file=%p,", req
->exe_file
);
645 fprintf( stderr
, " hstdin=%p,", req
->hstdin
);
646 fprintf( stderr
, " hstdout=%p,", req
->hstdout
);
647 fprintf( stderr
, " hstderr=%p,", req
->hstderr
);
648 fprintf( stderr
, " process_access=%08x,", req
->process_access
);
649 fprintf( stderr
, " process_attr=%08x,", req
->process_attr
);
650 fprintf( stderr
, " thread_access=%08x,", req
->thread_access
);
651 fprintf( stderr
, " thread_attr=%08x,", req
->thread_attr
);
652 fprintf( stderr
, " info=" );
653 dump_varargs_startup_info( cur_size
);
654 fputc( ',', stderr
);
655 fprintf( stderr
, " env=" );
656 dump_varargs_unicode_str( cur_size
);
659 static void dump_new_process_reply( const struct new_process_reply
*req
)
661 fprintf( stderr
, " info=%p,", req
->info
);
662 fprintf( stderr
, " pid=%04x,", req
->pid
);
663 fprintf( stderr
, " phandle=%p,", req
->phandle
);
664 fprintf( stderr
, " tid=%04x,", req
->tid
);
665 fprintf( stderr
, " thandle=%p", req
->thandle
);
668 static void dump_get_new_process_info_request( const struct get_new_process_info_request
*req
)
670 fprintf( stderr
, " info=%p", req
->info
);
673 static void dump_get_new_process_info_reply( const struct get_new_process_info_reply
*req
)
675 fprintf( stderr
, " success=%d,", req
->success
);
676 fprintf( stderr
, " exit_code=%d", req
->exit_code
);
679 static void dump_new_thread_request( const struct new_thread_request
*req
)
681 fprintf( stderr
, " access=%08x,", req
->access
);
682 fprintf( stderr
, " attributes=%08x,", req
->attributes
);
683 fprintf( stderr
, " suspend=%d,", req
->suspend
);
684 fprintf( stderr
, " request_fd=%d", req
->request_fd
);
687 static void dump_new_thread_reply( const struct new_thread_reply
*req
)
689 fprintf( stderr
, " tid=%04x,", req
->tid
);
690 fprintf( stderr
, " handle=%p", req
->handle
);
693 static void dump_get_startup_info_request( const struct get_startup_info_request
*req
)
697 static void dump_get_startup_info_reply( const struct get_startup_info_reply
*req
)
699 fprintf( stderr
, " exe_file=%p,", req
->exe_file
);
700 fprintf( stderr
, " hstdin=%p,", req
->hstdin
);
701 fprintf( stderr
, " hstdout=%p,", req
->hstdout
);
702 fprintf( stderr
, " hstderr=%p,", req
->hstderr
);
703 fprintf( stderr
, " info=" );
704 dump_varargs_startup_info( cur_size
);
705 fputc( ',', stderr
);
706 fprintf( stderr
, " env=" );
707 dump_varargs_unicode_str( cur_size
);
710 static void dump_init_process_done_request( const struct init_process_done_request
*req
)
712 fprintf( stderr
, " module=%p,", req
->module
);
713 fprintf( stderr
, " entry=%p,", req
->entry
);
714 fprintf( stderr
, " gui=%d", req
->gui
);
717 static void dump_init_thread_request( const struct init_thread_request
*req
)
719 fprintf( stderr
, " unix_pid=%d,", req
->unix_pid
);
720 fprintf( stderr
, " unix_tid=%d,", req
->unix_tid
);
721 fprintf( stderr
, " debug_level=%d,", req
->debug_level
);
722 fprintf( stderr
, " teb=%p,", req
->teb
);
723 fprintf( stderr
, " peb=%p,", req
->peb
);
724 fprintf( stderr
, " entry=%p,", req
->entry
);
725 fprintf( stderr
, " ldt_copy=%p,", req
->ldt_copy
);
726 fprintf( stderr
, " reply_fd=%d,", req
->reply_fd
);
727 fprintf( stderr
, " wait_fd=%d", req
->wait_fd
);
730 static void dump_init_thread_reply( const struct init_thread_reply
*req
)
732 fprintf( stderr
, " pid=%04x,", req
->pid
);
733 fprintf( stderr
, " tid=%04x,", req
->tid
);
734 fprintf( stderr
, " info_size=%u,", req
->info_size
);
735 fprintf( stderr
, " server_start=" );
736 dump_abs_time( &req
->server_start
);
737 fprintf( stderr
, "," );
738 fprintf( stderr
, " version=%d", req
->version
);
741 static void dump_terminate_process_request( const struct terminate_process_request
*req
)
743 fprintf( stderr
, " handle=%p,", req
->handle
);
744 fprintf( stderr
, " exit_code=%d", req
->exit_code
);
747 static void dump_terminate_process_reply( const struct terminate_process_reply
*req
)
749 fprintf( stderr
, " self=%d", req
->self
);
752 static void dump_terminate_thread_request( const struct terminate_thread_request
*req
)
754 fprintf( stderr
, " handle=%p,", req
->handle
);
755 fprintf( stderr
, " exit_code=%d", req
->exit_code
);
758 static void dump_terminate_thread_reply( const struct terminate_thread_reply
*req
)
760 fprintf( stderr
, " self=%d,", req
->self
);
761 fprintf( stderr
, " last=%d", req
->last
);
764 static void dump_get_process_info_request( const struct get_process_info_request
*req
)
766 fprintf( stderr
, " handle=%p", req
->handle
);
769 static void dump_get_process_info_reply( const struct get_process_info_reply
*req
)
771 fprintf( stderr
, " pid=%04x,", req
->pid
);
772 fprintf( stderr
, " ppid=%04x,", req
->ppid
);
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
, " peb=%p,", req
->peb
);
777 fprintf( stderr
, " start_time=" );
778 dump_abs_time( &req
->start_time
);
779 fprintf( stderr
, "," );
780 fprintf( stderr
, " end_time=" );
781 dump_abs_time( &req
->end_time
);
784 static void dump_set_process_info_request( const struct set_process_info_request
*req
)
786 fprintf( stderr
, " handle=%p,", req
->handle
);
787 fprintf( stderr
, " mask=%d,", req
->mask
);
788 fprintf( stderr
, " priority=%d,", req
->priority
);
789 fprintf( stderr
, " affinity=%d", req
->affinity
);
792 static void dump_get_thread_info_request( const struct get_thread_info_request
*req
)
794 fprintf( stderr
, " handle=%p,", req
->handle
);
795 fprintf( stderr
, " tid_in=%04x", req
->tid_in
);
798 static void dump_get_thread_info_reply( const struct get_thread_info_reply
*req
)
800 fprintf( stderr
, " pid=%04x,", req
->pid
);
801 fprintf( stderr
, " tid=%04x,", req
->tid
);
802 fprintf( stderr
, " teb=%p,", req
->teb
);
803 fprintf( stderr
, " exit_code=%d,", req
->exit_code
);
804 fprintf( stderr
, " priority=%d,", req
->priority
);
805 fprintf( stderr
, " affinity=%d,", req
->affinity
);
806 fprintf( stderr
, " creation_time=" );
807 dump_abs_time( &req
->creation_time
);
808 fprintf( stderr
, "," );
809 fprintf( stderr
, " exit_time=" );
810 dump_abs_time( &req
->exit_time
);
811 fprintf( stderr
, "," );
812 fprintf( stderr
, " last=%d", req
->last
);
815 static void dump_set_thread_info_request( const struct set_thread_info_request
*req
)
817 fprintf( stderr
, " handle=%p,", req
->handle
);
818 fprintf( stderr
, " mask=%d,", req
->mask
);
819 fprintf( stderr
, " priority=%d,", req
->priority
);
820 fprintf( stderr
, " affinity=%d,", req
->affinity
);
821 fprintf( stderr
, " token=%p", req
->token
);
824 static void dump_get_dll_info_request( const struct get_dll_info_request
*req
)
826 fprintf( stderr
, " handle=%p,", req
->handle
);
827 fprintf( stderr
, " base_address=%p", req
->base_address
);
830 static void dump_get_dll_info_reply( const struct get_dll_info_reply
*req
)
832 fprintf( stderr
, " size=%lu,", (unsigned long)req
->size
);
833 fprintf( stderr
, " entry_point=%p,", req
->entry_point
);
834 fprintf( stderr
, " filename=" );
835 dump_varargs_unicode_str( cur_size
);
838 static void dump_suspend_thread_request( const struct suspend_thread_request
*req
)
840 fprintf( stderr
, " handle=%p", req
->handle
);
843 static void dump_suspend_thread_reply( const struct suspend_thread_reply
*req
)
845 fprintf( stderr
, " count=%d", req
->count
);
848 static void dump_resume_thread_request( const struct resume_thread_request
*req
)
850 fprintf( stderr
, " handle=%p", req
->handle
);
853 static void dump_resume_thread_reply( const struct resume_thread_reply
*req
)
855 fprintf( stderr
, " count=%d", req
->count
);
858 static void dump_load_dll_request( const struct load_dll_request
*req
)
860 fprintf( stderr
, " handle=%p,", req
->handle
);
861 fprintf( stderr
, " base=%p,", req
->base
);
862 fprintf( stderr
, " size=%lu,", (unsigned long)req
->size
);
863 fprintf( stderr
, " dbg_offset=%d,", req
->dbg_offset
);
864 fprintf( stderr
, " dbg_size=%d,", req
->dbg_size
);
865 fprintf( stderr
, " name=%p,", req
->name
);
866 fprintf( stderr
, " filename=" );
867 dump_varargs_unicode_str( cur_size
);
870 static void dump_unload_dll_request( const struct unload_dll_request
*req
)
872 fprintf( stderr
, " base=%p", req
->base
);
875 static void dump_queue_apc_request( const struct queue_apc_request
*req
)
877 fprintf( stderr
, " handle=%p,", req
->handle
);
878 fprintf( stderr
, " call=" );
879 dump_apc_call( &req
->call
);
882 static void dump_get_apc_request( const struct get_apc_request
*req
)
884 fprintf( stderr
, " alertable=%d,", req
->alertable
);
885 fprintf( stderr
, " prev=%p", req
->prev
);
888 static void dump_get_apc_reply( const struct get_apc_reply
*req
)
890 fprintf( stderr
, " handle=%p,", req
->handle
);
891 fprintf( stderr
, " call=" );
892 dump_apc_call( &req
->call
);
895 static void dump_close_handle_request( const struct close_handle_request
*req
)
897 fprintf( stderr
, " handle=%p", req
->handle
);
900 static void dump_set_handle_info_request( const struct set_handle_info_request
*req
)
902 fprintf( stderr
, " handle=%p,", req
->handle
);
903 fprintf( stderr
, " flags=%d,", req
->flags
);
904 fprintf( stderr
, " mask=%d", req
->mask
);
907 static void dump_set_handle_info_reply( const struct set_handle_info_reply
*req
)
909 fprintf( stderr
, " old_flags=%d", req
->old_flags
);
912 static void dump_dup_handle_request( const struct dup_handle_request
*req
)
914 fprintf( stderr
, " src_process=%p,", req
->src_process
);
915 fprintf( stderr
, " src_handle=%p,", req
->src_handle
);
916 fprintf( stderr
, " dst_process=%p,", req
->dst_process
);
917 fprintf( stderr
, " access=%08x,", req
->access
);
918 fprintf( stderr
, " attributes=%08x,", req
->attributes
);
919 fprintf( stderr
, " options=%08x", req
->options
);
922 static void dump_dup_handle_reply( const struct dup_handle_reply
*req
)
924 fprintf( stderr
, " handle=%p,", req
->handle
);
925 fprintf( stderr
, " closed=%d", req
->closed
);
928 static void dump_open_process_request( const struct open_process_request
*req
)
930 fprintf( stderr
, " pid=%04x,", req
->pid
);
931 fprintf( stderr
, " access=%08x,", req
->access
);
932 fprintf( stderr
, " attributes=%08x", req
->attributes
);
935 static void dump_open_process_reply( const struct open_process_reply
*req
)
937 fprintf( stderr
, " handle=%p", req
->handle
);
940 static void dump_open_thread_request( const struct open_thread_request
*req
)
942 fprintf( stderr
, " tid=%04x,", req
->tid
);
943 fprintf( stderr
, " access=%08x,", req
->access
);
944 fprintf( stderr
, " attributes=%08x", req
->attributes
);
947 static void dump_open_thread_reply( const struct open_thread_reply
*req
)
949 fprintf( stderr
, " handle=%p", req
->handle
);
952 static void dump_select_request( const struct select_request
*req
)
954 fprintf( stderr
, " flags=%d,", req
->flags
);
955 fprintf( stderr
, " cookie=%p,", req
->cookie
);
956 fprintf( stderr
, " signal=%p,", req
->signal
);
957 fprintf( stderr
, " timeout=" );
958 dump_abs_time( &req
->timeout
);
959 fprintf( stderr
, "," );
960 fprintf( stderr
, " handles=" );
961 dump_varargs_handles( cur_size
);
964 static void dump_create_event_request( const struct create_event_request
*req
)
966 fprintf( stderr
, " access=%08x,", req
->access
);
967 fprintf( stderr
, " attributes=%08x,", req
->attributes
);
968 fprintf( stderr
, " rootdir=%p,", req
->rootdir
);
969 fprintf( stderr
, " manual_reset=%d,", req
->manual_reset
);
970 fprintf( stderr
, " initial_state=%d,", req
->initial_state
);
971 fprintf( stderr
, " name=" );
972 dump_varargs_unicode_str( cur_size
);
975 static void dump_create_event_reply( const struct create_event_reply
*req
)
977 fprintf( stderr
, " handle=%p", req
->handle
);
980 static void dump_event_op_request( const struct event_op_request
*req
)
982 fprintf( stderr
, " handle=%p,", req
->handle
);
983 fprintf( stderr
, " op=%d", req
->op
);
986 static void dump_open_event_request( const struct open_event_request
*req
)
988 fprintf( stderr
, " access=%08x,", req
->access
);
989 fprintf( stderr
, " attributes=%08x,", req
->attributes
);
990 fprintf( stderr
, " rootdir=%p,", req
->rootdir
);
991 fprintf( stderr
, " name=" );
992 dump_varargs_unicode_str( cur_size
);
995 static void dump_open_event_reply( const struct open_event_reply
*req
)
997 fprintf( stderr
, " handle=%p", req
->handle
);
1000 static void dump_create_mutex_request( const struct create_mutex_request
*req
)
1002 fprintf( stderr
, " access=%08x,", req
->access
);
1003 fprintf( stderr
, " attributes=%08x,", req
->attributes
);
1004 fprintf( stderr
, " rootdir=%p,", req
->rootdir
);
1005 fprintf( stderr
, " owned=%d,", req
->owned
);
1006 fprintf( stderr
, " name=" );
1007 dump_varargs_unicode_str( cur_size
);
1010 static void dump_create_mutex_reply( const struct create_mutex_reply
*req
)
1012 fprintf( stderr
, " handle=%p", req
->handle
);
1015 static void dump_release_mutex_request( const struct release_mutex_request
*req
)
1017 fprintf( stderr
, " handle=%p", req
->handle
);
1020 static void dump_release_mutex_reply( const struct release_mutex_reply
*req
)
1022 fprintf( stderr
, " prev_count=%08x", req
->prev_count
);
1025 static void dump_open_mutex_request( const struct open_mutex_request
*req
)
1027 fprintf( stderr
, " access=%08x,", req
->access
);
1028 fprintf( stderr
, " attributes=%08x,", req
->attributes
);
1029 fprintf( stderr
, " rootdir=%p,", req
->rootdir
);
1030 fprintf( stderr
, " name=" );
1031 dump_varargs_unicode_str( cur_size
);
1034 static void dump_open_mutex_reply( const struct open_mutex_reply
*req
)
1036 fprintf( stderr
, " handle=%p", req
->handle
);
1039 static void dump_create_semaphore_request( const struct create_semaphore_request
*req
)
1041 fprintf( stderr
, " access=%08x,", req
->access
);
1042 fprintf( stderr
, " attributes=%08x,", req
->attributes
);
1043 fprintf( stderr
, " rootdir=%p,", req
->rootdir
);
1044 fprintf( stderr
, " initial=%08x,", req
->initial
);
1045 fprintf( stderr
, " max=%08x,", req
->max
);
1046 fprintf( stderr
, " name=" );
1047 dump_varargs_unicode_str( cur_size
);
1050 static void dump_create_semaphore_reply( const struct create_semaphore_reply
*req
)
1052 fprintf( stderr
, " handle=%p", req
->handle
);
1055 static void dump_release_semaphore_request( const struct release_semaphore_request
*req
)
1057 fprintf( stderr
, " handle=%p,", req
->handle
);
1058 fprintf( stderr
, " count=%08x", req
->count
);
1061 static void dump_release_semaphore_reply( const struct release_semaphore_reply
*req
)
1063 fprintf( stderr
, " prev_count=%08x", req
->prev_count
);
1066 static void dump_open_semaphore_request( const struct open_semaphore_request
*req
)
1068 fprintf( stderr
, " access=%08x,", req
->access
);
1069 fprintf( stderr
, " attributes=%08x,", req
->attributes
);
1070 fprintf( stderr
, " rootdir=%p,", req
->rootdir
);
1071 fprintf( stderr
, " name=" );
1072 dump_varargs_unicode_str( cur_size
);
1075 static void dump_open_semaphore_reply( const struct open_semaphore_reply
*req
)
1077 fprintf( stderr
, " handle=%p", req
->handle
);
1080 static void dump_create_file_request( const struct create_file_request
*req
)
1082 fprintf( stderr
, " access=%08x,", req
->access
);
1083 fprintf( stderr
, " attributes=%08x,", req
->attributes
);
1084 fprintf( stderr
, " sharing=%08x,", req
->sharing
);
1085 fprintf( stderr
, " create=%d,", req
->create
);
1086 fprintf( stderr
, " options=%08x,", req
->options
);
1087 fprintf( stderr
, " attrs=%08x,", req
->attrs
);
1088 fprintf( stderr
, " filename=" );
1089 dump_varargs_string( cur_size
);
1092 static void dump_create_file_reply( const struct create_file_reply
*req
)
1094 fprintf( stderr
, " handle=%p", req
->handle
);
1097 static void dump_open_file_object_request( const struct open_file_object_request
*req
)
1099 fprintf( stderr
, " access=%08x,", req
->access
);
1100 fprintf( stderr
, " attributes=%08x,", req
->attributes
);
1101 fprintf( stderr
, " rootdir=%p,", req
->rootdir
);
1102 fprintf( stderr
, " sharing=%08x,", req
->sharing
);
1103 fprintf( stderr
, " filename=" );
1104 dump_varargs_unicode_str( cur_size
);
1107 static void dump_open_file_object_reply( const struct open_file_object_reply
*req
)
1109 fprintf( stderr
, " handle=%p", req
->handle
);
1112 static void dump_alloc_file_handle_request( const struct alloc_file_handle_request
*req
)
1114 fprintf( stderr
, " access=%08x,", req
->access
);
1115 fprintf( stderr
, " attributes=%08x,", req
->attributes
);
1116 fprintf( stderr
, " fd=%d", req
->fd
);
1119 static void dump_alloc_file_handle_reply( const struct alloc_file_handle_reply
*req
)
1121 fprintf( stderr
, " handle=%p", req
->handle
);
1124 static void dump_get_handle_fd_request( const struct get_handle_fd_request
*req
)
1126 fprintf( stderr
, " handle=%p,", req
->handle
);
1127 fprintf( stderr
, " access=%08x,", req
->access
);
1128 fprintf( stderr
, " cached=%d", req
->cached
);
1131 static void dump_get_handle_fd_reply( const struct get_handle_fd_reply
*req
)
1133 fprintf( stderr
, " type=%d,", req
->type
);
1134 fprintf( stderr
, " flags=%d", req
->flags
);
1137 static void dump_flush_file_request( const struct flush_file_request
*req
)
1139 fprintf( stderr
, " handle=%p", req
->handle
);
1142 static void dump_flush_file_reply( const struct flush_file_reply
*req
)
1144 fprintf( stderr
, " event=%p", req
->event
);
1147 static void dump_lock_file_request( const struct lock_file_request
*req
)
1149 fprintf( stderr
, " handle=%p,", req
->handle
);
1150 fprintf( stderr
, " offset_low=%08x,", req
->offset_low
);
1151 fprintf( stderr
, " offset_high=%08x,", req
->offset_high
);
1152 fprintf( stderr
, " count_low=%08x,", req
->count_low
);
1153 fprintf( stderr
, " count_high=%08x,", req
->count_high
);
1154 fprintf( stderr
, " shared=%d,", req
->shared
);
1155 fprintf( stderr
, " wait=%d", req
->wait
);
1158 static void dump_lock_file_reply( const struct lock_file_reply
*req
)
1160 fprintf( stderr
, " handle=%p,", req
->handle
);
1161 fprintf( stderr
, " overlapped=%d", req
->overlapped
);
1164 static void dump_unlock_file_request( const struct unlock_file_request
*req
)
1166 fprintf( stderr
, " handle=%p,", req
->handle
);
1167 fprintf( stderr
, " offset_low=%08x,", req
->offset_low
);
1168 fprintf( stderr
, " offset_high=%08x,", req
->offset_high
);
1169 fprintf( stderr
, " count_low=%08x,", req
->count_low
);
1170 fprintf( stderr
, " count_high=%08x", req
->count_high
);
1173 static void dump_unmount_device_request( const struct unmount_device_request
*req
)
1175 fprintf( stderr
, " handle=%p", req
->handle
);
1178 static void dump_create_socket_request( const struct create_socket_request
*req
)
1180 fprintf( stderr
, " access=%08x,", req
->access
);
1181 fprintf( stderr
, " attributes=%08x,", req
->attributes
);
1182 fprintf( stderr
, " family=%d,", req
->family
);
1183 fprintf( stderr
, " type=%d,", req
->type
);
1184 fprintf( stderr
, " protocol=%d,", req
->protocol
);
1185 fprintf( stderr
, " flags=%08x", req
->flags
);
1188 static void dump_create_socket_reply( const struct create_socket_reply
*req
)
1190 fprintf( stderr
, " handle=%p", req
->handle
);
1193 static void dump_accept_socket_request( const struct accept_socket_request
*req
)
1195 fprintf( stderr
, " lhandle=%p,", req
->lhandle
);
1196 fprintf( stderr
, " access=%08x,", req
->access
);
1197 fprintf( stderr
, " attributes=%08x", req
->attributes
);
1200 static void dump_accept_socket_reply( const struct accept_socket_reply
*req
)
1202 fprintf( stderr
, " handle=%p", req
->handle
);
1205 static void dump_set_socket_event_request( const struct set_socket_event_request
*req
)
1207 fprintf( stderr
, " handle=%p,", req
->handle
);
1208 fprintf( stderr
, " mask=%08x,", req
->mask
);
1209 fprintf( stderr
, " event=%p,", req
->event
);
1210 fprintf( stderr
, " window=%p,", req
->window
);
1211 fprintf( stderr
, " msg=%08x", req
->msg
);
1214 static void dump_get_socket_event_request( const struct get_socket_event_request
*req
)
1216 fprintf( stderr
, " handle=%p,", req
->handle
);
1217 fprintf( stderr
, " service=%d,", req
->service
);
1218 fprintf( stderr
, " c_event=%p", req
->c_event
);
1221 static void dump_get_socket_event_reply( const struct get_socket_event_reply
*req
)
1223 fprintf( stderr
, " mask=%08x,", req
->mask
);
1224 fprintf( stderr
, " pmask=%08x,", req
->pmask
);
1225 fprintf( stderr
, " state=%08x,", req
->state
);
1226 fprintf( stderr
, " errors=" );
1227 dump_varargs_ints( cur_size
);
1230 static void dump_enable_socket_event_request( const struct enable_socket_event_request
*req
)
1232 fprintf( stderr
, " handle=%p,", req
->handle
);
1233 fprintf( stderr
, " mask=%08x,", req
->mask
);
1234 fprintf( stderr
, " sstate=%08x,", req
->sstate
);
1235 fprintf( stderr
, " cstate=%08x", req
->cstate
);
1238 static void dump_set_socket_deferred_request( const struct set_socket_deferred_request
*req
)
1240 fprintf( stderr
, " handle=%p,", req
->handle
);
1241 fprintf( stderr
, " deferred=%p", req
->deferred
);
1244 static void dump_alloc_console_request( const struct alloc_console_request
*req
)
1246 fprintf( stderr
, " access=%08x,", req
->access
);
1247 fprintf( stderr
, " attributes=%08x,", req
->attributes
);
1248 fprintf( stderr
, " pid=%04x", req
->pid
);
1251 static void dump_alloc_console_reply( const struct alloc_console_reply
*req
)
1253 fprintf( stderr
, " handle_in=%p,", req
->handle_in
);
1254 fprintf( stderr
, " event=%p", req
->event
);
1257 static void dump_free_console_request( const struct free_console_request
*req
)
1261 static void dump_get_console_renderer_events_request( const struct get_console_renderer_events_request
*req
)
1263 fprintf( stderr
, " handle=%p", req
->handle
);
1266 static void dump_get_console_renderer_events_reply( const struct get_console_renderer_events_reply
*req
)
1268 fprintf( stderr
, " data=" );
1269 dump_varargs_bytes( cur_size
);
1272 static void dump_open_console_request( const struct open_console_request
*req
)
1274 fprintf( stderr
, " from=%p,", req
->from
);
1275 fprintf( stderr
, " access=%08x,", req
->access
);
1276 fprintf( stderr
, " attributes=%08x,", req
->attributes
);
1277 fprintf( stderr
, " share=%d", req
->share
);
1280 static void dump_open_console_reply( const struct open_console_reply
*req
)
1282 fprintf( stderr
, " handle=%p", req
->handle
);
1285 static void dump_get_console_wait_event_request( const struct get_console_wait_event_request
*req
)
1289 static void dump_get_console_wait_event_reply( const struct get_console_wait_event_reply
*req
)
1291 fprintf( stderr
, " handle=%p", req
->handle
);
1294 static void dump_get_console_mode_request( const struct get_console_mode_request
*req
)
1296 fprintf( stderr
, " handle=%p", req
->handle
);
1299 static void dump_get_console_mode_reply( const struct get_console_mode_reply
*req
)
1301 fprintf( stderr
, " mode=%d", req
->mode
);
1304 static void dump_set_console_mode_request( const struct set_console_mode_request
*req
)
1306 fprintf( stderr
, " handle=%p,", req
->handle
);
1307 fprintf( stderr
, " mode=%d", req
->mode
);
1310 static void dump_set_console_input_info_request( const struct set_console_input_info_request
*req
)
1312 fprintf( stderr
, " handle=%p,", req
->handle
);
1313 fprintf( stderr
, " mask=%d,", req
->mask
);
1314 fprintf( stderr
, " active_sb=%p,", req
->active_sb
);
1315 fprintf( stderr
, " history_mode=%d,", req
->history_mode
);
1316 fprintf( stderr
, " history_size=%d,", req
->history_size
);
1317 fprintf( stderr
, " edition_mode=%d,", req
->edition_mode
);
1318 fprintf( stderr
, " title=" );
1319 dump_varargs_unicode_str( cur_size
);
1322 static void dump_get_console_input_info_request( const struct get_console_input_info_request
*req
)
1324 fprintf( stderr
, " handle=%p", req
->handle
);
1327 static void dump_get_console_input_info_reply( const struct get_console_input_info_reply
*req
)
1329 fprintf( stderr
, " history_mode=%d,", req
->history_mode
);
1330 fprintf( stderr
, " history_size=%d,", req
->history_size
);
1331 fprintf( stderr
, " history_index=%d,", req
->history_index
);
1332 fprintf( stderr
, " edition_mode=%d,", req
->edition_mode
);
1333 fprintf( stderr
, " title=" );
1334 dump_varargs_unicode_str( cur_size
);
1337 static void dump_append_console_input_history_request( const struct append_console_input_history_request
*req
)
1339 fprintf( stderr
, " handle=%p,", req
->handle
);
1340 fprintf( stderr
, " line=" );
1341 dump_varargs_unicode_str( cur_size
);
1344 static void dump_get_console_input_history_request( const struct get_console_input_history_request
*req
)
1346 fprintf( stderr
, " handle=%p,", req
->handle
);
1347 fprintf( stderr
, " index=%d", req
->index
);
1350 static void dump_get_console_input_history_reply( const struct get_console_input_history_reply
*req
)
1352 fprintf( stderr
, " total=%d,", req
->total
);
1353 fprintf( stderr
, " line=" );
1354 dump_varargs_unicode_str( cur_size
);
1357 static void dump_create_console_output_request( const struct create_console_output_request
*req
)
1359 fprintf( stderr
, " handle_in=%p,", req
->handle_in
);
1360 fprintf( stderr
, " access=%08x,", req
->access
);
1361 fprintf( stderr
, " attributes=%08x,", req
->attributes
);
1362 fprintf( stderr
, " share=%08x", req
->share
);
1365 static void dump_create_console_output_reply( const struct create_console_output_reply
*req
)
1367 fprintf( stderr
, " handle_out=%p", req
->handle_out
);
1370 static void dump_set_console_output_info_request( const struct set_console_output_info_request
*req
)
1372 fprintf( stderr
, " handle=%p,", req
->handle
);
1373 fprintf( stderr
, " mask=%d,", req
->mask
);
1374 fprintf( stderr
, " cursor_size=%d,", req
->cursor_size
);
1375 fprintf( stderr
, " cursor_visible=%d,", req
->cursor_visible
);
1376 fprintf( stderr
, " cursor_x=%d,", req
->cursor_x
);
1377 fprintf( stderr
, " cursor_y=%d,", req
->cursor_y
);
1378 fprintf( stderr
, " width=%d,", req
->width
);
1379 fprintf( stderr
, " height=%d,", req
->height
);
1380 fprintf( stderr
, " attr=%d,", req
->attr
);
1381 fprintf( stderr
, " win_left=%d,", req
->win_left
);
1382 fprintf( stderr
, " win_top=%d,", req
->win_top
);
1383 fprintf( stderr
, " win_right=%d,", req
->win_right
);
1384 fprintf( stderr
, " win_bottom=%d,", req
->win_bottom
);
1385 fprintf( stderr
, " max_width=%d,", req
->max_width
);
1386 fprintf( stderr
, " max_height=%d", req
->max_height
);
1389 static void dump_get_console_output_info_request( const struct get_console_output_info_request
*req
)
1391 fprintf( stderr
, " handle=%p", req
->handle
);
1394 static void dump_get_console_output_info_reply( const struct get_console_output_info_reply
*req
)
1396 fprintf( stderr
, " cursor_size=%d,", req
->cursor_size
);
1397 fprintf( stderr
, " cursor_visible=%d,", req
->cursor_visible
);
1398 fprintf( stderr
, " cursor_x=%d,", req
->cursor_x
);
1399 fprintf( stderr
, " cursor_y=%d,", req
->cursor_y
);
1400 fprintf( stderr
, " width=%d,", req
->width
);
1401 fprintf( stderr
, " height=%d,", req
->height
);
1402 fprintf( stderr
, " attr=%d,", req
->attr
);
1403 fprintf( stderr
, " win_left=%d,", req
->win_left
);
1404 fprintf( stderr
, " win_top=%d,", req
->win_top
);
1405 fprintf( stderr
, " win_right=%d,", req
->win_right
);
1406 fprintf( stderr
, " win_bottom=%d,", req
->win_bottom
);
1407 fprintf( stderr
, " max_width=%d,", req
->max_width
);
1408 fprintf( stderr
, " max_height=%d", req
->max_height
);
1411 static void dump_write_console_input_request( const struct write_console_input_request
*req
)
1413 fprintf( stderr
, " handle=%p,", req
->handle
);
1414 fprintf( stderr
, " rec=" );
1415 dump_varargs_input_records( cur_size
);
1418 static void dump_write_console_input_reply( const struct write_console_input_reply
*req
)
1420 fprintf( stderr
, " written=%d", req
->written
);
1423 static void dump_read_console_input_request( const struct read_console_input_request
*req
)
1425 fprintf( stderr
, " handle=%p,", req
->handle
);
1426 fprintf( stderr
, " flush=%d", req
->flush
);
1429 static void dump_read_console_input_reply( const struct read_console_input_reply
*req
)
1431 fprintf( stderr
, " read=%d,", req
->read
);
1432 fprintf( stderr
, " rec=" );
1433 dump_varargs_input_records( cur_size
);
1436 static void dump_write_console_output_request( const struct write_console_output_request
*req
)
1438 fprintf( stderr
, " handle=%p,", req
->handle
);
1439 fprintf( stderr
, " x=%d,", req
->x
);
1440 fprintf( stderr
, " y=%d,", req
->y
);
1441 fprintf( stderr
, " mode=%d,", req
->mode
);
1442 fprintf( stderr
, " wrap=%d,", req
->wrap
);
1443 fprintf( stderr
, " data=" );
1444 dump_varargs_bytes( cur_size
);
1447 static void dump_write_console_output_reply( const struct write_console_output_reply
*req
)
1449 fprintf( stderr
, " written=%d,", req
->written
);
1450 fprintf( stderr
, " width=%d,", req
->width
);
1451 fprintf( stderr
, " height=%d", req
->height
);
1454 static void dump_fill_console_output_request( const struct fill_console_output_request
*req
)
1456 fprintf( stderr
, " handle=%p,", req
->handle
);
1457 fprintf( stderr
, " x=%d,", req
->x
);
1458 fprintf( stderr
, " y=%d,", req
->y
);
1459 fprintf( stderr
, " mode=%d,", req
->mode
);
1460 fprintf( stderr
, " count=%d,", req
->count
);
1461 fprintf( stderr
, " wrap=%d,", req
->wrap
);
1462 fprintf( stderr
, " data=" );
1463 dump_char_info( &req
->data
);
1466 static void dump_fill_console_output_reply( const struct fill_console_output_reply
*req
)
1468 fprintf( stderr
, " written=%d", req
->written
);
1471 static void dump_read_console_output_request( const struct read_console_output_request
*req
)
1473 fprintf( stderr
, " handle=%p,", req
->handle
);
1474 fprintf( stderr
, " x=%d,", req
->x
);
1475 fprintf( stderr
, " y=%d,", req
->y
);
1476 fprintf( stderr
, " mode=%d,", req
->mode
);
1477 fprintf( stderr
, " wrap=%d", req
->wrap
);
1480 static void dump_read_console_output_reply( const struct read_console_output_reply
*req
)
1482 fprintf( stderr
, " width=%d,", req
->width
);
1483 fprintf( stderr
, " height=%d,", req
->height
);
1484 fprintf( stderr
, " data=" );
1485 dump_varargs_bytes( cur_size
);
1488 static void dump_move_console_output_request( const struct move_console_output_request
*req
)
1490 fprintf( stderr
, " handle=%p,", req
->handle
);
1491 fprintf( stderr
, " x_src=%d,", req
->x_src
);
1492 fprintf( stderr
, " y_src=%d,", req
->y_src
);
1493 fprintf( stderr
, " x_dst=%d,", req
->x_dst
);
1494 fprintf( stderr
, " y_dst=%d,", req
->y_dst
);
1495 fprintf( stderr
, " w=%d,", req
->w
);
1496 fprintf( stderr
, " h=%d", req
->h
);
1499 static void dump_send_console_signal_request( const struct send_console_signal_request
*req
)
1501 fprintf( stderr
, " signal=%d,", req
->signal
);
1502 fprintf( stderr
, " group_id=%04x", req
->group_id
);
1505 static void dump_read_directory_changes_request( const struct read_directory_changes_request
*req
)
1507 fprintf( stderr
, " filter=%08x,", req
->filter
);
1508 fprintf( stderr
, " handle=%p,", req
->handle
);
1509 fprintf( stderr
, " event=%p,", req
->event
);
1510 fprintf( stderr
, " subtree=%d,", req
->subtree
);
1511 fprintf( stderr
, " want_data=%d,", req
->want_data
);
1512 fprintf( stderr
, " io_apc=%p,", req
->io_apc
);
1513 fprintf( stderr
, " io_sb=%p,", req
->io_sb
);
1514 fprintf( stderr
, " io_user=%p", req
->io_user
);
1517 static void dump_read_change_request( const struct read_change_request
*req
)
1519 fprintf( stderr
, " handle=%p", req
->handle
);
1522 static void dump_read_change_reply( const struct read_change_reply
*req
)
1524 fprintf( stderr
, " action=%d,", req
->action
);
1525 fprintf( stderr
, " name=" );
1526 dump_varargs_string( cur_size
);
1529 static void dump_create_mapping_request( const struct create_mapping_request
*req
)
1531 fprintf( stderr
, " access=%08x,", req
->access
);
1532 fprintf( stderr
, " attributes=%08x,", req
->attributes
);
1533 fprintf( stderr
, " rootdir=%p,", req
->rootdir
);
1534 fprintf( stderr
, " size_high=%d,", req
->size_high
);
1535 fprintf( stderr
, " size_low=%d,", req
->size_low
);
1536 fprintf( stderr
, " protect=%d,", req
->protect
);
1537 fprintf( stderr
, " file_handle=%p,", req
->file_handle
);
1538 fprintf( stderr
, " name=" );
1539 dump_varargs_unicode_str( cur_size
);
1542 static void dump_create_mapping_reply( const struct create_mapping_reply
*req
)
1544 fprintf( stderr
, " handle=%p", req
->handle
);
1547 static void dump_open_mapping_request( const struct open_mapping_request
*req
)
1549 fprintf( stderr
, " access=%08x,", req
->access
);
1550 fprintf( stderr
, " attributes=%08x,", req
->attributes
);
1551 fprintf( stderr
, " rootdir=%p,", req
->rootdir
);
1552 fprintf( stderr
, " name=" );
1553 dump_varargs_unicode_str( cur_size
);
1556 static void dump_open_mapping_reply( const struct open_mapping_reply
*req
)
1558 fprintf( stderr
, " handle=%p", req
->handle
);
1561 static void dump_get_mapping_info_request( const struct get_mapping_info_request
*req
)
1563 fprintf( stderr
, " handle=%p", req
->handle
);
1566 static void dump_get_mapping_info_reply( const struct get_mapping_info_reply
*req
)
1568 fprintf( stderr
, " size_high=%d,", req
->size_high
);
1569 fprintf( stderr
, " size_low=%d,", req
->size_low
);
1570 fprintf( stderr
, " protect=%d,", req
->protect
);
1571 fprintf( stderr
, " header_size=%d,", req
->header_size
);
1572 fprintf( stderr
, " base=%p,", req
->base
);
1573 fprintf( stderr
, " mapping=%p,", req
->mapping
);
1574 fprintf( stderr
, " shared_file=%p,", req
->shared_file
);
1575 fprintf( stderr
, " shared_size=%d", req
->shared_size
);
1578 static void dump_create_snapshot_request( const struct create_snapshot_request
*req
)
1580 fprintf( stderr
, " attributes=%08x,", req
->attributes
);
1581 fprintf( stderr
, " flags=%d,", req
->flags
);
1582 fprintf( stderr
, " pid=%04x", req
->pid
);
1585 static void dump_create_snapshot_reply( const struct create_snapshot_reply
*req
)
1587 fprintf( stderr
, " handle=%p", req
->handle
);
1590 static void dump_next_process_request( const struct next_process_request
*req
)
1592 fprintf( stderr
, " handle=%p,", req
->handle
);
1593 fprintf( stderr
, " reset=%d", req
->reset
);
1596 static void dump_next_process_reply( const struct next_process_reply
*req
)
1598 fprintf( stderr
, " count=%d,", req
->count
);
1599 fprintf( stderr
, " pid=%04x,", req
->pid
);
1600 fprintf( stderr
, " ppid=%04x,", req
->ppid
);
1601 fprintf( stderr
, " heap=%p,", req
->heap
);
1602 fprintf( stderr
, " module=%p,", req
->module
);
1603 fprintf( stderr
, " threads=%d,", req
->threads
);
1604 fprintf( stderr
, " priority=%d,", req
->priority
);
1605 fprintf( stderr
, " handles=%d,", req
->handles
);
1606 fprintf( stderr
, " filename=" );
1607 dump_varargs_unicode_str( cur_size
);
1610 static void dump_next_thread_request( const struct next_thread_request
*req
)
1612 fprintf( stderr
, " handle=%p,", req
->handle
);
1613 fprintf( stderr
, " reset=%d", req
->reset
);
1616 static void dump_next_thread_reply( const struct next_thread_reply
*req
)
1618 fprintf( stderr
, " count=%d,", req
->count
);
1619 fprintf( stderr
, " pid=%04x,", req
->pid
);
1620 fprintf( stderr
, " tid=%04x,", req
->tid
);
1621 fprintf( stderr
, " base_pri=%d,", req
->base_pri
);
1622 fprintf( stderr
, " delta_pri=%d", req
->delta_pri
);
1625 static void dump_next_module_request( const struct next_module_request
*req
)
1627 fprintf( stderr
, " handle=%p,", req
->handle
);
1628 fprintf( stderr
, " reset=%d", req
->reset
);
1631 static void dump_next_module_reply( const struct next_module_reply
*req
)
1633 fprintf( stderr
, " pid=%04x,", req
->pid
);
1634 fprintf( stderr
, " base=%p,", req
->base
);
1635 fprintf( stderr
, " size=%lu,", (unsigned long)req
->size
);
1636 fprintf( stderr
, " filename=" );
1637 dump_varargs_unicode_str( cur_size
);
1640 static void dump_wait_debug_event_request( const struct wait_debug_event_request
*req
)
1642 fprintf( stderr
, " get_handle=%d", req
->get_handle
);
1645 static void dump_wait_debug_event_reply( const struct wait_debug_event_reply
*req
)
1647 fprintf( stderr
, " pid=%04x,", req
->pid
);
1648 fprintf( stderr
, " tid=%04x,", req
->tid
);
1649 fprintf( stderr
, " wait=%p,", req
->wait
);
1650 fprintf( stderr
, " event=" );
1651 dump_varargs_debug_event( cur_size
);
1654 static void dump_queue_exception_event_request( const struct queue_exception_event_request
*req
)
1656 fprintf( stderr
, " first=%d,", req
->first
);
1657 fprintf( stderr
, " record=" );
1658 dump_varargs_exc_event( cur_size
);
1661 static void dump_queue_exception_event_reply( const struct queue_exception_event_reply
*req
)
1663 fprintf( stderr
, " handle=%p", req
->handle
);
1666 static void dump_get_exception_status_request( const struct get_exception_status_request
*req
)
1668 fprintf( stderr
, " handle=%p", req
->handle
);
1671 static void dump_get_exception_status_reply( const struct get_exception_status_reply
*req
)
1673 fprintf( stderr
, " context=" );
1674 dump_varargs_context( cur_size
);
1677 static void dump_output_debug_string_request( const struct output_debug_string_request
*req
)
1679 fprintf( stderr
, " string=%p,", req
->string
);
1680 fprintf( stderr
, " unicode=%d,", req
->unicode
);
1681 fprintf( stderr
, " length=%d", req
->length
);
1684 static void dump_continue_debug_event_request( const struct continue_debug_event_request
*req
)
1686 fprintf( stderr
, " pid=%04x,", req
->pid
);
1687 fprintf( stderr
, " tid=%04x,", req
->tid
);
1688 fprintf( stderr
, " status=%d", req
->status
);
1691 static void dump_debug_process_request( const struct debug_process_request
*req
)
1693 fprintf( stderr
, " pid=%04x,", req
->pid
);
1694 fprintf( stderr
, " attach=%d", req
->attach
);
1697 static void dump_debug_break_request( const struct debug_break_request
*req
)
1699 fprintf( stderr
, " handle=%p", req
->handle
);
1702 static void dump_debug_break_reply( const struct debug_break_reply
*req
)
1704 fprintf( stderr
, " self=%d", req
->self
);
1707 static void dump_set_debugger_kill_on_exit_request( const struct set_debugger_kill_on_exit_request
*req
)
1709 fprintf( stderr
, " kill_on_exit=%d", req
->kill_on_exit
);
1712 static void dump_read_process_memory_request( const struct read_process_memory_request
*req
)
1714 fprintf( stderr
, " handle=%p,", req
->handle
);
1715 fprintf( stderr
, " addr=%p", req
->addr
);
1718 static void dump_read_process_memory_reply( const struct read_process_memory_reply
*req
)
1720 fprintf( stderr
, " data=" );
1721 dump_varargs_bytes( cur_size
);
1724 static void dump_write_process_memory_request( const struct write_process_memory_request
*req
)
1726 fprintf( stderr
, " handle=%p,", req
->handle
);
1727 fprintf( stderr
, " addr=%p,", req
->addr
);
1728 fprintf( stderr
, " data=" );
1729 dump_varargs_bytes( cur_size
);
1732 static void dump_create_key_request( const struct create_key_request
*req
)
1734 fprintf( stderr
, " parent=%p,", req
->parent
);
1735 fprintf( stderr
, " access=%08x,", req
->access
);
1736 fprintf( stderr
, " attributes=%08x,", req
->attributes
);
1737 fprintf( stderr
, " options=%08x,", req
->options
);
1738 fprintf( stderr
, " modif=%ld,", (long)req
->modif
);
1739 fprintf( stderr
, " namelen=%u,", req
->namelen
);
1740 fprintf( stderr
, " name=" );
1741 dump_varargs_unicode_str( min(cur_size
,req
->namelen
) );
1742 fputc( ',', stderr
);
1743 fprintf( stderr
, " class=" );
1744 dump_varargs_unicode_str( cur_size
);
1747 static void dump_create_key_reply( const struct create_key_reply
*req
)
1749 fprintf( stderr
, " hkey=%p,", req
->hkey
);
1750 fprintf( stderr
, " created=%d", req
->created
);
1753 static void dump_open_key_request( const struct open_key_request
*req
)
1755 fprintf( stderr
, " parent=%p,", req
->parent
);
1756 fprintf( stderr
, " access=%08x,", req
->access
);
1757 fprintf( stderr
, " attributes=%08x,", req
->attributes
);
1758 fprintf( stderr
, " name=" );
1759 dump_varargs_unicode_str( cur_size
);
1762 static void dump_open_key_reply( const struct open_key_reply
*req
)
1764 fprintf( stderr
, " hkey=%p", req
->hkey
);
1767 static void dump_delete_key_request( const struct delete_key_request
*req
)
1769 fprintf( stderr
, " hkey=%p", req
->hkey
);
1772 static void dump_flush_key_request( const struct flush_key_request
*req
)
1774 fprintf( stderr
, " hkey=%p", req
->hkey
);
1777 static void dump_enum_key_request( const struct enum_key_request
*req
)
1779 fprintf( stderr
, " hkey=%p,", req
->hkey
);
1780 fprintf( stderr
, " index=%d,", req
->index
);
1781 fprintf( stderr
, " info_class=%d", req
->info_class
);
1784 static void dump_enum_key_reply( const struct enum_key_reply
*req
)
1786 fprintf( stderr
, " subkeys=%d,", req
->subkeys
);
1787 fprintf( stderr
, " max_subkey=%d,", req
->max_subkey
);
1788 fprintf( stderr
, " max_class=%d,", req
->max_class
);
1789 fprintf( stderr
, " values=%d,", req
->values
);
1790 fprintf( stderr
, " max_value=%d,", req
->max_value
);
1791 fprintf( stderr
, " max_data=%d,", req
->max_data
);
1792 fprintf( stderr
, " modif=%ld,", (long)req
->modif
);
1793 fprintf( stderr
, " total=%u,", req
->total
);
1794 fprintf( stderr
, " namelen=%u,", req
->namelen
);
1795 fprintf( stderr
, " name=" );
1796 dump_varargs_unicode_str( min(cur_size
,req
->namelen
) );
1797 fputc( ',', stderr
);
1798 fprintf( stderr
, " class=" );
1799 dump_varargs_unicode_str( cur_size
);
1802 static void dump_set_key_value_request( const struct set_key_value_request
*req
)
1804 fprintf( stderr
, " hkey=%p,", req
->hkey
);
1805 fprintf( stderr
, " type=%d,", req
->type
);
1806 fprintf( stderr
, " namelen=%u,", req
->namelen
);
1807 fprintf( stderr
, " name=" );
1808 dump_varargs_unicode_str( min(cur_size
,req
->namelen
) );
1809 fputc( ',', stderr
);
1810 fprintf( stderr
, " data=" );
1811 dump_varargs_bytes( cur_size
);
1814 static void dump_get_key_value_request( const struct get_key_value_request
*req
)
1816 fprintf( stderr
, " hkey=%p,", req
->hkey
);
1817 fprintf( stderr
, " name=" );
1818 dump_varargs_unicode_str( cur_size
);
1821 static void dump_get_key_value_reply( const struct get_key_value_reply
*req
)
1823 fprintf( stderr
, " type=%d,", req
->type
);
1824 fprintf( stderr
, " total=%u,", req
->total
);
1825 fprintf( stderr
, " data=" );
1826 dump_varargs_bytes( cur_size
);
1829 static void dump_enum_key_value_request( const struct enum_key_value_request
*req
)
1831 fprintf( stderr
, " hkey=%p,", req
->hkey
);
1832 fprintf( stderr
, " index=%d,", req
->index
);
1833 fprintf( stderr
, " info_class=%d", req
->info_class
);
1836 static void dump_enum_key_value_reply( const struct enum_key_value_reply
*req
)
1838 fprintf( stderr
, " type=%d,", req
->type
);
1839 fprintf( stderr
, " total=%u,", req
->total
);
1840 fprintf( stderr
, " namelen=%u,", req
->namelen
);
1841 fprintf( stderr
, " name=" );
1842 dump_varargs_unicode_str( min(cur_size
,req
->namelen
) );
1843 fputc( ',', stderr
);
1844 fprintf( stderr
, " data=" );
1845 dump_varargs_bytes( cur_size
);
1848 static void dump_delete_key_value_request( const struct delete_key_value_request
*req
)
1850 fprintf( stderr
, " hkey=%p,", req
->hkey
);
1851 fprintf( stderr
, " name=" );
1852 dump_varargs_unicode_str( cur_size
);
1855 static void dump_load_registry_request( const struct load_registry_request
*req
)
1857 fprintf( stderr
, " hkey=%p,", req
->hkey
);
1858 fprintf( stderr
, " file=%p,", req
->file
);
1859 fprintf( stderr
, " name=" );
1860 dump_varargs_unicode_str( cur_size
);
1863 static void dump_unload_registry_request( const struct unload_registry_request
*req
)
1865 fprintf( stderr
, " hkey=%p", req
->hkey
);
1868 static void dump_save_registry_request( const struct save_registry_request
*req
)
1870 fprintf( stderr
, " hkey=%p,", req
->hkey
);
1871 fprintf( stderr
, " file=%p", req
->file
);
1874 static void dump_set_registry_notification_request( const struct set_registry_notification_request
*req
)
1876 fprintf( stderr
, " hkey=%p,", req
->hkey
);
1877 fprintf( stderr
, " event=%p,", req
->event
);
1878 fprintf( stderr
, " subtree=%d,", req
->subtree
);
1879 fprintf( stderr
, " filter=%08x", req
->filter
);
1882 static void dump_create_timer_request( const struct create_timer_request
*req
)
1884 fprintf( stderr
, " access=%08x,", req
->access
);
1885 fprintf( stderr
, " attributes=%08x,", req
->attributes
);
1886 fprintf( stderr
, " rootdir=%p,", req
->rootdir
);
1887 fprintf( stderr
, " manual=%d,", req
->manual
);
1888 fprintf( stderr
, " name=" );
1889 dump_varargs_unicode_str( cur_size
);
1892 static void dump_create_timer_reply( const struct create_timer_reply
*req
)
1894 fprintf( stderr
, " handle=%p", req
->handle
);
1897 static void dump_open_timer_request( const struct open_timer_request
*req
)
1899 fprintf( stderr
, " access=%08x,", req
->access
);
1900 fprintf( stderr
, " attributes=%08x,", req
->attributes
);
1901 fprintf( stderr
, " rootdir=%p,", req
->rootdir
);
1902 fprintf( stderr
, " name=" );
1903 dump_varargs_unicode_str( cur_size
);
1906 static void dump_open_timer_reply( const struct open_timer_reply
*req
)
1908 fprintf( stderr
, " handle=%p", req
->handle
);
1911 static void dump_set_timer_request( const struct set_timer_request
*req
)
1913 fprintf( stderr
, " handle=%p,", req
->handle
);
1914 fprintf( stderr
, " expire=" );
1915 dump_abs_time( &req
->expire
);
1916 fprintf( stderr
, "," );
1917 fprintf( stderr
, " period=%d,", req
->period
);
1918 fprintf( stderr
, " callback=%p,", req
->callback
);
1919 fprintf( stderr
, " arg=%p", req
->arg
);
1922 static void dump_set_timer_reply( const struct set_timer_reply
*req
)
1924 fprintf( stderr
, " signaled=%d", req
->signaled
);
1927 static void dump_cancel_timer_request( const struct cancel_timer_request
*req
)
1929 fprintf( stderr
, " handle=%p", req
->handle
);
1932 static void dump_cancel_timer_reply( const struct cancel_timer_reply
*req
)
1934 fprintf( stderr
, " signaled=%d", req
->signaled
);
1937 static void dump_get_timer_info_request( const struct get_timer_info_request
*req
)
1939 fprintf( stderr
, " handle=%p", req
->handle
);
1942 static void dump_get_timer_info_reply( const struct get_timer_info_reply
*req
)
1944 fprintf( stderr
, " when=" );
1945 dump_abs_time( &req
->when
);
1946 fprintf( stderr
, "," );
1947 fprintf( stderr
, " signaled=%d", req
->signaled
);
1950 static void dump_get_thread_context_request( const struct get_thread_context_request
*req
)
1952 fprintf( stderr
, " handle=%p,", req
->handle
);
1953 fprintf( stderr
, " flags=%08x,", req
->flags
);
1954 fprintf( stderr
, " suspend=%d", req
->suspend
);
1957 static void dump_get_thread_context_reply( const struct get_thread_context_reply
*req
)
1959 fprintf( stderr
, " self=%d,", req
->self
);
1960 fprintf( stderr
, " context=" );
1961 dump_varargs_context( cur_size
);
1964 static void dump_set_thread_context_request( const struct set_thread_context_request
*req
)
1966 fprintf( stderr
, " handle=%p,", req
->handle
);
1967 fprintf( stderr
, " flags=%08x,", req
->flags
);
1968 fprintf( stderr
, " suspend=%d,", req
->suspend
);
1969 fprintf( stderr
, " context=" );
1970 dump_varargs_context( cur_size
);
1973 static void dump_set_thread_context_reply( const struct set_thread_context_reply
*req
)
1975 fprintf( stderr
, " self=%d", req
->self
);
1978 static void dump_get_selector_entry_request( const struct get_selector_entry_request
*req
)
1980 fprintf( stderr
, " handle=%p,", req
->handle
);
1981 fprintf( stderr
, " entry=%d", req
->entry
);
1984 static void dump_get_selector_entry_reply( const struct get_selector_entry_reply
*req
)
1986 fprintf( stderr
, " base=%08x,", req
->base
);
1987 fprintf( stderr
, " limit=%08x,", req
->limit
);
1988 fprintf( stderr
, " flags=%02x", req
->flags
);
1991 static void dump_add_atom_request( const struct add_atom_request
*req
)
1993 fprintf( stderr
, " table=%p,", req
->table
);
1994 fprintf( stderr
, " name=" );
1995 dump_varargs_unicode_str( cur_size
);
1998 static void dump_add_atom_reply( const struct add_atom_reply
*req
)
2000 fprintf( stderr
, " atom=%04x", req
->atom
);
2003 static void dump_delete_atom_request( const struct delete_atom_request
*req
)
2005 fprintf( stderr
, " table=%p,", req
->table
);
2006 fprintf( stderr
, " atom=%04x", req
->atom
);
2009 static void dump_find_atom_request( const struct find_atom_request
*req
)
2011 fprintf( stderr
, " table=%p,", req
->table
);
2012 fprintf( stderr
, " name=" );
2013 dump_varargs_unicode_str( cur_size
);
2016 static void dump_find_atom_reply( const struct find_atom_reply
*req
)
2018 fprintf( stderr
, " atom=%04x", req
->atom
);
2021 static void dump_get_atom_information_request( const struct get_atom_information_request
*req
)
2023 fprintf( stderr
, " table=%p,", req
->table
);
2024 fprintf( stderr
, " atom=%04x", req
->atom
);
2027 static void dump_get_atom_information_reply( const struct get_atom_information_reply
*req
)
2029 fprintf( stderr
, " count=%d,", req
->count
);
2030 fprintf( stderr
, " pinned=%d,", req
->pinned
);
2031 fprintf( stderr
, " total=%u,", req
->total
);
2032 fprintf( stderr
, " name=" );
2033 dump_varargs_unicode_str( cur_size
);
2036 static void dump_set_atom_information_request( const struct set_atom_information_request
*req
)
2038 fprintf( stderr
, " table=%p,", req
->table
);
2039 fprintf( stderr
, " atom=%04x,", req
->atom
);
2040 fprintf( stderr
, " pinned=%d", req
->pinned
);
2043 static void dump_empty_atom_table_request( const struct empty_atom_table_request
*req
)
2045 fprintf( stderr
, " table=%p,", req
->table
);
2046 fprintf( stderr
, " if_pinned=%d", req
->if_pinned
);
2049 static void dump_init_atom_table_request( const struct init_atom_table_request
*req
)
2051 fprintf( stderr
, " entries=%d", req
->entries
);
2054 static void dump_init_atom_table_reply( const struct init_atom_table_reply
*req
)
2056 fprintf( stderr
, " table=%p", req
->table
);
2059 static void dump_get_msg_queue_request( const struct get_msg_queue_request
*req
)
2063 static void dump_get_msg_queue_reply( const struct get_msg_queue_reply
*req
)
2065 fprintf( stderr
, " handle=%p", req
->handle
);
2068 static void dump_set_queue_mask_request( const struct set_queue_mask_request
*req
)
2070 fprintf( stderr
, " wake_mask=%08x,", req
->wake_mask
);
2071 fprintf( stderr
, " changed_mask=%08x,", req
->changed_mask
);
2072 fprintf( stderr
, " skip_wait=%d", req
->skip_wait
);
2075 static void dump_set_queue_mask_reply( const struct set_queue_mask_reply
*req
)
2077 fprintf( stderr
, " wake_bits=%08x,", req
->wake_bits
);
2078 fprintf( stderr
, " changed_bits=%08x", req
->changed_bits
);
2081 static void dump_get_queue_status_request( const struct get_queue_status_request
*req
)
2083 fprintf( stderr
, " clear=%d", req
->clear
);
2086 static void dump_get_queue_status_reply( const struct get_queue_status_reply
*req
)
2088 fprintf( stderr
, " wake_bits=%08x,", req
->wake_bits
);
2089 fprintf( stderr
, " changed_bits=%08x", req
->changed_bits
);
2092 static void dump_get_process_idle_event_request( const struct get_process_idle_event_request
*req
)
2094 fprintf( stderr
, " handle=%p", req
->handle
);
2097 static void dump_get_process_idle_event_reply( const struct get_process_idle_event_reply
*req
)
2099 fprintf( stderr
, " event=%p", req
->event
);
2102 static void dump_send_message_request( const struct send_message_request
*req
)
2104 fprintf( stderr
, " id=%04x,", req
->id
);
2105 fprintf( stderr
, " type=%d,", req
->type
);
2106 fprintf( stderr
, " flags=%d,", req
->flags
);
2107 fprintf( stderr
, " win=%p,", req
->win
);
2108 fprintf( stderr
, " msg=%08x,", req
->msg
);
2109 fprintf( stderr
, " wparam=%lx,", req
->wparam
);
2110 fprintf( stderr
, " lparam=%lx,", req
->lparam
);
2111 fprintf( stderr
, " timeout=%d,", req
->timeout
);
2112 fprintf( stderr
, " data=" );
2113 dump_varargs_message_data( cur_size
);
2116 static void dump_post_quit_message_request( const struct post_quit_message_request
*req
)
2118 fprintf( stderr
, " exit_code=%d", req
->exit_code
);
2121 static void dump_send_hardware_message_request( const struct send_hardware_message_request
*req
)
2123 fprintf( stderr
, " id=%04x,", req
->id
);
2124 fprintf( stderr
, " win=%p,", req
->win
);
2125 fprintf( stderr
, " msg=%08x,", req
->msg
);
2126 fprintf( stderr
, " time=%08x,", req
->time
);
2127 fprintf( stderr
, " wparam=%lx,", req
->wparam
);
2128 fprintf( stderr
, " lparam=%lx,", req
->lparam
);
2129 fprintf( stderr
, " info=%lx,", req
->info
);
2130 fprintf( stderr
, " x=%d,", req
->x
);
2131 fprintf( stderr
, " y=%d", req
->y
);
2134 static void dump_get_message_request( const struct get_message_request
*req
)
2136 fprintf( stderr
, " flags=%d,", req
->flags
);
2137 fprintf( stderr
, " get_win=%p,", req
->get_win
);
2138 fprintf( stderr
, " get_first=%08x,", req
->get_first
);
2139 fprintf( stderr
, " get_last=%08x,", req
->get_last
);
2140 fprintf( stderr
, " hw_id=%08x", req
->hw_id
);
2143 static void dump_get_message_reply( const struct get_message_reply
*req
)
2145 fprintf( stderr
, " win=%p,", req
->win
);
2146 fprintf( stderr
, " type=%d,", req
->type
);
2147 fprintf( stderr
, " msg=%08x,", req
->msg
);
2148 fprintf( stderr
, " wparam=%lx,", req
->wparam
);
2149 fprintf( stderr
, " lparam=%lx,", req
->lparam
);
2150 fprintf( stderr
, " info=%lx,", req
->info
);
2151 fprintf( stderr
, " x=%d,", req
->x
);
2152 fprintf( stderr
, " y=%d,", req
->y
);
2153 fprintf( stderr
, " time=%08x,", req
->time
);
2154 fprintf( stderr
, " hw_id=%08x,", req
->hw_id
);
2155 fprintf( stderr
, " active_hooks=%08x,", req
->active_hooks
);
2156 fprintf( stderr
, " total=%u,", req
->total
);
2157 fprintf( stderr
, " data=" );
2158 dump_varargs_message_data( cur_size
);
2161 static void dump_reply_message_request( const struct reply_message_request
*req
)
2163 fprintf( stderr
, " result=%08x,", req
->result
);
2164 fprintf( stderr
, " remove=%d,", req
->remove
);
2165 fprintf( stderr
, " data=" );
2166 dump_varargs_bytes( cur_size
);
2169 static void dump_accept_hardware_message_request( const struct accept_hardware_message_request
*req
)
2171 fprintf( stderr
, " hw_id=%08x,", req
->hw_id
);
2172 fprintf( stderr
, " remove=%d,", req
->remove
);
2173 fprintf( stderr
, " new_win=%p", req
->new_win
);
2176 static void dump_get_message_reply_request( const struct get_message_reply_request
*req
)
2178 fprintf( stderr
, " cancel=%d", req
->cancel
);
2181 static void dump_get_message_reply_reply( const struct get_message_reply_reply
*req
)
2183 fprintf( stderr
, " result=%08x,", req
->result
);
2184 fprintf( stderr
, " data=" );
2185 dump_varargs_bytes( cur_size
);
2188 static void dump_set_win_timer_request( const struct set_win_timer_request
*req
)
2190 fprintf( stderr
, " win=%p,", req
->win
);
2191 fprintf( stderr
, " msg=%08x,", req
->msg
);
2192 fprintf( stderr
, " rate=%08x,", req
->rate
);
2193 fprintf( stderr
, " id=%lx,", req
->id
);
2194 fprintf( stderr
, " lparam=%lx", req
->lparam
);
2197 static void dump_set_win_timer_reply( const struct set_win_timer_reply
*req
)
2199 fprintf( stderr
, " id=%lx", req
->id
);
2202 static void dump_kill_win_timer_request( const struct kill_win_timer_request
*req
)
2204 fprintf( stderr
, " win=%p,", req
->win
);
2205 fprintf( stderr
, " msg=%08x,", req
->msg
);
2206 fprintf( stderr
, " id=%lx", req
->id
);
2209 static void dump_get_serial_info_request( const struct get_serial_info_request
*req
)
2211 fprintf( stderr
, " handle=%p", req
->handle
);
2214 static void dump_get_serial_info_reply( const struct get_serial_info_reply
*req
)
2216 fprintf( stderr
, " readinterval=%08x,", req
->readinterval
);
2217 fprintf( stderr
, " readconst=%08x,", req
->readconst
);
2218 fprintf( stderr
, " readmult=%08x,", req
->readmult
);
2219 fprintf( stderr
, " writeconst=%08x,", req
->writeconst
);
2220 fprintf( stderr
, " writemult=%08x,", req
->writemult
);
2221 fprintf( stderr
, " eventmask=%08x", req
->eventmask
);
2224 static void dump_set_serial_info_request( const struct set_serial_info_request
*req
)
2226 fprintf( stderr
, " handle=%p,", req
->handle
);
2227 fprintf( stderr
, " flags=%d,", req
->flags
);
2228 fprintf( stderr
, " readinterval=%08x,", req
->readinterval
);
2229 fprintf( stderr
, " readconst=%08x,", req
->readconst
);
2230 fprintf( stderr
, " readmult=%08x,", req
->readmult
);
2231 fprintf( stderr
, " writeconst=%08x,", req
->writeconst
);
2232 fprintf( stderr
, " writemult=%08x,", req
->writemult
);
2233 fprintf( stderr
, " eventmask=%08x", req
->eventmask
);
2236 static void dump_register_async_request( const struct register_async_request
*req
)
2238 fprintf( stderr
, " handle=%p,", req
->handle
);
2239 fprintf( stderr
, " type=%d,", req
->type
);
2240 fprintf( stderr
, " io_apc=%p,", req
->io_apc
);
2241 fprintf( stderr
, " io_sb=%p,", req
->io_sb
);
2242 fprintf( stderr
, " io_user=%p,", req
->io_user
);
2243 fprintf( stderr
, " count=%d", req
->count
);
2246 static void dump_cancel_async_request( const struct cancel_async_request
*req
)
2248 fprintf( stderr
, " handle=%p", req
->handle
);
2251 static void dump_create_named_pipe_request( const struct create_named_pipe_request
*req
)
2253 fprintf( stderr
, " access=%08x,", req
->access
);
2254 fprintf( stderr
, " attributes=%08x,", req
->attributes
);
2255 fprintf( stderr
, " rootdir=%p,", req
->rootdir
);
2256 fprintf( stderr
, " options=%08x,", req
->options
);
2257 fprintf( stderr
, " flags=%08x,", req
->flags
);
2258 fprintf( stderr
, " maxinstances=%08x,", req
->maxinstances
);
2259 fprintf( stderr
, " outsize=%08x,", req
->outsize
);
2260 fprintf( stderr
, " insize=%08x,", req
->insize
);
2261 fprintf( stderr
, " timeout=%08x,", req
->timeout
);
2262 fprintf( stderr
, " name=" );
2263 dump_varargs_unicode_str( cur_size
);
2266 static void dump_create_named_pipe_reply( const struct create_named_pipe_reply
*req
)
2268 fprintf( stderr
, " handle=%p", req
->handle
);
2271 static void dump_open_named_pipe_request( const struct open_named_pipe_request
*req
)
2273 fprintf( stderr
, " access=%08x,", req
->access
);
2274 fprintf( stderr
, " attributes=%08x,", req
->attributes
);
2275 fprintf( stderr
, " rootdir=%p,", req
->rootdir
);
2276 fprintf( stderr
, " flags=%08x,", req
->flags
);
2277 fprintf( stderr
, " name=" );
2278 dump_varargs_unicode_str( cur_size
);
2281 static void dump_open_named_pipe_reply( const struct open_named_pipe_reply
*req
)
2283 fprintf( stderr
, " handle=%p", req
->handle
);
2286 static void dump_connect_named_pipe_request( const struct connect_named_pipe_request
*req
)
2288 fprintf( stderr
, " handle=%p,", req
->handle
);
2289 fprintf( stderr
, " event=%p,", req
->event
);
2290 fprintf( stderr
, " func=%p", req
->func
);
2293 static void dump_wait_named_pipe_request( const struct wait_named_pipe_request
*req
)
2295 fprintf( stderr
, " handle=%p,", req
->handle
);
2296 fprintf( stderr
, " timeout=%08x,", req
->timeout
);
2297 fprintf( stderr
, " event=%p,", req
->event
);
2298 fprintf( stderr
, " func=%p,", req
->func
);
2299 fprintf( stderr
, " name=" );
2300 dump_varargs_unicode_str( cur_size
);
2303 static void dump_disconnect_named_pipe_request( const struct disconnect_named_pipe_request
*req
)
2305 fprintf( stderr
, " handle=%p", req
->handle
);
2308 static void dump_get_named_pipe_info_request( const struct get_named_pipe_info_request
*req
)
2310 fprintf( stderr
, " handle=%p", req
->handle
);
2313 static void dump_get_named_pipe_info_reply( const struct get_named_pipe_info_reply
*req
)
2315 fprintf( stderr
, " flags=%08x,", req
->flags
);
2316 fprintf( stderr
, " maxinstances=%08x,", req
->maxinstances
);
2317 fprintf( stderr
, " instances=%08x,", req
->instances
);
2318 fprintf( stderr
, " outsize=%08x,", req
->outsize
);
2319 fprintf( stderr
, " insize=%08x", req
->insize
);
2322 static void dump_create_window_request( const struct create_window_request
*req
)
2324 fprintf( stderr
, " parent=%p,", req
->parent
);
2325 fprintf( stderr
, " owner=%p,", req
->owner
);
2326 fprintf( stderr
, " atom=%04x,", req
->atom
);
2327 fprintf( stderr
, " instance=%p", req
->instance
);
2330 static void dump_create_window_reply( const struct create_window_reply
*req
)
2332 fprintf( stderr
, " handle=%p,", req
->handle
);
2333 fprintf( stderr
, " parent=%p,", req
->parent
);
2334 fprintf( stderr
, " owner=%p,", req
->owner
);
2335 fprintf( stderr
, " extra=%d,", req
->extra
);
2336 fprintf( stderr
, " class_ptr=%p", req
->class_ptr
);
2339 static void dump_destroy_window_request( const struct destroy_window_request
*req
)
2341 fprintf( stderr
, " handle=%p", req
->handle
);
2344 static void dump_get_desktop_window_request( const struct get_desktop_window_request
*req
)
2346 fprintf( stderr
, " force=%d", req
->force
);
2349 static void dump_get_desktop_window_reply( const struct get_desktop_window_reply
*req
)
2351 fprintf( stderr
, " handle=%p", req
->handle
);
2354 static void dump_set_window_owner_request( const struct set_window_owner_request
*req
)
2356 fprintf( stderr
, " handle=%p,", req
->handle
);
2357 fprintf( stderr
, " owner=%p", req
->owner
);
2360 static void dump_set_window_owner_reply( const struct set_window_owner_reply
*req
)
2362 fprintf( stderr
, " full_owner=%p,", req
->full_owner
);
2363 fprintf( stderr
, " prev_owner=%p", req
->prev_owner
);
2366 static void dump_get_window_info_request( const struct get_window_info_request
*req
)
2368 fprintf( stderr
, " handle=%p", req
->handle
);
2371 static void dump_get_window_info_reply( const struct get_window_info_reply
*req
)
2373 fprintf( stderr
, " full_handle=%p,", req
->full_handle
);
2374 fprintf( stderr
, " last_active=%p,", req
->last_active
);
2375 fprintf( stderr
, " pid=%04x,", req
->pid
);
2376 fprintf( stderr
, " tid=%04x,", req
->tid
);
2377 fprintf( stderr
, " atom=%04x,", req
->atom
);
2378 fprintf( stderr
, " is_unicode=%d", req
->is_unicode
);
2381 static void dump_set_window_info_request( const struct set_window_info_request
*req
)
2383 fprintf( stderr
, " flags=%08x,", req
->flags
);
2384 fprintf( stderr
, " handle=%p,", req
->handle
);
2385 fprintf( stderr
, " style=%08x,", req
->style
);
2386 fprintf( stderr
, " ex_style=%08x,", req
->ex_style
);
2387 fprintf( stderr
, " id=%08x,", req
->id
);
2388 fprintf( stderr
, " is_unicode=%d,", req
->is_unicode
);
2389 fprintf( stderr
, " instance=%p,", req
->instance
);
2390 fprintf( stderr
, " user_data=%lx,", req
->user_data
);
2391 fprintf( stderr
, " extra_offset=%d,", req
->extra_offset
);
2392 fprintf( stderr
, " extra_size=%u,", req
->extra_size
);
2393 fprintf( stderr
, " extra_value=%lx", req
->extra_value
);
2396 static void dump_set_window_info_reply( const struct set_window_info_reply
*req
)
2398 fprintf( stderr
, " old_style=%08x,", req
->old_style
);
2399 fprintf( stderr
, " old_ex_style=%08x,", req
->old_ex_style
);
2400 fprintf( stderr
, " old_id=%08x,", req
->old_id
);
2401 fprintf( stderr
, " old_instance=%p,", req
->old_instance
);
2402 fprintf( stderr
, " old_user_data=%lx,", req
->old_user_data
);
2403 fprintf( stderr
, " old_extra_value=%lx", req
->old_extra_value
);
2406 static void dump_set_parent_request( const struct set_parent_request
*req
)
2408 fprintf( stderr
, " handle=%p,", req
->handle
);
2409 fprintf( stderr
, " parent=%p", req
->parent
);
2412 static void dump_set_parent_reply( const struct set_parent_reply
*req
)
2414 fprintf( stderr
, " old_parent=%p,", req
->old_parent
);
2415 fprintf( stderr
, " full_parent=%p", req
->full_parent
);
2418 static void dump_get_window_parents_request( const struct get_window_parents_request
*req
)
2420 fprintf( stderr
, " handle=%p", req
->handle
);
2423 static void dump_get_window_parents_reply( const struct get_window_parents_reply
*req
)
2425 fprintf( stderr
, " count=%d,", req
->count
);
2426 fprintf( stderr
, " parents=" );
2427 dump_varargs_user_handles( cur_size
);
2430 static void dump_get_window_children_request( const struct get_window_children_request
*req
)
2432 fprintf( stderr
, " parent=%p,", req
->parent
);
2433 fprintf( stderr
, " atom=%04x,", req
->atom
);
2434 fprintf( stderr
, " tid=%04x", req
->tid
);
2437 static void dump_get_window_children_reply( const struct get_window_children_reply
*req
)
2439 fprintf( stderr
, " count=%d,", req
->count
);
2440 fprintf( stderr
, " children=" );
2441 dump_varargs_user_handles( cur_size
);
2444 static void dump_get_window_children_from_point_request( const struct get_window_children_from_point_request
*req
)
2446 fprintf( stderr
, " parent=%p,", req
->parent
);
2447 fprintf( stderr
, " x=%d,", req
->x
);
2448 fprintf( stderr
, " y=%d", req
->y
);
2451 static void dump_get_window_children_from_point_reply( const struct get_window_children_from_point_reply
*req
)
2453 fprintf( stderr
, " count=%d,", req
->count
);
2454 fprintf( stderr
, " children=" );
2455 dump_varargs_user_handles( cur_size
);
2458 static void dump_get_window_tree_request( const struct get_window_tree_request
*req
)
2460 fprintf( stderr
, " handle=%p", req
->handle
);
2463 static void dump_get_window_tree_reply( const struct get_window_tree_reply
*req
)
2465 fprintf( stderr
, " parent=%p,", req
->parent
);
2466 fprintf( stderr
, " owner=%p,", req
->owner
);
2467 fprintf( stderr
, " next_sibling=%p,", req
->next_sibling
);
2468 fprintf( stderr
, " prev_sibling=%p,", req
->prev_sibling
);
2469 fprintf( stderr
, " first_sibling=%p,", req
->first_sibling
);
2470 fprintf( stderr
, " last_sibling=%p,", req
->last_sibling
);
2471 fprintf( stderr
, " first_child=%p,", req
->first_child
);
2472 fprintf( stderr
, " last_child=%p", req
->last_child
);
2475 static void dump_set_window_pos_request( const struct set_window_pos_request
*req
)
2477 fprintf( stderr
, " flags=%08x,", req
->flags
);
2478 fprintf( stderr
, " handle=%p,", req
->handle
);
2479 fprintf( stderr
, " previous=%p,", req
->previous
);
2480 fprintf( stderr
, " window=" );
2481 dump_rectangle( &req
->window
);
2482 fprintf( stderr
, "," );
2483 fprintf( stderr
, " client=" );
2484 dump_rectangle( &req
->client
);
2485 fprintf( stderr
, "," );
2486 fprintf( stderr
, " valid=" );
2487 dump_varargs_rectangles( cur_size
);
2490 static void dump_set_window_pos_reply( const struct set_window_pos_reply
*req
)
2492 fprintf( stderr
, " new_style=%08x", req
->new_style
);
2495 static void dump_get_window_rectangles_request( const struct get_window_rectangles_request
*req
)
2497 fprintf( stderr
, " handle=%p", req
->handle
);
2500 static void dump_get_window_rectangles_reply( const struct get_window_rectangles_reply
*req
)
2502 fprintf( stderr
, " window=" );
2503 dump_rectangle( &req
->window
);
2504 fprintf( stderr
, "," );
2505 fprintf( stderr
, " visible=" );
2506 dump_rectangle( &req
->visible
);
2507 fprintf( stderr
, "," );
2508 fprintf( stderr
, " client=" );
2509 dump_rectangle( &req
->client
);
2512 static void dump_get_window_text_request( const struct get_window_text_request
*req
)
2514 fprintf( stderr
, " handle=%p", req
->handle
);
2517 static void dump_get_window_text_reply( const struct get_window_text_reply
*req
)
2519 fprintf( stderr
, " text=" );
2520 dump_varargs_unicode_str( cur_size
);
2523 static void dump_set_window_text_request( const struct set_window_text_request
*req
)
2525 fprintf( stderr
, " handle=%p,", req
->handle
);
2526 fprintf( stderr
, " text=" );
2527 dump_varargs_unicode_str( cur_size
);
2530 static void dump_get_windows_offset_request( const struct get_windows_offset_request
*req
)
2532 fprintf( stderr
, " from=%p,", req
->from
);
2533 fprintf( stderr
, " to=%p", req
->to
);
2536 static void dump_get_windows_offset_reply( const struct get_windows_offset_reply
*req
)
2538 fprintf( stderr
, " x=%d,", req
->x
);
2539 fprintf( stderr
, " y=%d", req
->y
);
2542 static void dump_get_visible_region_request( const struct get_visible_region_request
*req
)
2544 fprintf( stderr
, " window=%p,", req
->window
);
2545 fprintf( stderr
, " flags=%08x", req
->flags
);
2548 static void dump_get_visible_region_reply( const struct get_visible_region_reply
*req
)
2550 fprintf( stderr
, " top_win=%p,", req
->top_win
);
2551 fprintf( stderr
, " top_rect=" );
2552 dump_rectangle( &req
->top_rect
);
2553 fprintf( stderr
, "," );
2554 fprintf( stderr
, " win_rect=" );
2555 dump_rectangle( &req
->win_rect
);
2556 fprintf( stderr
, "," );
2557 fprintf( stderr
, " total_size=%u,", req
->total_size
);
2558 fprintf( stderr
, " region=" );
2559 dump_varargs_rectangles( cur_size
);
2562 static void dump_get_window_region_request( const struct get_window_region_request
*req
)
2564 fprintf( stderr
, " window=%p", req
->window
);
2567 static void dump_get_window_region_reply( const struct get_window_region_reply
*req
)
2569 fprintf( stderr
, " total_size=%u,", req
->total_size
);
2570 fprintf( stderr
, " region=" );
2571 dump_varargs_rectangles( cur_size
);
2574 static void dump_set_window_region_request( const struct set_window_region_request
*req
)
2576 fprintf( stderr
, " window=%p,", req
->window
);
2577 fprintf( stderr
, " region=" );
2578 dump_varargs_rectangles( cur_size
);
2581 static void dump_get_update_region_request( const struct get_update_region_request
*req
)
2583 fprintf( stderr
, " window=%p,", req
->window
);
2584 fprintf( stderr
, " from_child=%p,", req
->from_child
);
2585 fprintf( stderr
, " flags=%08x", req
->flags
);
2588 static void dump_get_update_region_reply( const struct get_update_region_reply
*req
)
2590 fprintf( stderr
, " child=%p,", req
->child
);
2591 fprintf( stderr
, " flags=%08x,", req
->flags
);
2592 fprintf( stderr
, " total_size=%u,", req
->total_size
);
2593 fprintf( stderr
, " region=" );
2594 dump_varargs_rectangles( cur_size
);
2597 static void dump_update_window_zorder_request( const struct update_window_zorder_request
*req
)
2599 fprintf( stderr
, " window=%p,", req
->window
);
2600 fprintf( stderr
, " rect=" );
2601 dump_rectangle( &req
->rect
);
2604 static void dump_redraw_window_request( const struct redraw_window_request
*req
)
2606 fprintf( stderr
, " window=%p,", req
->window
);
2607 fprintf( stderr
, " flags=%08x,", req
->flags
);
2608 fprintf( stderr
, " region=" );
2609 dump_varargs_rectangles( cur_size
);
2612 static void dump_set_window_property_request( const struct set_window_property_request
*req
)
2614 fprintf( stderr
, " window=%p,", req
->window
);
2615 fprintf( stderr
, " atom=%04x,", req
->atom
);
2616 fprintf( stderr
, " handle=%p,", req
->handle
);
2617 fprintf( stderr
, " name=" );
2618 dump_varargs_unicode_str( cur_size
);
2621 static void dump_remove_window_property_request( const struct remove_window_property_request
*req
)
2623 fprintf( stderr
, " window=%p,", req
->window
);
2624 fprintf( stderr
, " atom=%04x,", req
->atom
);
2625 fprintf( stderr
, " name=" );
2626 dump_varargs_unicode_str( cur_size
);
2629 static void dump_remove_window_property_reply( const struct remove_window_property_reply
*req
)
2631 fprintf( stderr
, " handle=%p", req
->handle
);
2634 static void dump_get_window_property_request( const struct get_window_property_request
*req
)
2636 fprintf( stderr
, " window=%p,", req
->window
);
2637 fprintf( stderr
, " atom=%04x,", req
->atom
);
2638 fprintf( stderr
, " name=" );
2639 dump_varargs_unicode_str( cur_size
);
2642 static void dump_get_window_property_reply( const struct get_window_property_reply
*req
)
2644 fprintf( stderr
, " handle=%p", req
->handle
);
2647 static void dump_get_window_properties_request( const struct get_window_properties_request
*req
)
2649 fprintf( stderr
, " window=%p", req
->window
);
2652 static void dump_get_window_properties_reply( const struct get_window_properties_reply
*req
)
2654 fprintf( stderr
, " total=%d,", req
->total
);
2655 fprintf( stderr
, " props=" );
2656 dump_varargs_properties( cur_size
);
2659 static void dump_create_winstation_request( const struct create_winstation_request
*req
)
2661 fprintf( stderr
, " flags=%08x,", req
->flags
);
2662 fprintf( stderr
, " access=%08x,", req
->access
);
2663 fprintf( stderr
, " attributes=%08x,", req
->attributes
);
2664 fprintf( stderr
, " name=" );
2665 dump_varargs_unicode_str( cur_size
);
2668 static void dump_create_winstation_reply( const struct create_winstation_reply
*req
)
2670 fprintf( stderr
, " handle=%p", req
->handle
);
2673 static void dump_open_winstation_request( const struct open_winstation_request
*req
)
2675 fprintf( stderr
, " access=%08x,", req
->access
);
2676 fprintf( stderr
, " attributes=%08x,", req
->attributes
);
2677 fprintf( stderr
, " name=" );
2678 dump_varargs_unicode_str( cur_size
);
2681 static void dump_open_winstation_reply( const struct open_winstation_reply
*req
)
2683 fprintf( stderr
, " handle=%p", req
->handle
);
2686 static void dump_close_winstation_request( const struct close_winstation_request
*req
)
2688 fprintf( stderr
, " handle=%p", req
->handle
);
2691 static void dump_get_process_winstation_request( const struct get_process_winstation_request
*req
)
2695 static void dump_get_process_winstation_reply( const struct get_process_winstation_reply
*req
)
2697 fprintf( stderr
, " handle=%p", req
->handle
);
2700 static void dump_set_process_winstation_request( const struct set_process_winstation_request
*req
)
2702 fprintf( stderr
, " handle=%p", req
->handle
);
2705 static void dump_create_desktop_request( const struct create_desktop_request
*req
)
2707 fprintf( stderr
, " flags=%08x,", req
->flags
);
2708 fprintf( stderr
, " access=%08x,", req
->access
);
2709 fprintf( stderr
, " attributes=%08x,", req
->attributes
);
2710 fprintf( stderr
, " name=" );
2711 dump_varargs_unicode_str( cur_size
);
2714 static void dump_create_desktop_reply( const struct create_desktop_reply
*req
)
2716 fprintf( stderr
, " handle=%p", req
->handle
);
2719 static void dump_open_desktop_request( const struct open_desktop_request
*req
)
2721 fprintf( stderr
, " flags=%08x,", req
->flags
);
2722 fprintf( stderr
, " access=%08x,", req
->access
);
2723 fprintf( stderr
, " attributes=%08x,", req
->attributes
);
2724 fprintf( stderr
, " name=" );
2725 dump_varargs_unicode_str( cur_size
);
2728 static void dump_open_desktop_reply( const struct open_desktop_reply
*req
)
2730 fprintf( stderr
, " handle=%p", req
->handle
);
2733 static void dump_close_desktop_request( const struct close_desktop_request
*req
)
2735 fprintf( stderr
, " handle=%p", req
->handle
);
2738 static void dump_get_thread_desktop_request( const struct get_thread_desktop_request
*req
)
2740 fprintf( stderr
, " tid=%04x", req
->tid
);
2743 static void dump_get_thread_desktop_reply( const struct get_thread_desktop_reply
*req
)
2745 fprintf( stderr
, " handle=%p", req
->handle
);
2748 static void dump_set_thread_desktop_request( const struct set_thread_desktop_request
*req
)
2750 fprintf( stderr
, " handle=%p", req
->handle
);
2753 static void dump_set_user_object_info_request( const struct set_user_object_info_request
*req
)
2755 fprintf( stderr
, " handle=%p,", req
->handle
);
2756 fprintf( stderr
, " flags=%08x,", req
->flags
);
2757 fprintf( stderr
, " obj_flags=%08x", req
->obj_flags
);
2760 static void dump_set_user_object_info_reply( const struct set_user_object_info_reply
*req
)
2762 fprintf( stderr
, " is_desktop=%d,", req
->is_desktop
);
2763 fprintf( stderr
, " old_obj_flags=%08x,", req
->old_obj_flags
);
2764 fprintf( stderr
, " name=" );
2765 dump_varargs_unicode_str( cur_size
);
2768 static void dump_attach_thread_input_request( const struct attach_thread_input_request
*req
)
2770 fprintf( stderr
, " tid_from=%04x,", req
->tid_from
);
2771 fprintf( stderr
, " tid_to=%04x,", req
->tid_to
);
2772 fprintf( stderr
, " attach=%d", req
->attach
);
2775 static void dump_get_thread_input_request( const struct get_thread_input_request
*req
)
2777 fprintf( stderr
, " tid=%04x", req
->tid
);
2780 static void dump_get_thread_input_reply( const struct get_thread_input_reply
*req
)
2782 fprintf( stderr
, " focus=%p,", req
->focus
);
2783 fprintf( stderr
, " capture=%p,", req
->capture
);
2784 fprintf( stderr
, " active=%p,", req
->active
);
2785 fprintf( stderr
, " foreground=%p,", req
->foreground
);
2786 fprintf( stderr
, " menu_owner=%p,", req
->menu_owner
);
2787 fprintf( stderr
, " move_size=%p,", req
->move_size
);
2788 fprintf( stderr
, " caret=%p,", req
->caret
);
2789 fprintf( stderr
, " rect=" );
2790 dump_rectangle( &req
->rect
);
2793 static void dump_get_last_input_time_request( const struct get_last_input_time_request
*req
)
2797 static void dump_get_last_input_time_reply( const struct get_last_input_time_reply
*req
)
2799 fprintf( stderr
, " time=%08x", req
->time
);
2802 static void dump_get_key_state_request( const struct get_key_state_request
*req
)
2804 fprintf( stderr
, " tid=%04x,", req
->tid
);
2805 fprintf( stderr
, " key=%d", req
->key
);
2808 static void dump_get_key_state_reply( const struct get_key_state_reply
*req
)
2810 fprintf( stderr
, " state=%02x,", req
->state
);
2811 fprintf( stderr
, " keystate=" );
2812 dump_varargs_bytes( cur_size
);
2815 static void dump_set_key_state_request( const struct set_key_state_request
*req
)
2817 fprintf( stderr
, " tid=%04x,", req
->tid
);
2818 fprintf( stderr
, " keystate=" );
2819 dump_varargs_bytes( cur_size
);
2822 static void dump_set_foreground_window_request( const struct set_foreground_window_request
*req
)
2824 fprintf( stderr
, " handle=%p", req
->handle
);
2827 static void dump_set_foreground_window_reply( const struct set_foreground_window_reply
*req
)
2829 fprintf( stderr
, " previous=%p,", req
->previous
);
2830 fprintf( stderr
, " send_msg_old=%d,", req
->send_msg_old
);
2831 fprintf( stderr
, " send_msg_new=%d", req
->send_msg_new
);
2834 static void dump_set_focus_window_request( const struct set_focus_window_request
*req
)
2836 fprintf( stderr
, " handle=%p", req
->handle
);
2839 static void dump_set_focus_window_reply( const struct set_focus_window_reply
*req
)
2841 fprintf( stderr
, " previous=%p", req
->previous
);
2844 static void dump_set_active_window_request( const struct set_active_window_request
*req
)
2846 fprintf( stderr
, " handle=%p", req
->handle
);
2849 static void dump_set_active_window_reply( const struct set_active_window_reply
*req
)
2851 fprintf( stderr
, " previous=%p", req
->previous
);
2854 static void dump_set_capture_window_request( const struct set_capture_window_request
*req
)
2856 fprintf( stderr
, " handle=%p,", req
->handle
);
2857 fprintf( stderr
, " flags=%08x", req
->flags
);
2860 static void dump_set_capture_window_reply( const struct set_capture_window_reply
*req
)
2862 fprintf( stderr
, " previous=%p,", req
->previous
);
2863 fprintf( stderr
, " full_handle=%p", req
->full_handle
);
2866 static void dump_set_caret_window_request( const struct set_caret_window_request
*req
)
2868 fprintf( stderr
, " handle=%p,", req
->handle
);
2869 fprintf( stderr
, " width=%d,", req
->width
);
2870 fprintf( stderr
, " height=%d", req
->height
);
2873 static void dump_set_caret_window_reply( const struct set_caret_window_reply
*req
)
2875 fprintf( stderr
, " previous=%p,", req
->previous
);
2876 fprintf( stderr
, " old_rect=" );
2877 dump_rectangle( &req
->old_rect
);
2878 fprintf( stderr
, "," );
2879 fprintf( stderr
, " old_hide=%d,", req
->old_hide
);
2880 fprintf( stderr
, " old_state=%d", req
->old_state
);
2883 static void dump_set_caret_info_request( const struct set_caret_info_request
*req
)
2885 fprintf( stderr
, " flags=%08x,", req
->flags
);
2886 fprintf( stderr
, " handle=%p,", req
->handle
);
2887 fprintf( stderr
, " x=%d,", req
->x
);
2888 fprintf( stderr
, " y=%d,", req
->y
);
2889 fprintf( stderr
, " hide=%d,", req
->hide
);
2890 fprintf( stderr
, " state=%d", req
->state
);
2893 static void dump_set_caret_info_reply( const struct set_caret_info_reply
*req
)
2895 fprintf( stderr
, " full_handle=%p,", req
->full_handle
);
2896 fprintf( stderr
, " old_rect=" );
2897 dump_rectangle( &req
->old_rect
);
2898 fprintf( stderr
, "," );
2899 fprintf( stderr
, " old_hide=%d,", req
->old_hide
);
2900 fprintf( stderr
, " old_state=%d", req
->old_state
);
2903 static void dump_set_hook_request( const struct set_hook_request
*req
)
2905 fprintf( stderr
, " id=%d,", req
->id
);
2906 fprintf( stderr
, " pid=%04x,", req
->pid
);
2907 fprintf( stderr
, " tid=%04x,", req
->tid
);
2908 fprintf( stderr
, " event_min=%d,", req
->event_min
);
2909 fprintf( stderr
, " event_max=%d,", req
->event_max
);
2910 fprintf( stderr
, " flags=%d,", req
->flags
);
2911 fprintf( stderr
, " proc=%p,", req
->proc
);
2912 fprintf( stderr
, " unicode=%d,", req
->unicode
);
2913 fprintf( stderr
, " module=" );
2914 dump_varargs_unicode_str( cur_size
);
2917 static void dump_set_hook_reply( const struct set_hook_reply
*req
)
2919 fprintf( stderr
, " handle=%p,", req
->handle
);
2920 fprintf( stderr
, " active_hooks=%08x", req
->active_hooks
);
2923 static void dump_remove_hook_request( const struct remove_hook_request
*req
)
2925 fprintf( stderr
, " handle=%p,", req
->handle
);
2926 fprintf( stderr
, " id=%d,", req
->id
);
2927 fprintf( stderr
, " proc=%p", req
->proc
);
2930 static void dump_remove_hook_reply( const struct remove_hook_reply
*req
)
2932 fprintf( stderr
, " active_hooks=%08x", req
->active_hooks
);
2935 static void dump_start_hook_chain_request( const struct start_hook_chain_request
*req
)
2937 fprintf( stderr
, " id=%d,", req
->id
);
2938 fprintf( stderr
, " event=%d,", req
->event
);
2939 fprintf( stderr
, " window=%p,", req
->window
);
2940 fprintf( stderr
, " object_id=%d,", req
->object_id
);
2941 fprintf( stderr
, " child_id=%d", req
->child_id
);
2944 static void dump_start_hook_chain_reply( const struct start_hook_chain_reply
*req
)
2946 fprintf( stderr
, " handle=%p,", req
->handle
);
2947 fprintf( stderr
, " pid=%04x,", req
->pid
);
2948 fprintf( stderr
, " tid=%04x,", req
->tid
);
2949 fprintf( stderr
, " proc=%p,", req
->proc
);
2950 fprintf( stderr
, " unicode=%d,", req
->unicode
);
2951 fprintf( stderr
, " active_hooks=%08x,", req
->active_hooks
);
2952 fprintf( stderr
, " module=" );
2953 dump_varargs_unicode_str( cur_size
);
2956 static void dump_finish_hook_chain_request( const struct finish_hook_chain_request
*req
)
2958 fprintf( stderr
, " id=%d", req
->id
);
2961 static void dump_get_hook_info_request( const struct get_hook_info_request
*req
)
2963 fprintf( stderr
, " handle=%p,", req
->handle
);
2964 fprintf( stderr
, " get_next=%d,", req
->get_next
);
2965 fprintf( stderr
, " event=%d,", req
->event
);
2966 fprintf( stderr
, " window=%p,", req
->window
);
2967 fprintf( stderr
, " object_id=%d,", req
->object_id
);
2968 fprintf( stderr
, " child_id=%d", req
->child_id
);
2971 static void dump_get_hook_info_reply( const struct get_hook_info_reply
*req
)
2973 fprintf( stderr
, " handle=%p,", req
->handle
);
2974 fprintf( stderr
, " id=%d,", req
->id
);
2975 fprintf( stderr
, " pid=%04x,", req
->pid
);
2976 fprintf( stderr
, " tid=%04x,", req
->tid
);
2977 fprintf( stderr
, " proc=%p,", req
->proc
);
2978 fprintf( stderr
, " unicode=%d,", req
->unicode
);
2979 fprintf( stderr
, " module=" );
2980 dump_varargs_unicode_str( cur_size
);
2983 static void dump_create_class_request( const struct create_class_request
*req
)
2985 fprintf( stderr
, " local=%d,", req
->local
);
2986 fprintf( stderr
, " atom=%04x,", req
->atom
);
2987 fprintf( stderr
, " style=%08x,", req
->style
);
2988 fprintf( stderr
, " instance=%p,", req
->instance
);
2989 fprintf( stderr
, " extra=%d,", req
->extra
);
2990 fprintf( stderr
, " win_extra=%d,", req
->win_extra
);
2991 fprintf( stderr
, " client_ptr=%p", req
->client_ptr
);
2994 static void dump_destroy_class_request( const struct destroy_class_request
*req
)
2996 fprintf( stderr
, " atom=%04x,", req
->atom
);
2997 fprintf( stderr
, " instance=%p", req
->instance
);
3000 static void dump_destroy_class_reply( const struct destroy_class_reply
*req
)
3002 fprintf( stderr
, " client_ptr=%p", req
->client_ptr
);
3005 static void dump_set_class_info_request( const struct set_class_info_request
*req
)
3007 fprintf( stderr
, " window=%p,", req
->window
);
3008 fprintf( stderr
, " flags=%08x,", req
->flags
);
3009 fprintf( stderr
, " atom=%04x,", req
->atom
);
3010 fprintf( stderr
, " style=%08x,", req
->style
);
3011 fprintf( stderr
, " win_extra=%d,", req
->win_extra
);
3012 fprintf( stderr
, " instance=%p,", req
->instance
);
3013 fprintf( stderr
, " extra_offset=%d,", req
->extra_offset
);
3014 fprintf( stderr
, " extra_size=%u,", req
->extra_size
);
3015 fprintf( stderr
, " extra_value=%lx", req
->extra_value
);
3018 static void dump_set_class_info_reply( const struct set_class_info_reply
*req
)
3020 fprintf( stderr
, " old_atom=%04x,", req
->old_atom
);
3021 fprintf( stderr
, " old_style=%08x,", req
->old_style
);
3022 fprintf( stderr
, " old_extra=%d,", req
->old_extra
);
3023 fprintf( stderr
, " old_win_extra=%d,", req
->old_win_extra
);
3024 fprintf( stderr
, " old_instance=%p,", req
->old_instance
);
3025 fprintf( stderr
, " old_extra_value=%lx", req
->old_extra_value
);
3028 static void dump_set_clipboard_info_request( const struct set_clipboard_info_request
*req
)
3030 fprintf( stderr
, " flags=%08x,", req
->flags
);
3031 fprintf( stderr
, " clipboard=%p,", req
->clipboard
);
3032 fprintf( stderr
, " owner=%p,", req
->owner
);
3033 fprintf( stderr
, " viewer=%p,", req
->viewer
);
3034 fprintf( stderr
, " seqno=%08x", req
->seqno
);
3037 static void dump_set_clipboard_info_reply( const struct set_clipboard_info_reply
*req
)
3039 fprintf( stderr
, " flags=%08x,", req
->flags
);
3040 fprintf( stderr
, " old_clipboard=%p,", req
->old_clipboard
);
3041 fprintf( stderr
, " old_owner=%p,", req
->old_owner
);
3042 fprintf( stderr
, " old_viewer=%p,", req
->old_viewer
);
3043 fprintf( stderr
, " seqno=%08x", req
->seqno
);
3046 static void dump_open_token_request( const struct open_token_request
*req
)
3048 fprintf( stderr
, " handle=%p,", req
->handle
);
3049 fprintf( stderr
, " access=%08x,", req
->access
);
3050 fprintf( stderr
, " attributes=%08x,", req
->attributes
);
3051 fprintf( stderr
, " flags=%08x", req
->flags
);
3054 static void dump_open_token_reply( const struct open_token_reply
*req
)
3056 fprintf( stderr
, " token=%p", req
->token
);
3059 static void dump_set_global_windows_request( const struct set_global_windows_request
*req
)
3061 fprintf( stderr
, " flags=%08x,", req
->flags
);
3062 fprintf( stderr
, " shell_window=%p,", req
->shell_window
);
3063 fprintf( stderr
, " shell_listview=%p,", req
->shell_listview
);
3064 fprintf( stderr
, " progman_window=%p,", req
->progman_window
);
3065 fprintf( stderr
, " taskman_window=%p", req
->taskman_window
);
3068 static void dump_set_global_windows_reply( const struct set_global_windows_reply
*req
)
3070 fprintf( stderr
, " old_shell_window=%p,", req
->old_shell_window
);
3071 fprintf( stderr
, " old_shell_listview=%p,", req
->old_shell_listview
);
3072 fprintf( stderr
, " old_progman_window=%p,", req
->old_progman_window
);
3073 fprintf( stderr
, " old_taskman_window=%p", req
->old_taskman_window
);
3076 static void dump_adjust_token_privileges_request( const struct adjust_token_privileges_request
*req
)
3078 fprintf( stderr
, " handle=%p,", req
->handle
);
3079 fprintf( stderr
, " disable_all=%d,", req
->disable_all
);
3080 fprintf( stderr
, " get_modified_state=%d,", req
->get_modified_state
);
3081 fprintf( stderr
, " privileges=" );
3082 dump_varargs_LUID_AND_ATTRIBUTES( cur_size
);
3085 static void dump_adjust_token_privileges_reply( const struct adjust_token_privileges_reply
*req
)
3087 fprintf( stderr
, " len=%08x,", req
->len
);
3088 fprintf( stderr
, " privileges=" );
3089 dump_varargs_LUID_AND_ATTRIBUTES( cur_size
);
3092 static void dump_get_token_privileges_request( const struct get_token_privileges_request
*req
)
3094 fprintf( stderr
, " handle=%p", req
->handle
);
3097 static void dump_get_token_privileges_reply( const struct get_token_privileges_reply
*req
)
3099 fprintf( stderr
, " len=%08x,", req
->len
);
3100 fprintf( stderr
, " privileges=" );
3101 dump_varargs_LUID_AND_ATTRIBUTES( cur_size
);
3104 static void dump_check_token_privileges_request( const struct check_token_privileges_request
*req
)
3106 fprintf( stderr
, " handle=%p,", req
->handle
);
3107 fprintf( stderr
, " all_required=%d,", req
->all_required
);
3108 fprintf( stderr
, " privileges=" );
3109 dump_varargs_LUID_AND_ATTRIBUTES( cur_size
);
3112 static void dump_check_token_privileges_reply( const struct check_token_privileges_reply
*req
)
3114 fprintf( stderr
, " has_privileges=%d,", req
->has_privileges
);
3115 fprintf( stderr
, " privileges=" );
3116 dump_varargs_LUID_AND_ATTRIBUTES( cur_size
);
3119 static void dump_duplicate_token_request( const struct duplicate_token_request
*req
)
3121 fprintf( stderr
, " handle=%p,", req
->handle
);
3122 fprintf( stderr
, " access=%08x,", req
->access
);
3123 fprintf( stderr
, " attributes=%08x,", req
->attributes
);
3124 fprintf( stderr
, " primary=%d,", req
->primary
);
3125 fprintf( stderr
, " impersonation_level=%d", req
->impersonation_level
);
3128 static void dump_duplicate_token_reply( const struct duplicate_token_reply
*req
)
3130 fprintf( stderr
, " new_handle=%p", req
->new_handle
);
3133 static void dump_access_check_request( const struct access_check_request
*req
)
3135 fprintf( stderr
, " handle=%p,", req
->handle
);
3136 fprintf( stderr
, " desired_access=%08x,", req
->desired_access
);
3137 fprintf( stderr
, " mapping_read=%08x,", req
->mapping_read
);
3138 fprintf( stderr
, " mapping_write=%08x,", req
->mapping_write
);
3139 fprintf( stderr
, " mapping_execute=%08x,", req
->mapping_execute
);
3140 fprintf( stderr
, " mapping_all=%08x,", req
->mapping_all
);
3141 fprintf( stderr
, " sd=" );
3142 dump_varargs_security_descriptor( cur_size
);
3145 static void dump_access_check_reply( const struct access_check_reply
*req
)
3147 fprintf( stderr
, " access_granted=%08x,", req
->access_granted
);
3148 fprintf( stderr
, " access_status=%08x,", req
->access_status
);
3149 fprintf( stderr
, " privileges_len=%08x,", req
->privileges_len
);
3150 fprintf( stderr
, " privileges=" );
3151 dump_varargs_LUID_AND_ATTRIBUTES( cur_size
);
3154 static void dump_get_token_user_request( const struct get_token_user_request
*req
)
3156 fprintf( stderr
, " handle=%p", req
->handle
);
3159 static void dump_get_token_user_reply( const struct get_token_user_reply
*req
)
3161 fprintf( stderr
, " user_len=%u,", req
->user_len
);
3162 fprintf( stderr
, " user=" );
3163 dump_varargs_SID( cur_size
);
3166 static void dump_get_token_groups_request( const struct get_token_groups_request
*req
)
3168 fprintf( stderr
, " handle=%p", req
->handle
);
3171 static void dump_get_token_groups_reply( const struct get_token_groups_reply
*req
)
3173 fprintf( stderr
, " user_len=%u,", req
->user_len
);
3174 fprintf( stderr
, " user=" );
3175 dump_varargs_token_groups( cur_size
);
3178 static void dump_create_mailslot_request( const struct create_mailslot_request
*req
)
3180 fprintf( stderr
, " access=%08x,", req
->access
);
3181 fprintf( stderr
, " attributes=%08x,", req
->attributes
);
3182 fprintf( stderr
, " rootdir=%p,", req
->rootdir
);
3183 fprintf( stderr
, " max_msgsize=%08x,", req
->max_msgsize
);
3184 fprintf( stderr
, " read_timeout=%d,", req
->read_timeout
);
3185 fprintf( stderr
, " name=" );
3186 dump_varargs_unicode_str( cur_size
);
3189 static void dump_create_mailslot_reply( const struct create_mailslot_reply
*req
)
3191 fprintf( stderr
, " handle=%p", req
->handle
);
3194 static void dump_open_mailslot_request( const struct open_mailslot_request
*req
)
3196 fprintf( stderr
, " access=%08x,", req
->access
);
3197 fprintf( stderr
, " attributes=%08x,", req
->attributes
);
3198 fprintf( stderr
, " rootdir=%p,", req
->rootdir
);
3199 fprintf( stderr
, " sharing=%08x,", req
->sharing
);
3200 fprintf( stderr
, " name=" );
3201 dump_varargs_unicode_str( cur_size
);
3204 static void dump_open_mailslot_reply( const struct open_mailslot_reply
*req
)
3206 fprintf( stderr
, " handle=%p", req
->handle
);
3209 static void dump_set_mailslot_info_request( const struct set_mailslot_info_request
*req
)
3211 fprintf( stderr
, " handle=%p,", req
->handle
);
3212 fprintf( stderr
, " flags=%08x,", req
->flags
);
3213 fprintf( stderr
, " read_timeout=%d", req
->read_timeout
);
3216 static void dump_set_mailslot_info_reply( const struct set_mailslot_info_reply
*req
)
3218 fprintf( stderr
, " max_msgsize=%08x,", req
->max_msgsize
);
3219 fprintf( stderr
, " read_timeout=%d", req
->read_timeout
);
3222 static void dump_create_directory_request( const struct create_directory_request
*req
)
3224 fprintf( stderr
, " access=%08x,", req
->access
);
3225 fprintf( stderr
, " attributes=%08x,", req
->attributes
);
3226 fprintf( stderr
, " rootdir=%p,", req
->rootdir
);
3227 fprintf( stderr
, " directory_name=" );
3228 dump_varargs_unicode_str( cur_size
);
3231 static void dump_create_directory_reply( const struct create_directory_reply
*req
)
3233 fprintf( stderr
, " handle=%p", req
->handle
);
3236 static void dump_open_directory_request( const struct open_directory_request
*req
)
3238 fprintf( stderr
, " access=%08x,", req
->access
);
3239 fprintf( stderr
, " attributes=%08x,", req
->attributes
);
3240 fprintf( stderr
, " rootdir=%p,", req
->rootdir
);
3241 fprintf( stderr
, " directory_name=" );
3242 dump_varargs_unicode_str( cur_size
);
3245 static void dump_open_directory_reply( const struct open_directory_reply
*req
)
3247 fprintf( stderr
, " handle=%p", req
->handle
);
3250 static void dump_create_symlink_request( const struct create_symlink_request
*req
)
3252 fprintf( stderr
, " access=%08x,", req
->access
);
3253 fprintf( stderr
, " attributes=%08x,", req
->attributes
);
3254 fprintf( stderr
, " rootdir=%p,", req
->rootdir
);
3255 fprintf( stderr
, " name_len=%u,", req
->name_len
);
3256 fprintf( stderr
, " name=" );
3257 dump_varargs_unicode_str( min(cur_size
,req
->name_len
) );
3258 fputc( ',', stderr
);
3259 fprintf( stderr
, " target_name=" );
3260 dump_varargs_unicode_str( cur_size
);
3263 static void dump_create_symlink_reply( const struct create_symlink_reply
*req
)
3265 fprintf( stderr
, " handle=%p", req
->handle
);
3268 static void dump_open_symlink_request( const struct open_symlink_request
*req
)
3270 fprintf( stderr
, " access=%08x,", req
->access
);
3271 fprintf( stderr
, " attributes=%08x,", req
->attributes
);
3272 fprintf( stderr
, " rootdir=%p,", req
->rootdir
);
3273 fprintf( stderr
, " name=" );
3274 dump_varargs_unicode_str( cur_size
);
3277 static void dump_open_symlink_reply( const struct open_symlink_reply
*req
)
3279 fprintf( stderr
, " handle=%p", req
->handle
);
3282 static void dump_query_symlink_request( const struct query_symlink_request
*req
)
3284 fprintf( stderr
, " handle=%p", req
->handle
);
3287 static void dump_query_symlink_reply( const struct query_symlink_reply
*req
)
3289 fprintf( stderr
, " target_name=" );
3290 dump_varargs_unicode_str( cur_size
);
3293 static const dump_func req_dumpers
[REQ_NB_REQUESTS
] = {
3294 (dump_func
)dump_new_process_request
,
3295 (dump_func
)dump_get_new_process_info_request
,
3296 (dump_func
)dump_new_thread_request
,
3297 (dump_func
)dump_get_startup_info_request
,
3298 (dump_func
)dump_init_process_done_request
,
3299 (dump_func
)dump_init_thread_request
,
3300 (dump_func
)dump_terminate_process_request
,
3301 (dump_func
)dump_terminate_thread_request
,
3302 (dump_func
)dump_get_process_info_request
,
3303 (dump_func
)dump_set_process_info_request
,
3304 (dump_func
)dump_get_thread_info_request
,
3305 (dump_func
)dump_set_thread_info_request
,
3306 (dump_func
)dump_get_dll_info_request
,
3307 (dump_func
)dump_suspend_thread_request
,
3308 (dump_func
)dump_resume_thread_request
,
3309 (dump_func
)dump_load_dll_request
,
3310 (dump_func
)dump_unload_dll_request
,
3311 (dump_func
)dump_queue_apc_request
,
3312 (dump_func
)dump_get_apc_request
,
3313 (dump_func
)dump_close_handle_request
,
3314 (dump_func
)dump_set_handle_info_request
,
3315 (dump_func
)dump_dup_handle_request
,
3316 (dump_func
)dump_open_process_request
,
3317 (dump_func
)dump_open_thread_request
,
3318 (dump_func
)dump_select_request
,
3319 (dump_func
)dump_create_event_request
,
3320 (dump_func
)dump_event_op_request
,
3321 (dump_func
)dump_open_event_request
,
3322 (dump_func
)dump_create_mutex_request
,
3323 (dump_func
)dump_release_mutex_request
,
3324 (dump_func
)dump_open_mutex_request
,
3325 (dump_func
)dump_create_semaphore_request
,
3326 (dump_func
)dump_release_semaphore_request
,
3327 (dump_func
)dump_open_semaphore_request
,
3328 (dump_func
)dump_create_file_request
,
3329 (dump_func
)dump_open_file_object_request
,
3330 (dump_func
)dump_alloc_file_handle_request
,
3331 (dump_func
)dump_get_handle_fd_request
,
3332 (dump_func
)dump_flush_file_request
,
3333 (dump_func
)dump_lock_file_request
,
3334 (dump_func
)dump_unlock_file_request
,
3335 (dump_func
)dump_unmount_device_request
,
3336 (dump_func
)dump_create_socket_request
,
3337 (dump_func
)dump_accept_socket_request
,
3338 (dump_func
)dump_set_socket_event_request
,
3339 (dump_func
)dump_get_socket_event_request
,
3340 (dump_func
)dump_enable_socket_event_request
,
3341 (dump_func
)dump_set_socket_deferred_request
,
3342 (dump_func
)dump_alloc_console_request
,
3343 (dump_func
)dump_free_console_request
,
3344 (dump_func
)dump_get_console_renderer_events_request
,
3345 (dump_func
)dump_open_console_request
,
3346 (dump_func
)dump_get_console_wait_event_request
,
3347 (dump_func
)dump_get_console_mode_request
,
3348 (dump_func
)dump_set_console_mode_request
,
3349 (dump_func
)dump_set_console_input_info_request
,
3350 (dump_func
)dump_get_console_input_info_request
,
3351 (dump_func
)dump_append_console_input_history_request
,
3352 (dump_func
)dump_get_console_input_history_request
,
3353 (dump_func
)dump_create_console_output_request
,
3354 (dump_func
)dump_set_console_output_info_request
,
3355 (dump_func
)dump_get_console_output_info_request
,
3356 (dump_func
)dump_write_console_input_request
,
3357 (dump_func
)dump_read_console_input_request
,
3358 (dump_func
)dump_write_console_output_request
,
3359 (dump_func
)dump_fill_console_output_request
,
3360 (dump_func
)dump_read_console_output_request
,
3361 (dump_func
)dump_move_console_output_request
,
3362 (dump_func
)dump_send_console_signal_request
,
3363 (dump_func
)dump_read_directory_changes_request
,
3364 (dump_func
)dump_read_change_request
,
3365 (dump_func
)dump_create_mapping_request
,
3366 (dump_func
)dump_open_mapping_request
,
3367 (dump_func
)dump_get_mapping_info_request
,
3368 (dump_func
)dump_create_snapshot_request
,
3369 (dump_func
)dump_next_process_request
,
3370 (dump_func
)dump_next_thread_request
,
3371 (dump_func
)dump_next_module_request
,
3372 (dump_func
)dump_wait_debug_event_request
,
3373 (dump_func
)dump_queue_exception_event_request
,
3374 (dump_func
)dump_get_exception_status_request
,
3375 (dump_func
)dump_output_debug_string_request
,
3376 (dump_func
)dump_continue_debug_event_request
,
3377 (dump_func
)dump_debug_process_request
,
3378 (dump_func
)dump_debug_break_request
,
3379 (dump_func
)dump_set_debugger_kill_on_exit_request
,
3380 (dump_func
)dump_read_process_memory_request
,
3381 (dump_func
)dump_write_process_memory_request
,
3382 (dump_func
)dump_create_key_request
,
3383 (dump_func
)dump_open_key_request
,
3384 (dump_func
)dump_delete_key_request
,
3385 (dump_func
)dump_flush_key_request
,
3386 (dump_func
)dump_enum_key_request
,
3387 (dump_func
)dump_set_key_value_request
,
3388 (dump_func
)dump_get_key_value_request
,
3389 (dump_func
)dump_enum_key_value_request
,
3390 (dump_func
)dump_delete_key_value_request
,
3391 (dump_func
)dump_load_registry_request
,
3392 (dump_func
)dump_unload_registry_request
,
3393 (dump_func
)dump_save_registry_request
,
3394 (dump_func
)dump_set_registry_notification_request
,
3395 (dump_func
)dump_create_timer_request
,
3396 (dump_func
)dump_open_timer_request
,
3397 (dump_func
)dump_set_timer_request
,
3398 (dump_func
)dump_cancel_timer_request
,
3399 (dump_func
)dump_get_timer_info_request
,
3400 (dump_func
)dump_get_thread_context_request
,
3401 (dump_func
)dump_set_thread_context_request
,
3402 (dump_func
)dump_get_selector_entry_request
,
3403 (dump_func
)dump_add_atom_request
,
3404 (dump_func
)dump_delete_atom_request
,
3405 (dump_func
)dump_find_atom_request
,
3406 (dump_func
)dump_get_atom_information_request
,
3407 (dump_func
)dump_set_atom_information_request
,
3408 (dump_func
)dump_empty_atom_table_request
,
3409 (dump_func
)dump_init_atom_table_request
,
3410 (dump_func
)dump_get_msg_queue_request
,
3411 (dump_func
)dump_set_queue_mask_request
,
3412 (dump_func
)dump_get_queue_status_request
,
3413 (dump_func
)dump_get_process_idle_event_request
,
3414 (dump_func
)dump_send_message_request
,
3415 (dump_func
)dump_post_quit_message_request
,
3416 (dump_func
)dump_send_hardware_message_request
,
3417 (dump_func
)dump_get_message_request
,
3418 (dump_func
)dump_reply_message_request
,
3419 (dump_func
)dump_accept_hardware_message_request
,
3420 (dump_func
)dump_get_message_reply_request
,
3421 (dump_func
)dump_set_win_timer_request
,
3422 (dump_func
)dump_kill_win_timer_request
,
3423 (dump_func
)dump_get_serial_info_request
,
3424 (dump_func
)dump_set_serial_info_request
,
3425 (dump_func
)dump_register_async_request
,
3426 (dump_func
)dump_cancel_async_request
,
3427 (dump_func
)dump_create_named_pipe_request
,
3428 (dump_func
)dump_open_named_pipe_request
,
3429 (dump_func
)dump_connect_named_pipe_request
,
3430 (dump_func
)dump_wait_named_pipe_request
,
3431 (dump_func
)dump_disconnect_named_pipe_request
,
3432 (dump_func
)dump_get_named_pipe_info_request
,
3433 (dump_func
)dump_create_window_request
,
3434 (dump_func
)dump_destroy_window_request
,
3435 (dump_func
)dump_get_desktop_window_request
,
3436 (dump_func
)dump_set_window_owner_request
,
3437 (dump_func
)dump_get_window_info_request
,
3438 (dump_func
)dump_set_window_info_request
,
3439 (dump_func
)dump_set_parent_request
,
3440 (dump_func
)dump_get_window_parents_request
,
3441 (dump_func
)dump_get_window_children_request
,
3442 (dump_func
)dump_get_window_children_from_point_request
,
3443 (dump_func
)dump_get_window_tree_request
,
3444 (dump_func
)dump_set_window_pos_request
,
3445 (dump_func
)dump_get_window_rectangles_request
,
3446 (dump_func
)dump_get_window_text_request
,
3447 (dump_func
)dump_set_window_text_request
,
3448 (dump_func
)dump_get_windows_offset_request
,
3449 (dump_func
)dump_get_visible_region_request
,
3450 (dump_func
)dump_get_window_region_request
,
3451 (dump_func
)dump_set_window_region_request
,
3452 (dump_func
)dump_get_update_region_request
,
3453 (dump_func
)dump_update_window_zorder_request
,
3454 (dump_func
)dump_redraw_window_request
,
3455 (dump_func
)dump_set_window_property_request
,
3456 (dump_func
)dump_remove_window_property_request
,
3457 (dump_func
)dump_get_window_property_request
,
3458 (dump_func
)dump_get_window_properties_request
,
3459 (dump_func
)dump_create_winstation_request
,
3460 (dump_func
)dump_open_winstation_request
,
3461 (dump_func
)dump_close_winstation_request
,
3462 (dump_func
)dump_get_process_winstation_request
,
3463 (dump_func
)dump_set_process_winstation_request
,
3464 (dump_func
)dump_create_desktop_request
,
3465 (dump_func
)dump_open_desktop_request
,
3466 (dump_func
)dump_close_desktop_request
,
3467 (dump_func
)dump_get_thread_desktop_request
,
3468 (dump_func
)dump_set_thread_desktop_request
,
3469 (dump_func
)dump_set_user_object_info_request
,
3470 (dump_func
)dump_attach_thread_input_request
,
3471 (dump_func
)dump_get_thread_input_request
,
3472 (dump_func
)dump_get_last_input_time_request
,
3473 (dump_func
)dump_get_key_state_request
,
3474 (dump_func
)dump_set_key_state_request
,
3475 (dump_func
)dump_set_foreground_window_request
,
3476 (dump_func
)dump_set_focus_window_request
,
3477 (dump_func
)dump_set_active_window_request
,
3478 (dump_func
)dump_set_capture_window_request
,
3479 (dump_func
)dump_set_caret_window_request
,
3480 (dump_func
)dump_set_caret_info_request
,
3481 (dump_func
)dump_set_hook_request
,
3482 (dump_func
)dump_remove_hook_request
,
3483 (dump_func
)dump_start_hook_chain_request
,
3484 (dump_func
)dump_finish_hook_chain_request
,
3485 (dump_func
)dump_get_hook_info_request
,
3486 (dump_func
)dump_create_class_request
,
3487 (dump_func
)dump_destroy_class_request
,
3488 (dump_func
)dump_set_class_info_request
,
3489 (dump_func
)dump_set_clipboard_info_request
,
3490 (dump_func
)dump_open_token_request
,
3491 (dump_func
)dump_set_global_windows_request
,
3492 (dump_func
)dump_adjust_token_privileges_request
,
3493 (dump_func
)dump_get_token_privileges_request
,
3494 (dump_func
)dump_check_token_privileges_request
,
3495 (dump_func
)dump_duplicate_token_request
,
3496 (dump_func
)dump_access_check_request
,
3497 (dump_func
)dump_get_token_user_request
,
3498 (dump_func
)dump_get_token_groups_request
,
3499 (dump_func
)dump_create_mailslot_request
,
3500 (dump_func
)dump_open_mailslot_request
,
3501 (dump_func
)dump_set_mailslot_info_request
,
3502 (dump_func
)dump_create_directory_request
,
3503 (dump_func
)dump_open_directory_request
,
3504 (dump_func
)dump_create_symlink_request
,
3505 (dump_func
)dump_open_symlink_request
,
3506 (dump_func
)dump_query_symlink_request
,
3509 static const dump_func reply_dumpers
[REQ_NB_REQUESTS
] = {
3510 (dump_func
)dump_new_process_reply
,
3511 (dump_func
)dump_get_new_process_info_reply
,
3512 (dump_func
)dump_new_thread_reply
,
3513 (dump_func
)dump_get_startup_info_reply
,
3515 (dump_func
)dump_init_thread_reply
,
3516 (dump_func
)dump_terminate_process_reply
,
3517 (dump_func
)dump_terminate_thread_reply
,
3518 (dump_func
)dump_get_process_info_reply
,
3520 (dump_func
)dump_get_thread_info_reply
,
3522 (dump_func
)dump_get_dll_info_reply
,
3523 (dump_func
)dump_suspend_thread_reply
,
3524 (dump_func
)dump_resume_thread_reply
,
3528 (dump_func
)dump_get_apc_reply
,
3530 (dump_func
)dump_set_handle_info_reply
,
3531 (dump_func
)dump_dup_handle_reply
,
3532 (dump_func
)dump_open_process_reply
,
3533 (dump_func
)dump_open_thread_reply
,
3535 (dump_func
)dump_create_event_reply
,
3537 (dump_func
)dump_open_event_reply
,
3538 (dump_func
)dump_create_mutex_reply
,
3539 (dump_func
)dump_release_mutex_reply
,
3540 (dump_func
)dump_open_mutex_reply
,
3541 (dump_func
)dump_create_semaphore_reply
,
3542 (dump_func
)dump_release_semaphore_reply
,
3543 (dump_func
)dump_open_semaphore_reply
,
3544 (dump_func
)dump_create_file_reply
,
3545 (dump_func
)dump_open_file_object_reply
,
3546 (dump_func
)dump_alloc_file_handle_reply
,
3547 (dump_func
)dump_get_handle_fd_reply
,
3548 (dump_func
)dump_flush_file_reply
,
3549 (dump_func
)dump_lock_file_reply
,
3552 (dump_func
)dump_create_socket_reply
,
3553 (dump_func
)dump_accept_socket_reply
,
3555 (dump_func
)dump_get_socket_event_reply
,
3558 (dump_func
)dump_alloc_console_reply
,
3560 (dump_func
)dump_get_console_renderer_events_reply
,
3561 (dump_func
)dump_open_console_reply
,
3562 (dump_func
)dump_get_console_wait_event_reply
,
3563 (dump_func
)dump_get_console_mode_reply
,
3566 (dump_func
)dump_get_console_input_info_reply
,
3568 (dump_func
)dump_get_console_input_history_reply
,
3569 (dump_func
)dump_create_console_output_reply
,
3571 (dump_func
)dump_get_console_output_info_reply
,
3572 (dump_func
)dump_write_console_input_reply
,
3573 (dump_func
)dump_read_console_input_reply
,
3574 (dump_func
)dump_write_console_output_reply
,
3575 (dump_func
)dump_fill_console_output_reply
,
3576 (dump_func
)dump_read_console_output_reply
,
3580 (dump_func
)dump_read_change_reply
,
3581 (dump_func
)dump_create_mapping_reply
,
3582 (dump_func
)dump_open_mapping_reply
,
3583 (dump_func
)dump_get_mapping_info_reply
,
3584 (dump_func
)dump_create_snapshot_reply
,
3585 (dump_func
)dump_next_process_reply
,
3586 (dump_func
)dump_next_thread_reply
,
3587 (dump_func
)dump_next_module_reply
,
3588 (dump_func
)dump_wait_debug_event_reply
,
3589 (dump_func
)dump_queue_exception_event_reply
,
3590 (dump_func
)dump_get_exception_status_reply
,
3594 (dump_func
)dump_debug_break_reply
,
3596 (dump_func
)dump_read_process_memory_reply
,
3598 (dump_func
)dump_create_key_reply
,
3599 (dump_func
)dump_open_key_reply
,
3602 (dump_func
)dump_enum_key_reply
,
3604 (dump_func
)dump_get_key_value_reply
,
3605 (dump_func
)dump_enum_key_value_reply
,
3611 (dump_func
)dump_create_timer_reply
,
3612 (dump_func
)dump_open_timer_reply
,
3613 (dump_func
)dump_set_timer_reply
,
3614 (dump_func
)dump_cancel_timer_reply
,
3615 (dump_func
)dump_get_timer_info_reply
,
3616 (dump_func
)dump_get_thread_context_reply
,
3617 (dump_func
)dump_set_thread_context_reply
,
3618 (dump_func
)dump_get_selector_entry_reply
,
3619 (dump_func
)dump_add_atom_reply
,
3621 (dump_func
)dump_find_atom_reply
,
3622 (dump_func
)dump_get_atom_information_reply
,
3625 (dump_func
)dump_init_atom_table_reply
,
3626 (dump_func
)dump_get_msg_queue_reply
,
3627 (dump_func
)dump_set_queue_mask_reply
,
3628 (dump_func
)dump_get_queue_status_reply
,
3629 (dump_func
)dump_get_process_idle_event_reply
,
3633 (dump_func
)dump_get_message_reply
,
3636 (dump_func
)dump_get_message_reply_reply
,
3637 (dump_func
)dump_set_win_timer_reply
,
3639 (dump_func
)dump_get_serial_info_reply
,
3643 (dump_func
)dump_create_named_pipe_reply
,
3644 (dump_func
)dump_open_named_pipe_reply
,
3648 (dump_func
)dump_get_named_pipe_info_reply
,
3649 (dump_func
)dump_create_window_reply
,
3651 (dump_func
)dump_get_desktop_window_reply
,
3652 (dump_func
)dump_set_window_owner_reply
,
3653 (dump_func
)dump_get_window_info_reply
,
3654 (dump_func
)dump_set_window_info_reply
,
3655 (dump_func
)dump_set_parent_reply
,
3656 (dump_func
)dump_get_window_parents_reply
,
3657 (dump_func
)dump_get_window_children_reply
,
3658 (dump_func
)dump_get_window_children_from_point_reply
,
3659 (dump_func
)dump_get_window_tree_reply
,
3660 (dump_func
)dump_set_window_pos_reply
,
3661 (dump_func
)dump_get_window_rectangles_reply
,
3662 (dump_func
)dump_get_window_text_reply
,
3664 (dump_func
)dump_get_windows_offset_reply
,
3665 (dump_func
)dump_get_visible_region_reply
,
3666 (dump_func
)dump_get_window_region_reply
,
3668 (dump_func
)dump_get_update_region_reply
,
3672 (dump_func
)dump_remove_window_property_reply
,
3673 (dump_func
)dump_get_window_property_reply
,
3674 (dump_func
)dump_get_window_properties_reply
,
3675 (dump_func
)dump_create_winstation_reply
,
3676 (dump_func
)dump_open_winstation_reply
,
3678 (dump_func
)dump_get_process_winstation_reply
,
3680 (dump_func
)dump_create_desktop_reply
,
3681 (dump_func
)dump_open_desktop_reply
,
3683 (dump_func
)dump_get_thread_desktop_reply
,
3685 (dump_func
)dump_set_user_object_info_reply
,
3687 (dump_func
)dump_get_thread_input_reply
,
3688 (dump_func
)dump_get_last_input_time_reply
,
3689 (dump_func
)dump_get_key_state_reply
,
3691 (dump_func
)dump_set_foreground_window_reply
,
3692 (dump_func
)dump_set_focus_window_reply
,
3693 (dump_func
)dump_set_active_window_reply
,
3694 (dump_func
)dump_set_capture_window_reply
,
3695 (dump_func
)dump_set_caret_window_reply
,
3696 (dump_func
)dump_set_caret_info_reply
,
3697 (dump_func
)dump_set_hook_reply
,
3698 (dump_func
)dump_remove_hook_reply
,
3699 (dump_func
)dump_start_hook_chain_reply
,
3701 (dump_func
)dump_get_hook_info_reply
,
3703 (dump_func
)dump_destroy_class_reply
,
3704 (dump_func
)dump_set_class_info_reply
,
3705 (dump_func
)dump_set_clipboard_info_reply
,
3706 (dump_func
)dump_open_token_reply
,
3707 (dump_func
)dump_set_global_windows_reply
,
3708 (dump_func
)dump_adjust_token_privileges_reply
,
3709 (dump_func
)dump_get_token_privileges_reply
,
3710 (dump_func
)dump_check_token_privileges_reply
,
3711 (dump_func
)dump_duplicate_token_reply
,
3712 (dump_func
)dump_access_check_reply
,
3713 (dump_func
)dump_get_token_user_reply
,
3714 (dump_func
)dump_get_token_groups_reply
,
3715 (dump_func
)dump_create_mailslot_reply
,
3716 (dump_func
)dump_open_mailslot_reply
,
3717 (dump_func
)dump_set_mailslot_info_reply
,
3718 (dump_func
)dump_create_directory_reply
,
3719 (dump_func
)dump_open_directory_reply
,
3720 (dump_func
)dump_create_symlink_reply
,
3721 (dump_func
)dump_open_symlink_reply
,
3722 (dump_func
)dump_query_symlink_reply
,
3725 static const char * const req_names
[REQ_NB_REQUESTS
] = {
3727 "get_new_process_info",
3730 "init_process_done",
3732 "terminate_process",
3758 "release_semaphore",
3762 "alloc_file_handle",
3772 "enable_socket_event",
3773 "set_socket_deferred",
3776 "get_console_renderer_events",
3778 "get_console_wait_event",
3781 "set_console_input_info",
3782 "get_console_input_info",
3783 "append_console_input_history",
3784 "get_console_input_history",
3785 "create_console_output",
3786 "set_console_output_info",
3787 "get_console_output_info",
3788 "write_console_input",
3789 "read_console_input",
3790 "write_console_output",
3791 "fill_console_output",
3792 "read_console_output",
3793 "move_console_output",
3794 "send_console_signal",
3795 "read_directory_changes",
3805 "queue_exception_event",
3806 "get_exception_status",
3807 "output_debug_string",
3808 "continue_debug_event",
3811 "set_debugger_kill_on_exit",
3812 "read_process_memory",
3813 "write_process_memory",
3826 "set_registry_notification",
3832 "get_thread_context",
3833 "set_thread_context",
3834 "get_selector_entry",
3838 "get_atom_information",
3839 "set_atom_information",
3845 "get_process_idle_event",
3847 "post_quit_message",
3848 "send_hardware_message",
3851 "accept_hardware_message",
3852 "get_message_reply",
3859 "create_named_pipe",
3861 "connect_named_pipe",
3863 "disconnect_named_pipe",
3864 "get_named_pipe_info",
3867 "get_desktop_window",
3872 "get_window_parents",
3873 "get_window_children",
3874 "get_window_children_from_point",
3877 "get_window_rectangles",
3880 "get_windows_offset",
3881 "get_visible_region",
3882 "get_window_region",
3883 "set_window_region",
3884 "get_update_region",
3885 "update_window_zorder",
3887 "set_window_property",
3888 "remove_window_property",
3889 "get_window_property",
3890 "get_window_properties",
3891 "create_winstation",
3894 "get_process_winstation",
3895 "set_process_winstation",
3899 "get_thread_desktop",
3900 "set_thread_desktop",
3901 "set_user_object_info",
3902 "attach_thread_input",
3904 "get_last_input_time",
3907 "set_foreground_window",
3909 "set_active_window",
3910 "set_capture_window",
3916 "finish_hook_chain",
3921 "set_clipboard_info",
3923 "set_global_windows",
3924 "adjust_token_privileges",
3925 "get_token_privileges",
3926 "check_token_privileges",
3933 "set_mailslot_info",
3947 { "ACCESS_DENIED", STATUS_ACCESS_DENIED
},
3948 { "ACCESS_VIOLATION", STATUS_ACCESS_VIOLATION
},
3949 { "ALERTED", STATUS_ALERTED
},
3950 { "ALIAS_EXISTS", STATUS_ALIAS_EXISTS
},
3951 { "BAD_DEVICE_TYPE", STATUS_BAD_DEVICE_TYPE
},
3952 { "BUFFER_OVERFLOW", STATUS_BUFFER_OVERFLOW
},
3953 { "BUFFER_TOO_SMALL", STATUS_BUFFER_TOO_SMALL
},
3954 { "CANCELLED", STATUS_CANCELLED
},
3955 { "CHILD_MUST_BE_VOLATILE", STATUS_CHILD_MUST_BE_VOLATILE
},
3956 { "DEVICE_BUSY", STATUS_DEVICE_BUSY
},
3957 { "DIRECTORY_NOT_EMPTY", STATUS_DIRECTORY_NOT_EMPTY
},
3958 { "DISK_FULL", STATUS_DISK_FULL
},
3959 { "DLL_NOT_FOUND", STATUS_DLL_NOT_FOUND
},
3960 { "ERROR_CLASS_ALREADY_EXISTS", 0xc0010000 | ERROR_CLASS_ALREADY_EXISTS
},
3961 { "ERROR_CLASS_DOES_NOT_EXIST", 0xc0010000 | ERROR_CLASS_DOES_NOT_EXIST
},
3962 { "ERROR_CLASS_HAS_WINDOWS", 0xc0010000 | ERROR_CLASS_HAS_WINDOWS
},
3963 { "ERROR_CLIPBOARD_NOT_OPEN", 0xc0010000 | ERROR_CLIPBOARD_NOT_OPEN
},
3964 { "ERROR_INVALID_INDEX", 0xc0010000 | ERROR_INVALID_INDEX
},
3965 { "ERROR_INVALID_WINDOW_HANDLE", 0xc0010000 | ERROR_INVALID_WINDOW_HANDLE
},
3966 { "FILE_IS_A_DIRECTORY", STATUS_FILE_IS_A_DIRECTORY
},
3967 { "FILE_LOCK_CONFLICT", STATUS_FILE_LOCK_CONFLICT
},
3968 { "HANDLES_CLOSED", STATUS_HANDLES_CLOSED
},
3969 { "HANDLE_NOT_CLOSABLE", STATUS_HANDLE_NOT_CLOSABLE
},
3970 { "ILLEGAL_FUNCTION", STATUS_ILLEGAL_FUNCTION
},
3971 { "INSTANCE_NOT_AVAILABLE", STATUS_INSTANCE_NOT_AVAILABLE
},
3972 { "INVALID_CID", STATUS_INVALID_CID
},
3973 { "INVALID_FILE_FOR_SECTION", STATUS_INVALID_FILE_FOR_SECTION
},
3974 { "INVALID_HANDLE", STATUS_INVALID_HANDLE
},
3975 { "INVALID_PARAMETER", STATUS_INVALID_PARAMETER
},
3976 { "IO_TIMEOUT", STATUS_IO_TIMEOUT
},
3977 { "KEY_DELETED", STATUS_KEY_DELETED
},
3978 { "MAPPED_FILE_SIZE_ZERO", STATUS_MAPPED_FILE_SIZE_ZERO
},
3979 { "MEDIA_WRITE_PROTECTED", STATUS_MEDIA_WRITE_PROTECTED
},
3980 { "MUTANT_NOT_OWNED", STATUS_MUTANT_NOT_OWNED
},
3981 { "NAME_TOO_LONG", STATUS_NAME_TOO_LONG
},
3982 { "NOT_ALL_ASSIGNED", STATUS_NOT_ALL_ASSIGNED
},
3983 { "NOT_A_DIRECTORY", STATUS_NOT_A_DIRECTORY
},
3984 { "NOT_IMPLEMENTED", STATUS_NOT_IMPLEMENTED
},
3985 { "NOT_REGISTRY_FILE", STATUS_NOT_REGISTRY_FILE
},
3986 { "NO_DATA_DETECTED", STATUS_NO_DATA_DETECTED
},
3987 { "NO_IMPERSONATION_TOKEN", STATUS_NO_IMPERSONATION_TOKEN
},
3988 { "NO_MEMORY", STATUS_NO_MEMORY
},
3989 { "NO_MORE_ENTRIES", STATUS_NO_MORE_ENTRIES
},
3990 { "NO_MORE_FILES", STATUS_NO_MORE_FILES
},
3991 { "NO_SUCH_DEVICE", STATUS_NO_SUCH_DEVICE
},
3992 { "NO_SUCH_FILE", STATUS_NO_SUCH_FILE
},
3993 { "NO_TOKEN", STATUS_NO_TOKEN
},
3994 { "OBJECT_NAME_COLLISION", STATUS_OBJECT_NAME_COLLISION
},
3995 { "OBJECT_NAME_EXISTS", STATUS_OBJECT_NAME_EXISTS
},
3996 { "OBJECT_NAME_INVALID", STATUS_OBJECT_NAME_INVALID
},
3997 { "OBJECT_NAME_NOT_FOUND", STATUS_OBJECT_NAME_NOT_FOUND
},
3998 { "OBJECT_PATH_INVALID", STATUS_OBJECT_PATH_INVALID
},
3999 { "OBJECT_PATH_NOT_FOUND", STATUS_OBJECT_PATH_NOT_FOUND
},
4000 { "OBJECT_PATH_SYNTAX_BAD", STATUS_OBJECT_PATH_SYNTAX_BAD
},
4001 { "OBJECT_TYPE_MISMATCH", STATUS_OBJECT_TYPE_MISMATCH
},
4002 { "PENDING", STATUS_PENDING
},
4003 { "PIPE_BUSY", STATUS_PIPE_BUSY
},
4004 { "PIPE_CONNECTED", STATUS_PIPE_CONNECTED
},
4005 { "PIPE_DISCONNECTED", STATUS_PIPE_DISCONNECTED
},
4006 { "PIPE_LISTENING", STATUS_PIPE_LISTENING
},
4007 { "PIPE_NOT_AVAILABLE", STATUS_PIPE_NOT_AVAILABLE
},
4008 { "PRIVILEGE_NOT_HELD", STATUS_PRIVILEGE_NOT_HELD
},
4009 { "SECTION_TOO_BIG", STATUS_SECTION_TOO_BIG
},
4010 { "SEMAPHORE_LIMIT_EXCEEDED", STATUS_SEMAPHORE_LIMIT_EXCEEDED
},
4011 { "SHARING_VIOLATION", STATUS_SHARING_VIOLATION
},
4012 { "SUSPEND_COUNT_EXCEEDED", STATUS_SUSPEND_COUNT_EXCEEDED
},
4013 { "TIMEOUT", STATUS_TIMEOUT
},
4014 { "TOO_MANY_OPENED_FILES", STATUS_TOO_MANY_OPENED_FILES
},
4015 { "UNSUCCESSFUL", STATUS_UNSUCCESSFUL
},
4016 { "VOLUME_DISMOUNTED", STATUS_VOLUME_DISMOUNTED
},
4017 { "WAS_LOCKED", STATUS_WAS_LOCKED
},
4021 /* ### make_requests end ### */
4022 /* Everything above this line is generated automatically by tools/make_requests */
4024 static const char *get_status_name( unsigned int status
)
4027 static char buffer
[10];
4031 for (i
= 0; status_names
[i
].name
; i
++)
4032 if (status_names
[i
].value
== status
) return status_names
[i
].name
;
4034 sprintf( buffer
, "%x", status
);
4038 void trace_request(void)
4040 enum request req
= current
->req
.request_header
.req
;
4041 if (req
< REQ_NB_REQUESTS
)
4043 fprintf( stderr
, "%04x: %s(", current
->id
, req_names
[req
] );
4044 if (req_dumpers
[req
])
4046 cur_data
= get_req_data();
4047 cur_size
= get_req_data_size();
4048 req_dumpers
[req
]( ¤t
->req
);
4050 fprintf( stderr
, " )\n" );
4052 else fprintf( stderr
, "%04x: %d(?)\n", current
->id
, req
);
4055 void trace_reply( enum request req
, const union generic_reply
*reply
)
4057 if (req
< REQ_NB_REQUESTS
)
4059 fprintf( stderr
, "%04x: %s() = %s",
4060 current
->id
, req_names
[req
], get_status_name(current
->error
) );
4061 if (reply_dumpers
[req
])
4063 fprintf( stderr
, " {" );
4064 cur_data
= current
->reply_data
;
4065 cur_size
= reply
->reply_header
.reply_size
;
4066 reply_dumpers
[req
]( reply
);
4067 fprintf( stderr
, " }" );
4069 fputc( '\n', stderr
);
4071 else fprintf( stderr
, "%04x: %d() = %s\n",
4072 current
->id
, req
, get_status_name(current
->error
) );