2 * Server request tracing
4 * Copyright (C) 1999 Alexandre Julliard
6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Lesser General Public
8 * License as published by the Free Software Foundation; either
9 * version 2.1 of the License, or (at your option) any later version.
11 * This library is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 * Lesser General Public License for more details.
16 * You should have received a copy of the GNU Lesser General Public
17 * License along with this library; if not, write to the Free Software
18 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
22 #include "wine/port.h"
27 #include <sys/types.h>
41 static const void *cur_data
;
44 /* utility functions */
46 inline static void remove_data( size_t size
)
48 cur_data
= (const char *)cur_data
+ size
;
52 static void dump_uints( const int *ptr
, int len
)
57 fprintf( stderr
, "%08x", *ptr
++ );
58 if (--len
) fputc( ',', stderr
);
63 static void dump_abs_time( const abs_time_t
*time
)
68 if (!time
->sec
&& !time
->usec
)
70 fprintf( stderr
, "0" );
73 gettimeofday( &tv
, NULL
);
74 secs
= time
->sec
- tv
.tv_sec
;
75 if ((usecs
= time
->usec
- tv
.tv_usec
) < 0)
80 if (secs
> 0 || (secs
== 0 && usecs
>= 0))
81 fprintf( stderr
, "%d.%06d (+%d.%06d)", time
->sec
, time
->usec
, secs
, usecs
);
83 fprintf( stderr
, "%d.%06d (-%d.%06d)", time
->sec
, time
->usec
, abs(secs
+1), 1000000-usecs
);
86 static void dump_rectangle( const rectangle_t
*rect
)
88 fprintf( stderr
, "{%d,%d;%d,%d}",
89 rect
->left
, rect
->top
, rect
->right
, rect
->bottom
);
92 static void dump_char_info( const char_info_t
*info
)
94 fprintf( stderr
, "{'" );
95 dump_strW( &info
->ch
, 1, stderr
, "\'\'" );
96 fprintf( stderr
, "',%04x}", info
->attr
);
99 static void dump_context( const CONTEXT
*context
)
102 fprintf( stderr
, "{flags=%08lx,eax=%08lx,ebx=%08lx,ecx=%08lx,edx=%08lx,esi=%08lx,edi=%08lx,"
103 "ebp=%08lx,eip=%08lx,esp=%08lx,eflags=%08lx,cs=%04lx,ds=%04lx,es=%04lx,"
104 "fs=%04lx,gs=%04lx,dr0=%08lx,dr1=%08lx,dr2=%08lx,dr3=%08lx,dr6=%08lx,dr7=%08lx,",
105 context
->ContextFlags
, context
->Eax
, context
->Ebx
, context
->Ecx
, context
->Edx
,
106 context
->Esi
, context
->Edi
, context
->Ebp
, context
->Eip
, context
->Esp
, context
->EFlags
,
107 context
->SegCs
, context
->SegDs
, context
->SegEs
, context
->SegFs
, context
->SegGs
,
108 context
->Dr0
, context
->Dr1
, context
->Dr2
, context
->Dr3
, context
->Dr6
, context
->Dr7
);
109 fprintf( stderr
, "float=" );
110 dump_uints( (const int *)&context
->FloatSave
, sizeof(context
->FloatSave
) / sizeof(int) );
111 fprintf( stderr
, "}" );
113 dump_uints( (const int *)context
, sizeof(*context
) / sizeof(int) );
117 static void dump_exc_record( const EXCEPTION_RECORD
*rec
)
120 fprintf( stderr
, "{code=%lx,flags=%lx,rec=%p,addr=%p,params={",
121 rec
->ExceptionCode
, rec
->ExceptionFlags
, rec
->ExceptionRecord
,
122 rec
->ExceptionAddress
);
123 for (i
= 0; i
< min(rec
->NumberParameters
,EXCEPTION_MAXIMUM_PARAMETERS
); i
++)
125 if (i
) fputc( ',', stderr
);
126 fprintf( stderr
, "%lx", rec
->ExceptionInformation
[i
] );
128 fputc( '}', stderr
);
131 static void dump_varargs_ints( size_t size
)
133 const int *data
= cur_data
;
134 size_t len
= size
/ sizeof(*data
);
136 fputc( '{', stderr
);
139 fprintf( stderr
, "%d", *data
++ );
140 if (--len
) fputc( ',', stderr
);
142 fputc( '}', stderr
);
146 static void dump_varargs_handles( size_t size
)
148 const obj_handle_t
*data
= cur_data
;
149 size_t len
= size
/ sizeof(*data
);
151 fputc( '{', stderr
);
154 fprintf( stderr
, "%p", *data
++ );
155 if (--len
) fputc( ',', stderr
);
157 fputc( '}', stderr
);
161 static void dump_varargs_user_handles( size_t size
)
163 const user_handle_t
*data
= cur_data
;
164 size_t len
= size
/ sizeof(*data
);
166 fputc( '{', stderr
);
169 fprintf( stderr
, "%p", *data
++ );
170 if (--len
) fputc( ',', stderr
);
172 fputc( '}', stderr
);
176 static void dump_varargs_bytes( size_t size
)
178 const unsigned char *data
= cur_data
;
181 fputc( '{', stderr
);
184 fprintf( stderr
, "%02x", *data
++ );
185 if (--len
) fputc( ',', stderr
);
187 fputc( '}', stderr
);
191 static void dump_varargs_string( size_t size
)
193 fprintf( stderr
, "\"%.*s\"", (int)size
, (const char *)cur_data
);
197 static void dump_varargs_unicode_str( size_t size
)
199 fprintf( stderr
, "L\"" );
200 dump_strW( cur_data
, size
/ sizeof(WCHAR
), stderr
, "\"\"" );
201 fputc( '\"', stderr
);
205 static void dump_varargs_context( size_t size
)
209 fprintf( stderr
, "{}" );
212 dump_context( cur_data
);
216 static void dump_varargs_exc_event( size_t size
)
218 const CONTEXT
*ptr
= cur_data
;
222 fprintf( stderr
, "{}" );
225 fprintf( stderr
, "{context=" );
227 fprintf( stderr
, ",rec=" );
228 dump_exc_record( (const EXCEPTION_RECORD
*)(ptr
+ 1) );
229 fputc( '}', stderr
);
233 static void dump_varargs_debug_event( size_t size
)
235 const debug_event_t
*event
= cur_data
;
239 fprintf( stderr
, "{}" );
244 case EXCEPTION_DEBUG_EVENT
:
245 fprintf( stderr
, "{exception," );
246 dump_exc_record( &event
->info
.exception
.record
);
247 fprintf( stderr
, ",first=%d}", event
->info
.exception
.first
);
249 case CREATE_THREAD_DEBUG_EVENT
:
250 fprintf( stderr
, "{create_thread,thread=%p,teb=%p,start=%p}",
251 event
->info
.create_thread
.handle
, event
->info
.create_thread
.teb
,
252 event
->info
.create_thread
.start
);
254 case CREATE_PROCESS_DEBUG_EVENT
:
255 fprintf( stderr
, "{create_process,file=%p,process=%p,thread=%p,base=%p,offset=%d,"
256 "size=%d,teb=%p,start=%p,name=%p,unicode=%d}",
257 event
->info
.create_process
.file
, event
->info
.create_process
.process
,
258 event
->info
.create_process
.thread
, event
->info
.create_process
.base
,
259 event
->info
.create_process
.dbg_offset
, event
->info
.create_process
.dbg_size
,
260 event
->info
.create_process
.teb
, event
->info
.create_process
.start
,
261 event
->info
.create_process
.name
, event
->info
.create_process
.unicode
);
263 case EXIT_THREAD_DEBUG_EVENT
:
264 fprintf( stderr
, "{exit_thread,code=%d}", event
->info
.exit
.exit_code
);
266 case EXIT_PROCESS_DEBUG_EVENT
:
267 fprintf( stderr
, "{exit_process,code=%d}", event
->info
.exit
.exit_code
);
269 case LOAD_DLL_DEBUG_EVENT
:
270 fprintf( stderr
, "{load_dll,file=%p,base=%p,offset=%d,size=%d,name=%p,unicode=%d}",
271 event
->info
.load_dll
.handle
, event
->info
.load_dll
.base
,
272 event
->info
.load_dll
.dbg_offset
, event
->info
.load_dll
.dbg_size
,
273 event
->info
.load_dll
.name
, event
->info
.load_dll
.unicode
);
275 case UNLOAD_DLL_DEBUG_EVENT
:
276 fprintf( stderr
, "{unload_dll,base=%p}", event
->info
.unload_dll
.base
);
278 case OUTPUT_DEBUG_STRING_EVENT
:
279 fprintf( stderr
, "{output_string,data=%p,unicode=%d,len=%d}",
280 event
->info
.output_string
.string
, event
->info
.output_string
.unicode
,
281 event
->info
.output_string
.length
);
284 fprintf( stderr
, "{rip,err=%d,type=%d}",
285 event
->info
.rip_info
.error
, event
->info
.rip_info
.type
);
287 case 0: /* zero is the code returned on timeouts */
288 fprintf( stderr
, "{}" );
291 fprintf( stderr
, "{code=??? (%d)}", event
->code
);
297 /* dump a unicode string contained in a buffer; helper for dump_varargs_startup_info */
298 static void dump_inline_unicode_string( const UNICODE_STRING
*str
, const void *data
, size_t size
)
300 size_t length
= str
->Length
/ sizeof(WCHAR
);
301 size_t offset
= (size_t)str
->Buffer
;
303 if (offset
>= size
) return;
304 if (offset
+ length
> size
) length
= size
- offset
;
305 dump_strW( (const WCHAR
*)data
+ offset
/sizeof(WCHAR
), length
, stderr
, "\"\"" );
308 static void dump_varargs_startup_info( size_t size
)
310 const RTL_USER_PROCESS_PARAMETERS
*ptr
= cur_data
;
311 RTL_USER_PROCESS_PARAMETERS params
;
313 if (size
< sizeof(params
.Size
))
315 fprintf( stderr
, "{}" );
318 if (size
> ptr
->Size
) size
= ptr
->Size
;
319 memset( ¶ms
, 0, sizeof(params
) );
320 memcpy( ¶ms
, ptr
, min( size
, sizeof(params
) ));
322 fprintf( stderr
, "{AllocationSize=%lx,", params
.AllocationSize
);
323 fprintf( stderr
, "Size=%lx,", params
.Size
);
324 fprintf( stderr
, "Flags=%lx,", params
.Flags
);
325 fprintf( stderr
, "DebugFlags=%lx,", params
.DebugFlags
);
326 fprintf( stderr
, "ConsoleHandle=%p,", params
.ConsoleHandle
);
327 fprintf( stderr
, "ConsoleFlags=%lx,", params
.ConsoleFlags
);
328 fprintf( stderr
, "hStdInput=%p,", params
.hStdInput
);
329 fprintf( stderr
, "hStdOutput=%p,", params
.hStdOutput
);
330 fprintf( stderr
, "hStdError=%p,", params
.hStdError
);
331 fprintf( stderr
, "CurrentDirectory.Handle=%p,", params
.CurrentDirectory
.Handle
);
332 fprintf( stderr
, "dwX=%ld,", params
.dwX
);
333 fprintf( stderr
, "dwY=%ld,", params
.dwY
);
334 fprintf( stderr
, "dwXSize=%ld,", params
.dwXSize
);
335 fprintf( stderr
, "dwYSize=%ld,", params
.dwYSize
);
336 fprintf( stderr
, "dwXCountChars=%ld,", params
.dwXCountChars
);
337 fprintf( stderr
, "dwYCountChars=%ld,", params
.dwYCountChars
);
338 fprintf( stderr
, "dwFillAttribute=%lx,", params
.dwFillAttribute
);
339 fprintf( stderr
, "dwFlags=%lx,", params
.dwFlags
);
340 fprintf( stderr
, "wShowWindow=%lx,", params
.wShowWindow
);
341 fprintf( stderr
, "CurrentDirectory.DosPath=L\"" );
342 dump_inline_unicode_string( ¶ms
.CurrentDirectory
.DosPath
, cur_data
, size
);
343 fprintf( stderr
, "\",DllPath=L\"" );
344 dump_inline_unicode_string( ¶ms
.DllPath
, cur_data
, size
);
345 fprintf( stderr
, "\",ImagePathName=L\"" );
346 dump_inline_unicode_string( ¶ms
.ImagePathName
, cur_data
, size
);
347 fprintf( stderr
, "\",CommandLine=L\"" );
348 dump_inline_unicode_string( ¶ms
.CommandLine
, cur_data
, size
);
349 fprintf( stderr
, "\",WindowTitle=L\"" );
350 dump_inline_unicode_string( ¶ms
.WindowTitle
, cur_data
, size
);
351 fprintf( stderr
, "\",Desktop=L\"" );
352 dump_inline_unicode_string( ¶ms
.Desktop
, cur_data
, size
);
353 fprintf( stderr
, "\",ShellInfo=L\"" );
354 dump_inline_unicode_string( ¶ms
.ShellInfo
, cur_data
, size
);
355 fprintf( stderr
, "\",RuntimeInfo=L\"" );
356 dump_inline_unicode_string( ¶ms
.RuntimeInfo
, cur_data
, size
);
357 fprintf( stderr
, "\"}" );
361 static void dump_varargs_input_records( size_t size
)
363 const INPUT_RECORD
*rec
= cur_data
;
364 size_t len
= size
/ sizeof(*rec
);
366 fputc( '{', stderr
);
369 fprintf( stderr
, "{%04x,...}", rec
->EventType
);
371 if (--len
) fputc( ',', stderr
);
373 fputc( '}', stderr
);
377 static void dump_varargs_rectangles( size_t size
)
379 const rectangle_t
*rect
= cur_data
;
380 size_t len
= size
/ sizeof(*rect
);
382 fputc( '{', stderr
);
385 dump_rectangle( rect
++ );
386 if (--len
) fputc( ',', stderr
);
388 fputc( '}', stderr
);
392 static void dump_varargs_properties( size_t size
)
394 const property_data_t
*prop
= cur_data
;
395 size_t len
= size
/ sizeof(*prop
);
397 fputc( '{', stderr
);
400 fprintf( stderr
, "{atom=%04x,str=%d,handle=%p}",
401 prop
->atom
, prop
->string
, prop
->handle
);
403 if (--len
) fputc( ',', stderr
);
405 fputc( '}', stderr
);
409 static void dump_varargs_LUID_AND_ATTRIBUTES( size_t size
)
411 const LUID_AND_ATTRIBUTES
*lat
= cur_data
;
412 size_t len
= size
/ sizeof(*lat
);
414 fputc( '{', stderr
);
417 fprintf( stderr
, "{luid=%08lx%08lx,attr=%lx}",
418 lat
->Luid
.HighPart
, lat
->Luid
.LowPart
, lat
->Attributes
);
420 if (--len
) fputc( ',', stderr
);
422 fputc( '}', stderr
);
426 static void dump_inline_sid( const SID
*sid
, size_t size
)
431 if ((FIELD_OFFSET(SID
, SubAuthority
[0]) > size
) ||
432 (FIELD_OFFSET(SID
, SubAuthority
[sid
->SubAuthorityCount
]) > size
))
434 fprintf( stderr
, "<invalid sid>" );
438 fputc( '{', stderr
);
439 fprintf( stderr
, "S-%u-%lu", sid
->Revision
, MAKELONG(
440 MAKEWORD( sid
->IdentifierAuthority
.Value
[5],
441 sid
->IdentifierAuthority
.Value
[4] ),
442 MAKEWORD( sid
->IdentifierAuthority
.Value
[3],
443 sid
->IdentifierAuthority
.Value
[2] ) ) );
444 for (i
= 0; i
< sid
->SubAuthorityCount
; i
++)
445 fprintf( stderr
, "-%lu", sid
->SubAuthority
[i
] );
446 fputc( '}', stderr
);
449 static void dump_varargs_SID( size_t size
)
451 const SID
*sid
= cur_data
;
452 dump_inline_sid( sid
, size
);
456 static void dump_inline_acl( const ACL
*acl
, size_t size
)
458 const ACE_HEADER
*ace
;
460 fputc( '{', stderr
);
464 if (size
< sizeof(ACL
))
466 fprintf( stderr
, "<invalid acl>}\n" );
470 ace
= (const ACE_HEADER
*)(acl
+ 1);
471 for (i
= 0; i
< acl
->AceCount
; i
++)
473 const SID
*sid
= NULL
;
476 if (size
< sizeof(ACE_HEADER
))
478 if (size
< ace
->AceSize
)
480 size
-= ace
->AceSize
;
481 if (i
!= 0) fputc( ',', stderr
);
482 fprintf( stderr
, "{AceType=" );
483 switch (ace
->AceType
)
485 case ACCESS_DENIED_ACE_TYPE
:
486 sid
= (const SID
*)&((const ACCESS_DENIED_ACE
*)ace
)->SidStart
;
487 sid_size
= ace
->AceSize
- FIELD_OFFSET(ACCESS_DENIED_ACE
, SidStart
);
488 fprintf( stderr
, "ACCESS_DENIED_ACE_TYPE,Mask=%lx",
489 ((const ACCESS_DENIED_ACE
*)ace
)->Mask
);
491 case ACCESS_ALLOWED_ACE_TYPE
:
492 sid
= (const SID
*)&((const ACCESS_ALLOWED_ACE
*)ace
)->SidStart
;
493 sid_size
= ace
->AceSize
- FIELD_OFFSET(ACCESS_ALLOWED_ACE
, SidStart
);
494 fprintf( stderr
, "ACCESS_ALLOWED_ACE_TYPE,Mask=%lx",
495 ((const ACCESS_ALLOWED_ACE
*)ace
)->Mask
);
497 case SYSTEM_AUDIT_ACE_TYPE
:
498 sid
= (const SID
*)&((const SYSTEM_AUDIT_ACE
*)ace
)->SidStart
;
499 sid_size
= ace
->AceSize
- FIELD_OFFSET(SYSTEM_AUDIT_ACE
, SidStart
);
500 fprintf( stderr
, "SYSTEM_AUDIT_ACE_TYPE,Mask=%lx",
501 ((const SYSTEM_AUDIT_ACE
*)ace
)->Mask
);
503 case SYSTEM_ALARM_ACE_TYPE
:
504 sid
= (const SID
*)&((const SYSTEM_ALARM_ACE
*)ace
)->SidStart
;
505 sid_size
= ace
->AceSize
- FIELD_OFFSET(SYSTEM_ALARM_ACE
, SidStart
);
506 fprintf( stderr
, "SYSTEM_ALARM_ACE_TYPE,Mask=%lx",
507 ((const SYSTEM_ALARM_ACE
*)ace
)->Mask
);
510 fprintf( stderr
, "unknown<%d>", ace
->AceType
);
513 fprintf( stderr
, ",AceFlags=%x,Sid=", ace
->AceFlags
);
515 dump_inline_sid( sid
, sid_size
);
516 ace
= (const ACE_HEADER
*)((const char *)ace
+ ace
->AceSize
);
517 fputc( '}', stderr
);
520 fputc( '}', stderr
);
523 static void dump_inline_security_descriptor( const struct security_descriptor
*sd
, size_t size
)
525 fputc( '{', stderr
);
526 if (size
>= sizeof(struct security_descriptor
))
528 size_t offset
= sizeof(struct security_descriptor
);
529 fprintf( stderr
, "control=%08x", sd
->control
);
530 fprintf( stderr
, ",owner=" );
531 if ((sd
->owner_len
> FIELD_OFFSET(SID
, SubAuthority
[255])) || (offset
+ sd
->owner_len
> size
))
533 dump_inline_sid( (const SID
*)((const char *)sd
+ offset
), sd
->owner_len
);
534 offset
+= sd
->owner_len
;
535 fprintf( stderr
, ",group=" );
536 if ((sd
->group_len
> FIELD_OFFSET(SID
, SubAuthority
[255])) || (offset
+ sd
->group_len
> size
))
538 dump_inline_sid( (const SID
*)((const char *)sd
+ offset
), sd
->group_len
);
539 offset
+= sd
->group_len
;
540 fprintf( stderr
, ",sacl=" );
541 if ((sd
->sacl_len
>= MAX_ACL_LEN
) || (offset
+ sd
->sacl_len
> size
))
543 dump_inline_acl( (const ACL
*)((const char *)sd
+ offset
), sd
->sacl_len
);
544 offset
+= sd
->sacl_len
;
545 fprintf( stderr
, ",dacl=" );
546 if ((sd
->dacl_len
>= MAX_ACL_LEN
) || (offset
+ sd
->dacl_len
> size
))
548 dump_inline_acl( (const ACL
*)((const char *)sd
+ offset
), sd
->dacl_len
);
549 offset
+= sd
->dacl_len
;
551 fputc( '}', stderr
);
554 static void dump_varargs_security_descriptor( size_t size
)
556 const struct security_descriptor
*sd
= cur_data
;
557 dump_inline_security_descriptor( sd
, size
);
561 typedef void (*dump_func
)( const void *req
);
563 /* Everything below this line is generated automatically by tools/make_requests */
564 /* ### make_requests begin ### */
566 static void dump_new_process_request( const struct new_process_request
*req
)
568 fprintf( stderr
, " inherit_all=%d,", req
->inherit_all
);
569 fprintf( stderr
, " create_flags=%08x,", req
->create_flags
);
570 fprintf( stderr
, " unix_pid=%d,", req
->unix_pid
);
571 fprintf( stderr
, " exe_file=%p,", req
->exe_file
);
572 fprintf( stderr
, " hstdin=%p,", req
->hstdin
);
573 fprintf( stderr
, " hstdout=%p,", req
->hstdout
);
574 fprintf( stderr
, " hstderr=%p,", req
->hstderr
);
575 fprintf( stderr
, " info=" );
576 dump_varargs_startup_info( cur_size
);
577 fputc( ',', stderr
);
578 fprintf( stderr
, " env=" );
579 dump_varargs_unicode_str( cur_size
);
582 static void dump_new_process_reply( const struct new_process_reply
*req
)
584 fprintf( stderr
, " info=%p", req
->info
);
587 static void dump_get_new_process_info_request( const struct get_new_process_info_request
*req
)
589 fprintf( stderr
, " info=%p,", req
->info
);
590 fprintf( stderr
, " pinherit=%d,", req
->pinherit
);
591 fprintf( stderr
, " tinherit=%d", req
->tinherit
);
594 static void dump_get_new_process_info_reply( const struct get_new_process_info_reply
*req
)
596 fprintf( stderr
, " pid=%04x,", req
->pid
);
597 fprintf( stderr
, " phandle=%p,", req
->phandle
);
598 fprintf( stderr
, " tid=%04x,", req
->tid
);
599 fprintf( stderr
, " thandle=%p,", req
->thandle
);
600 fprintf( stderr
, " success=%d", req
->success
);
603 static void dump_new_thread_request( const struct new_thread_request
*req
)
605 fprintf( stderr
, " suspend=%d,", req
->suspend
);
606 fprintf( stderr
, " inherit=%d,", req
->inherit
);
607 fprintf( stderr
, " request_fd=%d", req
->request_fd
);
610 static void dump_new_thread_reply( const struct new_thread_reply
*req
)
612 fprintf( stderr
, " tid=%04x,", req
->tid
);
613 fprintf( stderr
, " handle=%p", req
->handle
);
616 static void dump_get_startup_info_request( const struct get_startup_info_request
*req
)
620 static void dump_get_startup_info_reply( const struct get_startup_info_reply
*req
)
622 fprintf( stderr
, " create_flags=%08x,", req
->create_flags
);
623 fprintf( stderr
, " exe_file=%p,", req
->exe_file
);
624 fprintf( stderr
, " hstdin=%p,", req
->hstdin
);
625 fprintf( stderr
, " hstdout=%p,", req
->hstdout
);
626 fprintf( stderr
, " hstderr=%p,", req
->hstderr
);
627 fprintf( stderr
, " info=" );
628 dump_varargs_startup_info( cur_size
);
629 fputc( ',', stderr
);
630 fprintf( stderr
, " env=" );
631 dump_varargs_unicode_str( cur_size
);
634 static void dump_init_process_done_request( const struct init_process_done_request
*req
)
636 fprintf( stderr
, " module=%p,", req
->module
);
637 fprintf( stderr
, " module_size=%d,", req
->module_size
);
638 fprintf( stderr
, " entry=%p,", req
->entry
);
639 fprintf( stderr
, " name=%p,", req
->name
);
640 fprintf( stderr
, " exe_file=%p,", req
->exe_file
);
641 fprintf( stderr
, " gui=%d,", req
->gui
);
642 fprintf( stderr
, " filename=" );
643 dump_varargs_unicode_str( cur_size
);
646 static void dump_init_thread_request( const struct init_thread_request
*req
)
648 fprintf( stderr
, " unix_pid=%d,", req
->unix_pid
);
649 fprintf( stderr
, " unix_tid=%d,", req
->unix_tid
);
650 fprintf( stderr
, " teb=%p,", req
->teb
);
651 fprintf( stderr
, " peb=%p,", req
->peb
);
652 fprintf( stderr
, " entry=%p,", req
->entry
);
653 fprintf( stderr
, " ldt_copy=%p,", req
->ldt_copy
);
654 fprintf( stderr
, " reply_fd=%d,", req
->reply_fd
);
655 fprintf( stderr
, " wait_fd=%d,", req
->wait_fd
);
656 fprintf( stderr
, " debug_level=%d", req
->debug_level
);
659 static void dump_init_thread_reply( const struct init_thread_reply
*req
)
661 fprintf( stderr
, " pid=%04x,", req
->pid
);
662 fprintf( stderr
, " tid=%04x,", req
->tid
);
663 fprintf( stderr
, " info_size=%d,", req
->info_size
);
664 fprintf( stderr
, " server_start=%ld,", (long)req
->server_start
);
665 fprintf( stderr
, " version=%d", req
->version
);
668 static void dump_terminate_process_request( const struct terminate_process_request
*req
)
670 fprintf( stderr
, " handle=%p,", req
->handle
);
671 fprintf( stderr
, " exit_code=%d", req
->exit_code
);
674 static void dump_terminate_process_reply( const struct terminate_process_reply
*req
)
676 fprintf( stderr
, " self=%d", req
->self
);
679 static void dump_terminate_thread_request( const struct terminate_thread_request
*req
)
681 fprintf( stderr
, " handle=%p,", req
->handle
);
682 fprintf( stderr
, " exit_code=%d", req
->exit_code
);
685 static void dump_terminate_thread_reply( const struct terminate_thread_reply
*req
)
687 fprintf( stderr
, " self=%d,", req
->self
);
688 fprintf( stderr
, " last=%d", req
->last
);
691 static void dump_get_process_info_request( const struct get_process_info_request
*req
)
693 fprintf( stderr
, " handle=%p", req
->handle
);
696 static void dump_get_process_info_reply( const struct get_process_info_reply
*req
)
698 fprintf( stderr
, " pid=%04x,", req
->pid
);
699 fprintf( stderr
, " ppid=%04x,", req
->ppid
);
700 fprintf( stderr
, " exit_code=%d,", req
->exit_code
);
701 fprintf( stderr
, " priority=%d,", req
->priority
);
702 fprintf( stderr
, " process_affinity=%d,", req
->process_affinity
);
703 fprintf( stderr
, " system_affinity=%d,", req
->system_affinity
);
704 fprintf( stderr
, " peb=%p", req
->peb
);
707 static void dump_set_process_info_request( const struct set_process_info_request
*req
)
709 fprintf( stderr
, " handle=%p,", req
->handle
);
710 fprintf( stderr
, " mask=%d,", req
->mask
);
711 fprintf( stderr
, " priority=%d,", req
->priority
);
712 fprintf( stderr
, " affinity=%d", req
->affinity
);
715 static void dump_get_thread_info_request( const struct get_thread_info_request
*req
)
717 fprintf( stderr
, " handle=%p,", req
->handle
);
718 fprintf( stderr
, " tid_in=%04x", req
->tid_in
);
721 static void dump_get_thread_info_reply( const struct get_thread_info_reply
*req
)
723 fprintf( stderr
, " pid=%04x,", req
->pid
);
724 fprintf( stderr
, " tid=%04x,", req
->tid
);
725 fprintf( stderr
, " teb=%p,", req
->teb
);
726 fprintf( stderr
, " exit_code=%d,", req
->exit_code
);
727 fprintf( stderr
, " priority=%d,", req
->priority
);
728 fprintf( stderr
, " affinity=%d,", req
->affinity
);
729 fprintf( stderr
, " creation_time=%ld,", (long)req
->creation_time
);
730 fprintf( stderr
, " exit_time=%ld", (long)req
->exit_time
);
733 static void dump_set_thread_info_request( const struct set_thread_info_request
*req
)
735 fprintf( stderr
, " handle=%p,", req
->handle
);
736 fprintf( stderr
, " mask=%d,", req
->mask
);
737 fprintf( stderr
, " priority=%d,", req
->priority
);
738 fprintf( stderr
, " affinity=%d,", req
->affinity
);
739 fprintf( stderr
, " token=%p", req
->token
);
742 static void dump_get_dll_info_request( const struct get_dll_info_request
*req
)
744 fprintf( stderr
, " handle=%p,", req
->handle
);
745 fprintf( stderr
, " base_address=%p", req
->base_address
);
748 static void dump_get_dll_info_reply( const struct get_dll_info_reply
*req
)
750 fprintf( stderr
, " size=%d,", req
->size
);
751 fprintf( stderr
, " entry_point=%p,", req
->entry_point
);
752 fprintf( stderr
, " filename=" );
753 dump_varargs_unicode_str( cur_size
);
756 static void dump_suspend_thread_request( const struct suspend_thread_request
*req
)
758 fprintf( stderr
, " handle=%p", req
->handle
);
761 static void dump_suspend_thread_reply( const struct suspend_thread_reply
*req
)
763 fprintf( stderr
, " count=%d", req
->count
);
766 static void dump_resume_thread_request( const struct resume_thread_request
*req
)
768 fprintf( stderr
, " handle=%p", req
->handle
);
771 static void dump_resume_thread_reply( const struct resume_thread_reply
*req
)
773 fprintf( stderr
, " count=%d", req
->count
);
776 static void dump_load_dll_request( const struct load_dll_request
*req
)
778 fprintf( stderr
, " handle=%p,", req
->handle
);
779 fprintf( stderr
, " base=%p,", req
->base
);
780 fprintf( stderr
, " size=%d,", req
->size
);
781 fprintf( stderr
, " dbg_offset=%d,", req
->dbg_offset
);
782 fprintf( stderr
, " dbg_size=%d,", req
->dbg_size
);
783 fprintf( stderr
, " name=%p,", req
->name
);
784 fprintf( stderr
, " filename=" );
785 dump_varargs_unicode_str( cur_size
);
788 static void dump_unload_dll_request( const struct unload_dll_request
*req
)
790 fprintf( stderr
, " base=%p", req
->base
);
793 static void dump_queue_apc_request( const struct queue_apc_request
*req
)
795 fprintf( stderr
, " handle=%p,", req
->handle
);
796 fprintf( stderr
, " user=%d,", req
->user
);
797 fprintf( stderr
, " func=%p,", req
->func
);
798 fprintf( stderr
, " arg1=%p,", req
->arg1
);
799 fprintf( stderr
, " arg2=%p,", req
->arg2
);
800 fprintf( stderr
, " arg3=%p", req
->arg3
);
803 static void dump_get_apc_request( const struct get_apc_request
*req
)
805 fprintf( stderr
, " alertable=%d", req
->alertable
);
808 static void dump_get_apc_reply( const struct get_apc_reply
*req
)
810 fprintf( stderr
, " func=%p,", req
->func
);
811 fprintf( stderr
, " type=%d,", req
->type
);
812 fprintf( stderr
, " arg1=%p,", req
->arg1
);
813 fprintf( stderr
, " arg2=%p,", req
->arg2
);
814 fprintf( stderr
, " arg3=%p", req
->arg3
);
817 static void dump_close_handle_request( const struct close_handle_request
*req
)
819 fprintf( stderr
, " handle=%p", req
->handle
);
822 static void dump_close_handle_reply( const struct close_handle_reply
*req
)
824 fprintf( stderr
, " fd=%d", req
->fd
);
827 static void dump_set_handle_info_request( const struct set_handle_info_request
*req
)
829 fprintf( stderr
, " handle=%p,", req
->handle
);
830 fprintf( stderr
, " flags=%d,", req
->flags
);
831 fprintf( stderr
, " mask=%d", req
->mask
);
834 static void dump_set_handle_info_reply( const struct set_handle_info_reply
*req
)
836 fprintf( stderr
, " old_flags=%d", req
->old_flags
);
839 static void dump_dup_handle_request( const struct dup_handle_request
*req
)
841 fprintf( stderr
, " src_process=%p,", req
->src_process
);
842 fprintf( stderr
, " src_handle=%p,", req
->src_handle
);
843 fprintf( stderr
, " dst_process=%p,", req
->dst_process
);
844 fprintf( stderr
, " access=%08x,", req
->access
);
845 fprintf( stderr
, " inherit=%d,", req
->inherit
);
846 fprintf( stderr
, " options=%d", req
->options
);
849 static void dump_dup_handle_reply( const struct dup_handle_reply
*req
)
851 fprintf( stderr
, " handle=%p,", req
->handle
);
852 fprintf( stderr
, " fd=%d", req
->fd
);
855 static void dump_open_process_request( const struct open_process_request
*req
)
857 fprintf( stderr
, " pid=%04x,", req
->pid
);
858 fprintf( stderr
, " access=%08x,", req
->access
);
859 fprintf( stderr
, " inherit=%d", req
->inherit
);
862 static void dump_open_process_reply( const struct open_process_reply
*req
)
864 fprintf( stderr
, " handle=%p", req
->handle
);
867 static void dump_open_thread_request( const struct open_thread_request
*req
)
869 fprintf( stderr
, " tid=%04x,", req
->tid
);
870 fprintf( stderr
, " access=%08x,", req
->access
);
871 fprintf( stderr
, " inherit=%d", req
->inherit
);
874 static void dump_open_thread_reply( const struct open_thread_reply
*req
)
876 fprintf( stderr
, " handle=%p", req
->handle
);
879 static void dump_select_request( const struct select_request
*req
)
881 fprintf( stderr
, " flags=%d,", req
->flags
);
882 fprintf( stderr
, " cookie=%p,", req
->cookie
);
883 fprintf( stderr
, " signal=%p,", req
->signal
);
884 fprintf( stderr
, " timeout=" );
885 dump_abs_time( &req
->timeout
);
886 fprintf( stderr
, "," );
887 fprintf( stderr
, " handles=" );
888 dump_varargs_handles( cur_size
);
891 static void dump_create_event_request( const struct create_event_request
*req
)
893 fprintf( stderr
, " access=%08x,", req
->access
);
894 fprintf( stderr
, " manual_reset=%d,", req
->manual_reset
);
895 fprintf( stderr
, " initial_state=%d,", req
->initial_state
);
896 fprintf( stderr
, " inherit=%d,", req
->inherit
);
897 fprintf( stderr
, " name=" );
898 dump_varargs_unicode_str( cur_size
);
901 static void dump_create_event_reply( const struct create_event_reply
*req
)
903 fprintf( stderr
, " handle=%p", req
->handle
);
906 static void dump_event_op_request( const struct event_op_request
*req
)
908 fprintf( stderr
, " handle=%p,", req
->handle
);
909 fprintf( stderr
, " op=%d", req
->op
);
912 static void dump_open_event_request( const struct open_event_request
*req
)
914 fprintf( stderr
, " access=%08x,", req
->access
);
915 fprintf( stderr
, " inherit=%d,", req
->inherit
);
916 fprintf( stderr
, " name=" );
917 dump_varargs_unicode_str( cur_size
);
920 static void dump_open_event_reply( const struct open_event_reply
*req
)
922 fprintf( stderr
, " handle=%p", req
->handle
);
925 static void dump_create_mutex_request( const struct create_mutex_request
*req
)
927 fprintf( stderr
, " access=%08x,", req
->access
);
928 fprintf( stderr
, " owned=%d,", req
->owned
);
929 fprintf( stderr
, " inherit=%d,", req
->inherit
);
930 fprintf( stderr
, " name=" );
931 dump_varargs_unicode_str( cur_size
);
934 static void dump_create_mutex_reply( const struct create_mutex_reply
*req
)
936 fprintf( stderr
, " handle=%p", req
->handle
);
939 static void dump_release_mutex_request( const struct release_mutex_request
*req
)
941 fprintf( stderr
, " handle=%p", req
->handle
);
944 static void dump_release_mutex_reply( const struct release_mutex_reply
*req
)
946 fprintf( stderr
, " prev_count=%08x", req
->prev_count
);
949 static void dump_open_mutex_request( const struct open_mutex_request
*req
)
951 fprintf( stderr
, " access=%08x,", req
->access
);
952 fprintf( stderr
, " inherit=%d,", req
->inherit
);
953 fprintf( stderr
, " name=" );
954 dump_varargs_unicode_str( cur_size
);
957 static void dump_open_mutex_reply( const struct open_mutex_reply
*req
)
959 fprintf( stderr
, " handle=%p", req
->handle
);
962 static void dump_create_semaphore_request( const struct create_semaphore_request
*req
)
964 fprintf( stderr
, " access=%08x,", req
->access
);
965 fprintf( stderr
, " initial=%08x,", req
->initial
);
966 fprintf( stderr
, " max=%08x,", req
->max
);
967 fprintf( stderr
, " inherit=%d,", req
->inherit
);
968 fprintf( stderr
, " name=" );
969 dump_varargs_unicode_str( cur_size
);
972 static void dump_create_semaphore_reply( const struct create_semaphore_reply
*req
)
974 fprintf( stderr
, " handle=%p", req
->handle
);
977 static void dump_release_semaphore_request( const struct release_semaphore_request
*req
)
979 fprintf( stderr
, " handle=%p,", req
->handle
);
980 fprintf( stderr
, " count=%08x", req
->count
);
983 static void dump_release_semaphore_reply( const struct release_semaphore_reply
*req
)
985 fprintf( stderr
, " prev_count=%08x", req
->prev_count
);
988 static void dump_open_semaphore_request( const struct open_semaphore_request
*req
)
990 fprintf( stderr
, " access=%08x,", req
->access
);
991 fprintf( stderr
, " inherit=%d,", req
->inherit
);
992 fprintf( stderr
, " name=" );
993 dump_varargs_unicode_str( cur_size
);
996 static void dump_open_semaphore_reply( const struct open_semaphore_reply
*req
)
998 fprintf( stderr
, " handle=%p", req
->handle
);
1001 static void dump_create_file_request( const struct create_file_request
*req
)
1003 fprintf( stderr
, " access=%08x,", req
->access
);
1004 fprintf( stderr
, " inherit=%d,", req
->inherit
);
1005 fprintf( stderr
, " sharing=%08x,", req
->sharing
);
1006 fprintf( stderr
, " create=%d,", req
->create
);
1007 fprintf( stderr
, " options=%08x,", req
->options
);
1008 fprintf( stderr
, " attrs=%08x,", req
->attrs
);
1009 fprintf( stderr
, " filename=" );
1010 dump_varargs_string( cur_size
);
1013 static void dump_create_file_reply( const struct create_file_reply
*req
)
1015 fprintf( stderr
, " handle=%p", req
->handle
);
1018 static void dump_alloc_file_handle_request( const struct alloc_file_handle_request
*req
)
1020 fprintf( stderr
, " access=%08x,", req
->access
);
1021 fprintf( stderr
, " inherit=%d,", req
->inherit
);
1022 fprintf( stderr
, " fd=%d", req
->fd
);
1025 static void dump_alloc_file_handle_reply( const struct alloc_file_handle_reply
*req
)
1027 fprintf( stderr
, " handle=%p", req
->handle
);
1030 static void dump_get_handle_fd_request( const struct get_handle_fd_request
*req
)
1032 fprintf( stderr
, " handle=%p,", req
->handle
);
1033 fprintf( stderr
, " access=%08x", req
->access
);
1036 static void dump_get_handle_fd_reply( const struct get_handle_fd_reply
*req
)
1038 fprintf( stderr
, " fd=%d,", req
->fd
);
1039 fprintf( stderr
, " removable=%d,", req
->removable
);
1040 fprintf( stderr
, " flags=%d", req
->flags
);
1043 static void dump_set_handle_fd_request( const struct set_handle_fd_request
*req
)
1045 fprintf( stderr
, " handle=%p,", req
->handle
);
1046 fprintf( stderr
, " fd=%d,", req
->fd
);
1047 fprintf( stderr
, " removable=%d", req
->removable
);
1050 static void dump_set_handle_fd_reply( const struct set_handle_fd_reply
*req
)
1052 fprintf( stderr
, " cur_fd=%d", req
->cur_fd
);
1055 static void dump_flush_file_request( const struct flush_file_request
*req
)
1057 fprintf( stderr
, " handle=%p", req
->handle
);
1060 static void dump_flush_file_reply( const struct flush_file_reply
*req
)
1062 fprintf( stderr
, " event=%p", req
->event
);
1065 static void dump_lock_file_request( const struct lock_file_request
*req
)
1067 fprintf( stderr
, " handle=%p,", req
->handle
);
1068 fprintf( stderr
, " offset_low=%08x,", req
->offset_low
);
1069 fprintf( stderr
, " offset_high=%08x,", req
->offset_high
);
1070 fprintf( stderr
, " count_low=%08x,", req
->count_low
);
1071 fprintf( stderr
, " count_high=%08x,", req
->count_high
);
1072 fprintf( stderr
, " shared=%d,", req
->shared
);
1073 fprintf( stderr
, " wait=%d", req
->wait
);
1076 static void dump_lock_file_reply( const struct lock_file_reply
*req
)
1078 fprintf( stderr
, " handle=%p,", req
->handle
);
1079 fprintf( stderr
, " overlapped=%d", req
->overlapped
);
1082 static void dump_unlock_file_request( const struct unlock_file_request
*req
)
1084 fprintf( stderr
, " handle=%p,", req
->handle
);
1085 fprintf( stderr
, " offset_low=%08x,", req
->offset_low
);
1086 fprintf( stderr
, " offset_high=%08x,", req
->offset_high
);
1087 fprintf( stderr
, " count_low=%08x,", req
->count_low
);
1088 fprintf( stderr
, " count_high=%08x", req
->count_high
);
1091 static void dump_unmount_device_request( const struct unmount_device_request
*req
)
1093 fprintf( stderr
, " handle=%p", req
->handle
);
1096 static void dump_create_socket_request( const struct create_socket_request
*req
)
1098 fprintf( stderr
, " access=%08x,", req
->access
);
1099 fprintf( stderr
, " inherit=%d,", req
->inherit
);
1100 fprintf( stderr
, " family=%d,", req
->family
);
1101 fprintf( stderr
, " type=%d,", req
->type
);
1102 fprintf( stderr
, " protocol=%d,", req
->protocol
);
1103 fprintf( stderr
, " flags=%08x", req
->flags
);
1106 static void dump_create_socket_reply( const struct create_socket_reply
*req
)
1108 fprintf( stderr
, " handle=%p", req
->handle
);
1111 static void dump_accept_socket_request( const struct accept_socket_request
*req
)
1113 fprintf( stderr
, " lhandle=%p,", req
->lhandle
);
1114 fprintf( stderr
, " access=%08x,", req
->access
);
1115 fprintf( stderr
, " inherit=%d", req
->inherit
);
1118 static void dump_accept_socket_reply( const struct accept_socket_reply
*req
)
1120 fprintf( stderr
, " handle=%p", req
->handle
);
1123 static void dump_set_socket_event_request( const struct set_socket_event_request
*req
)
1125 fprintf( stderr
, " handle=%p,", req
->handle
);
1126 fprintf( stderr
, " mask=%08x,", req
->mask
);
1127 fprintf( stderr
, " event=%p,", req
->event
);
1128 fprintf( stderr
, " window=%p,", req
->window
);
1129 fprintf( stderr
, " msg=%08x", req
->msg
);
1132 static void dump_get_socket_event_request( const struct get_socket_event_request
*req
)
1134 fprintf( stderr
, " handle=%p,", req
->handle
);
1135 fprintf( stderr
, " service=%d,", req
->service
);
1136 fprintf( stderr
, " c_event=%p", req
->c_event
);
1139 static void dump_get_socket_event_reply( const struct get_socket_event_reply
*req
)
1141 fprintf( stderr
, " mask=%08x,", req
->mask
);
1142 fprintf( stderr
, " pmask=%08x,", req
->pmask
);
1143 fprintf( stderr
, " state=%08x,", req
->state
);
1144 fprintf( stderr
, " errors=" );
1145 dump_varargs_ints( cur_size
);
1148 static void dump_enable_socket_event_request( const struct enable_socket_event_request
*req
)
1150 fprintf( stderr
, " handle=%p,", req
->handle
);
1151 fprintf( stderr
, " mask=%08x,", req
->mask
);
1152 fprintf( stderr
, " sstate=%08x,", req
->sstate
);
1153 fprintf( stderr
, " cstate=%08x", req
->cstate
);
1156 static void dump_set_socket_deferred_request( const struct set_socket_deferred_request
*req
)
1158 fprintf( stderr
, " handle=%p,", req
->handle
);
1159 fprintf( stderr
, " deferred=%p", req
->deferred
);
1162 static void dump_alloc_console_request( const struct alloc_console_request
*req
)
1164 fprintf( stderr
, " access=%08x,", req
->access
);
1165 fprintf( stderr
, " inherit=%d,", req
->inherit
);
1166 fprintf( stderr
, " pid=%04x", req
->pid
);
1169 static void dump_alloc_console_reply( const struct alloc_console_reply
*req
)
1171 fprintf( stderr
, " handle_in=%p,", req
->handle_in
);
1172 fprintf( stderr
, " event=%p", req
->event
);
1175 static void dump_free_console_request( const struct free_console_request
*req
)
1179 static void dump_get_console_renderer_events_request( const struct get_console_renderer_events_request
*req
)
1181 fprintf( stderr
, " handle=%p", req
->handle
);
1184 static void dump_get_console_renderer_events_reply( const struct get_console_renderer_events_reply
*req
)
1186 fprintf( stderr
, " data=" );
1187 dump_varargs_bytes( cur_size
);
1190 static void dump_open_console_request( const struct open_console_request
*req
)
1192 fprintf( stderr
, " from=%d,", req
->from
);
1193 fprintf( stderr
, " access=%08x,", req
->access
);
1194 fprintf( stderr
, " inherit=%d,", req
->inherit
);
1195 fprintf( stderr
, " share=%d", req
->share
);
1198 static void dump_open_console_reply( const struct open_console_reply
*req
)
1200 fprintf( stderr
, " handle=%p", req
->handle
);
1203 static void dump_get_console_wait_event_request( const struct get_console_wait_event_request
*req
)
1207 static void dump_get_console_wait_event_reply( const struct get_console_wait_event_reply
*req
)
1209 fprintf( stderr
, " handle=%p", req
->handle
);
1212 static void dump_get_console_mode_request( const struct get_console_mode_request
*req
)
1214 fprintf( stderr
, " handle=%p", req
->handle
);
1217 static void dump_get_console_mode_reply( const struct get_console_mode_reply
*req
)
1219 fprintf( stderr
, " mode=%d", req
->mode
);
1222 static void dump_set_console_mode_request( const struct set_console_mode_request
*req
)
1224 fprintf( stderr
, " handle=%p,", req
->handle
);
1225 fprintf( stderr
, " mode=%d", req
->mode
);
1228 static void dump_set_console_input_info_request( const struct set_console_input_info_request
*req
)
1230 fprintf( stderr
, " handle=%p,", req
->handle
);
1231 fprintf( stderr
, " mask=%d,", req
->mask
);
1232 fprintf( stderr
, " active_sb=%p,", req
->active_sb
);
1233 fprintf( stderr
, " history_mode=%d,", req
->history_mode
);
1234 fprintf( stderr
, " history_size=%d,", req
->history_size
);
1235 fprintf( stderr
, " edition_mode=%d,", req
->edition_mode
);
1236 fprintf( stderr
, " title=" );
1237 dump_varargs_unicode_str( cur_size
);
1240 static void dump_get_console_input_info_request( const struct get_console_input_info_request
*req
)
1242 fprintf( stderr
, " handle=%p", req
->handle
);
1245 static void dump_get_console_input_info_reply( const struct get_console_input_info_reply
*req
)
1247 fprintf( stderr
, " history_mode=%d,", req
->history_mode
);
1248 fprintf( stderr
, " history_size=%d,", req
->history_size
);
1249 fprintf( stderr
, " history_index=%d,", req
->history_index
);
1250 fprintf( stderr
, " edition_mode=%d,", req
->edition_mode
);
1251 fprintf( stderr
, " title=" );
1252 dump_varargs_unicode_str( cur_size
);
1255 static void dump_append_console_input_history_request( const struct append_console_input_history_request
*req
)
1257 fprintf( stderr
, " handle=%p,", req
->handle
);
1258 fprintf( stderr
, " line=" );
1259 dump_varargs_unicode_str( cur_size
);
1262 static void dump_get_console_input_history_request( const struct get_console_input_history_request
*req
)
1264 fprintf( stderr
, " handle=%p,", req
->handle
);
1265 fprintf( stderr
, " index=%d", req
->index
);
1268 static void dump_get_console_input_history_reply( const struct get_console_input_history_reply
*req
)
1270 fprintf( stderr
, " total=%d,", req
->total
);
1271 fprintf( stderr
, " line=" );
1272 dump_varargs_unicode_str( cur_size
);
1275 static void dump_create_console_output_request( const struct create_console_output_request
*req
)
1277 fprintf( stderr
, " handle_in=%p,", req
->handle_in
);
1278 fprintf( stderr
, " access=%d,", req
->access
);
1279 fprintf( stderr
, " share=%d,", req
->share
);
1280 fprintf( stderr
, " inherit=%d", req
->inherit
);
1283 static void dump_create_console_output_reply( const struct create_console_output_reply
*req
)
1285 fprintf( stderr
, " handle_out=%p", req
->handle_out
);
1288 static void dump_set_console_output_info_request( const struct set_console_output_info_request
*req
)
1290 fprintf( stderr
, " handle=%p,", req
->handle
);
1291 fprintf( stderr
, " mask=%d,", req
->mask
);
1292 fprintf( stderr
, " cursor_size=%d,", req
->cursor_size
);
1293 fprintf( stderr
, " cursor_visible=%d,", req
->cursor_visible
);
1294 fprintf( stderr
, " cursor_x=%d,", req
->cursor_x
);
1295 fprintf( stderr
, " cursor_y=%d,", req
->cursor_y
);
1296 fprintf( stderr
, " width=%d,", req
->width
);
1297 fprintf( stderr
, " height=%d,", req
->height
);
1298 fprintf( stderr
, " attr=%d,", req
->attr
);
1299 fprintf( stderr
, " win_left=%d,", req
->win_left
);
1300 fprintf( stderr
, " win_top=%d,", req
->win_top
);
1301 fprintf( stderr
, " win_right=%d,", req
->win_right
);
1302 fprintf( stderr
, " win_bottom=%d,", req
->win_bottom
);
1303 fprintf( stderr
, " max_width=%d,", req
->max_width
);
1304 fprintf( stderr
, " max_height=%d", req
->max_height
);
1307 static void dump_get_console_output_info_request( const struct get_console_output_info_request
*req
)
1309 fprintf( stderr
, " handle=%p", req
->handle
);
1312 static void dump_get_console_output_info_reply( const struct get_console_output_info_reply
*req
)
1314 fprintf( stderr
, " cursor_size=%d,", req
->cursor_size
);
1315 fprintf( stderr
, " cursor_visible=%d,", req
->cursor_visible
);
1316 fprintf( stderr
, " cursor_x=%d,", req
->cursor_x
);
1317 fprintf( stderr
, " cursor_y=%d,", req
->cursor_y
);
1318 fprintf( stderr
, " width=%d,", req
->width
);
1319 fprintf( stderr
, " height=%d,", req
->height
);
1320 fprintf( stderr
, " attr=%d,", req
->attr
);
1321 fprintf( stderr
, " win_left=%d,", req
->win_left
);
1322 fprintf( stderr
, " win_top=%d,", req
->win_top
);
1323 fprintf( stderr
, " win_right=%d,", req
->win_right
);
1324 fprintf( stderr
, " win_bottom=%d,", req
->win_bottom
);
1325 fprintf( stderr
, " max_width=%d,", req
->max_width
);
1326 fprintf( stderr
, " max_height=%d", req
->max_height
);
1329 static void dump_write_console_input_request( const struct write_console_input_request
*req
)
1331 fprintf( stderr
, " handle=%p,", req
->handle
);
1332 fprintf( stderr
, " rec=" );
1333 dump_varargs_input_records( cur_size
);
1336 static void dump_write_console_input_reply( const struct write_console_input_reply
*req
)
1338 fprintf( stderr
, " written=%d", req
->written
);
1341 static void dump_read_console_input_request( const struct read_console_input_request
*req
)
1343 fprintf( stderr
, " handle=%p,", req
->handle
);
1344 fprintf( stderr
, " flush=%d", req
->flush
);
1347 static void dump_read_console_input_reply( const struct read_console_input_reply
*req
)
1349 fprintf( stderr
, " read=%d,", req
->read
);
1350 fprintf( stderr
, " rec=" );
1351 dump_varargs_input_records( cur_size
);
1354 static void dump_write_console_output_request( const struct write_console_output_request
*req
)
1356 fprintf( stderr
, " handle=%p,", req
->handle
);
1357 fprintf( stderr
, " x=%d,", req
->x
);
1358 fprintf( stderr
, " y=%d,", req
->y
);
1359 fprintf( stderr
, " mode=%d,", req
->mode
);
1360 fprintf( stderr
, " wrap=%d,", req
->wrap
);
1361 fprintf( stderr
, " data=" );
1362 dump_varargs_bytes( cur_size
);
1365 static void dump_write_console_output_reply( const struct write_console_output_reply
*req
)
1367 fprintf( stderr
, " written=%d,", req
->written
);
1368 fprintf( stderr
, " width=%d,", req
->width
);
1369 fprintf( stderr
, " height=%d", req
->height
);
1372 static void dump_fill_console_output_request( const struct fill_console_output_request
*req
)
1374 fprintf( stderr
, " handle=%p,", req
->handle
);
1375 fprintf( stderr
, " x=%d,", req
->x
);
1376 fprintf( stderr
, " y=%d,", req
->y
);
1377 fprintf( stderr
, " mode=%d,", req
->mode
);
1378 fprintf( stderr
, " count=%d,", req
->count
);
1379 fprintf( stderr
, " wrap=%d,", req
->wrap
);
1380 fprintf( stderr
, " data=" );
1381 dump_char_info( &req
->data
);
1384 static void dump_fill_console_output_reply( const struct fill_console_output_reply
*req
)
1386 fprintf( stderr
, " written=%d", req
->written
);
1389 static void dump_read_console_output_request( const struct read_console_output_request
*req
)
1391 fprintf( stderr
, " handle=%p,", req
->handle
);
1392 fprintf( stderr
, " x=%d,", req
->x
);
1393 fprintf( stderr
, " y=%d,", req
->y
);
1394 fprintf( stderr
, " mode=%d,", req
->mode
);
1395 fprintf( stderr
, " wrap=%d", req
->wrap
);
1398 static void dump_read_console_output_reply( const struct read_console_output_reply
*req
)
1400 fprintf( stderr
, " width=%d,", req
->width
);
1401 fprintf( stderr
, " height=%d,", req
->height
);
1402 fprintf( stderr
, " data=" );
1403 dump_varargs_bytes( cur_size
);
1406 static void dump_move_console_output_request( const struct move_console_output_request
*req
)
1408 fprintf( stderr
, " handle=%p,", req
->handle
);
1409 fprintf( stderr
, " x_src=%d,", req
->x_src
);
1410 fprintf( stderr
, " y_src=%d,", req
->y_src
);
1411 fprintf( stderr
, " x_dst=%d,", req
->x_dst
);
1412 fprintf( stderr
, " y_dst=%d,", req
->y_dst
);
1413 fprintf( stderr
, " w=%d,", req
->w
);
1414 fprintf( stderr
, " h=%d", req
->h
);
1417 static void dump_send_console_signal_request( const struct send_console_signal_request
*req
)
1419 fprintf( stderr
, " signal=%d,", req
->signal
);
1420 fprintf( stderr
, " group_id=%04x", req
->group_id
);
1423 static void dump_create_change_notification_request( const struct create_change_notification_request
*req
)
1425 fprintf( stderr
, " handle=%p,", req
->handle
);
1426 fprintf( stderr
, " subtree=%d,", req
->subtree
);
1427 fprintf( stderr
, " filter=%08x", req
->filter
);
1430 static void dump_create_change_notification_reply( const struct create_change_notification_reply
*req
)
1432 fprintf( stderr
, " handle=%p", req
->handle
);
1435 static void dump_next_change_notification_request( const struct next_change_notification_request
*req
)
1437 fprintf( stderr
, " handle=%p", req
->handle
);
1440 static void dump_create_mapping_request( const struct create_mapping_request
*req
)
1442 fprintf( stderr
, " size_high=%d,", req
->size_high
);
1443 fprintf( stderr
, " size_low=%d,", req
->size_low
);
1444 fprintf( stderr
, " protect=%d,", req
->protect
);
1445 fprintf( stderr
, " access=%08x,", req
->access
);
1446 fprintf( stderr
, " inherit=%d,", req
->inherit
);
1447 fprintf( stderr
, " file_handle=%p,", req
->file_handle
);
1448 fprintf( stderr
, " name=" );
1449 dump_varargs_unicode_str( cur_size
);
1452 static void dump_create_mapping_reply( const struct create_mapping_reply
*req
)
1454 fprintf( stderr
, " handle=%p", req
->handle
);
1457 static void dump_open_mapping_request( const struct open_mapping_request
*req
)
1459 fprintf( stderr
, " access=%08x,", req
->access
);
1460 fprintf( stderr
, " inherit=%d,", req
->inherit
);
1461 fprintf( stderr
, " name=" );
1462 dump_varargs_unicode_str( cur_size
);
1465 static void dump_open_mapping_reply( const struct open_mapping_reply
*req
)
1467 fprintf( stderr
, " handle=%p", req
->handle
);
1470 static void dump_get_mapping_info_request( const struct get_mapping_info_request
*req
)
1472 fprintf( stderr
, " handle=%p", req
->handle
);
1475 static void dump_get_mapping_info_reply( const struct get_mapping_info_reply
*req
)
1477 fprintf( stderr
, " size_high=%d,", req
->size_high
);
1478 fprintf( stderr
, " size_low=%d,", req
->size_low
);
1479 fprintf( stderr
, " protect=%d,", req
->protect
);
1480 fprintf( stderr
, " header_size=%d,", req
->header_size
);
1481 fprintf( stderr
, " base=%p,", req
->base
);
1482 fprintf( stderr
, " shared_file=%p,", req
->shared_file
);
1483 fprintf( stderr
, " shared_size=%d", req
->shared_size
);
1486 static void dump_create_snapshot_request( const struct create_snapshot_request
*req
)
1488 fprintf( stderr
, " inherit=%d,", req
->inherit
);
1489 fprintf( stderr
, " flags=%d,", req
->flags
);
1490 fprintf( stderr
, " pid=%04x", req
->pid
);
1493 static void dump_create_snapshot_reply( const struct create_snapshot_reply
*req
)
1495 fprintf( stderr
, " handle=%p", req
->handle
);
1498 static void dump_next_process_request( const struct next_process_request
*req
)
1500 fprintf( stderr
, " handle=%p,", req
->handle
);
1501 fprintf( stderr
, " reset=%d", req
->reset
);
1504 static void dump_next_process_reply( const struct next_process_reply
*req
)
1506 fprintf( stderr
, " count=%d,", req
->count
);
1507 fprintf( stderr
, " pid=%04x,", req
->pid
);
1508 fprintf( stderr
, " ppid=%04x,", req
->ppid
);
1509 fprintf( stderr
, " heap=%p,", req
->heap
);
1510 fprintf( stderr
, " module=%p,", req
->module
);
1511 fprintf( stderr
, " threads=%d,", req
->threads
);
1512 fprintf( stderr
, " priority=%d,", req
->priority
);
1513 fprintf( stderr
, " handles=%d,", req
->handles
);
1514 fprintf( stderr
, " filename=" );
1515 dump_varargs_unicode_str( cur_size
);
1518 static void dump_next_thread_request( const struct next_thread_request
*req
)
1520 fprintf( stderr
, " handle=%p,", req
->handle
);
1521 fprintf( stderr
, " reset=%d", req
->reset
);
1524 static void dump_next_thread_reply( const struct next_thread_reply
*req
)
1526 fprintf( stderr
, " count=%d,", req
->count
);
1527 fprintf( stderr
, " pid=%04x,", req
->pid
);
1528 fprintf( stderr
, " tid=%04x,", req
->tid
);
1529 fprintf( stderr
, " base_pri=%d,", req
->base_pri
);
1530 fprintf( stderr
, " delta_pri=%d", req
->delta_pri
);
1533 static void dump_next_module_request( const struct next_module_request
*req
)
1535 fprintf( stderr
, " handle=%p,", req
->handle
);
1536 fprintf( stderr
, " reset=%d", req
->reset
);
1539 static void dump_next_module_reply( const struct next_module_reply
*req
)
1541 fprintf( stderr
, " pid=%04x,", req
->pid
);
1542 fprintf( stderr
, " base=%p,", req
->base
);
1543 fprintf( stderr
, " size=%d,", req
->size
);
1544 fprintf( stderr
, " filename=" );
1545 dump_varargs_unicode_str( cur_size
);
1548 static void dump_wait_debug_event_request( const struct wait_debug_event_request
*req
)
1550 fprintf( stderr
, " get_handle=%d", req
->get_handle
);
1553 static void dump_wait_debug_event_reply( const struct wait_debug_event_reply
*req
)
1555 fprintf( stderr
, " pid=%04x,", req
->pid
);
1556 fprintf( stderr
, " tid=%04x,", req
->tid
);
1557 fprintf( stderr
, " wait=%p,", req
->wait
);
1558 fprintf( stderr
, " event=" );
1559 dump_varargs_debug_event( cur_size
);
1562 static void dump_queue_exception_event_request( const struct queue_exception_event_request
*req
)
1564 fprintf( stderr
, " first=%d,", req
->first
);
1565 fprintf( stderr
, " record=" );
1566 dump_varargs_exc_event( cur_size
);
1569 static void dump_queue_exception_event_reply( const struct queue_exception_event_reply
*req
)
1571 fprintf( stderr
, " handle=%p", req
->handle
);
1574 static void dump_get_exception_status_request( const struct get_exception_status_request
*req
)
1576 fprintf( stderr
, " handle=%p", req
->handle
);
1579 static void dump_get_exception_status_reply( const struct get_exception_status_reply
*req
)
1581 fprintf( stderr
, " status=%d,", req
->status
);
1582 fprintf( stderr
, " context=" );
1583 dump_varargs_context( cur_size
);
1586 static void dump_output_debug_string_request( const struct output_debug_string_request
*req
)
1588 fprintf( stderr
, " string=%p,", req
->string
);
1589 fprintf( stderr
, " unicode=%d,", req
->unicode
);
1590 fprintf( stderr
, " length=%d", req
->length
);
1593 static void dump_continue_debug_event_request( const struct continue_debug_event_request
*req
)
1595 fprintf( stderr
, " pid=%04x,", req
->pid
);
1596 fprintf( stderr
, " tid=%04x,", req
->tid
);
1597 fprintf( stderr
, " status=%d", req
->status
);
1600 static void dump_debug_process_request( const struct debug_process_request
*req
)
1602 fprintf( stderr
, " pid=%04x,", req
->pid
);
1603 fprintf( stderr
, " attach=%d", req
->attach
);
1606 static void dump_debug_break_request( const struct debug_break_request
*req
)
1608 fprintf( stderr
, " handle=%p", req
->handle
);
1611 static void dump_debug_break_reply( const struct debug_break_reply
*req
)
1613 fprintf( stderr
, " self=%d", req
->self
);
1616 static void dump_set_debugger_kill_on_exit_request( const struct set_debugger_kill_on_exit_request
*req
)
1618 fprintf( stderr
, " kill_on_exit=%d", req
->kill_on_exit
);
1621 static void dump_read_process_memory_request( const struct read_process_memory_request
*req
)
1623 fprintf( stderr
, " handle=%p,", req
->handle
);
1624 fprintf( stderr
, " addr=%p", req
->addr
);
1627 static void dump_read_process_memory_reply( const struct read_process_memory_reply
*req
)
1629 fprintf( stderr
, " data=" );
1630 dump_varargs_bytes( cur_size
);
1633 static void dump_write_process_memory_request( const struct write_process_memory_request
*req
)
1635 fprintf( stderr
, " handle=%p,", req
->handle
);
1636 fprintf( stderr
, " addr=%p,", req
->addr
);
1637 fprintf( stderr
, " first_mask=%08x,", req
->first_mask
);
1638 fprintf( stderr
, " last_mask=%08x,", req
->last_mask
);
1639 fprintf( stderr
, " data=" );
1640 dump_varargs_bytes( cur_size
);
1643 static void dump_create_key_request( const struct create_key_request
*req
)
1645 fprintf( stderr
, " parent=%p,", req
->parent
);
1646 fprintf( stderr
, " access=%08x,", req
->access
);
1647 fprintf( stderr
, " options=%08x,", req
->options
);
1648 fprintf( stderr
, " modif=%ld,", (long)req
->modif
);
1649 fprintf( stderr
, " namelen=%d,", req
->namelen
);
1650 fprintf( stderr
, " name=" );
1651 dump_varargs_unicode_str( min(cur_size
,req
->namelen
) );
1652 fputc( ',', stderr
);
1653 fprintf( stderr
, " class=" );
1654 dump_varargs_unicode_str( cur_size
);
1657 static void dump_create_key_reply( const struct create_key_reply
*req
)
1659 fprintf( stderr
, " hkey=%p,", req
->hkey
);
1660 fprintf( stderr
, " created=%d", req
->created
);
1663 static void dump_open_key_request( const struct open_key_request
*req
)
1665 fprintf( stderr
, " parent=%p,", req
->parent
);
1666 fprintf( stderr
, " access=%08x,", req
->access
);
1667 fprintf( stderr
, " name=" );
1668 dump_varargs_unicode_str( cur_size
);
1671 static void dump_open_key_reply( const struct open_key_reply
*req
)
1673 fprintf( stderr
, " hkey=%p", req
->hkey
);
1676 static void dump_delete_key_request( const struct delete_key_request
*req
)
1678 fprintf( stderr
, " hkey=%p", req
->hkey
);
1681 static void dump_flush_key_request( const struct flush_key_request
*req
)
1683 fprintf( stderr
, " hkey=%p", req
->hkey
);
1686 static void dump_enum_key_request( const struct enum_key_request
*req
)
1688 fprintf( stderr
, " hkey=%p,", req
->hkey
);
1689 fprintf( stderr
, " index=%d,", req
->index
);
1690 fprintf( stderr
, " info_class=%d", req
->info_class
);
1693 static void dump_enum_key_reply( const struct enum_key_reply
*req
)
1695 fprintf( stderr
, " subkeys=%d,", req
->subkeys
);
1696 fprintf( stderr
, " max_subkey=%d,", req
->max_subkey
);
1697 fprintf( stderr
, " max_class=%d,", req
->max_class
);
1698 fprintf( stderr
, " values=%d,", req
->values
);
1699 fprintf( stderr
, " max_value=%d,", req
->max_value
);
1700 fprintf( stderr
, " max_data=%d,", req
->max_data
);
1701 fprintf( stderr
, " modif=%ld,", (long)req
->modif
);
1702 fprintf( stderr
, " total=%d,", req
->total
);
1703 fprintf( stderr
, " namelen=%d,", req
->namelen
);
1704 fprintf( stderr
, " name=" );
1705 dump_varargs_unicode_str( min(cur_size
,req
->namelen
) );
1706 fputc( ',', stderr
);
1707 fprintf( stderr
, " class=" );
1708 dump_varargs_unicode_str( cur_size
);
1711 static void dump_set_key_value_request( const struct set_key_value_request
*req
)
1713 fprintf( stderr
, " hkey=%p,", req
->hkey
);
1714 fprintf( stderr
, " type=%d,", req
->type
);
1715 fprintf( stderr
, " namelen=%d,", req
->namelen
);
1716 fprintf( stderr
, " name=" );
1717 dump_varargs_unicode_str( min(cur_size
,req
->namelen
) );
1718 fputc( ',', stderr
);
1719 fprintf( stderr
, " data=" );
1720 dump_varargs_bytes( cur_size
);
1723 static void dump_get_key_value_request( const struct get_key_value_request
*req
)
1725 fprintf( stderr
, " hkey=%p,", req
->hkey
);
1726 fprintf( stderr
, " name=" );
1727 dump_varargs_unicode_str( cur_size
);
1730 static void dump_get_key_value_reply( const struct get_key_value_reply
*req
)
1732 fprintf( stderr
, " type=%d,", req
->type
);
1733 fprintf( stderr
, " total=%d,", req
->total
);
1734 fprintf( stderr
, " data=" );
1735 dump_varargs_bytes( cur_size
);
1738 static void dump_enum_key_value_request( const struct enum_key_value_request
*req
)
1740 fprintf( stderr
, " hkey=%p,", req
->hkey
);
1741 fprintf( stderr
, " index=%d,", req
->index
);
1742 fprintf( stderr
, " info_class=%d", req
->info_class
);
1745 static void dump_enum_key_value_reply( const struct enum_key_value_reply
*req
)
1747 fprintf( stderr
, " type=%d,", req
->type
);
1748 fprintf( stderr
, " total=%d,", req
->total
);
1749 fprintf( stderr
, " namelen=%d,", req
->namelen
);
1750 fprintf( stderr
, " name=" );
1751 dump_varargs_unicode_str( min(cur_size
,req
->namelen
) );
1752 fputc( ',', stderr
);
1753 fprintf( stderr
, " data=" );
1754 dump_varargs_bytes( cur_size
);
1757 static void dump_delete_key_value_request( const struct delete_key_value_request
*req
)
1759 fprintf( stderr
, " hkey=%p,", req
->hkey
);
1760 fprintf( stderr
, " name=" );
1761 dump_varargs_unicode_str( cur_size
);
1764 static void dump_load_registry_request( const struct load_registry_request
*req
)
1766 fprintf( stderr
, " hkey=%p,", req
->hkey
);
1767 fprintf( stderr
, " file=%p,", req
->file
);
1768 fprintf( stderr
, " name=" );
1769 dump_varargs_unicode_str( cur_size
);
1772 static void dump_unload_registry_request( const struct unload_registry_request
*req
)
1774 fprintf( stderr
, " hkey=%p", req
->hkey
);
1777 static void dump_save_registry_request( const struct save_registry_request
*req
)
1779 fprintf( stderr
, " hkey=%p,", req
->hkey
);
1780 fprintf( stderr
, " file=%p", req
->file
);
1783 static void dump_set_registry_notification_request( const struct set_registry_notification_request
*req
)
1785 fprintf( stderr
, " hkey=%p,", req
->hkey
);
1786 fprintf( stderr
, " event=%p,", req
->event
);
1787 fprintf( stderr
, " subtree=%d,", req
->subtree
);
1788 fprintf( stderr
, " filter=%08x", req
->filter
);
1791 static void dump_create_timer_request( const struct create_timer_request
*req
)
1793 fprintf( stderr
, " access=%08x,", req
->access
);
1794 fprintf( stderr
, " inherit=%d,", req
->inherit
);
1795 fprintf( stderr
, " manual=%d,", req
->manual
);
1796 fprintf( stderr
, " name=" );
1797 dump_varargs_unicode_str( cur_size
);
1800 static void dump_create_timer_reply( const struct create_timer_reply
*req
)
1802 fprintf( stderr
, " handle=%p", req
->handle
);
1805 static void dump_open_timer_request( const struct open_timer_request
*req
)
1807 fprintf( stderr
, " access=%08x,", req
->access
);
1808 fprintf( stderr
, " inherit=%d,", req
->inherit
);
1809 fprintf( stderr
, " name=" );
1810 dump_varargs_unicode_str( cur_size
);
1813 static void dump_open_timer_reply( const struct open_timer_reply
*req
)
1815 fprintf( stderr
, " handle=%p", req
->handle
);
1818 static void dump_set_timer_request( const struct set_timer_request
*req
)
1820 fprintf( stderr
, " handle=%p,", req
->handle
);
1821 fprintf( stderr
, " expire=" );
1822 dump_abs_time( &req
->expire
);
1823 fprintf( stderr
, "," );
1824 fprintf( stderr
, " period=%d,", req
->period
);
1825 fprintf( stderr
, " callback=%p,", req
->callback
);
1826 fprintf( stderr
, " arg=%p", req
->arg
);
1829 static void dump_set_timer_reply( const struct set_timer_reply
*req
)
1831 fprintf( stderr
, " signaled=%d", req
->signaled
);
1834 static void dump_cancel_timer_request( const struct cancel_timer_request
*req
)
1836 fprintf( stderr
, " handle=%p", req
->handle
);
1839 static void dump_cancel_timer_reply( const struct cancel_timer_reply
*req
)
1841 fprintf( stderr
, " signaled=%d", req
->signaled
);
1844 static void dump_get_timer_info_request( const struct get_timer_info_request
*req
)
1846 fprintf( stderr
, " handle=%p", req
->handle
);
1849 static void dump_get_timer_info_reply( const struct get_timer_info_reply
*req
)
1851 fprintf( stderr
, " when=" );
1852 dump_abs_time( &req
->when
);
1853 fprintf( stderr
, "," );
1854 fprintf( stderr
, " signaled=%d", req
->signaled
);
1857 static void dump_get_thread_context_request( const struct get_thread_context_request
*req
)
1859 fprintf( stderr
, " handle=%p,", req
->handle
);
1860 fprintf( stderr
, " flags=%08x", req
->flags
);
1863 static void dump_get_thread_context_reply( const struct get_thread_context_reply
*req
)
1865 fprintf( stderr
, " context=" );
1866 dump_varargs_context( cur_size
);
1869 static void dump_set_thread_context_request( const struct set_thread_context_request
*req
)
1871 fprintf( stderr
, " handle=%p,", req
->handle
);
1872 fprintf( stderr
, " flags=%08x,", req
->flags
);
1873 fprintf( stderr
, " context=" );
1874 dump_varargs_context( cur_size
);
1877 static void dump_get_selector_entry_request( const struct get_selector_entry_request
*req
)
1879 fprintf( stderr
, " handle=%p,", req
->handle
);
1880 fprintf( stderr
, " entry=%d", req
->entry
);
1883 static void dump_get_selector_entry_reply( const struct get_selector_entry_reply
*req
)
1885 fprintf( stderr
, " base=%08x,", req
->base
);
1886 fprintf( stderr
, " limit=%08x,", req
->limit
);
1887 fprintf( stderr
, " flags=%02x", req
->flags
);
1890 static void dump_add_atom_request( const struct add_atom_request
*req
)
1892 fprintf( stderr
, " table=%p,", req
->table
);
1893 fprintf( stderr
, " name=" );
1894 dump_varargs_unicode_str( cur_size
);
1897 static void dump_add_atom_reply( const struct add_atom_reply
*req
)
1899 fprintf( stderr
, " atom=%04x", req
->atom
);
1902 static void dump_delete_atom_request( const struct delete_atom_request
*req
)
1904 fprintf( stderr
, " table=%p,", req
->table
);
1905 fprintf( stderr
, " atom=%04x", req
->atom
);
1908 static void dump_find_atom_request( const struct find_atom_request
*req
)
1910 fprintf( stderr
, " table=%p,", req
->table
);
1911 fprintf( stderr
, " name=" );
1912 dump_varargs_unicode_str( cur_size
);
1915 static void dump_find_atom_reply( const struct find_atom_reply
*req
)
1917 fprintf( stderr
, " atom=%04x", req
->atom
);
1920 static void dump_get_atom_information_request( const struct get_atom_information_request
*req
)
1922 fprintf( stderr
, " table=%p,", req
->table
);
1923 fprintf( stderr
, " atom=%04x", req
->atom
);
1926 static void dump_get_atom_information_reply( const struct get_atom_information_reply
*req
)
1928 fprintf( stderr
, " count=%d,", req
->count
);
1929 fprintf( stderr
, " pinned=%d,", req
->pinned
);
1930 fprintf( stderr
, " name=" );
1931 dump_varargs_unicode_str( cur_size
);
1934 static void dump_set_atom_information_request( const struct set_atom_information_request
*req
)
1936 fprintf( stderr
, " table=%p,", req
->table
);
1937 fprintf( stderr
, " atom=%04x,", req
->atom
);
1938 fprintf( stderr
, " pinned=%d", req
->pinned
);
1941 static void dump_empty_atom_table_request( const struct empty_atom_table_request
*req
)
1943 fprintf( stderr
, " table=%p,", req
->table
);
1944 fprintf( stderr
, " if_pinned=%d", req
->if_pinned
);
1947 static void dump_init_atom_table_request( const struct init_atom_table_request
*req
)
1949 fprintf( stderr
, " entries=%d", req
->entries
);
1952 static void dump_init_atom_table_reply( const struct init_atom_table_reply
*req
)
1954 fprintf( stderr
, " table=%p", req
->table
);
1957 static void dump_get_msg_queue_request( const struct get_msg_queue_request
*req
)
1961 static void dump_get_msg_queue_reply( const struct get_msg_queue_reply
*req
)
1963 fprintf( stderr
, " handle=%p", req
->handle
);
1966 static void dump_set_queue_mask_request( const struct set_queue_mask_request
*req
)
1968 fprintf( stderr
, " wake_mask=%08x,", req
->wake_mask
);
1969 fprintf( stderr
, " changed_mask=%08x,", req
->changed_mask
);
1970 fprintf( stderr
, " skip_wait=%d", req
->skip_wait
);
1973 static void dump_set_queue_mask_reply( const struct set_queue_mask_reply
*req
)
1975 fprintf( stderr
, " wake_bits=%08x,", req
->wake_bits
);
1976 fprintf( stderr
, " changed_bits=%08x", req
->changed_bits
);
1979 static void dump_get_queue_status_request( const struct get_queue_status_request
*req
)
1981 fprintf( stderr
, " clear=%d", req
->clear
);
1984 static void dump_get_queue_status_reply( const struct get_queue_status_reply
*req
)
1986 fprintf( stderr
, " wake_bits=%08x,", req
->wake_bits
);
1987 fprintf( stderr
, " changed_bits=%08x", req
->changed_bits
);
1990 static void dump_wait_input_idle_request( const struct wait_input_idle_request
*req
)
1992 fprintf( stderr
, " handle=%p,", req
->handle
);
1993 fprintf( stderr
, " timeout=%d", req
->timeout
);
1996 static void dump_wait_input_idle_reply( const struct wait_input_idle_reply
*req
)
1998 fprintf( stderr
, " event=%p", req
->event
);
2001 static void dump_send_message_request( const struct send_message_request
*req
)
2003 fprintf( stderr
, " id=%04x,", req
->id
);
2004 fprintf( stderr
, " type=%d,", req
->type
);
2005 fprintf( stderr
, " flags=%d,", req
->flags
);
2006 fprintf( stderr
, " win=%p,", req
->win
);
2007 fprintf( stderr
, " msg=%08x,", req
->msg
);
2008 fprintf( stderr
, " wparam=%08x,", req
->wparam
);
2009 fprintf( stderr
, " lparam=%08x,", req
->lparam
);
2010 fprintf( stderr
, " x=%d,", req
->x
);
2011 fprintf( stderr
, " y=%d,", req
->y
);
2012 fprintf( stderr
, " time=%08x,", req
->time
);
2013 fprintf( stderr
, " info=%08x,", req
->info
);
2014 fprintf( stderr
, " timeout=%d,", req
->timeout
);
2015 fprintf( stderr
, " callback=%p,", req
->callback
);
2016 fprintf( stderr
, " data=" );
2017 dump_varargs_bytes( cur_size
);
2020 static void dump_get_message_request( const struct get_message_request
*req
)
2022 fprintf( stderr
, " flags=%d,", req
->flags
);
2023 fprintf( stderr
, " get_win=%p,", req
->get_win
);
2024 fprintf( stderr
, " get_first=%08x,", req
->get_first
);
2025 fprintf( stderr
, " get_last=%08x,", req
->get_last
);
2026 fprintf( stderr
, " hw_id=%08x", req
->hw_id
);
2029 static void dump_get_message_reply( const struct get_message_reply
*req
)
2031 fprintf( stderr
, " type=%d,", req
->type
);
2032 fprintf( stderr
, " win=%p,", req
->win
);
2033 fprintf( stderr
, " msg=%08x,", req
->msg
);
2034 fprintf( stderr
, " wparam=%08x,", req
->wparam
);
2035 fprintf( stderr
, " lparam=%08x,", req
->lparam
);
2036 fprintf( stderr
, " x=%d,", req
->x
);
2037 fprintf( stderr
, " y=%d,", req
->y
);
2038 fprintf( stderr
, " hook=%p,", req
->hook
);
2039 fprintf( stderr
, " hook_proc=%p,", req
->hook_proc
);
2040 fprintf( stderr
, " time=%08x,", req
->time
);
2041 fprintf( stderr
, " info=%08x,", req
->info
);
2042 fprintf( stderr
, " hw_id=%08x,", req
->hw_id
);
2043 fprintf( stderr
, " active_hooks=%08x,", req
->active_hooks
);
2044 fprintf( stderr
, " total=%d,", req
->total
);
2045 fprintf( stderr
, " data=" );
2046 dump_varargs_bytes( cur_size
);
2049 static void dump_reply_message_request( const struct reply_message_request
*req
)
2051 fprintf( stderr
, " result=%08x,", req
->result
);
2052 fprintf( stderr
, " remove=%d,", req
->remove
);
2053 fprintf( stderr
, " data=" );
2054 dump_varargs_bytes( cur_size
);
2057 static void dump_accept_hardware_message_request( const struct accept_hardware_message_request
*req
)
2059 fprintf( stderr
, " hw_id=%08x,", req
->hw_id
);
2060 fprintf( stderr
, " remove=%d,", req
->remove
);
2061 fprintf( stderr
, " new_win=%p", req
->new_win
);
2064 static void dump_get_message_reply_request( const struct get_message_reply_request
*req
)
2066 fprintf( stderr
, " cancel=%d", req
->cancel
);
2069 static void dump_get_message_reply_reply( const struct get_message_reply_reply
*req
)
2071 fprintf( stderr
, " result=%08x,", req
->result
);
2072 fprintf( stderr
, " data=" );
2073 dump_varargs_bytes( cur_size
);
2076 static void dump_set_win_timer_request( const struct set_win_timer_request
*req
)
2078 fprintf( stderr
, " win=%p,", req
->win
);
2079 fprintf( stderr
, " msg=%08x,", req
->msg
);
2080 fprintf( stderr
, " id=%08x,", req
->id
);
2081 fprintf( stderr
, " rate=%08x,", req
->rate
);
2082 fprintf( stderr
, " lparam=%08x", req
->lparam
);
2085 static void dump_set_win_timer_reply( const struct set_win_timer_reply
*req
)
2087 fprintf( stderr
, " id=%08x", req
->id
);
2090 static void dump_kill_win_timer_request( const struct kill_win_timer_request
*req
)
2092 fprintf( stderr
, " win=%p,", req
->win
);
2093 fprintf( stderr
, " msg=%08x,", req
->msg
);
2094 fprintf( stderr
, " id=%08x", req
->id
);
2097 static void dump_get_serial_info_request( const struct get_serial_info_request
*req
)
2099 fprintf( stderr
, " handle=%p", req
->handle
);
2102 static void dump_get_serial_info_reply( const struct get_serial_info_reply
*req
)
2104 fprintf( stderr
, " readinterval=%08x,", req
->readinterval
);
2105 fprintf( stderr
, " readconst=%08x,", req
->readconst
);
2106 fprintf( stderr
, " readmult=%08x,", req
->readmult
);
2107 fprintf( stderr
, " writeconst=%08x,", req
->writeconst
);
2108 fprintf( stderr
, " writemult=%08x,", req
->writemult
);
2109 fprintf( stderr
, " eventmask=%08x,", req
->eventmask
);
2110 fprintf( stderr
, " commerror=%08x", req
->commerror
);
2113 static void dump_set_serial_info_request( const struct set_serial_info_request
*req
)
2115 fprintf( stderr
, " handle=%p,", req
->handle
);
2116 fprintf( stderr
, " flags=%d,", req
->flags
);
2117 fprintf( stderr
, " readinterval=%08x,", req
->readinterval
);
2118 fprintf( stderr
, " readconst=%08x,", req
->readconst
);
2119 fprintf( stderr
, " readmult=%08x,", req
->readmult
);
2120 fprintf( stderr
, " writeconst=%08x,", req
->writeconst
);
2121 fprintf( stderr
, " writemult=%08x,", req
->writemult
);
2122 fprintf( stderr
, " eventmask=%08x,", req
->eventmask
);
2123 fprintf( stderr
, " commerror=%08x", req
->commerror
);
2126 static void dump_register_async_request( const struct register_async_request
*req
)
2128 fprintf( stderr
, " handle=%p,", req
->handle
);
2129 fprintf( stderr
, " type=%d,", req
->type
);
2130 fprintf( stderr
, " io_apc=%p,", req
->io_apc
);
2131 fprintf( stderr
, " io_sb=%p,", req
->io_sb
);
2132 fprintf( stderr
, " io_user=%p,", req
->io_user
);
2133 fprintf( stderr
, " count=%d", req
->count
);
2136 static void dump_cancel_async_request( const struct cancel_async_request
*req
)
2138 fprintf( stderr
, " handle=%p", req
->handle
);
2141 static void dump_create_named_pipe_request( const struct create_named_pipe_request
*req
)
2143 fprintf( stderr
, " options=%08x,", req
->options
);
2144 fprintf( stderr
, " flags=%08x,", req
->flags
);
2145 fprintf( stderr
, " maxinstances=%08x,", req
->maxinstances
);
2146 fprintf( stderr
, " outsize=%08x,", req
->outsize
);
2147 fprintf( stderr
, " insize=%08x,", req
->insize
);
2148 fprintf( stderr
, " timeout=%08x,", req
->timeout
);
2149 fprintf( stderr
, " inherit=%d,", req
->inherit
);
2150 fprintf( stderr
, " name=" );
2151 dump_varargs_unicode_str( cur_size
);
2154 static void dump_create_named_pipe_reply( const struct create_named_pipe_reply
*req
)
2156 fprintf( stderr
, " handle=%p", req
->handle
);
2159 static void dump_open_named_pipe_request( const struct open_named_pipe_request
*req
)
2161 fprintf( stderr
, " access=%08x,", req
->access
);
2162 fprintf( stderr
, " flags=%08x,", req
->flags
);
2163 fprintf( stderr
, " inherit=%d,", req
->inherit
);
2164 fprintf( stderr
, " name=" );
2165 dump_varargs_unicode_str( cur_size
);
2168 static void dump_open_named_pipe_reply( const struct open_named_pipe_reply
*req
)
2170 fprintf( stderr
, " handle=%p", req
->handle
);
2173 static void dump_connect_named_pipe_request( const struct connect_named_pipe_request
*req
)
2175 fprintf( stderr
, " handle=%p,", req
->handle
);
2176 fprintf( stderr
, " event=%p,", req
->event
);
2177 fprintf( stderr
, " func=%p", req
->func
);
2180 static void dump_wait_named_pipe_request( const struct wait_named_pipe_request
*req
)
2182 fprintf( stderr
, " timeout=%08x,", req
->timeout
);
2183 fprintf( stderr
, " overlapped=%p,", req
->overlapped
);
2184 fprintf( stderr
, " func=%p,", req
->func
);
2185 fprintf( stderr
, " name=" );
2186 dump_varargs_unicode_str( cur_size
);
2189 static void dump_disconnect_named_pipe_request( const struct disconnect_named_pipe_request
*req
)
2191 fprintf( stderr
, " handle=%p", req
->handle
);
2194 static void dump_disconnect_named_pipe_reply( const struct disconnect_named_pipe_reply
*req
)
2196 fprintf( stderr
, " fd=%d", req
->fd
);
2199 static void dump_get_named_pipe_info_request( const struct get_named_pipe_info_request
*req
)
2201 fprintf( stderr
, " handle=%p", req
->handle
);
2204 static void dump_get_named_pipe_info_reply( const struct get_named_pipe_info_reply
*req
)
2206 fprintf( stderr
, " flags=%08x,", req
->flags
);
2207 fprintf( stderr
, " maxinstances=%08x,", req
->maxinstances
);
2208 fprintf( stderr
, " outsize=%08x,", req
->outsize
);
2209 fprintf( stderr
, " insize=%08x", req
->insize
);
2212 static void dump_create_window_request( const struct create_window_request
*req
)
2214 fprintf( stderr
, " parent=%p,", req
->parent
);
2215 fprintf( stderr
, " owner=%p,", req
->owner
);
2216 fprintf( stderr
, " atom=%04x,", req
->atom
);
2217 fprintf( stderr
, " instance=%p", req
->instance
);
2220 static void dump_create_window_reply( const struct create_window_reply
*req
)
2222 fprintf( stderr
, " handle=%p,", req
->handle
);
2223 fprintf( stderr
, " extra=%d,", req
->extra
);
2224 fprintf( stderr
, " class_ptr=%p", req
->class_ptr
);
2227 static void dump_destroy_window_request( const struct destroy_window_request
*req
)
2229 fprintf( stderr
, " handle=%p", req
->handle
);
2232 static void dump_get_desktop_window_request( const struct get_desktop_window_request
*req
)
2236 static void dump_get_desktop_window_reply( const struct get_desktop_window_reply
*req
)
2238 fprintf( stderr
, " handle=%p", req
->handle
);
2241 static void dump_set_window_owner_request( const struct set_window_owner_request
*req
)
2243 fprintf( stderr
, " handle=%p,", req
->handle
);
2244 fprintf( stderr
, " owner=%p", req
->owner
);
2247 static void dump_set_window_owner_reply( const struct set_window_owner_reply
*req
)
2249 fprintf( stderr
, " full_owner=%p,", req
->full_owner
);
2250 fprintf( stderr
, " prev_owner=%p", req
->prev_owner
);
2253 static void dump_get_window_info_request( const struct get_window_info_request
*req
)
2255 fprintf( stderr
, " handle=%p", req
->handle
);
2258 static void dump_get_window_info_reply( const struct get_window_info_reply
*req
)
2260 fprintf( stderr
, " full_handle=%p,", req
->full_handle
);
2261 fprintf( stderr
, " last_active=%p,", req
->last_active
);
2262 fprintf( stderr
, " pid=%04x,", req
->pid
);
2263 fprintf( stderr
, " tid=%04x,", req
->tid
);
2264 fprintf( stderr
, " atom=%04x,", req
->atom
);
2265 fprintf( stderr
, " is_unicode=%d", req
->is_unicode
);
2268 static void dump_set_window_info_request( const struct set_window_info_request
*req
)
2270 fprintf( stderr
, " handle=%p,", req
->handle
);
2271 fprintf( stderr
, " flags=%08x,", req
->flags
);
2272 fprintf( stderr
, " style=%08x,", req
->style
);
2273 fprintf( stderr
, " ex_style=%08x,", req
->ex_style
);
2274 fprintf( stderr
, " id=%08x,", req
->id
);
2275 fprintf( stderr
, " instance=%p,", req
->instance
);
2276 fprintf( stderr
, " is_unicode=%d,", req
->is_unicode
);
2277 fprintf( stderr
, " user_data=%p,", req
->user_data
);
2278 fprintf( stderr
, " extra_offset=%d,", req
->extra_offset
);
2279 fprintf( stderr
, " extra_size=%d,", req
->extra_size
);
2280 fprintf( stderr
, " extra_value=%08x", req
->extra_value
);
2283 static void dump_set_window_info_reply( const struct set_window_info_reply
*req
)
2285 fprintf( stderr
, " old_style=%08x,", req
->old_style
);
2286 fprintf( stderr
, " old_ex_style=%08x,", req
->old_ex_style
);
2287 fprintf( stderr
, " old_id=%08x,", req
->old_id
);
2288 fprintf( stderr
, " old_instance=%p,", req
->old_instance
);
2289 fprintf( stderr
, " old_user_data=%p,", req
->old_user_data
);
2290 fprintf( stderr
, " old_extra_value=%08x", req
->old_extra_value
);
2293 static void dump_set_parent_request( const struct set_parent_request
*req
)
2295 fprintf( stderr
, " handle=%p,", req
->handle
);
2296 fprintf( stderr
, " parent=%p", req
->parent
);
2299 static void dump_set_parent_reply( const struct set_parent_reply
*req
)
2301 fprintf( stderr
, " old_parent=%p,", req
->old_parent
);
2302 fprintf( stderr
, " full_parent=%p", req
->full_parent
);
2305 static void dump_get_window_parents_request( const struct get_window_parents_request
*req
)
2307 fprintf( stderr
, " handle=%p", req
->handle
);
2310 static void dump_get_window_parents_reply( const struct get_window_parents_reply
*req
)
2312 fprintf( stderr
, " count=%d,", req
->count
);
2313 fprintf( stderr
, " parents=" );
2314 dump_varargs_user_handles( cur_size
);
2317 static void dump_get_window_children_request( const struct get_window_children_request
*req
)
2319 fprintf( stderr
, " parent=%p,", req
->parent
);
2320 fprintf( stderr
, " atom=%04x,", req
->atom
);
2321 fprintf( stderr
, " tid=%04x", req
->tid
);
2324 static void dump_get_window_children_reply( const struct get_window_children_reply
*req
)
2326 fprintf( stderr
, " count=%d,", req
->count
);
2327 fprintf( stderr
, " children=" );
2328 dump_varargs_user_handles( cur_size
);
2331 static void dump_get_window_children_from_point_request( const struct get_window_children_from_point_request
*req
)
2333 fprintf( stderr
, " parent=%p,", req
->parent
);
2334 fprintf( stderr
, " x=%d,", req
->x
);
2335 fprintf( stderr
, " y=%d", req
->y
);
2338 static void dump_get_window_children_from_point_reply( const struct get_window_children_from_point_reply
*req
)
2340 fprintf( stderr
, " count=%d,", req
->count
);
2341 fprintf( stderr
, " children=" );
2342 dump_varargs_user_handles( cur_size
);
2345 static void dump_get_window_tree_request( const struct get_window_tree_request
*req
)
2347 fprintf( stderr
, " handle=%p", req
->handle
);
2350 static void dump_get_window_tree_reply( const struct get_window_tree_reply
*req
)
2352 fprintf( stderr
, " parent=%p,", req
->parent
);
2353 fprintf( stderr
, " owner=%p,", req
->owner
);
2354 fprintf( stderr
, " next_sibling=%p,", req
->next_sibling
);
2355 fprintf( stderr
, " prev_sibling=%p,", req
->prev_sibling
);
2356 fprintf( stderr
, " first_sibling=%p,", req
->first_sibling
);
2357 fprintf( stderr
, " last_sibling=%p,", req
->last_sibling
);
2358 fprintf( stderr
, " first_child=%p,", req
->first_child
);
2359 fprintf( stderr
, " last_child=%p", req
->last_child
);
2362 static void dump_set_window_pos_request( const struct set_window_pos_request
*req
)
2364 fprintf( stderr
, " handle=%p,", req
->handle
);
2365 fprintf( stderr
, " previous=%p,", req
->previous
);
2366 fprintf( stderr
, " flags=%08x,", req
->flags
);
2367 fprintf( stderr
, " window=" );
2368 dump_rectangle( &req
->window
);
2369 fprintf( stderr
, "," );
2370 fprintf( stderr
, " client=" );
2371 dump_rectangle( &req
->client
);
2372 fprintf( stderr
, "," );
2373 fprintf( stderr
, " valid=" );
2374 dump_varargs_rectangles( cur_size
);
2377 static void dump_set_window_pos_reply( const struct set_window_pos_reply
*req
)
2379 fprintf( stderr
, " new_style=%08x", req
->new_style
);
2382 static void dump_get_window_rectangles_request( const struct get_window_rectangles_request
*req
)
2384 fprintf( stderr
, " handle=%p", req
->handle
);
2387 static void dump_get_window_rectangles_reply( const struct get_window_rectangles_reply
*req
)
2389 fprintf( stderr
, " window=" );
2390 dump_rectangle( &req
->window
);
2391 fprintf( stderr
, "," );
2392 fprintf( stderr
, " visible=" );
2393 dump_rectangle( &req
->visible
);
2394 fprintf( stderr
, "," );
2395 fprintf( stderr
, " client=" );
2396 dump_rectangle( &req
->client
);
2399 static void dump_get_window_text_request( const struct get_window_text_request
*req
)
2401 fprintf( stderr
, " handle=%p", req
->handle
);
2404 static void dump_get_window_text_reply( const struct get_window_text_reply
*req
)
2406 fprintf( stderr
, " text=" );
2407 dump_varargs_unicode_str( cur_size
);
2410 static void dump_set_window_text_request( const struct set_window_text_request
*req
)
2412 fprintf( stderr
, " handle=%p,", req
->handle
);
2413 fprintf( stderr
, " text=" );
2414 dump_varargs_unicode_str( cur_size
);
2417 static void dump_get_windows_offset_request( const struct get_windows_offset_request
*req
)
2419 fprintf( stderr
, " from=%p,", req
->from
);
2420 fprintf( stderr
, " to=%p", req
->to
);
2423 static void dump_get_windows_offset_reply( const struct get_windows_offset_reply
*req
)
2425 fprintf( stderr
, " x=%d,", req
->x
);
2426 fprintf( stderr
, " y=%d", req
->y
);
2429 static void dump_get_visible_region_request( const struct get_visible_region_request
*req
)
2431 fprintf( stderr
, " window=%p,", req
->window
);
2432 fprintf( stderr
, " flags=%08x", req
->flags
);
2435 static void dump_get_visible_region_reply( const struct get_visible_region_reply
*req
)
2437 fprintf( stderr
, " top_win=%p,", req
->top_win
);
2438 fprintf( stderr
, " top_org_x=%d,", req
->top_org_x
);
2439 fprintf( stderr
, " top_org_y=%d,", req
->top_org_y
);
2440 fprintf( stderr
, " win_org_x=%d,", req
->win_org_x
);
2441 fprintf( stderr
, " win_org_y=%d,", req
->win_org_y
);
2442 fprintf( stderr
, " total_size=%d,", req
->total_size
);
2443 fprintf( stderr
, " region=" );
2444 dump_varargs_rectangles( cur_size
);
2447 static void dump_get_window_region_request( const struct get_window_region_request
*req
)
2449 fprintf( stderr
, " window=%p", req
->window
);
2452 static void dump_get_window_region_reply( const struct get_window_region_reply
*req
)
2454 fprintf( stderr
, " total_size=%d,", req
->total_size
);
2455 fprintf( stderr
, " region=" );
2456 dump_varargs_rectangles( cur_size
);
2459 static void dump_set_window_region_request( const struct set_window_region_request
*req
)
2461 fprintf( stderr
, " window=%p,", req
->window
);
2462 fprintf( stderr
, " region=" );
2463 dump_varargs_rectangles( cur_size
);
2466 static void dump_get_update_region_request( const struct get_update_region_request
*req
)
2468 fprintf( stderr
, " window=%p,", req
->window
);
2469 fprintf( stderr
, " from_child=%p,", req
->from_child
);
2470 fprintf( stderr
, " flags=%08x", req
->flags
);
2473 static void dump_get_update_region_reply( const struct get_update_region_reply
*req
)
2475 fprintf( stderr
, " child=%p,", req
->child
);
2476 fprintf( stderr
, " flags=%08x,", req
->flags
);
2477 fprintf( stderr
, " total_size=%d,", req
->total_size
);
2478 fprintf( stderr
, " region=" );
2479 dump_varargs_rectangles( cur_size
);
2482 static void dump_update_window_zorder_request( const struct update_window_zorder_request
*req
)
2484 fprintf( stderr
, " window=%p,", req
->window
);
2485 fprintf( stderr
, " rect=" );
2486 dump_rectangle( &req
->rect
);
2489 static void dump_redraw_window_request( const struct redraw_window_request
*req
)
2491 fprintf( stderr
, " window=%p,", req
->window
);
2492 fprintf( stderr
, " flags=%08x,", req
->flags
);
2493 fprintf( stderr
, " region=" );
2494 dump_varargs_rectangles( cur_size
);
2497 static void dump_set_window_property_request( const struct set_window_property_request
*req
)
2499 fprintf( stderr
, " window=%p,", req
->window
);
2500 fprintf( stderr
, " atom=%04x,", req
->atom
);
2501 fprintf( stderr
, " handle=%p,", req
->handle
);
2502 fprintf( stderr
, " name=" );
2503 dump_varargs_unicode_str( cur_size
);
2506 static void dump_remove_window_property_request( const struct remove_window_property_request
*req
)
2508 fprintf( stderr
, " window=%p,", req
->window
);
2509 fprintf( stderr
, " atom=%04x,", req
->atom
);
2510 fprintf( stderr
, " name=" );
2511 dump_varargs_unicode_str( cur_size
);
2514 static void dump_remove_window_property_reply( const struct remove_window_property_reply
*req
)
2516 fprintf( stderr
, " handle=%p", req
->handle
);
2519 static void dump_get_window_property_request( const struct get_window_property_request
*req
)
2521 fprintf( stderr
, " window=%p,", req
->window
);
2522 fprintf( stderr
, " atom=%04x,", req
->atom
);
2523 fprintf( stderr
, " name=" );
2524 dump_varargs_unicode_str( cur_size
);
2527 static void dump_get_window_property_reply( const struct get_window_property_reply
*req
)
2529 fprintf( stderr
, " handle=%p", req
->handle
);
2532 static void dump_get_window_properties_request( const struct get_window_properties_request
*req
)
2534 fprintf( stderr
, " window=%p", req
->window
);
2537 static void dump_get_window_properties_reply( const struct get_window_properties_reply
*req
)
2539 fprintf( stderr
, " total=%d,", req
->total
);
2540 fprintf( stderr
, " props=" );
2541 dump_varargs_properties( cur_size
);
2544 static void dump_create_winstation_request( const struct create_winstation_request
*req
)
2546 fprintf( stderr
, " flags=%08x,", req
->flags
);
2547 fprintf( stderr
, " access=%08x,", req
->access
);
2548 fprintf( stderr
, " inherit=%d,", req
->inherit
);
2549 fprintf( stderr
, " name=" );
2550 dump_varargs_unicode_str( cur_size
);
2553 static void dump_create_winstation_reply( const struct create_winstation_reply
*req
)
2555 fprintf( stderr
, " handle=%p", req
->handle
);
2558 static void dump_open_winstation_request( const struct open_winstation_request
*req
)
2560 fprintf( stderr
, " access=%08x,", req
->access
);
2561 fprintf( stderr
, " inherit=%d,", req
->inherit
);
2562 fprintf( stderr
, " name=" );
2563 dump_varargs_unicode_str( cur_size
);
2566 static void dump_open_winstation_reply( const struct open_winstation_reply
*req
)
2568 fprintf( stderr
, " handle=%p", req
->handle
);
2571 static void dump_close_winstation_request( const struct close_winstation_request
*req
)
2573 fprintf( stderr
, " handle=%p", req
->handle
);
2576 static void dump_get_process_winstation_request( const struct get_process_winstation_request
*req
)
2580 static void dump_get_process_winstation_reply( const struct get_process_winstation_reply
*req
)
2582 fprintf( stderr
, " handle=%p", req
->handle
);
2585 static void dump_set_process_winstation_request( const struct set_process_winstation_request
*req
)
2587 fprintf( stderr
, " handle=%p", req
->handle
);
2590 static void dump_create_desktop_request( const struct create_desktop_request
*req
)
2592 fprintf( stderr
, " flags=%08x,", req
->flags
);
2593 fprintf( stderr
, " access=%08x,", req
->access
);
2594 fprintf( stderr
, " inherit=%d,", req
->inherit
);
2595 fprintf( stderr
, " name=" );
2596 dump_varargs_unicode_str( cur_size
);
2599 static void dump_create_desktop_reply( const struct create_desktop_reply
*req
)
2601 fprintf( stderr
, " handle=%p", req
->handle
);
2604 static void dump_open_desktop_request( const struct open_desktop_request
*req
)
2606 fprintf( stderr
, " flags=%08x,", req
->flags
);
2607 fprintf( stderr
, " access=%08x,", req
->access
);
2608 fprintf( stderr
, " inherit=%d,", req
->inherit
);
2609 fprintf( stderr
, " name=" );
2610 dump_varargs_unicode_str( cur_size
);
2613 static void dump_open_desktop_reply( const struct open_desktop_reply
*req
)
2615 fprintf( stderr
, " handle=%p", req
->handle
);
2618 static void dump_close_desktop_request( const struct close_desktop_request
*req
)
2620 fprintf( stderr
, " handle=%p", req
->handle
);
2623 static void dump_get_thread_desktop_request( const struct get_thread_desktop_request
*req
)
2625 fprintf( stderr
, " tid=%04x", req
->tid
);
2628 static void dump_get_thread_desktop_reply( const struct get_thread_desktop_reply
*req
)
2630 fprintf( stderr
, " handle=%p", req
->handle
);
2633 static void dump_set_thread_desktop_request( const struct set_thread_desktop_request
*req
)
2635 fprintf( stderr
, " handle=%p", req
->handle
);
2638 static void dump_set_user_object_info_request( const struct set_user_object_info_request
*req
)
2640 fprintf( stderr
, " handle=%p,", req
->handle
);
2641 fprintf( stderr
, " flags=%08x,", req
->flags
);
2642 fprintf( stderr
, " obj_flags=%08x", req
->obj_flags
);
2645 static void dump_set_user_object_info_reply( const struct set_user_object_info_reply
*req
)
2647 fprintf( stderr
, " is_desktop=%d,", req
->is_desktop
);
2648 fprintf( stderr
, " old_obj_flags=%08x,", req
->old_obj_flags
);
2649 fprintf( stderr
, " name=" );
2650 dump_varargs_unicode_str( cur_size
);
2653 static void dump_attach_thread_input_request( const struct attach_thread_input_request
*req
)
2655 fprintf( stderr
, " tid_from=%04x,", req
->tid_from
);
2656 fprintf( stderr
, " tid_to=%04x,", req
->tid_to
);
2657 fprintf( stderr
, " attach=%d", req
->attach
);
2660 static void dump_get_thread_input_request( const struct get_thread_input_request
*req
)
2662 fprintf( stderr
, " tid=%04x", req
->tid
);
2665 static void dump_get_thread_input_reply( const struct get_thread_input_reply
*req
)
2667 fprintf( stderr
, " focus=%p,", req
->focus
);
2668 fprintf( stderr
, " capture=%p,", req
->capture
);
2669 fprintf( stderr
, " active=%p,", req
->active
);
2670 fprintf( stderr
, " foreground=%p,", req
->foreground
);
2671 fprintf( stderr
, " menu_owner=%p,", req
->menu_owner
);
2672 fprintf( stderr
, " move_size=%p,", req
->move_size
);
2673 fprintf( stderr
, " caret=%p,", req
->caret
);
2674 fprintf( stderr
, " rect=" );
2675 dump_rectangle( &req
->rect
);
2678 static void dump_get_last_input_time_request( const struct get_last_input_time_request
*req
)
2682 static void dump_get_last_input_time_reply( const struct get_last_input_time_reply
*req
)
2684 fprintf( stderr
, " time=%08x", req
->time
);
2687 static void dump_get_key_state_request( const struct get_key_state_request
*req
)
2689 fprintf( stderr
, " tid=%04x,", req
->tid
);
2690 fprintf( stderr
, " key=%d", req
->key
);
2693 static void dump_get_key_state_reply( const struct get_key_state_reply
*req
)
2695 fprintf( stderr
, " state=%02x,", req
->state
);
2696 fprintf( stderr
, " keystate=" );
2697 dump_varargs_bytes( cur_size
);
2700 static void dump_set_key_state_request( const struct set_key_state_request
*req
)
2702 fprintf( stderr
, " tid=%04x,", req
->tid
);
2703 fprintf( stderr
, " keystate=" );
2704 dump_varargs_bytes( cur_size
);
2707 static void dump_set_foreground_window_request( const struct set_foreground_window_request
*req
)
2709 fprintf( stderr
, " handle=%p", req
->handle
);
2712 static void dump_set_foreground_window_reply( const struct set_foreground_window_reply
*req
)
2714 fprintf( stderr
, " previous=%p,", req
->previous
);
2715 fprintf( stderr
, " send_msg_old=%d,", req
->send_msg_old
);
2716 fprintf( stderr
, " send_msg_new=%d", req
->send_msg_new
);
2719 static void dump_set_focus_window_request( const struct set_focus_window_request
*req
)
2721 fprintf( stderr
, " handle=%p", req
->handle
);
2724 static void dump_set_focus_window_reply( const struct set_focus_window_reply
*req
)
2726 fprintf( stderr
, " previous=%p", req
->previous
);
2729 static void dump_set_active_window_request( const struct set_active_window_request
*req
)
2731 fprintf( stderr
, " handle=%p", req
->handle
);
2734 static void dump_set_active_window_reply( const struct set_active_window_reply
*req
)
2736 fprintf( stderr
, " previous=%p", req
->previous
);
2739 static void dump_set_capture_window_request( const struct set_capture_window_request
*req
)
2741 fprintf( stderr
, " handle=%p,", req
->handle
);
2742 fprintf( stderr
, " flags=%08x", req
->flags
);
2745 static void dump_set_capture_window_reply( const struct set_capture_window_reply
*req
)
2747 fprintf( stderr
, " previous=%p,", req
->previous
);
2748 fprintf( stderr
, " full_handle=%p", req
->full_handle
);
2751 static void dump_set_caret_window_request( const struct set_caret_window_request
*req
)
2753 fprintf( stderr
, " handle=%p,", req
->handle
);
2754 fprintf( stderr
, " width=%d,", req
->width
);
2755 fprintf( stderr
, " height=%d", req
->height
);
2758 static void dump_set_caret_window_reply( const struct set_caret_window_reply
*req
)
2760 fprintf( stderr
, " previous=%p,", req
->previous
);
2761 fprintf( stderr
, " old_rect=" );
2762 dump_rectangle( &req
->old_rect
);
2763 fprintf( stderr
, "," );
2764 fprintf( stderr
, " old_hide=%d,", req
->old_hide
);
2765 fprintf( stderr
, " old_state=%d", req
->old_state
);
2768 static void dump_set_caret_info_request( const struct set_caret_info_request
*req
)
2770 fprintf( stderr
, " flags=%08x,", req
->flags
);
2771 fprintf( stderr
, " handle=%p,", req
->handle
);
2772 fprintf( stderr
, " x=%d,", req
->x
);
2773 fprintf( stderr
, " y=%d,", req
->y
);
2774 fprintf( stderr
, " hide=%d,", req
->hide
);
2775 fprintf( stderr
, " state=%d", req
->state
);
2778 static void dump_set_caret_info_reply( const struct set_caret_info_reply
*req
)
2780 fprintf( stderr
, " full_handle=%p,", req
->full_handle
);
2781 fprintf( stderr
, " old_rect=" );
2782 dump_rectangle( &req
->old_rect
);
2783 fprintf( stderr
, "," );
2784 fprintf( stderr
, " old_hide=%d,", req
->old_hide
);
2785 fprintf( stderr
, " old_state=%d", req
->old_state
);
2788 static void dump_set_hook_request( const struct set_hook_request
*req
)
2790 fprintf( stderr
, " id=%d,", req
->id
);
2791 fprintf( stderr
, " pid=%04x,", req
->pid
);
2792 fprintf( stderr
, " tid=%04x,", req
->tid
);
2793 fprintf( stderr
, " event_min=%d,", req
->event_min
);
2794 fprintf( stderr
, " event_max=%d,", req
->event_max
);
2795 fprintf( stderr
, " flags=%d,", req
->flags
);
2796 fprintf( stderr
, " proc=%p,", req
->proc
);
2797 fprintf( stderr
, " unicode=%d,", req
->unicode
);
2798 fprintf( stderr
, " module=" );
2799 dump_varargs_unicode_str( cur_size
);
2802 static void dump_set_hook_reply( const struct set_hook_reply
*req
)
2804 fprintf( stderr
, " handle=%p,", req
->handle
);
2805 fprintf( stderr
, " active_hooks=%08x", req
->active_hooks
);
2808 static void dump_remove_hook_request( const struct remove_hook_request
*req
)
2810 fprintf( stderr
, " handle=%p,", req
->handle
);
2811 fprintf( stderr
, " id=%d,", req
->id
);
2812 fprintf( stderr
, " proc=%p", req
->proc
);
2815 static void dump_remove_hook_reply( const struct remove_hook_reply
*req
)
2817 fprintf( stderr
, " active_hooks=%08x", req
->active_hooks
);
2820 static void dump_start_hook_chain_request( const struct start_hook_chain_request
*req
)
2822 fprintf( stderr
, " id=%d,", req
->id
);
2823 fprintf( stderr
, " event=%d,", req
->event
);
2824 fprintf( stderr
, " window=%p,", req
->window
);
2825 fprintf( stderr
, " object_id=%d,", req
->object_id
);
2826 fprintf( stderr
, " child_id=%d", req
->child_id
);
2829 static void dump_start_hook_chain_reply( const struct start_hook_chain_reply
*req
)
2831 fprintf( stderr
, " handle=%p,", req
->handle
);
2832 fprintf( stderr
, " pid=%04x,", req
->pid
);
2833 fprintf( stderr
, " tid=%04x,", req
->tid
);
2834 fprintf( stderr
, " proc=%p,", req
->proc
);
2835 fprintf( stderr
, " unicode=%d,", req
->unicode
);
2836 fprintf( stderr
, " active_hooks=%08x,", req
->active_hooks
);
2837 fprintf( stderr
, " module=" );
2838 dump_varargs_unicode_str( cur_size
);
2841 static void dump_finish_hook_chain_request( const struct finish_hook_chain_request
*req
)
2843 fprintf( stderr
, " id=%d", req
->id
);
2846 static void dump_get_next_hook_request( const struct get_next_hook_request
*req
)
2848 fprintf( stderr
, " handle=%p,", req
->handle
);
2849 fprintf( stderr
, " event=%d,", req
->event
);
2850 fprintf( stderr
, " window=%p,", req
->window
);
2851 fprintf( stderr
, " object_id=%d,", req
->object_id
);
2852 fprintf( stderr
, " child_id=%d", req
->child_id
);
2855 static void dump_get_next_hook_reply( const struct get_next_hook_reply
*req
)
2857 fprintf( stderr
, " next=%p,", req
->next
);
2858 fprintf( stderr
, " id=%d,", req
->id
);
2859 fprintf( stderr
, " pid=%04x,", req
->pid
);
2860 fprintf( stderr
, " tid=%04x,", req
->tid
);
2861 fprintf( stderr
, " proc=%p,", req
->proc
);
2862 fprintf( stderr
, " prev_unicode=%d,", req
->prev_unicode
);
2863 fprintf( stderr
, " next_unicode=%d,", req
->next_unicode
);
2864 fprintf( stderr
, " module=" );
2865 dump_varargs_unicode_str( cur_size
);
2868 static void dump_create_class_request( const struct create_class_request
*req
)
2870 fprintf( stderr
, " local=%d,", req
->local
);
2871 fprintf( stderr
, " atom=%04x,", req
->atom
);
2872 fprintf( stderr
, " style=%08x,", req
->style
);
2873 fprintf( stderr
, " instance=%p,", req
->instance
);
2874 fprintf( stderr
, " extra=%d,", req
->extra
);
2875 fprintf( stderr
, " win_extra=%d,", req
->win_extra
);
2876 fprintf( stderr
, " client_ptr=%p", req
->client_ptr
);
2879 static void dump_destroy_class_request( const struct destroy_class_request
*req
)
2881 fprintf( stderr
, " atom=%04x,", req
->atom
);
2882 fprintf( stderr
, " instance=%p", req
->instance
);
2885 static void dump_destroy_class_reply( const struct destroy_class_reply
*req
)
2887 fprintf( stderr
, " client_ptr=%p", req
->client_ptr
);
2890 static void dump_set_class_info_request( const struct set_class_info_request
*req
)
2892 fprintf( stderr
, " window=%p,", req
->window
);
2893 fprintf( stderr
, " flags=%08x,", req
->flags
);
2894 fprintf( stderr
, " atom=%04x,", req
->atom
);
2895 fprintf( stderr
, " style=%08x,", req
->style
);
2896 fprintf( stderr
, " win_extra=%d,", req
->win_extra
);
2897 fprintf( stderr
, " instance=%p,", req
->instance
);
2898 fprintf( stderr
, " extra_offset=%d,", req
->extra_offset
);
2899 fprintf( stderr
, " extra_size=%d,", req
->extra_size
);
2900 fprintf( stderr
, " extra_value=%08x", req
->extra_value
);
2903 static void dump_set_class_info_reply( const struct set_class_info_reply
*req
)
2905 fprintf( stderr
, " old_atom=%04x,", req
->old_atom
);
2906 fprintf( stderr
, " old_style=%08x,", req
->old_style
);
2907 fprintf( stderr
, " old_extra=%d,", req
->old_extra
);
2908 fprintf( stderr
, " old_win_extra=%d,", req
->old_win_extra
);
2909 fprintf( stderr
, " old_instance=%p,", req
->old_instance
);
2910 fprintf( stderr
, " old_extra_value=%08x", req
->old_extra_value
);
2913 static void dump_set_clipboard_info_request( const struct set_clipboard_info_request
*req
)
2915 fprintf( stderr
, " flags=%08x,", req
->flags
);
2916 fprintf( stderr
, " clipboard=%p,", req
->clipboard
);
2917 fprintf( stderr
, " owner=%p,", req
->owner
);
2918 fprintf( stderr
, " viewer=%p,", req
->viewer
);
2919 fprintf( stderr
, " seqno=%08x", req
->seqno
);
2922 static void dump_set_clipboard_info_reply( const struct set_clipboard_info_reply
*req
)
2924 fprintf( stderr
, " flags=%08x,", req
->flags
);
2925 fprintf( stderr
, " old_clipboard=%p,", req
->old_clipboard
);
2926 fprintf( stderr
, " old_owner=%p,", req
->old_owner
);
2927 fprintf( stderr
, " old_viewer=%p,", req
->old_viewer
);
2928 fprintf( stderr
, " seqno=%08x", req
->seqno
);
2931 static void dump_open_token_request( const struct open_token_request
*req
)
2933 fprintf( stderr
, " handle=%p,", req
->handle
);
2934 fprintf( stderr
, " flags=%08x", req
->flags
);
2937 static void dump_open_token_reply( const struct open_token_reply
*req
)
2939 fprintf( stderr
, " token=%p", req
->token
);
2942 static void dump_set_global_windows_request( const struct set_global_windows_request
*req
)
2944 fprintf( stderr
, " flags=%08x,", req
->flags
);
2945 fprintf( stderr
, " shell_window=%p,", req
->shell_window
);
2946 fprintf( stderr
, " shell_listview=%p,", req
->shell_listview
);
2947 fprintf( stderr
, " progman_window=%p,", req
->progman_window
);
2948 fprintf( stderr
, " taskman_window=%p", req
->taskman_window
);
2951 static void dump_set_global_windows_reply( const struct set_global_windows_reply
*req
)
2953 fprintf( stderr
, " old_shell_window=%p,", req
->old_shell_window
);
2954 fprintf( stderr
, " old_shell_listview=%p,", req
->old_shell_listview
);
2955 fprintf( stderr
, " old_progman_window=%p,", req
->old_progman_window
);
2956 fprintf( stderr
, " old_taskman_window=%p", req
->old_taskman_window
);
2959 static void dump_adjust_token_privileges_request( const struct adjust_token_privileges_request
*req
)
2961 fprintf( stderr
, " handle=%p,", req
->handle
);
2962 fprintf( stderr
, " disable_all=%d,", req
->disable_all
);
2963 fprintf( stderr
, " get_modified_state=%d,", req
->get_modified_state
);
2964 fprintf( stderr
, " privileges=" );
2965 dump_varargs_LUID_AND_ATTRIBUTES( cur_size
);
2968 static void dump_adjust_token_privileges_reply( const struct adjust_token_privileges_reply
*req
)
2970 fprintf( stderr
, " len=%08x,", req
->len
);
2971 fprintf( stderr
, " privileges=" );
2972 dump_varargs_LUID_AND_ATTRIBUTES( cur_size
);
2975 static void dump_get_token_privileges_request( const struct get_token_privileges_request
*req
)
2977 fprintf( stderr
, " handle=%p", req
->handle
);
2980 static void dump_get_token_privileges_reply( const struct get_token_privileges_reply
*req
)
2982 fprintf( stderr
, " len=%08x,", req
->len
);
2983 fprintf( stderr
, " privileges=" );
2984 dump_varargs_LUID_AND_ATTRIBUTES( cur_size
);
2987 static void dump_check_token_privileges_request( const struct check_token_privileges_request
*req
)
2989 fprintf( stderr
, " handle=%p,", req
->handle
);
2990 fprintf( stderr
, " all_required=%d,", req
->all_required
);
2991 fprintf( stderr
, " privileges=" );
2992 dump_varargs_LUID_AND_ATTRIBUTES( cur_size
);
2995 static void dump_check_token_privileges_reply( const struct check_token_privileges_reply
*req
)
2997 fprintf( stderr
, " has_privileges=%d,", req
->has_privileges
);
2998 fprintf( stderr
, " privileges=" );
2999 dump_varargs_LUID_AND_ATTRIBUTES( cur_size
);
3002 static void dump_duplicate_token_request( const struct duplicate_token_request
*req
)
3004 fprintf( stderr
, " handle=%p,", req
->handle
);
3005 fprintf( stderr
, " access=%08x,", req
->access
);
3006 fprintf( stderr
, " inherit=%d,", req
->inherit
);
3007 fprintf( stderr
, " primary=%d,", req
->primary
);
3008 fprintf( stderr
, " impersonation_level=%d", req
->impersonation_level
);
3011 static void dump_duplicate_token_reply( const struct duplicate_token_reply
*req
)
3013 fprintf( stderr
, " new_handle=%p", req
->new_handle
);
3016 static void dump_access_check_request( const struct access_check_request
*req
)
3018 fprintf( stderr
, " handle=%p,", req
->handle
);
3019 fprintf( stderr
, " desired_access=%08x,", req
->desired_access
);
3020 fprintf( stderr
, " mapping_read=%08x,", req
->mapping_read
);
3021 fprintf( stderr
, " mapping_write=%08x,", req
->mapping_write
);
3022 fprintf( stderr
, " mapping_execute=%08x,", req
->mapping_execute
);
3023 fprintf( stderr
, " mapping_all=%08x,", req
->mapping_all
);
3024 fprintf( stderr
, " sd=" );
3025 dump_varargs_security_descriptor( cur_size
);
3028 static void dump_access_check_reply( const struct access_check_reply
*req
)
3030 fprintf( stderr
, " access_granted=%08x,", req
->access_granted
);
3031 fprintf( stderr
, " access_status=%08x,", req
->access_status
);
3032 fprintf( stderr
, " privileges_len=%08x,", req
->privileges_len
);
3033 fprintf( stderr
, " privileges=" );
3034 dump_varargs_LUID_AND_ATTRIBUTES( cur_size
);
3037 static void dump_get_token_user_request( const struct get_token_user_request
*req
)
3039 fprintf( stderr
, " handle=%p", req
->handle
);
3042 static void dump_get_token_user_reply( const struct get_token_user_reply
*req
)
3044 fprintf( stderr
, " user_len=%d,", req
->user_len
);
3045 fprintf( stderr
, " user=" );
3046 dump_varargs_SID( cur_size
);
3049 static void dump_create_mailslot_request( const struct create_mailslot_request
*req
)
3051 fprintf( stderr
, " max_msgsize=%08x,", req
->max_msgsize
);
3052 fprintf( stderr
, " read_timeout=%08x,", req
->read_timeout
);
3053 fprintf( stderr
, " inherit=%d,", req
->inherit
);
3054 fprintf( stderr
, " name=" );
3055 dump_varargs_unicode_str( cur_size
);
3058 static void dump_create_mailslot_reply( const struct create_mailslot_reply
*req
)
3060 fprintf( stderr
, " handle=%p", req
->handle
);
3063 static void dump_open_mailslot_request( const struct open_mailslot_request
*req
)
3065 fprintf( stderr
, " access=%08x,", req
->access
);
3066 fprintf( stderr
, " inherit=%d,", req
->inherit
);
3067 fprintf( stderr
, " sharing=%08x,", req
->sharing
);
3068 fprintf( stderr
, " name=" );
3069 dump_varargs_unicode_str( cur_size
);
3072 static void dump_open_mailslot_reply( const struct open_mailslot_reply
*req
)
3074 fprintf( stderr
, " handle=%p", req
->handle
);
3077 static void dump_set_mailslot_info_request( const struct set_mailslot_info_request
*req
)
3079 fprintf( stderr
, " handle=%p,", req
->handle
);
3080 fprintf( stderr
, " flags=%08x,", req
->flags
);
3081 fprintf( stderr
, " read_timeout=%08x", req
->read_timeout
);
3084 static void dump_set_mailslot_info_reply( const struct set_mailslot_info_reply
*req
)
3086 fprintf( stderr
, " max_msgsize=%08x,", req
->max_msgsize
);
3087 fprintf( stderr
, " read_timeout=%08x,", req
->read_timeout
);
3088 fprintf( stderr
, " msg_count=%08x,", req
->msg_count
);
3089 fprintf( stderr
, " next_msgsize=%08x", req
->next_msgsize
);
3092 static const dump_func req_dumpers
[REQ_NB_REQUESTS
] = {
3093 (dump_func
)dump_new_process_request
,
3094 (dump_func
)dump_get_new_process_info_request
,
3095 (dump_func
)dump_new_thread_request
,
3096 (dump_func
)dump_get_startup_info_request
,
3097 (dump_func
)dump_init_process_done_request
,
3098 (dump_func
)dump_init_thread_request
,
3099 (dump_func
)dump_terminate_process_request
,
3100 (dump_func
)dump_terminate_thread_request
,
3101 (dump_func
)dump_get_process_info_request
,
3102 (dump_func
)dump_set_process_info_request
,
3103 (dump_func
)dump_get_thread_info_request
,
3104 (dump_func
)dump_set_thread_info_request
,
3105 (dump_func
)dump_get_dll_info_request
,
3106 (dump_func
)dump_suspend_thread_request
,
3107 (dump_func
)dump_resume_thread_request
,
3108 (dump_func
)dump_load_dll_request
,
3109 (dump_func
)dump_unload_dll_request
,
3110 (dump_func
)dump_queue_apc_request
,
3111 (dump_func
)dump_get_apc_request
,
3112 (dump_func
)dump_close_handle_request
,
3113 (dump_func
)dump_set_handle_info_request
,
3114 (dump_func
)dump_dup_handle_request
,
3115 (dump_func
)dump_open_process_request
,
3116 (dump_func
)dump_open_thread_request
,
3117 (dump_func
)dump_select_request
,
3118 (dump_func
)dump_create_event_request
,
3119 (dump_func
)dump_event_op_request
,
3120 (dump_func
)dump_open_event_request
,
3121 (dump_func
)dump_create_mutex_request
,
3122 (dump_func
)dump_release_mutex_request
,
3123 (dump_func
)dump_open_mutex_request
,
3124 (dump_func
)dump_create_semaphore_request
,
3125 (dump_func
)dump_release_semaphore_request
,
3126 (dump_func
)dump_open_semaphore_request
,
3127 (dump_func
)dump_create_file_request
,
3128 (dump_func
)dump_alloc_file_handle_request
,
3129 (dump_func
)dump_get_handle_fd_request
,
3130 (dump_func
)dump_set_handle_fd_request
,
3131 (dump_func
)dump_flush_file_request
,
3132 (dump_func
)dump_lock_file_request
,
3133 (dump_func
)dump_unlock_file_request
,
3134 (dump_func
)dump_unmount_device_request
,
3135 (dump_func
)dump_create_socket_request
,
3136 (dump_func
)dump_accept_socket_request
,
3137 (dump_func
)dump_set_socket_event_request
,
3138 (dump_func
)dump_get_socket_event_request
,
3139 (dump_func
)dump_enable_socket_event_request
,
3140 (dump_func
)dump_set_socket_deferred_request
,
3141 (dump_func
)dump_alloc_console_request
,
3142 (dump_func
)dump_free_console_request
,
3143 (dump_func
)dump_get_console_renderer_events_request
,
3144 (dump_func
)dump_open_console_request
,
3145 (dump_func
)dump_get_console_wait_event_request
,
3146 (dump_func
)dump_get_console_mode_request
,
3147 (dump_func
)dump_set_console_mode_request
,
3148 (dump_func
)dump_set_console_input_info_request
,
3149 (dump_func
)dump_get_console_input_info_request
,
3150 (dump_func
)dump_append_console_input_history_request
,
3151 (dump_func
)dump_get_console_input_history_request
,
3152 (dump_func
)dump_create_console_output_request
,
3153 (dump_func
)dump_set_console_output_info_request
,
3154 (dump_func
)dump_get_console_output_info_request
,
3155 (dump_func
)dump_write_console_input_request
,
3156 (dump_func
)dump_read_console_input_request
,
3157 (dump_func
)dump_write_console_output_request
,
3158 (dump_func
)dump_fill_console_output_request
,
3159 (dump_func
)dump_read_console_output_request
,
3160 (dump_func
)dump_move_console_output_request
,
3161 (dump_func
)dump_send_console_signal_request
,
3162 (dump_func
)dump_create_change_notification_request
,
3163 (dump_func
)dump_next_change_notification_request
,
3164 (dump_func
)dump_create_mapping_request
,
3165 (dump_func
)dump_open_mapping_request
,
3166 (dump_func
)dump_get_mapping_info_request
,
3167 (dump_func
)dump_create_snapshot_request
,
3168 (dump_func
)dump_next_process_request
,
3169 (dump_func
)dump_next_thread_request
,
3170 (dump_func
)dump_next_module_request
,
3171 (dump_func
)dump_wait_debug_event_request
,
3172 (dump_func
)dump_queue_exception_event_request
,
3173 (dump_func
)dump_get_exception_status_request
,
3174 (dump_func
)dump_output_debug_string_request
,
3175 (dump_func
)dump_continue_debug_event_request
,
3176 (dump_func
)dump_debug_process_request
,
3177 (dump_func
)dump_debug_break_request
,
3178 (dump_func
)dump_set_debugger_kill_on_exit_request
,
3179 (dump_func
)dump_read_process_memory_request
,
3180 (dump_func
)dump_write_process_memory_request
,
3181 (dump_func
)dump_create_key_request
,
3182 (dump_func
)dump_open_key_request
,
3183 (dump_func
)dump_delete_key_request
,
3184 (dump_func
)dump_flush_key_request
,
3185 (dump_func
)dump_enum_key_request
,
3186 (dump_func
)dump_set_key_value_request
,
3187 (dump_func
)dump_get_key_value_request
,
3188 (dump_func
)dump_enum_key_value_request
,
3189 (dump_func
)dump_delete_key_value_request
,
3190 (dump_func
)dump_load_registry_request
,
3191 (dump_func
)dump_unload_registry_request
,
3192 (dump_func
)dump_save_registry_request
,
3193 (dump_func
)dump_set_registry_notification_request
,
3194 (dump_func
)dump_create_timer_request
,
3195 (dump_func
)dump_open_timer_request
,
3196 (dump_func
)dump_set_timer_request
,
3197 (dump_func
)dump_cancel_timer_request
,
3198 (dump_func
)dump_get_timer_info_request
,
3199 (dump_func
)dump_get_thread_context_request
,
3200 (dump_func
)dump_set_thread_context_request
,
3201 (dump_func
)dump_get_selector_entry_request
,
3202 (dump_func
)dump_add_atom_request
,
3203 (dump_func
)dump_delete_atom_request
,
3204 (dump_func
)dump_find_atom_request
,
3205 (dump_func
)dump_get_atom_information_request
,
3206 (dump_func
)dump_set_atom_information_request
,
3207 (dump_func
)dump_empty_atom_table_request
,
3208 (dump_func
)dump_init_atom_table_request
,
3209 (dump_func
)dump_get_msg_queue_request
,
3210 (dump_func
)dump_set_queue_mask_request
,
3211 (dump_func
)dump_get_queue_status_request
,
3212 (dump_func
)dump_wait_input_idle_request
,
3213 (dump_func
)dump_send_message_request
,
3214 (dump_func
)dump_get_message_request
,
3215 (dump_func
)dump_reply_message_request
,
3216 (dump_func
)dump_accept_hardware_message_request
,
3217 (dump_func
)dump_get_message_reply_request
,
3218 (dump_func
)dump_set_win_timer_request
,
3219 (dump_func
)dump_kill_win_timer_request
,
3220 (dump_func
)dump_get_serial_info_request
,
3221 (dump_func
)dump_set_serial_info_request
,
3222 (dump_func
)dump_register_async_request
,
3223 (dump_func
)dump_cancel_async_request
,
3224 (dump_func
)dump_create_named_pipe_request
,
3225 (dump_func
)dump_open_named_pipe_request
,
3226 (dump_func
)dump_connect_named_pipe_request
,
3227 (dump_func
)dump_wait_named_pipe_request
,
3228 (dump_func
)dump_disconnect_named_pipe_request
,
3229 (dump_func
)dump_get_named_pipe_info_request
,
3230 (dump_func
)dump_create_window_request
,
3231 (dump_func
)dump_destroy_window_request
,
3232 (dump_func
)dump_get_desktop_window_request
,
3233 (dump_func
)dump_set_window_owner_request
,
3234 (dump_func
)dump_get_window_info_request
,
3235 (dump_func
)dump_set_window_info_request
,
3236 (dump_func
)dump_set_parent_request
,
3237 (dump_func
)dump_get_window_parents_request
,
3238 (dump_func
)dump_get_window_children_request
,
3239 (dump_func
)dump_get_window_children_from_point_request
,
3240 (dump_func
)dump_get_window_tree_request
,
3241 (dump_func
)dump_set_window_pos_request
,
3242 (dump_func
)dump_get_window_rectangles_request
,
3243 (dump_func
)dump_get_window_text_request
,
3244 (dump_func
)dump_set_window_text_request
,
3245 (dump_func
)dump_get_windows_offset_request
,
3246 (dump_func
)dump_get_visible_region_request
,
3247 (dump_func
)dump_get_window_region_request
,
3248 (dump_func
)dump_set_window_region_request
,
3249 (dump_func
)dump_get_update_region_request
,
3250 (dump_func
)dump_update_window_zorder_request
,
3251 (dump_func
)dump_redraw_window_request
,
3252 (dump_func
)dump_set_window_property_request
,
3253 (dump_func
)dump_remove_window_property_request
,
3254 (dump_func
)dump_get_window_property_request
,
3255 (dump_func
)dump_get_window_properties_request
,
3256 (dump_func
)dump_create_winstation_request
,
3257 (dump_func
)dump_open_winstation_request
,
3258 (dump_func
)dump_close_winstation_request
,
3259 (dump_func
)dump_get_process_winstation_request
,
3260 (dump_func
)dump_set_process_winstation_request
,
3261 (dump_func
)dump_create_desktop_request
,
3262 (dump_func
)dump_open_desktop_request
,
3263 (dump_func
)dump_close_desktop_request
,
3264 (dump_func
)dump_get_thread_desktop_request
,
3265 (dump_func
)dump_set_thread_desktop_request
,
3266 (dump_func
)dump_set_user_object_info_request
,
3267 (dump_func
)dump_attach_thread_input_request
,
3268 (dump_func
)dump_get_thread_input_request
,
3269 (dump_func
)dump_get_last_input_time_request
,
3270 (dump_func
)dump_get_key_state_request
,
3271 (dump_func
)dump_set_key_state_request
,
3272 (dump_func
)dump_set_foreground_window_request
,
3273 (dump_func
)dump_set_focus_window_request
,
3274 (dump_func
)dump_set_active_window_request
,
3275 (dump_func
)dump_set_capture_window_request
,
3276 (dump_func
)dump_set_caret_window_request
,
3277 (dump_func
)dump_set_caret_info_request
,
3278 (dump_func
)dump_set_hook_request
,
3279 (dump_func
)dump_remove_hook_request
,
3280 (dump_func
)dump_start_hook_chain_request
,
3281 (dump_func
)dump_finish_hook_chain_request
,
3282 (dump_func
)dump_get_next_hook_request
,
3283 (dump_func
)dump_create_class_request
,
3284 (dump_func
)dump_destroy_class_request
,
3285 (dump_func
)dump_set_class_info_request
,
3286 (dump_func
)dump_set_clipboard_info_request
,
3287 (dump_func
)dump_open_token_request
,
3288 (dump_func
)dump_set_global_windows_request
,
3289 (dump_func
)dump_adjust_token_privileges_request
,
3290 (dump_func
)dump_get_token_privileges_request
,
3291 (dump_func
)dump_check_token_privileges_request
,
3292 (dump_func
)dump_duplicate_token_request
,
3293 (dump_func
)dump_access_check_request
,
3294 (dump_func
)dump_get_token_user_request
,
3295 (dump_func
)dump_create_mailslot_request
,
3296 (dump_func
)dump_open_mailslot_request
,
3297 (dump_func
)dump_set_mailslot_info_request
,
3300 static const dump_func reply_dumpers
[REQ_NB_REQUESTS
] = {
3301 (dump_func
)dump_new_process_reply
,
3302 (dump_func
)dump_get_new_process_info_reply
,
3303 (dump_func
)dump_new_thread_reply
,
3304 (dump_func
)dump_get_startup_info_reply
,
3306 (dump_func
)dump_init_thread_reply
,
3307 (dump_func
)dump_terminate_process_reply
,
3308 (dump_func
)dump_terminate_thread_reply
,
3309 (dump_func
)dump_get_process_info_reply
,
3311 (dump_func
)dump_get_thread_info_reply
,
3313 (dump_func
)dump_get_dll_info_reply
,
3314 (dump_func
)dump_suspend_thread_reply
,
3315 (dump_func
)dump_resume_thread_reply
,
3319 (dump_func
)dump_get_apc_reply
,
3320 (dump_func
)dump_close_handle_reply
,
3321 (dump_func
)dump_set_handle_info_reply
,
3322 (dump_func
)dump_dup_handle_reply
,
3323 (dump_func
)dump_open_process_reply
,
3324 (dump_func
)dump_open_thread_reply
,
3326 (dump_func
)dump_create_event_reply
,
3328 (dump_func
)dump_open_event_reply
,
3329 (dump_func
)dump_create_mutex_reply
,
3330 (dump_func
)dump_release_mutex_reply
,
3331 (dump_func
)dump_open_mutex_reply
,
3332 (dump_func
)dump_create_semaphore_reply
,
3333 (dump_func
)dump_release_semaphore_reply
,
3334 (dump_func
)dump_open_semaphore_reply
,
3335 (dump_func
)dump_create_file_reply
,
3336 (dump_func
)dump_alloc_file_handle_reply
,
3337 (dump_func
)dump_get_handle_fd_reply
,
3338 (dump_func
)dump_set_handle_fd_reply
,
3339 (dump_func
)dump_flush_file_reply
,
3340 (dump_func
)dump_lock_file_reply
,
3343 (dump_func
)dump_create_socket_reply
,
3344 (dump_func
)dump_accept_socket_reply
,
3346 (dump_func
)dump_get_socket_event_reply
,
3349 (dump_func
)dump_alloc_console_reply
,
3351 (dump_func
)dump_get_console_renderer_events_reply
,
3352 (dump_func
)dump_open_console_reply
,
3353 (dump_func
)dump_get_console_wait_event_reply
,
3354 (dump_func
)dump_get_console_mode_reply
,
3357 (dump_func
)dump_get_console_input_info_reply
,
3359 (dump_func
)dump_get_console_input_history_reply
,
3360 (dump_func
)dump_create_console_output_reply
,
3362 (dump_func
)dump_get_console_output_info_reply
,
3363 (dump_func
)dump_write_console_input_reply
,
3364 (dump_func
)dump_read_console_input_reply
,
3365 (dump_func
)dump_write_console_output_reply
,
3366 (dump_func
)dump_fill_console_output_reply
,
3367 (dump_func
)dump_read_console_output_reply
,
3370 (dump_func
)dump_create_change_notification_reply
,
3372 (dump_func
)dump_create_mapping_reply
,
3373 (dump_func
)dump_open_mapping_reply
,
3374 (dump_func
)dump_get_mapping_info_reply
,
3375 (dump_func
)dump_create_snapshot_reply
,
3376 (dump_func
)dump_next_process_reply
,
3377 (dump_func
)dump_next_thread_reply
,
3378 (dump_func
)dump_next_module_reply
,
3379 (dump_func
)dump_wait_debug_event_reply
,
3380 (dump_func
)dump_queue_exception_event_reply
,
3381 (dump_func
)dump_get_exception_status_reply
,
3385 (dump_func
)dump_debug_break_reply
,
3387 (dump_func
)dump_read_process_memory_reply
,
3389 (dump_func
)dump_create_key_reply
,
3390 (dump_func
)dump_open_key_reply
,
3393 (dump_func
)dump_enum_key_reply
,
3395 (dump_func
)dump_get_key_value_reply
,
3396 (dump_func
)dump_enum_key_value_reply
,
3402 (dump_func
)dump_create_timer_reply
,
3403 (dump_func
)dump_open_timer_reply
,
3404 (dump_func
)dump_set_timer_reply
,
3405 (dump_func
)dump_cancel_timer_reply
,
3406 (dump_func
)dump_get_timer_info_reply
,
3407 (dump_func
)dump_get_thread_context_reply
,
3409 (dump_func
)dump_get_selector_entry_reply
,
3410 (dump_func
)dump_add_atom_reply
,
3412 (dump_func
)dump_find_atom_reply
,
3413 (dump_func
)dump_get_atom_information_reply
,
3416 (dump_func
)dump_init_atom_table_reply
,
3417 (dump_func
)dump_get_msg_queue_reply
,
3418 (dump_func
)dump_set_queue_mask_reply
,
3419 (dump_func
)dump_get_queue_status_reply
,
3420 (dump_func
)dump_wait_input_idle_reply
,
3422 (dump_func
)dump_get_message_reply
,
3425 (dump_func
)dump_get_message_reply_reply
,
3426 (dump_func
)dump_set_win_timer_reply
,
3428 (dump_func
)dump_get_serial_info_reply
,
3432 (dump_func
)dump_create_named_pipe_reply
,
3433 (dump_func
)dump_open_named_pipe_reply
,
3436 (dump_func
)dump_disconnect_named_pipe_reply
,
3437 (dump_func
)dump_get_named_pipe_info_reply
,
3438 (dump_func
)dump_create_window_reply
,
3440 (dump_func
)dump_get_desktop_window_reply
,
3441 (dump_func
)dump_set_window_owner_reply
,
3442 (dump_func
)dump_get_window_info_reply
,
3443 (dump_func
)dump_set_window_info_reply
,
3444 (dump_func
)dump_set_parent_reply
,
3445 (dump_func
)dump_get_window_parents_reply
,
3446 (dump_func
)dump_get_window_children_reply
,
3447 (dump_func
)dump_get_window_children_from_point_reply
,
3448 (dump_func
)dump_get_window_tree_reply
,
3449 (dump_func
)dump_set_window_pos_reply
,
3450 (dump_func
)dump_get_window_rectangles_reply
,
3451 (dump_func
)dump_get_window_text_reply
,
3453 (dump_func
)dump_get_windows_offset_reply
,
3454 (dump_func
)dump_get_visible_region_reply
,
3455 (dump_func
)dump_get_window_region_reply
,
3457 (dump_func
)dump_get_update_region_reply
,
3461 (dump_func
)dump_remove_window_property_reply
,
3462 (dump_func
)dump_get_window_property_reply
,
3463 (dump_func
)dump_get_window_properties_reply
,
3464 (dump_func
)dump_create_winstation_reply
,
3465 (dump_func
)dump_open_winstation_reply
,
3467 (dump_func
)dump_get_process_winstation_reply
,
3469 (dump_func
)dump_create_desktop_reply
,
3470 (dump_func
)dump_open_desktop_reply
,
3472 (dump_func
)dump_get_thread_desktop_reply
,
3474 (dump_func
)dump_set_user_object_info_reply
,
3476 (dump_func
)dump_get_thread_input_reply
,
3477 (dump_func
)dump_get_last_input_time_reply
,
3478 (dump_func
)dump_get_key_state_reply
,
3480 (dump_func
)dump_set_foreground_window_reply
,
3481 (dump_func
)dump_set_focus_window_reply
,
3482 (dump_func
)dump_set_active_window_reply
,
3483 (dump_func
)dump_set_capture_window_reply
,
3484 (dump_func
)dump_set_caret_window_reply
,
3485 (dump_func
)dump_set_caret_info_reply
,
3486 (dump_func
)dump_set_hook_reply
,
3487 (dump_func
)dump_remove_hook_reply
,
3488 (dump_func
)dump_start_hook_chain_reply
,
3490 (dump_func
)dump_get_next_hook_reply
,
3492 (dump_func
)dump_destroy_class_reply
,
3493 (dump_func
)dump_set_class_info_reply
,
3494 (dump_func
)dump_set_clipboard_info_reply
,
3495 (dump_func
)dump_open_token_reply
,
3496 (dump_func
)dump_set_global_windows_reply
,
3497 (dump_func
)dump_adjust_token_privileges_reply
,
3498 (dump_func
)dump_get_token_privileges_reply
,
3499 (dump_func
)dump_check_token_privileges_reply
,
3500 (dump_func
)dump_duplicate_token_reply
,
3501 (dump_func
)dump_access_check_reply
,
3502 (dump_func
)dump_get_token_user_reply
,
3503 (dump_func
)dump_create_mailslot_reply
,
3504 (dump_func
)dump_open_mailslot_reply
,
3505 (dump_func
)dump_set_mailslot_info_reply
,
3508 static const char * const req_names
[REQ_NB_REQUESTS
] = {
3510 "get_new_process_info",
3513 "init_process_done",
3515 "terminate_process",
3541 "release_semaphore",
3544 "alloc_file_handle",
3555 "enable_socket_event",
3556 "set_socket_deferred",
3559 "get_console_renderer_events",
3561 "get_console_wait_event",
3564 "set_console_input_info",
3565 "get_console_input_info",
3566 "append_console_input_history",
3567 "get_console_input_history",
3568 "create_console_output",
3569 "set_console_output_info",
3570 "get_console_output_info",
3571 "write_console_input",
3572 "read_console_input",
3573 "write_console_output",
3574 "fill_console_output",
3575 "read_console_output",
3576 "move_console_output",
3577 "send_console_signal",
3578 "create_change_notification",
3579 "next_change_notification",
3588 "queue_exception_event",
3589 "get_exception_status",
3590 "output_debug_string",
3591 "continue_debug_event",
3594 "set_debugger_kill_on_exit",
3595 "read_process_memory",
3596 "write_process_memory",
3609 "set_registry_notification",
3615 "get_thread_context",
3616 "set_thread_context",
3617 "get_selector_entry",
3621 "get_atom_information",
3622 "set_atom_information",
3632 "accept_hardware_message",
3633 "get_message_reply",
3640 "create_named_pipe",
3642 "connect_named_pipe",
3644 "disconnect_named_pipe",
3645 "get_named_pipe_info",
3648 "get_desktop_window",
3653 "get_window_parents",
3654 "get_window_children",
3655 "get_window_children_from_point",
3658 "get_window_rectangles",
3661 "get_windows_offset",
3662 "get_visible_region",
3663 "get_window_region",
3664 "set_window_region",
3665 "get_update_region",
3666 "update_window_zorder",
3668 "set_window_property",
3669 "remove_window_property",
3670 "get_window_property",
3671 "get_window_properties",
3672 "create_winstation",
3675 "get_process_winstation",
3676 "set_process_winstation",
3680 "get_thread_desktop",
3681 "set_thread_desktop",
3682 "set_user_object_info",
3683 "attach_thread_input",
3685 "get_last_input_time",
3688 "set_foreground_window",
3690 "set_active_window",
3691 "set_capture_window",
3697 "finish_hook_chain",
3702 "set_clipboard_info",
3704 "set_global_windows",
3705 "adjust_token_privileges",
3706 "get_token_privileges",
3707 "check_token_privileges",
3713 "set_mailslot_info",
3722 { "ACCESS_DENIED", STATUS_ACCESS_DENIED
},
3723 { "ACCESS_VIOLATION", STATUS_ACCESS_VIOLATION
},
3724 { "ALIAS_EXISTS", STATUS_ALIAS_EXISTS
},
3725 { "BUFFER_OVERFLOW", STATUS_BUFFER_OVERFLOW
},
3726 { "BUFFER_TOO_SMALL", STATUS_BUFFER_TOO_SMALL
},
3727 { "CHILD_MUST_BE_VOLATILE", STATUS_CHILD_MUST_BE_VOLATILE
},
3728 { "DEVICE_BUSY", STATUS_DEVICE_BUSY
},
3729 { "DIRECTORY_NOT_EMPTY", STATUS_DIRECTORY_NOT_EMPTY
},
3730 { "DISK_FULL", STATUS_DISK_FULL
},
3731 { "DLL_NOT_FOUND", STATUS_DLL_NOT_FOUND
},
3732 { "ERROR_CLASS_ALREADY_EXISTS", 0xc0010000 | ERROR_CLASS_ALREADY_EXISTS
},
3733 { "ERROR_CLASS_DOES_NOT_EXIST", 0xc0010000 | ERROR_CLASS_DOES_NOT_EXIST
},
3734 { "ERROR_CLASS_HAS_WINDOWS", 0xc0010000 | ERROR_CLASS_HAS_WINDOWS
},
3735 { "ERROR_CLIPBOARD_NOT_OPEN", 0xc0010000 | ERROR_CLIPBOARD_NOT_OPEN
},
3736 { "ERROR_INVALID_INDEX", 0xc0010000 | ERROR_INVALID_INDEX
},
3737 { "ERROR_SEEK", 0xc0010000 | ERROR_SEEK
},
3738 { "FILE_INVALID", STATUS_FILE_INVALID
},
3739 { "FILE_IS_A_DIRECTORY", STATUS_FILE_IS_A_DIRECTORY
},
3740 { "FILE_LOCK_CONFLICT", STATUS_FILE_LOCK_CONFLICT
},
3741 { "HANDLE_NOT_CLOSABLE", STATUS_HANDLE_NOT_CLOSABLE
},
3742 { "INVALID_CID", STATUS_INVALID_CID
},
3743 { "INVALID_FILE_FOR_SECTION", STATUS_INVALID_FILE_FOR_SECTION
},
3744 { "INVALID_HANDLE", STATUS_INVALID_HANDLE
},
3745 { "INVALID_PARAMETER", STATUS_INVALID_PARAMETER
},
3746 { "IO_TIMEOUT", STATUS_IO_TIMEOUT
},
3747 { "KEY_DELETED", STATUS_KEY_DELETED
},
3748 { "MEDIA_WRITE_PROTECTED", STATUS_MEDIA_WRITE_PROTECTED
},
3749 { "MUTANT_NOT_OWNED", STATUS_MUTANT_NOT_OWNED
},
3750 { "NOT_ALL_ASSIGNED", STATUS_NOT_ALL_ASSIGNED
},
3751 { "NOT_A_DIRECTORY", STATUS_NOT_A_DIRECTORY
},
3752 { "NOT_IMPLEMENTED", STATUS_NOT_IMPLEMENTED
},
3753 { "NOT_REGISTRY_FILE", STATUS_NOT_REGISTRY_FILE
},
3754 { "NO_DATA_DETECTED", STATUS_NO_DATA_DETECTED
},
3755 { "NO_IMPERSONATION_TOKEN", STATUS_NO_IMPERSONATION_TOKEN
},
3756 { "NO_MEMORY", STATUS_NO_MEMORY
},
3757 { "NO_MORE_ENTRIES", STATUS_NO_MORE_ENTRIES
},
3758 { "NO_MORE_FILES", STATUS_NO_MORE_FILES
},
3759 { "NO_SUCH_DEVICE", STATUS_NO_SUCH_DEVICE
},
3760 { "NO_SUCH_FILE", STATUS_NO_SUCH_FILE
},
3761 { "NO_TOKEN", STATUS_NO_TOKEN
},
3762 { "OBJECT_NAME_COLLISION", STATUS_OBJECT_NAME_COLLISION
},
3763 { "OBJECT_NAME_INVALID", STATUS_OBJECT_NAME_INVALID
},
3764 { "OBJECT_NAME_NOT_FOUND", STATUS_OBJECT_NAME_NOT_FOUND
},
3765 { "OBJECT_PATH_INVALID", STATUS_OBJECT_PATH_INVALID
},
3766 { "OBJECT_TYPE_MISMATCH", STATUS_OBJECT_TYPE_MISMATCH
},
3767 { "PENDING", STATUS_PENDING
},
3768 { "PIPE_BUSY", STATUS_PIPE_BUSY
},
3769 { "PIPE_CONNECTED", STATUS_PIPE_CONNECTED
},
3770 { "PIPE_DISCONNECTED", STATUS_PIPE_DISCONNECTED
},
3771 { "PIPE_LISTENING", STATUS_PIPE_LISTENING
},
3772 { "PIPE_NOT_AVAILABLE", STATUS_PIPE_NOT_AVAILABLE
},
3773 { "PRIVILEGE_NOT_HELD", STATUS_PRIVILEGE_NOT_HELD
},
3774 { "SECTION_TOO_BIG", STATUS_SECTION_TOO_BIG
},
3775 { "SEMAPHORE_LIMIT_EXCEEDED", STATUS_SEMAPHORE_LIMIT_EXCEEDED
},
3776 { "SHARING_VIOLATION", STATUS_SHARING_VIOLATION
},
3777 { "SUSPEND_COUNT_EXCEEDED", STATUS_SUSPEND_COUNT_EXCEEDED
},
3778 { "TIMEOUT", STATUS_TIMEOUT
},
3779 { "UNSUCCESSFUL", STATUS_UNSUCCESSFUL
},
3780 { "VOLUME_DISMOUNTED", STATUS_VOLUME_DISMOUNTED
},
3781 { "WAS_LOCKED", STATUS_WAS_LOCKED
},
3785 /* ### make_requests end ### */
3786 /* Everything above this line is generated automatically by tools/make_requests */
3788 static const char *get_status_name( unsigned int status
)
3791 static char buffer
[10];
3795 for (i
= 0; status_names
[i
].name
; i
++)
3796 if (status_names
[i
].value
== status
) return status_names
[i
].name
;
3798 sprintf( buffer
, "%x", status
);
3802 void trace_request(void)
3804 enum request req
= current
->req
.request_header
.req
;
3805 if (req
< REQ_NB_REQUESTS
)
3807 fprintf( stderr
, "%04x: %s(", current
->id
, req_names
[req
] );
3808 if (req_dumpers
[req
])
3811 cur_data
= get_req_data();
3812 cur_size
= get_req_data_size();
3813 req_dumpers
[req
]( ¤t
->req
);
3815 fprintf( stderr
, " )\n" );
3817 else fprintf( stderr
, "%04x: %d(?)\n", current
->id
, req
);
3820 void trace_reply( enum request req
, const union generic_reply
*reply
)
3822 if (req
< REQ_NB_REQUESTS
)
3824 fprintf( stderr
, "%04x: %s() = %s",
3825 current
->id
, req_names
[req
], get_status_name(current
->error
) );
3826 if (reply_dumpers
[req
])
3828 fprintf( stderr
, " {" );
3830 cur_data
= current
->reply_data
;
3831 cur_size
= reply
->reply_header
.reply_size
;
3832 reply_dumpers
[req
]( reply
);
3833 fprintf( stderr
, " }" );
3835 fputc( '\n', stderr
);
3837 else fprintf( stderr
, "%04x: %d() = %s\n",
3838 current
->id
, req
, get_status_name(current
->error
) );