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
);
832 fprintf( stderr
, " fd=%d", req
->fd
);
835 static void dump_set_handle_info_reply( const struct set_handle_info_reply
*req
)
837 fprintf( stderr
, " old_flags=%d,", req
->old_flags
);
838 fprintf( stderr
, " cur_fd=%d", req
->cur_fd
);
841 static void dump_dup_handle_request( const struct dup_handle_request
*req
)
843 fprintf( stderr
, " src_process=%p,", req
->src_process
);
844 fprintf( stderr
, " src_handle=%p,", req
->src_handle
);
845 fprintf( stderr
, " dst_process=%p,", req
->dst_process
);
846 fprintf( stderr
, " access=%08x,", req
->access
);
847 fprintf( stderr
, " inherit=%d,", req
->inherit
);
848 fprintf( stderr
, " options=%d", req
->options
);
851 static void dump_dup_handle_reply( const struct dup_handle_reply
*req
)
853 fprintf( stderr
, " handle=%p,", req
->handle
);
854 fprintf( stderr
, " fd=%d", req
->fd
);
857 static void dump_open_process_request( const struct open_process_request
*req
)
859 fprintf( stderr
, " pid=%04x,", req
->pid
);
860 fprintf( stderr
, " access=%08x,", req
->access
);
861 fprintf( stderr
, " inherit=%d", req
->inherit
);
864 static void dump_open_process_reply( const struct open_process_reply
*req
)
866 fprintf( stderr
, " handle=%p", req
->handle
);
869 static void dump_open_thread_request( const struct open_thread_request
*req
)
871 fprintf( stderr
, " tid=%04x,", req
->tid
);
872 fprintf( stderr
, " access=%08x,", req
->access
);
873 fprintf( stderr
, " inherit=%d", req
->inherit
);
876 static void dump_open_thread_reply( const struct open_thread_reply
*req
)
878 fprintf( stderr
, " handle=%p", req
->handle
);
881 static void dump_select_request( const struct select_request
*req
)
883 fprintf( stderr
, " flags=%d,", req
->flags
);
884 fprintf( stderr
, " cookie=%p,", req
->cookie
);
885 fprintf( stderr
, " signal=%p,", req
->signal
);
886 fprintf( stderr
, " timeout=" );
887 dump_abs_time( &req
->timeout
);
888 fprintf( stderr
, "," );
889 fprintf( stderr
, " handles=" );
890 dump_varargs_handles( cur_size
);
893 static void dump_create_event_request( const struct create_event_request
*req
)
895 fprintf( stderr
, " access=%08x,", req
->access
);
896 fprintf( stderr
, " manual_reset=%d,", req
->manual_reset
);
897 fprintf( stderr
, " initial_state=%d,", req
->initial_state
);
898 fprintf( stderr
, " inherit=%d,", req
->inherit
);
899 fprintf( stderr
, " name=" );
900 dump_varargs_unicode_str( cur_size
);
903 static void dump_create_event_reply( const struct create_event_reply
*req
)
905 fprintf( stderr
, " handle=%p", req
->handle
);
908 static void dump_event_op_request( const struct event_op_request
*req
)
910 fprintf( stderr
, " handle=%p,", req
->handle
);
911 fprintf( stderr
, " op=%d", req
->op
);
914 static void dump_open_event_request( const struct open_event_request
*req
)
916 fprintf( stderr
, " access=%08x,", req
->access
);
917 fprintf( stderr
, " inherit=%d,", req
->inherit
);
918 fprintf( stderr
, " name=" );
919 dump_varargs_unicode_str( cur_size
);
922 static void dump_open_event_reply( const struct open_event_reply
*req
)
924 fprintf( stderr
, " handle=%p", req
->handle
);
927 static void dump_create_mutex_request( const struct create_mutex_request
*req
)
929 fprintf( stderr
, " access=%08x,", req
->access
);
930 fprintf( stderr
, " owned=%d,", req
->owned
);
931 fprintf( stderr
, " inherit=%d,", req
->inherit
);
932 fprintf( stderr
, " name=" );
933 dump_varargs_unicode_str( cur_size
);
936 static void dump_create_mutex_reply( const struct create_mutex_reply
*req
)
938 fprintf( stderr
, " handle=%p", req
->handle
);
941 static void dump_release_mutex_request( const struct release_mutex_request
*req
)
943 fprintf( stderr
, " handle=%p", req
->handle
);
946 static void dump_release_mutex_reply( const struct release_mutex_reply
*req
)
948 fprintf( stderr
, " prev_count=%08x", req
->prev_count
);
951 static void dump_open_mutex_request( const struct open_mutex_request
*req
)
953 fprintf( stderr
, " access=%08x,", req
->access
);
954 fprintf( stderr
, " inherit=%d,", req
->inherit
);
955 fprintf( stderr
, " name=" );
956 dump_varargs_unicode_str( cur_size
);
959 static void dump_open_mutex_reply( const struct open_mutex_reply
*req
)
961 fprintf( stderr
, " handle=%p", req
->handle
);
964 static void dump_create_semaphore_request( const struct create_semaphore_request
*req
)
966 fprintf( stderr
, " access=%08x,", req
->access
);
967 fprintf( stderr
, " initial=%08x,", req
->initial
);
968 fprintf( stderr
, " max=%08x,", req
->max
);
969 fprintf( stderr
, " inherit=%d,", req
->inherit
);
970 fprintf( stderr
, " name=" );
971 dump_varargs_unicode_str( cur_size
);
974 static void dump_create_semaphore_reply( const struct create_semaphore_reply
*req
)
976 fprintf( stderr
, " handle=%p", req
->handle
);
979 static void dump_release_semaphore_request( const struct release_semaphore_request
*req
)
981 fprintf( stderr
, " handle=%p,", req
->handle
);
982 fprintf( stderr
, " count=%08x", req
->count
);
985 static void dump_release_semaphore_reply( const struct release_semaphore_reply
*req
)
987 fprintf( stderr
, " prev_count=%08x", req
->prev_count
);
990 static void dump_open_semaphore_request( const struct open_semaphore_request
*req
)
992 fprintf( stderr
, " access=%08x,", req
->access
);
993 fprintf( stderr
, " inherit=%d,", req
->inherit
);
994 fprintf( stderr
, " name=" );
995 dump_varargs_unicode_str( cur_size
);
998 static void dump_open_semaphore_reply( const struct open_semaphore_reply
*req
)
1000 fprintf( stderr
, " handle=%p", req
->handle
);
1003 static void dump_create_file_request( const struct create_file_request
*req
)
1005 fprintf( stderr
, " access=%08x,", req
->access
);
1006 fprintf( stderr
, " inherit=%d,", req
->inherit
);
1007 fprintf( stderr
, " sharing=%08x,", req
->sharing
);
1008 fprintf( stderr
, " create=%d,", req
->create
);
1009 fprintf( stderr
, " options=%08x,", req
->options
);
1010 fprintf( stderr
, " attrs=%08x,", req
->attrs
);
1011 fprintf( stderr
, " filename=" );
1012 dump_varargs_string( cur_size
);
1015 static void dump_create_file_reply( const struct create_file_reply
*req
)
1017 fprintf( stderr
, " handle=%p", req
->handle
);
1020 static void dump_alloc_file_handle_request( const struct alloc_file_handle_request
*req
)
1022 fprintf( stderr
, " access=%08x,", req
->access
);
1023 fprintf( stderr
, " inherit=%d,", req
->inherit
);
1024 fprintf( stderr
, " fd=%d", req
->fd
);
1027 static void dump_alloc_file_handle_reply( const struct alloc_file_handle_reply
*req
)
1029 fprintf( stderr
, " handle=%p", req
->handle
);
1032 static void dump_get_handle_fd_request( const struct get_handle_fd_request
*req
)
1034 fprintf( stderr
, " handle=%p,", req
->handle
);
1035 fprintf( stderr
, " access=%08x", req
->access
);
1038 static void dump_get_handle_fd_reply( const struct get_handle_fd_reply
*req
)
1040 fprintf( stderr
, " fd=%d,", req
->fd
);
1041 fprintf( stderr
, " flags=%d", req
->flags
);
1044 static void dump_flush_file_request( const struct flush_file_request
*req
)
1046 fprintf( stderr
, " handle=%p", req
->handle
);
1049 static void dump_flush_file_reply( const struct flush_file_reply
*req
)
1051 fprintf( stderr
, " event=%p", req
->event
);
1054 static void dump_lock_file_request( const struct lock_file_request
*req
)
1056 fprintf( stderr
, " handle=%p,", req
->handle
);
1057 fprintf( stderr
, " offset_low=%08x,", req
->offset_low
);
1058 fprintf( stderr
, " offset_high=%08x,", req
->offset_high
);
1059 fprintf( stderr
, " count_low=%08x,", req
->count_low
);
1060 fprintf( stderr
, " count_high=%08x,", req
->count_high
);
1061 fprintf( stderr
, " shared=%d,", req
->shared
);
1062 fprintf( stderr
, " wait=%d", req
->wait
);
1065 static void dump_lock_file_reply( const struct lock_file_reply
*req
)
1067 fprintf( stderr
, " handle=%p,", req
->handle
);
1068 fprintf( stderr
, " overlapped=%d", req
->overlapped
);
1071 static void dump_unlock_file_request( const struct unlock_file_request
*req
)
1073 fprintf( stderr
, " handle=%p,", req
->handle
);
1074 fprintf( stderr
, " offset_low=%08x,", req
->offset_low
);
1075 fprintf( stderr
, " offset_high=%08x,", req
->offset_high
);
1076 fprintf( stderr
, " count_low=%08x,", req
->count_low
);
1077 fprintf( stderr
, " count_high=%08x", req
->count_high
);
1080 static void dump_unmount_device_request( const struct unmount_device_request
*req
)
1082 fprintf( stderr
, " handle=%p", req
->handle
);
1085 static void dump_create_socket_request( const struct create_socket_request
*req
)
1087 fprintf( stderr
, " access=%08x,", req
->access
);
1088 fprintf( stderr
, " inherit=%d,", req
->inherit
);
1089 fprintf( stderr
, " family=%d,", req
->family
);
1090 fprintf( stderr
, " type=%d,", req
->type
);
1091 fprintf( stderr
, " protocol=%d,", req
->protocol
);
1092 fprintf( stderr
, " flags=%08x", req
->flags
);
1095 static void dump_create_socket_reply( const struct create_socket_reply
*req
)
1097 fprintf( stderr
, " handle=%p", req
->handle
);
1100 static void dump_accept_socket_request( const struct accept_socket_request
*req
)
1102 fprintf( stderr
, " lhandle=%p,", req
->lhandle
);
1103 fprintf( stderr
, " access=%08x,", req
->access
);
1104 fprintf( stderr
, " inherit=%d", req
->inherit
);
1107 static void dump_accept_socket_reply( const struct accept_socket_reply
*req
)
1109 fprintf( stderr
, " handle=%p", req
->handle
);
1112 static void dump_set_socket_event_request( const struct set_socket_event_request
*req
)
1114 fprintf( stderr
, " handle=%p,", req
->handle
);
1115 fprintf( stderr
, " mask=%08x,", req
->mask
);
1116 fprintf( stderr
, " event=%p,", req
->event
);
1117 fprintf( stderr
, " window=%p,", req
->window
);
1118 fprintf( stderr
, " msg=%08x", req
->msg
);
1121 static void dump_get_socket_event_request( const struct get_socket_event_request
*req
)
1123 fprintf( stderr
, " handle=%p,", req
->handle
);
1124 fprintf( stderr
, " service=%d,", req
->service
);
1125 fprintf( stderr
, " c_event=%p", req
->c_event
);
1128 static void dump_get_socket_event_reply( const struct get_socket_event_reply
*req
)
1130 fprintf( stderr
, " mask=%08x,", req
->mask
);
1131 fprintf( stderr
, " pmask=%08x,", req
->pmask
);
1132 fprintf( stderr
, " state=%08x,", req
->state
);
1133 fprintf( stderr
, " errors=" );
1134 dump_varargs_ints( cur_size
);
1137 static void dump_enable_socket_event_request( const struct enable_socket_event_request
*req
)
1139 fprintf( stderr
, " handle=%p,", req
->handle
);
1140 fprintf( stderr
, " mask=%08x,", req
->mask
);
1141 fprintf( stderr
, " sstate=%08x,", req
->sstate
);
1142 fprintf( stderr
, " cstate=%08x", req
->cstate
);
1145 static void dump_set_socket_deferred_request( const struct set_socket_deferred_request
*req
)
1147 fprintf( stderr
, " handle=%p,", req
->handle
);
1148 fprintf( stderr
, " deferred=%p", req
->deferred
);
1151 static void dump_alloc_console_request( const struct alloc_console_request
*req
)
1153 fprintf( stderr
, " access=%08x,", req
->access
);
1154 fprintf( stderr
, " inherit=%d,", req
->inherit
);
1155 fprintf( stderr
, " pid=%04x", req
->pid
);
1158 static void dump_alloc_console_reply( const struct alloc_console_reply
*req
)
1160 fprintf( stderr
, " handle_in=%p,", req
->handle_in
);
1161 fprintf( stderr
, " event=%p", req
->event
);
1164 static void dump_free_console_request( const struct free_console_request
*req
)
1168 static void dump_get_console_renderer_events_request( const struct get_console_renderer_events_request
*req
)
1170 fprintf( stderr
, " handle=%p", req
->handle
);
1173 static void dump_get_console_renderer_events_reply( const struct get_console_renderer_events_reply
*req
)
1175 fprintf( stderr
, " data=" );
1176 dump_varargs_bytes( cur_size
);
1179 static void dump_open_console_request( const struct open_console_request
*req
)
1181 fprintf( stderr
, " from=%d,", req
->from
);
1182 fprintf( stderr
, " access=%08x,", req
->access
);
1183 fprintf( stderr
, " inherit=%d,", req
->inherit
);
1184 fprintf( stderr
, " share=%d", req
->share
);
1187 static void dump_open_console_reply( const struct open_console_reply
*req
)
1189 fprintf( stderr
, " handle=%p", req
->handle
);
1192 static void dump_get_console_wait_event_request( const struct get_console_wait_event_request
*req
)
1196 static void dump_get_console_wait_event_reply( const struct get_console_wait_event_reply
*req
)
1198 fprintf( stderr
, " handle=%p", req
->handle
);
1201 static void dump_get_console_mode_request( const struct get_console_mode_request
*req
)
1203 fprintf( stderr
, " handle=%p", req
->handle
);
1206 static void dump_get_console_mode_reply( const struct get_console_mode_reply
*req
)
1208 fprintf( stderr
, " mode=%d", req
->mode
);
1211 static void dump_set_console_mode_request( const struct set_console_mode_request
*req
)
1213 fprintf( stderr
, " handle=%p,", req
->handle
);
1214 fprintf( stderr
, " mode=%d", req
->mode
);
1217 static void dump_set_console_input_info_request( const struct set_console_input_info_request
*req
)
1219 fprintf( stderr
, " handle=%p,", req
->handle
);
1220 fprintf( stderr
, " mask=%d,", req
->mask
);
1221 fprintf( stderr
, " active_sb=%p,", req
->active_sb
);
1222 fprintf( stderr
, " history_mode=%d,", req
->history_mode
);
1223 fprintf( stderr
, " history_size=%d,", req
->history_size
);
1224 fprintf( stderr
, " edition_mode=%d,", req
->edition_mode
);
1225 fprintf( stderr
, " title=" );
1226 dump_varargs_unicode_str( cur_size
);
1229 static void dump_get_console_input_info_request( const struct get_console_input_info_request
*req
)
1231 fprintf( stderr
, " handle=%p", req
->handle
);
1234 static void dump_get_console_input_info_reply( const struct get_console_input_info_reply
*req
)
1236 fprintf( stderr
, " history_mode=%d,", req
->history_mode
);
1237 fprintf( stderr
, " history_size=%d,", req
->history_size
);
1238 fprintf( stderr
, " history_index=%d,", req
->history_index
);
1239 fprintf( stderr
, " edition_mode=%d,", req
->edition_mode
);
1240 fprintf( stderr
, " title=" );
1241 dump_varargs_unicode_str( cur_size
);
1244 static void dump_append_console_input_history_request( const struct append_console_input_history_request
*req
)
1246 fprintf( stderr
, " handle=%p,", req
->handle
);
1247 fprintf( stderr
, " line=" );
1248 dump_varargs_unicode_str( cur_size
);
1251 static void dump_get_console_input_history_request( const struct get_console_input_history_request
*req
)
1253 fprintf( stderr
, " handle=%p,", req
->handle
);
1254 fprintf( stderr
, " index=%d", req
->index
);
1257 static void dump_get_console_input_history_reply( const struct get_console_input_history_reply
*req
)
1259 fprintf( stderr
, " total=%d,", req
->total
);
1260 fprintf( stderr
, " line=" );
1261 dump_varargs_unicode_str( cur_size
);
1264 static void dump_create_console_output_request( const struct create_console_output_request
*req
)
1266 fprintf( stderr
, " handle_in=%p,", req
->handle_in
);
1267 fprintf( stderr
, " access=%d,", req
->access
);
1268 fprintf( stderr
, " share=%d,", req
->share
);
1269 fprintf( stderr
, " inherit=%d", req
->inherit
);
1272 static void dump_create_console_output_reply( const struct create_console_output_reply
*req
)
1274 fprintf( stderr
, " handle_out=%p", req
->handle_out
);
1277 static void dump_set_console_output_info_request( const struct set_console_output_info_request
*req
)
1279 fprintf( stderr
, " handle=%p,", req
->handle
);
1280 fprintf( stderr
, " mask=%d,", req
->mask
);
1281 fprintf( stderr
, " cursor_size=%d,", req
->cursor_size
);
1282 fprintf( stderr
, " cursor_visible=%d,", req
->cursor_visible
);
1283 fprintf( stderr
, " cursor_x=%d,", req
->cursor_x
);
1284 fprintf( stderr
, " cursor_y=%d,", req
->cursor_y
);
1285 fprintf( stderr
, " width=%d,", req
->width
);
1286 fprintf( stderr
, " height=%d,", req
->height
);
1287 fprintf( stderr
, " attr=%d,", req
->attr
);
1288 fprintf( stderr
, " win_left=%d,", req
->win_left
);
1289 fprintf( stderr
, " win_top=%d,", req
->win_top
);
1290 fprintf( stderr
, " win_right=%d,", req
->win_right
);
1291 fprintf( stderr
, " win_bottom=%d,", req
->win_bottom
);
1292 fprintf( stderr
, " max_width=%d,", req
->max_width
);
1293 fprintf( stderr
, " max_height=%d", req
->max_height
);
1296 static void dump_get_console_output_info_request( const struct get_console_output_info_request
*req
)
1298 fprintf( stderr
, " handle=%p", req
->handle
);
1301 static void dump_get_console_output_info_reply( const struct get_console_output_info_reply
*req
)
1303 fprintf( stderr
, " cursor_size=%d,", req
->cursor_size
);
1304 fprintf( stderr
, " cursor_visible=%d,", req
->cursor_visible
);
1305 fprintf( stderr
, " cursor_x=%d,", req
->cursor_x
);
1306 fprintf( stderr
, " cursor_y=%d,", req
->cursor_y
);
1307 fprintf( stderr
, " width=%d,", req
->width
);
1308 fprintf( stderr
, " height=%d,", req
->height
);
1309 fprintf( stderr
, " attr=%d,", req
->attr
);
1310 fprintf( stderr
, " win_left=%d,", req
->win_left
);
1311 fprintf( stderr
, " win_top=%d,", req
->win_top
);
1312 fprintf( stderr
, " win_right=%d,", req
->win_right
);
1313 fprintf( stderr
, " win_bottom=%d,", req
->win_bottom
);
1314 fprintf( stderr
, " max_width=%d,", req
->max_width
);
1315 fprintf( stderr
, " max_height=%d", req
->max_height
);
1318 static void dump_write_console_input_request( const struct write_console_input_request
*req
)
1320 fprintf( stderr
, " handle=%p,", req
->handle
);
1321 fprintf( stderr
, " rec=" );
1322 dump_varargs_input_records( cur_size
);
1325 static void dump_write_console_input_reply( const struct write_console_input_reply
*req
)
1327 fprintf( stderr
, " written=%d", req
->written
);
1330 static void dump_read_console_input_request( const struct read_console_input_request
*req
)
1332 fprintf( stderr
, " handle=%p,", req
->handle
);
1333 fprintf( stderr
, " flush=%d", req
->flush
);
1336 static void dump_read_console_input_reply( const struct read_console_input_reply
*req
)
1338 fprintf( stderr
, " read=%d,", req
->read
);
1339 fprintf( stderr
, " rec=" );
1340 dump_varargs_input_records( cur_size
);
1343 static void dump_write_console_output_request( const struct write_console_output_request
*req
)
1345 fprintf( stderr
, " handle=%p,", req
->handle
);
1346 fprintf( stderr
, " x=%d,", req
->x
);
1347 fprintf( stderr
, " y=%d,", req
->y
);
1348 fprintf( stderr
, " mode=%d,", req
->mode
);
1349 fprintf( stderr
, " wrap=%d,", req
->wrap
);
1350 fprintf( stderr
, " data=" );
1351 dump_varargs_bytes( cur_size
);
1354 static void dump_write_console_output_reply( const struct write_console_output_reply
*req
)
1356 fprintf( stderr
, " written=%d,", req
->written
);
1357 fprintf( stderr
, " width=%d,", req
->width
);
1358 fprintf( stderr
, " height=%d", req
->height
);
1361 static void dump_fill_console_output_request( const struct fill_console_output_request
*req
)
1363 fprintf( stderr
, " handle=%p,", req
->handle
);
1364 fprintf( stderr
, " x=%d,", req
->x
);
1365 fprintf( stderr
, " y=%d,", req
->y
);
1366 fprintf( stderr
, " mode=%d,", req
->mode
);
1367 fprintf( stderr
, " count=%d,", req
->count
);
1368 fprintf( stderr
, " wrap=%d,", req
->wrap
);
1369 fprintf( stderr
, " data=" );
1370 dump_char_info( &req
->data
);
1373 static void dump_fill_console_output_reply( const struct fill_console_output_reply
*req
)
1375 fprintf( stderr
, " written=%d", req
->written
);
1378 static void dump_read_console_output_request( const struct read_console_output_request
*req
)
1380 fprintf( stderr
, " handle=%p,", req
->handle
);
1381 fprintf( stderr
, " x=%d,", req
->x
);
1382 fprintf( stderr
, " y=%d,", req
->y
);
1383 fprintf( stderr
, " mode=%d,", req
->mode
);
1384 fprintf( stderr
, " wrap=%d", req
->wrap
);
1387 static void dump_read_console_output_reply( const struct read_console_output_reply
*req
)
1389 fprintf( stderr
, " width=%d,", req
->width
);
1390 fprintf( stderr
, " height=%d,", req
->height
);
1391 fprintf( stderr
, " data=" );
1392 dump_varargs_bytes( cur_size
);
1395 static void dump_move_console_output_request( const struct move_console_output_request
*req
)
1397 fprintf( stderr
, " handle=%p,", req
->handle
);
1398 fprintf( stderr
, " x_src=%d,", req
->x_src
);
1399 fprintf( stderr
, " y_src=%d,", req
->y_src
);
1400 fprintf( stderr
, " x_dst=%d,", req
->x_dst
);
1401 fprintf( stderr
, " y_dst=%d,", req
->y_dst
);
1402 fprintf( stderr
, " w=%d,", req
->w
);
1403 fprintf( stderr
, " h=%d", req
->h
);
1406 static void dump_send_console_signal_request( const struct send_console_signal_request
*req
)
1408 fprintf( stderr
, " signal=%d,", req
->signal
);
1409 fprintf( stderr
, " group_id=%04x", req
->group_id
);
1412 static void dump_create_change_notification_request( const struct create_change_notification_request
*req
)
1414 fprintf( stderr
, " handle=%p,", req
->handle
);
1415 fprintf( stderr
, " subtree=%d,", req
->subtree
);
1416 fprintf( stderr
, " filter=%08x", req
->filter
);
1419 static void dump_create_change_notification_reply( const struct create_change_notification_reply
*req
)
1421 fprintf( stderr
, " handle=%p", req
->handle
);
1424 static void dump_next_change_notification_request( const struct next_change_notification_request
*req
)
1426 fprintf( stderr
, " handle=%p", req
->handle
);
1429 static void dump_create_mapping_request( const struct create_mapping_request
*req
)
1431 fprintf( stderr
, " size_high=%d,", req
->size_high
);
1432 fprintf( stderr
, " size_low=%d,", req
->size_low
);
1433 fprintf( stderr
, " protect=%d,", req
->protect
);
1434 fprintf( stderr
, " access=%08x,", req
->access
);
1435 fprintf( stderr
, " inherit=%d,", req
->inherit
);
1436 fprintf( stderr
, " file_handle=%p,", req
->file_handle
);
1437 fprintf( stderr
, " name=" );
1438 dump_varargs_unicode_str( cur_size
);
1441 static void dump_create_mapping_reply( const struct create_mapping_reply
*req
)
1443 fprintf( stderr
, " handle=%p", req
->handle
);
1446 static void dump_open_mapping_request( const struct open_mapping_request
*req
)
1448 fprintf( stderr
, " access=%08x,", req
->access
);
1449 fprintf( stderr
, " inherit=%d,", req
->inherit
);
1450 fprintf( stderr
, " name=" );
1451 dump_varargs_unicode_str( cur_size
);
1454 static void dump_open_mapping_reply( const struct open_mapping_reply
*req
)
1456 fprintf( stderr
, " handle=%p", req
->handle
);
1459 static void dump_get_mapping_info_request( const struct get_mapping_info_request
*req
)
1461 fprintf( stderr
, " handle=%p", req
->handle
);
1464 static void dump_get_mapping_info_reply( const struct get_mapping_info_reply
*req
)
1466 fprintf( stderr
, " size_high=%d,", req
->size_high
);
1467 fprintf( stderr
, " size_low=%d,", req
->size_low
);
1468 fprintf( stderr
, " protect=%d,", req
->protect
);
1469 fprintf( stderr
, " header_size=%d,", req
->header_size
);
1470 fprintf( stderr
, " base=%p,", req
->base
);
1471 fprintf( stderr
, " shared_file=%p,", req
->shared_file
);
1472 fprintf( stderr
, " shared_size=%d", req
->shared_size
);
1475 static void dump_create_snapshot_request( const struct create_snapshot_request
*req
)
1477 fprintf( stderr
, " inherit=%d,", req
->inherit
);
1478 fprintf( stderr
, " flags=%d,", req
->flags
);
1479 fprintf( stderr
, " pid=%04x", req
->pid
);
1482 static void dump_create_snapshot_reply( const struct create_snapshot_reply
*req
)
1484 fprintf( stderr
, " handle=%p", req
->handle
);
1487 static void dump_next_process_request( const struct next_process_request
*req
)
1489 fprintf( stderr
, " handle=%p,", req
->handle
);
1490 fprintf( stderr
, " reset=%d", req
->reset
);
1493 static void dump_next_process_reply( const struct next_process_reply
*req
)
1495 fprintf( stderr
, " count=%d,", req
->count
);
1496 fprintf( stderr
, " pid=%04x,", req
->pid
);
1497 fprintf( stderr
, " ppid=%04x,", req
->ppid
);
1498 fprintf( stderr
, " heap=%p,", req
->heap
);
1499 fprintf( stderr
, " module=%p,", req
->module
);
1500 fprintf( stderr
, " threads=%d,", req
->threads
);
1501 fprintf( stderr
, " priority=%d,", req
->priority
);
1502 fprintf( stderr
, " handles=%d,", req
->handles
);
1503 fprintf( stderr
, " filename=" );
1504 dump_varargs_unicode_str( cur_size
);
1507 static void dump_next_thread_request( const struct next_thread_request
*req
)
1509 fprintf( stderr
, " handle=%p,", req
->handle
);
1510 fprintf( stderr
, " reset=%d", req
->reset
);
1513 static void dump_next_thread_reply( const struct next_thread_reply
*req
)
1515 fprintf( stderr
, " count=%d,", req
->count
);
1516 fprintf( stderr
, " pid=%04x,", req
->pid
);
1517 fprintf( stderr
, " tid=%04x,", req
->tid
);
1518 fprintf( stderr
, " base_pri=%d,", req
->base_pri
);
1519 fprintf( stderr
, " delta_pri=%d", req
->delta_pri
);
1522 static void dump_next_module_request( const struct next_module_request
*req
)
1524 fprintf( stderr
, " handle=%p,", req
->handle
);
1525 fprintf( stderr
, " reset=%d", req
->reset
);
1528 static void dump_next_module_reply( const struct next_module_reply
*req
)
1530 fprintf( stderr
, " pid=%04x,", req
->pid
);
1531 fprintf( stderr
, " base=%p,", req
->base
);
1532 fprintf( stderr
, " size=%d,", req
->size
);
1533 fprintf( stderr
, " filename=" );
1534 dump_varargs_unicode_str( cur_size
);
1537 static void dump_wait_debug_event_request( const struct wait_debug_event_request
*req
)
1539 fprintf( stderr
, " get_handle=%d", req
->get_handle
);
1542 static void dump_wait_debug_event_reply( const struct wait_debug_event_reply
*req
)
1544 fprintf( stderr
, " pid=%04x,", req
->pid
);
1545 fprintf( stderr
, " tid=%04x,", req
->tid
);
1546 fprintf( stderr
, " wait=%p,", req
->wait
);
1547 fprintf( stderr
, " event=" );
1548 dump_varargs_debug_event( cur_size
);
1551 static void dump_queue_exception_event_request( const struct queue_exception_event_request
*req
)
1553 fprintf( stderr
, " first=%d,", req
->first
);
1554 fprintf( stderr
, " record=" );
1555 dump_varargs_exc_event( cur_size
);
1558 static void dump_queue_exception_event_reply( const struct queue_exception_event_reply
*req
)
1560 fprintf( stderr
, " handle=%p", req
->handle
);
1563 static void dump_get_exception_status_request( const struct get_exception_status_request
*req
)
1565 fprintf( stderr
, " handle=%p", req
->handle
);
1568 static void dump_get_exception_status_reply( const struct get_exception_status_reply
*req
)
1570 fprintf( stderr
, " status=%d,", req
->status
);
1571 fprintf( stderr
, " context=" );
1572 dump_varargs_context( cur_size
);
1575 static void dump_output_debug_string_request( const struct output_debug_string_request
*req
)
1577 fprintf( stderr
, " string=%p,", req
->string
);
1578 fprintf( stderr
, " unicode=%d,", req
->unicode
);
1579 fprintf( stderr
, " length=%d", req
->length
);
1582 static void dump_continue_debug_event_request( const struct continue_debug_event_request
*req
)
1584 fprintf( stderr
, " pid=%04x,", req
->pid
);
1585 fprintf( stderr
, " tid=%04x,", req
->tid
);
1586 fprintf( stderr
, " status=%d", req
->status
);
1589 static void dump_debug_process_request( const struct debug_process_request
*req
)
1591 fprintf( stderr
, " pid=%04x,", req
->pid
);
1592 fprintf( stderr
, " attach=%d", req
->attach
);
1595 static void dump_debug_break_request( const struct debug_break_request
*req
)
1597 fprintf( stderr
, " handle=%p", req
->handle
);
1600 static void dump_debug_break_reply( const struct debug_break_reply
*req
)
1602 fprintf( stderr
, " self=%d", req
->self
);
1605 static void dump_set_debugger_kill_on_exit_request( const struct set_debugger_kill_on_exit_request
*req
)
1607 fprintf( stderr
, " kill_on_exit=%d", req
->kill_on_exit
);
1610 static void dump_read_process_memory_request( const struct read_process_memory_request
*req
)
1612 fprintf( stderr
, " handle=%p,", req
->handle
);
1613 fprintf( stderr
, " addr=%p", req
->addr
);
1616 static void dump_read_process_memory_reply( const struct read_process_memory_reply
*req
)
1618 fprintf( stderr
, " data=" );
1619 dump_varargs_bytes( cur_size
);
1622 static void dump_write_process_memory_request( const struct write_process_memory_request
*req
)
1624 fprintf( stderr
, " handle=%p,", req
->handle
);
1625 fprintf( stderr
, " addr=%p,", req
->addr
);
1626 fprintf( stderr
, " first_mask=%08x,", req
->first_mask
);
1627 fprintf( stderr
, " last_mask=%08x,", req
->last_mask
);
1628 fprintf( stderr
, " data=" );
1629 dump_varargs_bytes( cur_size
);
1632 static void dump_create_key_request( const struct create_key_request
*req
)
1634 fprintf( stderr
, " parent=%p,", req
->parent
);
1635 fprintf( stderr
, " access=%08x,", req
->access
);
1636 fprintf( stderr
, " options=%08x,", req
->options
);
1637 fprintf( stderr
, " modif=%ld,", (long)req
->modif
);
1638 fprintf( stderr
, " namelen=%d,", req
->namelen
);
1639 fprintf( stderr
, " name=" );
1640 dump_varargs_unicode_str( min(cur_size
,req
->namelen
) );
1641 fputc( ',', stderr
);
1642 fprintf( stderr
, " class=" );
1643 dump_varargs_unicode_str( cur_size
);
1646 static void dump_create_key_reply( const struct create_key_reply
*req
)
1648 fprintf( stderr
, " hkey=%p,", req
->hkey
);
1649 fprintf( stderr
, " created=%d", req
->created
);
1652 static void dump_open_key_request( const struct open_key_request
*req
)
1654 fprintf( stderr
, " parent=%p,", req
->parent
);
1655 fprintf( stderr
, " access=%08x,", req
->access
);
1656 fprintf( stderr
, " name=" );
1657 dump_varargs_unicode_str( cur_size
);
1660 static void dump_open_key_reply( const struct open_key_reply
*req
)
1662 fprintf( stderr
, " hkey=%p", req
->hkey
);
1665 static void dump_delete_key_request( const struct delete_key_request
*req
)
1667 fprintf( stderr
, " hkey=%p", req
->hkey
);
1670 static void dump_flush_key_request( const struct flush_key_request
*req
)
1672 fprintf( stderr
, " hkey=%p", req
->hkey
);
1675 static void dump_enum_key_request( const struct enum_key_request
*req
)
1677 fprintf( stderr
, " hkey=%p,", req
->hkey
);
1678 fprintf( stderr
, " index=%d,", req
->index
);
1679 fprintf( stderr
, " info_class=%d", req
->info_class
);
1682 static void dump_enum_key_reply( const struct enum_key_reply
*req
)
1684 fprintf( stderr
, " subkeys=%d,", req
->subkeys
);
1685 fprintf( stderr
, " max_subkey=%d,", req
->max_subkey
);
1686 fprintf( stderr
, " max_class=%d,", req
->max_class
);
1687 fprintf( stderr
, " values=%d,", req
->values
);
1688 fprintf( stderr
, " max_value=%d,", req
->max_value
);
1689 fprintf( stderr
, " max_data=%d,", req
->max_data
);
1690 fprintf( stderr
, " modif=%ld,", (long)req
->modif
);
1691 fprintf( stderr
, " total=%d,", req
->total
);
1692 fprintf( stderr
, " namelen=%d,", req
->namelen
);
1693 fprintf( stderr
, " name=" );
1694 dump_varargs_unicode_str( min(cur_size
,req
->namelen
) );
1695 fputc( ',', stderr
);
1696 fprintf( stderr
, " class=" );
1697 dump_varargs_unicode_str( cur_size
);
1700 static void dump_set_key_value_request( const struct set_key_value_request
*req
)
1702 fprintf( stderr
, " hkey=%p,", req
->hkey
);
1703 fprintf( stderr
, " type=%d,", req
->type
);
1704 fprintf( stderr
, " namelen=%d,", req
->namelen
);
1705 fprintf( stderr
, " name=" );
1706 dump_varargs_unicode_str( min(cur_size
,req
->namelen
) );
1707 fputc( ',', stderr
);
1708 fprintf( stderr
, " data=" );
1709 dump_varargs_bytes( cur_size
);
1712 static void dump_get_key_value_request( const struct get_key_value_request
*req
)
1714 fprintf( stderr
, " hkey=%p,", req
->hkey
);
1715 fprintf( stderr
, " name=" );
1716 dump_varargs_unicode_str( cur_size
);
1719 static void dump_get_key_value_reply( const struct get_key_value_reply
*req
)
1721 fprintf( stderr
, " type=%d,", req
->type
);
1722 fprintf( stderr
, " total=%d,", req
->total
);
1723 fprintf( stderr
, " data=" );
1724 dump_varargs_bytes( cur_size
);
1727 static void dump_enum_key_value_request( const struct enum_key_value_request
*req
)
1729 fprintf( stderr
, " hkey=%p,", req
->hkey
);
1730 fprintf( stderr
, " index=%d,", req
->index
);
1731 fprintf( stderr
, " info_class=%d", req
->info_class
);
1734 static void dump_enum_key_value_reply( const struct enum_key_value_reply
*req
)
1736 fprintf( stderr
, " type=%d,", req
->type
);
1737 fprintf( stderr
, " total=%d,", req
->total
);
1738 fprintf( stderr
, " namelen=%d,", req
->namelen
);
1739 fprintf( stderr
, " name=" );
1740 dump_varargs_unicode_str( min(cur_size
,req
->namelen
) );
1741 fputc( ',', stderr
);
1742 fprintf( stderr
, " data=" );
1743 dump_varargs_bytes( cur_size
);
1746 static void dump_delete_key_value_request( const struct delete_key_value_request
*req
)
1748 fprintf( stderr
, " hkey=%p,", req
->hkey
);
1749 fprintf( stderr
, " name=" );
1750 dump_varargs_unicode_str( cur_size
);
1753 static void dump_load_registry_request( const struct load_registry_request
*req
)
1755 fprintf( stderr
, " hkey=%p,", req
->hkey
);
1756 fprintf( stderr
, " file=%p,", req
->file
);
1757 fprintf( stderr
, " name=" );
1758 dump_varargs_unicode_str( cur_size
);
1761 static void dump_unload_registry_request( const struct unload_registry_request
*req
)
1763 fprintf( stderr
, " hkey=%p", req
->hkey
);
1766 static void dump_save_registry_request( const struct save_registry_request
*req
)
1768 fprintf( stderr
, " hkey=%p,", req
->hkey
);
1769 fprintf( stderr
, " file=%p", req
->file
);
1772 static void dump_set_registry_notification_request( const struct set_registry_notification_request
*req
)
1774 fprintf( stderr
, " hkey=%p,", req
->hkey
);
1775 fprintf( stderr
, " event=%p,", req
->event
);
1776 fprintf( stderr
, " subtree=%d,", req
->subtree
);
1777 fprintf( stderr
, " filter=%08x", req
->filter
);
1780 static void dump_create_timer_request( const struct create_timer_request
*req
)
1782 fprintf( stderr
, " access=%08x,", req
->access
);
1783 fprintf( stderr
, " inherit=%d,", req
->inherit
);
1784 fprintf( stderr
, " manual=%d,", req
->manual
);
1785 fprintf( stderr
, " name=" );
1786 dump_varargs_unicode_str( cur_size
);
1789 static void dump_create_timer_reply( const struct create_timer_reply
*req
)
1791 fprintf( stderr
, " handle=%p", req
->handle
);
1794 static void dump_open_timer_request( const struct open_timer_request
*req
)
1796 fprintf( stderr
, " access=%08x,", req
->access
);
1797 fprintf( stderr
, " inherit=%d,", req
->inherit
);
1798 fprintf( stderr
, " name=" );
1799 dump_varargs_unicode_str( cur_size
);
1802 static void dump_open_timer_reply( const struct open_timer_reply
*req
)
1804 fprintf( stderr
, " handle=%p", req
->handle
);
1807 static void dump_set_timer_request( const struct set_timer_request
*req
)
1809 fprintf( stderr
, " handle=%p,", req
->handle
);
1810 fprintf( stderr
, " expire=" );
1811 dump_abs_time( &req
->expire
);
1812 fprintf( stderr
, "," );
1813 fprintf( stderr
, " period=%d,", req
->period
);
1814 fprintf( stderr
, " callback=%p,", req
->callback
);
1815 fprintf( stderr
, " arg=%p", req
->arg
);
1818 static void dump_set_timer_reply( const struct set_timer_reply
*req
)
1820 fprintf( stderr
, " signaled=%d", req
->signaled
);
1823 static void dump_cancel_timer_request( const struct cancel_timer_request
*req
)
1825 fprintf( stderr
, " handle=%p", req
->handle
);
1828 static void dump_cancel_timer_reply( const struct cancel_timer_reply
*req
)
1830 fprintf( stderr
, " signaled=%d", req
->signaled
);
1833 static void dump_get_timer_info_request( const struct get_timer_info_request
*req
)
1835 fprintf( stderr
, " handle=%p", req
->handle
);
1838 static void dump_get_timer_info_reply( const struct get_timer_info_reply
*req
)
1840 fprintf( stderr
, " when=" );
1841 dump_abs_time( &req
->when
);
1842 fprintf( stderr
, "," );
1843 fprintf( stderr
, " signaled=%d", req
->signaled
);
1846 static void dump_get_thread_context_request( const struct get_thread_context_request
*req
)
1848 fprintf( stderr
, " handle=%p,", req
->handle
);
1849 fprintf( stderr
, " flags=%08x", req
->flags
);
1852 static void dump_get_thread_context_reply( const struct get_thread_context_reply
*req
)
1854 fprintf( stderr
, " context=" );
1855 dump_varargs_context( cur_size
);
1858 static void dump_set_thread_context_request( const struct set_thread_context_request
*req
)
1860 fprintf( stderr
, " handle=%p,", req
->handle
);
1861 fprintf( stderr
, " flags=%08x,", req
->flags
);
1862 fprintf( stderr
, " context=" );
1863 dump_varargs_context( cur_size
);
1866 static void dump_get_selector_entry_request( const struct get_selector_entry_request
*req
)
1868 fprintf( stderr
, " handle=%p,", req
->handle
);
1869 fprintf( stderr
, " entry=%d", req
->entry
);
1872 static void dump_get_selector_entry_reply( const struct get_selector_entry_reply
*req
)
1874 fprintf( stderr
, " base=%08x,", req
->base
);
1875 fprintf( stderr
, " limit=%08x,", req
->limit
);
1876 fprintf( stderr
, " flags=%02x", req
->flags
);
1879 static void dump_add_atom_request( const struct add_atom_request
*req
)
1881 fprintf( stderr
, " table=%p,", req
->table
);
1882 fprintf( stderr
, " name=" );
1883 dump_varargs_unicode_str( cur_size
);
1886 static void dump_add_atom_reply( const struct add_atom_reply
*req
)
1888 fprintf( stderr
, " atom=%04x", req
->atom
);
1891 static void dump_delete_atom_request( const struct delete_atom_request
*req
)
1893 fprintf( stderr
, " table=%p,", req
->table
);
1894 fprintf( stderr
, " atom=%04x", req
->atom
);
1897 static void dump_find_atom_request( const struct find_atom_request
*req
)
1899 fprintf( stderr
, " table=%p,", req
->table
);
1900 fprintf( stderr
, " name=" );
1901 dump_varargs_unicode_str( cur_size
);
1904 static void dump_find_atom_reply( const struct find_atom_reply
*req
)
1906 fprintf( stderr
, " atom=%04x", req
->atom
);
1909 static void dump_get_atom_information_request( const struct get_atom_information_request
*req
)
1911 fprintf( stderr
, " table=%p,", req
->table
);
1912 fprintf( stderr
, " atom=%04x", req
->atom
);
1915 static void dump_get_atom_information_reply( const struct get_atom_information_reply
*req
)
1917 fprintf( stderr
, " count=%d,", req
->count
);
1918 fprintf( stderr
, " pinned=%d,", req
->pinned
);
1919 fprintf( stderr
, " name=" );
1920 dump_varargs_unicode_str( cur_size
);
1923 static void dump_set_atom_information_request( const struct set_atom_information_request
*req
)
1925 fprintf( stderr
, " table=%p,", req
->table
);
1926 fprintf( stderr
, " atom=%04x,", req
->atom
);
1927 fprintf( stderr
, " pinned=%d", req
->pinned
);
1930 static void dump_empty_atom_table_request( const struct empty_atom_table_request
*req
)
1932 fprintf( stderr
, " table=%p,", req
->table
);
1933 fprintf( stderr
, " if_pinned=%d", req
->if_pinned
);
1936 static void dump_init_atom_table_request( const struct init_atom_table_request
*req
)
1938 fprintf( stderr
, " entries=%d", req
->entries
);
1941 static void dump_init_atom_table_reply( const struct init_atom_table_reply
*req
)
1943 fprintf( stderr
, " table=%p", req
->table
);
1946 static void dump_get_msg_queue_request( const struct get_msg_queue_request
*req
)
1950 static void dump_get_msg_queue_reply( const struct get_msg_queue_reply
*req
)
1952 fprintf( stderr
, " handle=%p", req
->handle
);
1955 static void dump_set_queue_mask_request( const struct set_queue_mask_request
*req
)
1957 fprintf( stderr
, " wake_mask=%08x,", req
->wake_mask
);
1958 fprintf( stderr
, " changed_mask=%08x,", req
->changed_mask
);
1959 fprintf( stderr
, " skip_wait=%d", req
->skip_wait
);
1962 static void dump_set_queue_mask_reply( const struct set_queue_mask_reply
*req
)
1964 fprintf( stderr
, " wake_bits=%08x,", req
->wake_bits
);
1965 fprintf( stderr
, " changed_bits=%08x", req
->changed_bits
);
1968 static void dump_get_queue_status_request( const struct get_queue_status_request
*req
)
1970 fprintf( stderr
, " clear=%d", req
->clear
);
1973 static void dump_get_queue_status_reply( const struct get_queue_status_reply
*req
)
1975 fprintf( stderr
, " wake_bits=%08x,", req
->wake_bits
);
1976 fprintf( stderr
, " changed_bits=%08x", req
->changed_bits
);
1979 static void dump_wait_input_idle_request( const struct wait_input_idle_request
*req
)
1981 fprintf( stderr
, " handle=%p,", req
->handle
);
1982 fprintf( stderr
, " timeout=%d", req
->timeout
);
1985 static void dump_wait_input_idle_reply( const struct wait_input_idle_reply
*req
)
1987 fprintf( stderr
, " event=%p", req
->event
);
1990 static void dump_send_message_request( const struct send_message_request
*req
)
1992 fprintf( stderr
, " id=%04x,", req
->id
);
1993 fprintf( stderr
, " type=%d,", req
->type
);
1994 fprintf( stderr
, " flags=%d,", req
->flags
);
1995 fprintf( stderr
, " win=%p,", req
->win
);
1996 fprintf( stderr
, " msg=%08x,", req
->msg
);
1997 fprintf( stderr
, " wparam=%08x,", req
->wparam
);
1998 fprintf( stderr
, " lparam=%08x,", req
->lparam
);
1999 fprintf( stderr
, " x=%d,", req
->x
);
2000 fprintf( stderr
, " y=%d,", req
->y
);
2001 fprintf( stderr
, " time=%08x,", req
->time
);
2002 fprintf( stderr
, " info=%08x,", req
->info
);
2003 fprintf( stderr
, " timeout=%d,", req
->timeout
);
2004 fprintf( stderr
, " callback=%p,", req
->callback
);
2005 fprintf( stderr
, " data=" );
2006 dump_varargs_bytes( cur_size
);
2009 static void dump_get_message_request( const struct get_message_request
*req
)
2011 fprintf( stderr
, " flags=%d,", req
->flags
);
2012 fprintf( stderr
, " get_win=%p,", req
->get_win
);
2013 fprintf( stderr
, " get_first=%08x,", req
->get_first
);
2014 fprintf( stderr
, " get_last=%08x,", req
->get_last
);
2015 fprintf( stderr
, " hw_id=%08x", req
->hw_id
);
2018 static void dump_get_message_reply( const struct get_message_reply
*req
)
2020 fprintf( stderr
, " type=%d,", req
->type
);
2021 fprintf( stderr
, " win=%p,", req
->win
);
2022 fprintf( stderr
, " msg=%08x,", req
->msg
);
2023 fprintf( stderr
, " wparam=%08x,", req
->wparam
);
2024 fprintf( stderr
, " lparam=%08x,", req
->lparam
);
2025 fprintf( stderr
, " x=%d,", req
->x
);
2026 fprintf( stderr
, " y=%d,", req
->y
);
2027 fprintf( stderr
, " hook=%p,", req
->hook
);
2028 fprintf( stderr
, " hook_proc=%p,", req
->hook_proc
);
2029 fprintf( stderr
, " time=%08x,", req
->time
);
2030 fprintf( stderr
, " info=%08x,", req
->info
);
2031 fprintf( stderr
, " hw_id=%08x,", req
->hw_id
);
2032 fprintf( stderr
, " active_hooks=%08x,", req
->active_hooks
);
2033 fprintf( stderr
, " total=%d,", req
->total
);
2034 fprintf( stderr
, " data=" );
2035 dump_varargs_bytes( cur_size
);
2038 static void dump_reply_message_request( const struct reply_message_request
*req
)
2040 fprintf( stderr
, " result=%08x,", req
->result
);
2041 fprintf( stderr
, " remove=%d,", req
->remove
);
2042 fprintf( stderr
, " data=" );
2043 dump_varargs_bytes( cur_size
);
2046 static void dump_accept_hardware_message_request( const struct accept_hardware_message_request
*req
)
2048 fprintf( stderr
, " hw_id=%08x,", req
->hw_id
);
2049 fprintf( stderr
, " remove=%d,", req
->remove
);
2050 fprintf( stderr
, " new_win=%p", req
->new_win
);
2053 static void dump_get_message_reply_request( const struct get_message_reply_request
*req
)
2055 fprintf( stderr
, " cancel=%d", req
->cancel
);
2058 static void dump_get_message_reply_reply( const struct get_message_reply_reply
*req
)
2060 fprintf( stderr
, " result=%08x,", req
->result
);
2061 fprintf( stderr
, " data=" );
2062 dump_varargs_bytes( cur_size
);
2065 static void dump_set_win_timer_request( const struct set_win_timer_request
*req
)
2067 fprintf( stderr
, " win=%p,", req
->win
);
2068 fprintf( stderr
, " msg=%08x,", req
->msg
);
2069 fprintf( stderr
, " id=%08x,", req
->id
);
2070 fprintf( stderr
, " rate=%08x,", req
->rate
);
2071 fprintf( stderr
, " lparam=%08x", req
->lparam
);
2074 static void dump_set_win_timer_reply( const struct set_win_timer_reply
*req
)
2076 fprintf( stderr
, " id=%08x", req
->id
);
2079 static void dump_kill_win_timer_request( const struct kill_win_timer_request
*req
)
2081 fprintf( stderr
, " win=%p,", req
->win
);
2082 fprintf( stderr
, " msg=%08x,", req
->msg
);
2083 fprintf( stderr
, " id=%08x", req
->id
);
2086 static void dump_get_serial_info_request( const struct get_serial_info_request
*req
)
2088 fprintf( stderr
, " handle=%p", req
->handle
);
2091 static void dump_get_serial_info_reply( const struct get_serial_info_reply
*req
)
2093 fprintf( stderr
, " readinterval=%08x,", req
->readinterval
);
2094 fprintf( stderr
, " readconst=%08x,", req
->readconst
);
2095 fprintf( stderr
, " readmult=%08x,", req
->readmult
);
2096 fprintf( stderr
, " writeconst=%08x,", req
->writeconst
);
2097 fprintf( stderr
, " writemult=%08x,", req
->writemult
);
2098 fprintf( stderr
, " eventmask=%08x,", req
->eventmask
);
2099 fprintf( stderr
, " commerror=%08x", req
->commerror
);
2102 static void dump_set_serial_info_request( const struct set_serial_info_request
*req
)
2104 fprintf( stderr
, " handle=%p,", req
->handle
);
2105 fprintf( stderr
, " flags=%d,", req
->flags
);
2106 fprintf( stderr
, " readinterval=%08x,", req
->readinterval
);
2107 fprintf( stderr
, " readconst=%08x,", req
->readconst
);
2108 fprintf( stderr
, " readmult=%08x,", req
->readmult
);
2109 fprintf( stderr
, " writeconst=%08x,", req
->writeconst
);
2110 fprintf( stderr
, " writemult=%08x,", req
->writemult
);
2111 fprintf( stderr
, " eventmask=%08x,", req
->eventmask
);
2112 fprintf( stderr
, " commerror=%08x", req
->commerror
);
2115 static void dump_register_async_request( const struct register_async_request
*req
)
2117 fprintf( stderr
, " handle=%p,", req
->handle
);
2118 fprintf( stderr
, " type=%d,", req
->type
);
2119 fprintf( stderr
, " io_apc=%p,", req
->io_apc
);
2120 fprintf( stderr
, " io_sb=%p,", req
->io_sb
);
2121 fprintf( stderr
, " io_user=%p,", req
->io_user
);
2122 fprintf( stderr
, " count=%d", req
->count
);
2125 static void dump_cancel_async_request( const struct cancel_async_request
*req
)
2127 fprintf( stderr
, " handle=%p", req
->handle
);
2130 static void dump_create_named_pipe_request( const struct create_named_pipe_request
*req
)
2132 fprintf( stderr
, " options=%08x,", req
->options
);
2133 fprintf( stderr
, " flags=%08x,", req
->flags
);
2134 fprintf( stderr
, " maxinstances=%08x,", req
->maxinstances
);
2135 fprintf( stderr
, " outsize=%08x,", req
->outsize
);
2136 fprintf( stderr
, " insize=%08x,", req
->insize
);
2137 fprintf( stderr
, " timeout=%08x,", req
->timeout
);
2138 fprintf( stderr
, " inherit=%d,", req
->inherit
);
2139 fprintf( stderr
, " name=" );
2140 dump_varargs_unicode_str( cur_size
);
2143 static void dump_create_named_pipe_reply( const struct create_named_pipe_reply
*req
)
2145 fprintf( stderr
, " handle=%p", req
->handle
);
2148 static void dump_open_named_pipe_request( const struct open_named_pipe_request
*req
)
2150 fprintf( stderr
, " access=%08x,", req
->access
);
2151 fprintf( stderr
, " flags=%08x,", req
->flags
);
2152 fprintf( stderr
, " inherit=%d,", req
->inherit
);
2153 fprintf( stderr
, " name=" );
2154 dump_varargs_unicode_str( cur_size
);
2157 static void dump_open_named_pipe_reply( const struct open_named_pipe_reply
*req
)
2159 fprintf( stderr
, " handle=%p", req
->handle
);
2162 static void dump_connect_named_pipe_request( const struct connect_named_pipe_request
*req
)
2164 fprintf( stderr
, " handle=%p,", req
->handle
);
2165 fprintf( stderr
, " overlapped=%p,", req
->overlapped
);
2166 fprintf( stderr
, " func=%p", req
->func
);
2169 static void dump_wait_named_pipe_request( const struct wait_named_pipe_request
*req
)
2171 fprintf( stderr
, " timeout=%08x,", req
->timeout
);
2172 fprintf( stderr
, " overlapped=%p,", req
->overlapped
);
2173 fprintf( stderr
, " func=%p,", req
->func
);
2174 fprintf( stderr
, " name=" );
2175 dump_varargs_unicode_str( cur_size
);
2178 static void dump_disconnect_named_pipe_request( const struct disconnect_named_pipe_request
*req
)
2180 fprintf( stderr
, " handle=%p", req
->handle
);
2183 static void dump_disconnect_named_pipe_reply( const struct disconnect_named_pipe_reply
*req
)
2185 fprintf( stderr
, " fd=%d", req
->fd
);
2188 static void dump_get_named_pipe_info_request( const struct get_named_pipe_info_request
*req
)
2190 fprintf( stderr
, " handle=%p", req
->handle
);
2193 static void dump_get_named_pipe_info_reply( const struct get_named_pipe_info_reply
*req
)
2195 fprintf( stderr
, " flags=%08x,", req
->flags
);
2196 fprintf( stderr
, " maxinstances=%08x,", req
->maxinstances
);
2197 fprintf( stderr
, " outsize=%08x,", req
->outsize
);
2198 fprintf( stderr
, " insize=%08x", req
->insize
);
2201 static void dump_create_window_request( const struct create_window_request
*req
)
2203 fprintf( stderr
, " parent=%p,", req
->parent
);
2204 fprintf( stderr
, " owner=%p,", req
->owner
);
2205 fprintf( stderr
, " atom=%04x,", req
->atom
);
2206 fprintf( stderr
, " instance=%p", req
->instance
);
2209 static void dump_create_window_reply( const struct create_window_reply
*req
)
2211 fprintf( stderr
, " handle=%p,", req
->handle
);
2212 fprintf( stderr
, " extra=%d,", req
->extra
);
2213 fprintf( stderr
, " class_ptr=%p", req
->class_ptr
);
2216 static void dump_destroy_window_request( const struct destroy_window_request
*req
)
2218 fprintf( stderr
, " handle=%p", req
->handle
);
2221 static void dump_get_desktop_window_request( const struct get_desktop_window_request
*req
)
2225 static void dump_get_desktop_window_reply( const struct get_desktop_window_reply
*req
)
2227 fprintf( stderr
, " handle=%p", req
->handle
);
2230 static void dump_set_window_owner_request( const struct set_window_owner_request
*req
)
2232 fprintf( stderr
, " handle=%p,", req
->handle
);
2233 fprintf( stderr
, " owner=%p", req
->owner
);
2236 static void dump_set_window_owner_reply( const struct set_window_owner_reply
*req
)
2238 fprintf( stderr
, " full_owner=%p,", req
->full_owner
);
2239 fprintf( stderr
, " prev_owner=%p", req
->prev_owner
);
2242 static void dump_get_window_info_request( const struct get_window_info_request
*req
)
2244 fprintf( stderr
, " handle=%p", req
->handle
);
2247 static void dump_get_window_info_reply( const struct get_window_info_reply
*req
)
2249 fprintf( stderr
, " full_handle=%p,", req
->full_handle
);
2250 fprintf( stderr
, " last_active=%p,", req
->last_active
);
2251 fprintf( stderr
, " pid=%04x,", req
->pid
);
2252 fprintf( stderr
, " tid=%04x,", req
->tid
);
2253 fprintf( stderr
, " atom=%04x,", req
->atom
);
2254 fprintf( stderr
, " is_unicode=%d", req
->is_unicode
);
2257 static void dump_set_window_info_request( const struct set_window_info_request
*req
)
2259 fprintf( stderr
, " handle=%p,", req
->handle
);
2260 fprintf( stderr
, " flags=%08x,", req
->flags
);
2261 fprintf( stderr
, " style=%08x,", req
->style
);
2262 fprintf( stderr
, " ex_style=%08x,", req
->ex_style
);
2263 fprintf( stderr
, " id=%08x,", req
->id
);
2264 fprintf( stderr
, " instance=%p,", req
->instance
);
2265 fprintf( stderr
, " is_unicode=%d,", req
->is_unicode
);
2266 fprintf( stderr
, " user_data=%p,", req
->user_data
);
2267 fprintf( stderr
, " extra_offset=%d,", req
->extra_offset
);
2268 fprintf( stderr
, " extra_size=%d,", req
->extra_size
);
2269 fprintf( stderr
, " extra_value=%08x", req
->extra_value
);
2272 static void dump_set_window_info_reply( const struct set_window_info_reply
*req
)
2274 fprintf( stderr
, " old_style=%08x,", req
->old_style
);
2275 fprintf( stderr
, " old_ex_style=%08x,", req
->old_ex_style
);
2276 fprintf( stderr
, " old_id=%08x,", req
->old_id
);
2277 fprintf( stderr
, " old_instance=%p,", req
->old_instance
);
2278 fprintf( stderr
, " old_user_data=%p,", req
->old_user_data
);
2279 fprintf( stderr
, " old_extra_value=%08x", req
->old_extra_value
);
2282 static void dump_set_parent_request( const struct set_parent_request
*req
)
2284 fprintf( stderr
, " handle=%p,", req
->handle
);
2285 fprintf( stderr
, " parent=%p", req
->parent
);
2288 static void dump_set_parent_reply( const struct set_parent_reply
*req
)
2290 fprintf( stderr
, " old_parent=%p,", req
->old_parent
);
2291 fprintf( stderr
, " full_parent=%p", req
->full_parent
);
2294 static void dump_get_window_parents_request( const struct get_window_parents_request
*req
)
2296 fprintf( stderr
, " handle=%p", req
->handle
);
2299 static void dump_get_window_parents_reply( const struct get_window_parents_reply
*req
)
2301 fprintf( stderr
, " count=%d,", req
->count
);
2302 fprintf( stderr
, " parents=" );
2303 dump_varargs_user_handles( cur_size
);
2306 static void dump_get_window_children_request( const struct get_window_children_request
*req
)
2308 fprintf( stderr
, " parent=%p,", req
->parent
);
2309 fprintf( stderr
, " atom=%04x,", req
->atom
);
2310 fprintf( stderr
, " tid=%04x", req
->tid
);
2313 static void dump_get_window_children_reply( const struct get_window_children_reply
*req
)
2315 fprintf( stderr
, " count=%d,", req
->count
);
2316 fprintf( stderr
, " children=" );
2317 dump_varargs_user_handles( cur_size
);
2320 static void dump_get_window_children_from_point_request( const struct get_window_children_from_point_request
*req
)
2322 fprintf( stderr
, " parent=%p,", req
->parent
);
2323 fprintf( stderr
, " x=%d,", req
->x
);
2324 fprintf( stderr
, " y=%d", req
->y
);
2327 static void dump_get_window_children_from_point_reply( const struct get_window_children_from_point_reply
*req
)
2329 fprintf( stderr
, " count=%d,", req
->count
);
2330 fprintf( stderr
, " children=" );
2331 dump_varargs_user_handles( cur_size
);
2334 static void dump_get_window_tree_request( const struct get_window_tree_request
*req
)
2336 fprintf( stderr
, " handle=%p", req
->handle
);
2339 static void dump_get_window_tree_reply( const struct get_window_tree_reply
*req
)
2341 fprintf( stderr
, " parent=%p,", req
->parent
);
2342 fprintf( stderr
, " owner=%p,", req
->owner
);
2343 fprintf( stderr
, " next_sibling=%p,", req
->next_sibling
);
2344 fprintf( stderr
, " prev_sibling=%p,", req
->prev_sibling
);
2345 fprintf( stderr
, " first_sibling=%p,", req
->first_sibling
);
2346 fprintf( stderr
, " last_sibling=%p,", req
->last_sibling
);
2347 fprintf( stderr
, " first_child=%p,", req
->first_child
);
2348 fprintf( stderr
, " last_child=%p", req
->last_child
);
2351 static void dump_set_window_pos_request( const struct set_window_pos_request
*req
)
2353 fprintf( stderr
, " handle=%p,", req
->handle
);
2354 fprintf( stderr
, " previous=%p,", req
->previous
);
2355 fprintf( stderr
, " flags=%08x,", req
->flags
);
2356 fprintf( stderr
, " window=" );
2357 dump_rectangle( &req
->window
);
2358 fprintf( stderr
, "," );
2359 fprintf( stderr
, " client=" );
2360 dump_rectangle( &req
->client
);
2361 fprintf( stderr
, "," );
2362 fprintf( stderr
, " valid=" );
2363 dump_varargs_rectangles( cur_size
);
2366 static void dump_set_window_pos_reply( const struct set_window_pos_reply
*req
)
2368 fprintf( stderr
, " new_style=%08x", req
->new_style
);
2371 static void dump_get_window_rectangles_request( const struct get_window_rectangles_request
*req
)
2373 fprintf( stderr
, " handle=%p", req
->handle
);
2376 static void dump_get_window_rectangles_reply( const struct get_window_rectangles_reply
*req
)
2378 fprintf( stderr
, " window=" );
2379 dump_rectangle( &req
->window
);
2380 fprintf( stderr
, "," );
2381 fprintf( stderr
, " visible=" );
2382 dump_rectangle( &req
->visible
);
2383 fprintf( stderr
, "," );
2384 fprintf( stderr
, " client=" );
2385 dump_rectangle( &req
->client
);
2388 static void dump_get_window_text_request( const struct get_window_text_request
*req
)
2390 fprintf( stderr
, " handle=%p", req
->handle
);
2393 static void dump_get_window_text_reply( const struct get_window_text_reply
*req
)
2395 fprintf( stderr
, " text=" );
2396 dump_varargs_unicode_str( cur_size
);
2399 static void dump_set_window_text_request( const struct set_window_text_request
*req
)
2401 fprintf( stderr
, " handle=%p,", req
->handle
);
2402 fprintf( stderr
, " text=" );
2403 dump_varargs_unicode_str( cur_size
);
2406 static void dump_get_windows_offset_request( const struct get_windows_offset_request
*req
)
2408 fprintf( stderr
, " from=%p,", req
->from
);
2409 fprintf( stderr
, " to=%p", req
->to
);
2412 static void dump_get_windows_offset_reply( const struct get_windows_offset_reply
*req
)
2414 fprintf( stderr
, " x=%d,", req
->x
);
2415 fprintf( stderr
, " y=%d", req
->y
);
2418 static void dump_get_visible_region_request( const struct get_visible_region_request
*req
)
2420 fprintf( stderr
, " window=%p,", req
->window
);
2421 fprintf( stderr
, " flags=%08x", req
->flags
);
2424 static void dump_get_visible_region_reply( const struct get_visible_region_reply
*req
)
2426 fprintf( stderr
, " top_win=%p,", req
->top_win
);
2427 fprintf( stderr
, " top_org_x=%d,", req
->top_org_x
);
2428 fprintf( stderr
, " top_org_y=%d,", req
->top_org_y
);
2429 fprintf( stderr
, " win_org_x=%d,", req
->win_org_x
);
2430 fprintf( stderr
, " win_org_y=%d,", req
->win_org_y
);
2431 fprintf( stderr
, " total_size=%d,", req
->total_size
);
2432 fprintf( stderr
, " region=" );
2433 dump_varargs_rectangles( cur_size
);
2436 static void dump_get_window_region_request( const struct get_window_region_request
*req
)
2438 fprintf( stderr
, " window=%p", req
->window
);
2441 static void dump_get_window_region_reply( const struct get_window_region_reply
*req
)
2443 fprintf( stderr
, " total_size=%d,", req
->total_size
);
2444 fprintf( stderr
, " region=" );
2445 dump_varargs_rectangles( cur_size
);
2448 static void dump_set_window_region_request( const struct set_window_region_request
*req
)
2450 fprintf( stderr
, " window=%p,", req
->window
);
2451 fprintf( stderr
, " region=" );
2452 dump_varargs_rectangles( cur_size
);
2455 static void dump_get_update_region_request( const struct get_update_region_request
*req
)
2457 fprintf( stderr
, " window=%p,", req
->window
);
2458 fprintf( stderr
, " from_child=%p,", req
->from_child
);
2459 fprintf( stderr
, " flags=%08x", req
->flags
);
2462 static void dump_get_update_region_reply( const struct get_update_region_reply
*req
)
2464 fprintf( stderr
, " child=%p,", req
->child
);
2465 fprintf( stderr
, " flags=%08x,", req
->flags
);
2466 fprintf( stderr
, " total_size=%d,", req
->total_size
);
2467 fprintf( stderr
, " region=" );
2468 dump_varargs_rectangles( cur_size
);
2471 static void dump_update_window_zorder_request( const struct update_window_zorder_request
*req
)
2473 fprintf( stderr
, " window=%p,", req
->window
);
2474 fprintf( stderr
, " rect=" );
2475 dump_rectangle( &req
->rect
);
2478 static void dump_redraw_window_request( const struct redraw_window_request
*req
)
2480 fprintf( stderr
, " window=%p,", req
->window
);
2481 fprintf( stderr
, " flags=%08x,", req
->flags
);
2482 fprintf( stderr
, " region=" );
2483 dump_varargs_rectangles( cur_size
);
2486 static void dump_set_window_property_request( const struct set_window_property_request
*req
)
2488 fprintf( stderr
, " window=%p,", req
->window
);
2489 fprintf( stderr
, " atom=%04x,", req
->atom
);
2490 fprintf( stderr
, " handle=%p,", req
->handle
);
2491 fprintf( stderr
, " name=" );
2492 dump_varargs_unicode_str( cur_size
);
2495 static void dump_remove_window_property_request( const struct remove_window_property_request
*req
)
2497 fprintf( stderr
, " window=%p,", req
->window
);
2498 fprintf( stderr
, " atom=%04x,", req
->atom
);
2499 fprintf( stderr
, " name=" );
2500 dump_varargs_unicode_str( cur_size
);
2503 static void dump_remove_window_property_reply( const struct remove_window_property_reply
*req
)
2505 fprintf( stderr
, " handle=%p", req
->handle
);
2508 static void dump_get_window_property_request( const struct get_window_property_request
*req
)
2510 fprintf( stderr
, " window=%p,", req
->window
);
2511 fprintf( stderr
, " atom=%04x,", req
->atom
);
2512 fprintf( stderr
, " name=" );
2513 dump_varargs_unicode_str( cur_size
);
2516 static void dump_get_window_property_reply( const struct get_window_property_reply
*req
)
2518 fprintf( stderr
, " handle=%p", req
->handle
);
2521 static void dump_get_window_properties_request( const struct get_window_properties_request
*req
)
2523 fprintf( stderr
, " window=%p", req
->window
);
2526 static void dump_get_window_properties_reply( const struct get_window_properties_reply
*req
)
2528 fprintf( stderr
, " total=%d,", req
->total
);
2529 fprintf( stderr
, " props=" );
2530 dump_varargs_properties( cur_size
);
2533 static void dump_create_winstation_request( const struct create_winstation_request
*req
)
2535 fprintf( stderr
, " flags=%08x,", req
->flags
);
2536 fprintf( stderr
, " access=%08x,", req
->access
);
2537 fprintf( stderr
, " inherit=%d,", req
->inherit
);
2538 fprintf( stderr
, " name=" );
2539 dump_varargs_unicode_str( cur_size
);
2542 static void dump_create_winstation_reply( const struct create_winstation_reply
*req
)
2544 fprintf( stderr
, " handle=%p", req
->handle
);
2547 static void dump_open_winstation_request( const struct open_winstation_request
*req
)
2549 fprintf( stderr
, " access=%08x,", req
->access
);
2550 fprintf( stderr
, " inherit=%d,", req
->inherit
);
2551 fprintf( stderr
, " name=" );
2552 dump_varargs_unicode_str( cur_size
);
2555 static void dump_open_winstation_reply( const struct open_winstation_reply
*req
)
2557 fprintf( stderr
, " handle=%p", req
->handle
);
2560 static void dump_close_winstation_request( const struct close_winstation_request
*req
)
2562 fprintf( stderr
, " handle=%p", req
->handle
);
2565 static void dump_get_process_winstation_request( const struct get_process_winstation_request
*req
)
2569 static void dump_get_process_winstation_reply( const struct get_process_winstation_reply
*req
)
2571 fprintf( stderr
, " handle=%p", req
->handle
);
2574 static void dump_set_process_winstation_request( const struct set_process_winstation_request
*req
)
2576 fprintf( stderr
, " handle=%p", req
->handle
);
2579 static void dump_create_desktop_request( const struct create_desktop_request
*req
)
2581 fprintf( stderr
, " flags=%08x,", req
->flags
);
2582 fprintf( stderr
, " access=%08x,", req
->access
);
2583 fprintf( stderr
, " inherit=%d,", req
->inherit
);
2584 fprintf( stderr
, " name=" );
2585 dump_varargs_unicode_str( cur_size
);
2588 static void dump_create_desktop_reply( const struct create_desktop_reply
*req
)
2590 fprintf( stderr
, " handle=%p", req
->handle
);
2593 static void dump_open_desktop_request( const struct open_desktop_request
*req
)
2595 fprintf( stderr
, " flags=%08x,", req
->flags
);
2596 fprintf( stderr
, " access=%08x,", req
->access
);
2597 fprintf( stderr
, " inherit=%d,", req
->inherit
);
2598 fprintf( stderr
, " name=" );
2599 dump_varargs_unicode_str( cur_size
);
2602 static void dump_open_desktop_reply( const struct open_desktop_reply
*req
)
2604 fprintf( stderr
, " handle=%p", req
->handle
);
2607 static void dump_close_desktop_request( const struct close_desktop_request
*req
)
2609 fprintf( stderr
, " handle=%p", req
->handle
);
2612 static void dump_get_thread_desktop_request( const struct get_thread_desktop_request
*req
)
2614 fprintf( stderr
, " tid=%04x", req
->tid
);
2617 static void dump_get_thread_desktop_reply( const struct get_thread_desktop_reply
*req
)
2619 fprintf( stderr
, " handle=%p", req
->handle
);
2622 static void dump_set_thread_desktop_request( const struct set_thread_desktop_request
*req
)
2624 fprintf( stderr
, " handle=%p", req
->handle
);
2627 static void dump_set_user_object_info_request( const struct set_user_object_info_request
*req
)
2629 fprintf( stderr
, " handle=%p,", req
->handle
);
2630 fprintf( stderr
, " flags=%08x,", req
->flags
);
2631 fprintf( stderr
, " obj_flags=%08x", req
->obj_flags
);
2634 static void dump_set_user_object_info_reply( const struct set_user_object_info_reply
*req
)
2636 fprintf( stderr
, " is_desktop=%d,", req
->is_desktop
);
2637 fprintf( stderr
, " old_obj_flags=%08x,", req
->old_obj_flags
);
2638 fprintf( stderr
, " name=" );
2639 dump_varargs_unicode_str( cur_size
);
2642 static void dump_attach_thread_input_request( const struct attach_thread_input_request
*req
)
2644 fprintf( stderr
, " tid_from=%04x,", req
->tid_from
);
2645 fprintf( stderr
, " tid_to=%04x,", req
->tid_to
);
2646 fprintf( stderr
, " attach=%d", req
->attach
);
2649 static void dump_get_thread_input_request( const struct get_thread_input_request
*req
)
2651 fprintf( stderr
, " tid=%04x", req
->tid
);
2654 static void dump_get_thread_input_reply( const struct get_thread_input_reply
*req
)
2656 fprintf( stderr
, " focus=%p,", req
->focus
);
2657 fprintf( stderr
, " capture=%p,", req
->capture
);
2658 fprintf( stderr
, " active=%p,", req
->active
);
2659 fprintf( stderr
, " foreground=%p,", req
->foreground
);
2660 fprintf( stderr
, " menu_owner=%p,", req
->menu_owner
);
2661 fprintf( stderr
, " move_size=%p,", req
->move_size
);
2662 fprintf( stderr
, " caret=%p,", req
->caret
);
2663 fprintf( stderr
, " rect=" );
2664 dump_rectangle( &req
->rect
);
2667 static void dump_get_last_input_time_request( const struct get_last_input_time_request
*req
)
2671 static void dump_get_last_input_time_reply( const struct get_last_input_time_reply
*req
)
2673 fprintf( stderr
, " time=%08x", req
->time
);
2676 static void dump_get_key_state_request( const struct get_key_state_request
*req
)
2678 fprintf( stderr
, " tid=%04x,", req
->tid
);
2679 fprintf( stderr
, " key=%d", req
->key
);
2682 static void dump_get_key_state_reply( const struct get_key_state_reply
*req
)
2684 fprintf( stderr
, " state=%02x,", req
->state
);
2685 fprintf( stderr
, " keystate=" );
2686 dump_varargs_bytes( cur_size
);
2689 static void dump_set_key_state_request( const struct set_key_state_request
*req
)
2691 fprintf( stderr
, " tid=%04x,", req
->tid
);
2692 fprintf( stderr
, " keystate=" );
2693 dump_varargs_bytes( cur_size
);
2696 static void dump_set_foreground_window_request( const struct set_foreground_window_request
*req
)
2698 fprintf( stderr
, " handle=%p", req
->handle
);
2701 static void dump_set_foreground_window_reply( const struct set_foreground_window_reply
*req
)
2703 fprintf( stderr
, " previous=%p,", req
->previous
);
2704 fprintf( stderr
, " send_msg_old=%d,", req
->send_msg_old
);
2705 fprintf( stderr
, " send_msg_new=%d", req
->send_msg_new
);
2708 static void dump_set_focus_window_request( const struct set_focus_window_request
*req
)
2710 fprintf( stderr
, " handle=%p", req
->handle
);
2713 static void dump_set_focus_window_reply( const struct set_focus_window_reply
*req
)
2715 fprintf( stderr
, " previous=%p", req
->previous
);
2718 static void dump_set_active_window_request( const struct set_active_window_request
*req
)
2720 fprintf( stderr
, " handle=%p", req
->handle
);
2723 static void dump_set_active_window_reply( const struct set_active_window_reply
*req
)
2725 fprintf( stderr
, " previous=%p", req
->previous
);
2728 static void dump_set_capture_window_request( const struct set_capture_window_request
*req
)
2730 fprintf( stderr
, " handle=%p,", req
->handle
);
2731 fprintf( stderr
, " flags=%08x", req
->flags
);
2734 static void dump_set_capture_window_reply( const struct set_capture_window_reply
*req
)
2736 fprintf( stderr
, " previous=%p,", req
->previous
);
2737 fprintf( stderr
, " full_handle=%p", req
->full_handle
);
2740 static void dump_set_caret_window_request( const struct set_caret_window_request
*req
)
2742 fprintf( stderr
, " handle=%p,", req
->handle
);
2743 fprintf( stderr
, " width=%d,", req
->width
);
2744 fprintf( stderr
, " height=%d", req
->height
);
2747 static void dump_set_caret_window_reply( const struct set_caret_window_reply
*req
)
2749 fprintf( stderr
, " previous=%p,", req
->previous
);
2750 fprintf( stderr
, " old_rect=" );
2751 dump_rectangle( &req
->old_rect
);
2752 fprintf( stderr
, "," );
2753 fprintf( stderr
, " old_hide=%d,", req
->old_hide
);
2754 fprintf( stderr
, " old_state=%d", req
->old_state
);
2757 static void dump_set_caret_info_request( const struct set_caret_info_request
*req
)
2759 fprintf( stderr
, " flags=%08x,", req
->flags
);
2760 fprintf( stderr
, " handle=%p,", req
->handle
);
2761 fprintf( stderr
, " x=%d,", req
->x
);
2762 fprintf( stderr
, " y=%d,", req
->y
);
2763 fprintf( stderr
, " hide=%d,", req
->hide
);
2764 fprintf( stderr
, " state=%d", req
->state
);
2767 static void dump_set_caret_info_reply( const struct set_caret_info_reply
*req
)
2769 fprintf( stderr
, " full_handle=%p,", req
->full_handle
);
2770 fprintf( stderr
, " old_rect=" );
2771 dump_rectangle( &req
->old_rect
);
2772 fprintf( stderr
, "," );
2773 fprintf( stderr
, " old_hide=%d,", req
->old_hide
);
2774 fprintf( stderr
, " old_state=%d", req
->old_state
);
2777 static void dump_set_hook_request( const struct set_hook_request
*req
)
2779 fprintf( stderr
, " id=%d,", req
->id
);
2780 fprintf( stderr
, " pid=%04x,", req
->pid
);
2781 fprintf( stderr
, " tid=%04x,", req
->tid
);
2782 fprintf( stderr
, " event_min=%d,", req
->event_min
);
2783 fprintf( stderr
, " event_max=%d,", req
->event_max
);
2784 fprintf( stderr
, " flags=%d,", req
->flags
);
2785 fprintf( stderr
, " proc=%p,", req
->proc
);
2786 fprintf( stderr
, " unicode=%d,", req
->unicode
);
2787 fprintf( stderr
, " module=" );
2788 dump_varargs_unicode_str( cur_size
);
2791 static void dump_set_hook_reply( const struct set_hook_reply
*req
)
2793 fprintf( stderr
, " handle=%p,", req
->handle
);
2794 fprintf( stderr
, " active_hooks=%08x", req
->active_hooks
);
2797 static void dump_remove_hook_request( const struct remove_hook_request
*req
)
2799 fprintf( stderr
, " handle=%p,", req
->handle
);
2800 fprintf( stderr
, " id=%d,", req
->id
);
2801 fprintf( stderr
, " proc=%p", req
->proc
);
2804 static void dump_remove_hook_reply( const struct remove_hook_reply
*req
)
2806 fprintf( stderr
, " active_hooks=%08x", req
->active_hooks
);
2809 static void dump_start_hook_chain_request( const struct start_hook_chain_request
*req
)
2811 fprintf( stderr
, " id=%d,", req
->id
);
2812 fprintf( stderr
, " event=%d,", req
->event
);
2813 fprintf( stderr
, " window=%p,", req
->window
);
2814 fprintf( stderr
, " object_id=%d,", req
->object_id
);
2815 fprintf( stderr
, " child_id=%d", req
->child_id
);
2818 static void dump_start_hook_chain_reply( const struct start_hook_chain_reply
*req
)
2820 fprintf( stderr
, " handle=%p,", req
->handle
);
2821 fprintf( stderr
, " pid=%04x,", req
->pid
);
2822 fprintf( stderr
, " tid=%04x,", req
->tid
);
2823 fprintf( stderr
, " proc=%p,", req
->proc
);
2824 fprintf( stderr
, " unicode=%d,", req
->unicode
);
2825 fprintf( stderr
, " active_hooks=%08x,", req
->active_hooks
);
2826 fprintf( stderr
, " module=" );
2827 dump_varargs_unicode_str( cur_size
);
2830 static void dump_finish_hook_chain_request( const struct finish_hook_chain_request
*req
)
2832 fprintf( stderr
, " id=%d", req
->id
);
2835 static void dump_get_next_hook_request( const struct get_next_hook_request
*req
)
2837 fprintf( stderr
, " handle=%p,", req
->handle
);
2838 fprintf( stderr
, " event=%d,", req
->event
);
2839 fprintf( stderr
, " window=%p,", req
->window
);
2840 fprintf( stderr
, " object_id=%d,", req
->object_id
);
2841 fprintf( stderr
, " child_id=%d", req
->child_id
);
2844 static void dump_get_next_hook_reply( const struct get_next_hook_reply
*req
)
2846 fprintf( stderr
, " next=%p,", req
->next
);
2847 fprintf( stderr
, " id=%d,", req
->id
);
2848 fprintf( stderr
, " pid=%04x,", req
->pid
);
2849 fprintf( stderr
, " tid=%04x,", req
->tid
);
2850 fprintf( stderr
, " proc=%p,", req
->proc
);
2851 fprintf( stderr
, " prev_unicode=%d,", req
->prev_unicode
);
2852 fprintf( stderr
, " next_unicode=%d,", req
->next_unicode
);
2853 fprintf( stderr
, " module=" );
2854 dump_varargs_unicode_str( cur_size
);
2857 static void dump_create_class_request( const struct create_class_request
*req
)
2859 fprintf( stderr
, " local=%d,", req
->local
);
2860 fprintf( stderr
, " atom=%04x,", req
->atom
);
2861 fprintf( stderr
, " style=%08x,", req
->style
);
2862 fprintf( stderr
, " instance=%p,", req
->instance
);
2863 fprintf( stderr
, " extra=%d,", req
->extra
);
2864 fprintf( stderr
, " win_extra=%d,", req
->win_extra
);
2865 fprintf( stderr
, " client_ptr=%p", req
->client_ptr
);
2868 static void dump_destroy_class_request( const struct destroy_class_request
*req
)
2870 fprintf( stderr
, " atom=%04x,", req
->atom
);
2871 fprintf( stderr
, " instance=%p", req
->instance
);
2874 static void dump_destroy_class_reply( const struct destroy_class_reply
*req
)
2876 fprintf( stderr
, " client_ptr=%p", req
->client_ptr
);
2879 static void dump_set_class_info_request( const struct set_class_info_request
*req
)
2881 fprintf( stderr
, " window=%p,", req
->window
);
2882 fprintf( stderr
, " flags=%08x,", req
->flags
);
2883 fprintf( stderr
, " atom=%04x,", req
->atom
);
2884 fprintf( stderr
, " style=%08x,", req
->style
);
2885 fprintf( stderr
, " win_extra=%d,", req
->win_extra
);
2886 fprintf( stderr
, " instance=%p,", req
->instance
);
2887 fprintf( stderr
, " extra_offset=%d,", req
->extra_offset
);
2888 fprintf( stderr
, " extra_size=%d,", req
->extra_size
);
2889 fprintf( stderr
, " extra_value=%08x", req
->extra_value
);
2892 static void dump_set_class_info_reply( const struct set_class_info_reply
*req
)
2894 fprintf( stderr
, " old_atom=%04x,", req
->old_atom
);
2895 fprintf( stderr
, " old_style=%08x,", req
->old_style
);
2896 fprintf( stderr
, " old_extra=%d,", req
->old_extra
);
2897 fprintf( stderr
, " old_win_extra=%d,", req
->old_win_extra
);
2898 fprintf( stderr
, " old_instance=%p,", req
->old_instance
);
2899 fprintf( stderr
, " old_extra_value=%08x", req
->old_extra_value
);
2902 static void dump_set_clipboard_info_request( const struct set_clipboard_info_request
*req
)
2904 fprintf( stderr
, " flags=%08x,", req
->flags
);
2905 fprintf( stderr
, " clipboard=%p,", req
->clipboard
);
2906 fprintf( stderr
, " owner=%p,", req
->owner
);
2907 fprintf( stderr
, " viewer=%p,", req
->viewer
);
2908 fprintf( stderr
, " seqno=%08x", req
->seqno
);
2911 static void dump_set_clipboard_info_reply( const struct set_clipboard_info_reply
*req
)
2913 fprintf( stderr
, " flags=%08x,", req
->flags
);
2914 fprintf( stderr
, " old_clipboard=%p,", req
->old_clipboard
);
2915 fprintf( stderr
, " old_owner=%p,", req
->old_owner
);
2916 fprintf( stderr
, " old_viewer=%p,", req
->old_viewer
);
2917 fprintf( stderr
, " seqno=%08x", req
->seqno
);
2920 static void dump_open_token_request( const struct open_token_request
*req
)
2922 fprintf( stderr
, " handle=%p,", req
->handle
);
2923 fprintf( stderr
, " flags=%08x", req
->flags
);
2926 static void dump_open_token_reply( const struct open_token_reply
*req
)
2928 fprintf( stderr
, " token=%p", req
->token
);
2931 static void dump_set_global_windows_request( const struct set_global_windows_request
*req
)
2933 fprintf( stderr
, " flags=%08x,", req
->flags
);
2934 fprintf( stderr
, " shell_window=%p,", req
->shell_window
);
2935 fprintf( stderr
, " shell_listview=%p,", req
->shell_listview
);
2936 fprintf( stderr
, " progman_window=%p,", req
->progman_window
);
2937 fprintf( stderr
, " taskman_window=%p", req
->taskman_window
);
2940 static void dump_set_global_windows_reply( const struct set_global_windows_reply
*req
)
2942 fprintf( stderr
, " old_shell_window=%p,", req
->old_shell_window
);
2943 fprintf( stderr
, " old_shell_listview=%p,", req
->old_shell_listview
);
2944 fprintf( stderr
, " old_progman_window=%p,", req
->old_progman_window
);
2945 fprintf( stderr
, " old_taskman_window=%p", req
->old_taskman_window
);
2948 static void dump_adjust_token_privileges_request( const struct adjust_token_privileges_request
*req
)
2950 fprintf( stderr
, " handle=%p,", req
->handle
);
2951 fprintf( stderr
, " disable_all=%d,", req
->disable_all
);
2952 fprintf( stderr
, " get_modified_state=%d,", req
->get_modified_state
);
2953 fprintf( stderr
, " privileges=" );
2954 dump_varargs_LUID_AND_ATTRIBUTES( cur_size
);
2957 static void dump_adjust_token_privileges_reply( const struct adjust_token_privileges_reply
*req
)
2959 fprintf( stderr
, " len=%08x,", req
->len
);
2960 fprintf( stderr
, " privileges=" );
2961 dump_varargs_LUID_AND_ATTRIBUTES( cur_size
);
2964 static void dump_get_token_privileges_request( const struct get_token_privileges_request
*req
)
2966 fprintf( stderr
, " handle=%p", req
->handle
);
2969 static void dump_get_token_privileges_reply( const struct get_token_privileges_reply
*req
)
2971 fprintf( stderr
, " len=%08x,", req
->len
);
2972 fprintf( stderr
, " privileges=" );
2973 dump_varargs_LUID_AND_ATTRIBUTES( cur_size
);
2976 static void dump_check_token_privileges_request( const struct check_token_privileges_request
*req
)
2978 fprintf( stderr
, " handle=%p,", req
->handle
);
2979 fprintf( stderr
, " all_required=%d,", req
->all_required
);
2980 fprintf( stderr
, " privileges=" );
2981 dump_varargs_LUID_AND_ATTRIBUTES( cur_size
);
2984 static void dump_check_token_privileges_reply( const struct check_token_privileges_reply
*req
)
2986 fprintf( stderr
, " has_privileges=%d,", req
->has_privileges
);
2987 fprintf( stderr
, " privileges=" );
2988 dump_varargs_LUID_AND_ATTRIBUTES( cur_size
);
2991 static void dump_duplicate_token_request( const struct duplicate_token_request
*req
)
2993 fprintf( stderr
, " handle=%p,", req
->handle
);
2994 fprintf( stderr
, " access=%08x,", req
->access
);
2995 fprintf( stderr
, " inherit=%d,", req
->inherit
);
2996 fprintf( stderr
, " primary=%d,", req
->primary
);
2997 fprintf( stderr
, " impersonation_level=%d", req
->impersonation_level
);
3000 static void dump_duplicate_token_reply( const struct duplicate_token_reply
*req
)
3002 fprintf( stderr
, " new_handle=%p", req
->new_handle
);
3005 static void dump_access_check_request( const struct access_check_request
*req
)
3007 fprintf( stderr
, " handle=%p,", req
->handle
);
3008 fprintf( stderr
, " desired_access=%08x,", req
->desired_access
);
3009 fprintf( stderr
, " mapping_read=%08x,", req
->mapping_read
);
3010 fprintf( stderr
, " mapping_write=%08x,", req
->mapping_write
);
3011 fprintf( stderr
, " mapping_execute=%08x,", req
->mapping_execute
);
3012 fprintf( stderr
, " mapping_all=%08x,", req
->mapping_all
);
3013 fprintf( stderr
, " sd=" );
3014 dump_varargs_security_descriptor( cur_size
);
3017 static void dump_access_check_reply( const struct access_check_reply
*req
)
3019 fprintf( stderr
, " access_granted=%08x,", req
->access_granted
);
3020 fprintf( stderr
, " access_status=%08x,", req
->access_status
);
3021 fprintf( stderr
, " privileges_len=%08x,", req
->privileges_len
);
3022 fprintf( stderr
, " privileges=" );
3023 dump_varargs_LUID_AND_ATTRIBUTES( cur_size
);
3026 static void dump_get_token_user_request( const struct get_token_user_request
*req
)
3028 fprintf( stderr
, " handle=%p", req
->handle
);
3031 static void dump_get_token_user_reply( const struct get_token_user_reply
*req
)
3033 fprintf( stderr
, " user_len=%d,", req
->user_len
);
3034 fprintf( stderr
, " user=" );
3035 dump_varargs_SID( cur_size
);
3038 static void dump_create_mailslot_request( const struct create_mailslot_request
*req
)
3040 fprintf( stderr
, " max_msgsize=%08x,", req
->max_msgsize
);
3041 fprintf( stderr
, " read_timeout=%08x,", req
->read_timeout
);
3042 fprintf( stderr
, " inherit=%d,", req
->inherit
);
3043 fprintf( stderr
, " name=" );
3044 dump_varargs_unicode_str( cur_size
);
3047 static void dump_create_mailslot_reply( const struct create_mailslot_reply
*req
)
3049 fprintf( stderr
, " handle=%p", req
->handle
);
3052 static void dump_open_mailslot_request( const struct open_mailslot_request
*req
)
3054 fprintf( stderr
, " access=%08x,", req
->access
);
3055 fprintf( stderr
, " inherit=%d,", req
->inherit
);
3056 fprintf( stderr
, " sharing=%08x,", req
->sharing
);
3057 fprintf( stderr
, " name=" );
3058 dump_varargs_unicode_str( cur_size
);
3061 static void dump_open_mailslot_reply( const struct open_mailslot_reply
*req
)
3063 fprintf( stderr
, " handle=%p", req
->handle
);
3066 static void dump_set_mailslot_info_request( const struct set_mailslot_info_request
*req
)
3068 fprintf( stderr
, " handle=%p,", req
->handle
);
3069 fprintf( stderr
, " flags=%08x,", req
->flags
);
3070 fprintf( stderr
, " read_timeout=%08x", req
->read_timeout
);
3073 static void dump_set_mailslot_info_reply( const struct set_mailslot_info_reply
*req
)
3075 fprintf( stderr
, " max_msgsize=%08x,", req
->max_msgsize
);
3076 fprintf( stderr
, " read_timeout=%08x,", req
->read_timeout
);
3077 fprintf( stderr
, " msg_count=%08x,", req
->msg_count
);
3078 fprintf( stderr
, " next_msgsize=%08x", req
->next_msgsize
);
3081 static const dump_func req_dumpers
[REQ_NB_REQUESTS
] = {
3082 (dump_func
)dump_new_process_request
,
3083 (dump_func
)dump_get_new_process_info_request
,
3084 (dump_func
)dump_new_thread_request
,
3085 (dump_func
)dump_get_startup_info_request
,
3086 (dump_func
)dump_init_process_done_request
,
3087 (dump_func
)dump_init_thread_request
,
3088 (dump_func
)dump_terminate_process_request
,
3089 (dump_func
)dump_terminate_thread_request
,
3090 (dump_func
)dump_get_process_info_request
,
3091 (dump_func
)dump_set_process_info_request
,
3092 (dump_func
)dump_get_thread_info_request
,
3093 (dump_func
)dump_set_thread_info_request
,
3094 (dump_func
)dump_get_dll_info_request
,
3095 (dump_func
)dump_suspend_thread_request
,
3096 (dump_func
)dump_resume_thread_request
,
3097 (dump_func
)dump_load_dll_request
,
3098 (dump_func
)dump_unload_dll_request
,
3099 (dump_func
)dump_queue_apc_request
,
3100 (dump_func
)dump_get_apc_request
,
3101 (dump_func
)dump_close_handle_request
,
3102 (dump_func
)dump_set_handle_info_request
,
3103 (dump_func
)dump_dup_handle_request
,
3104 (dump_func
)dump_open_process_request
,
3105 (dump_func
)dump_open_thread_request
,
3106 (dump_func
)dump_select_request
,
3107 (dump_func
)dump_create_event_request
,
3108 (dump_func
)dump_event_op_request
,
3109 (dump_func
)dump_open_event_request
,
3110 (dump_func
)dump_create_mutex_request
,
3111 (dump_func
)dump_release_mutex_request
,
3112 (dump_func
)dump_open_mutex_request
,
3113 (dump_func
)dump_create_semaphore_request
,
3114 (dump_func
)dump_release_semaphore_request
,
3115 (dump_func
)dump_open_semaphore_request
,
3116 (dump_func
)dump_create_file_request
,
3117 (dump_func
)dump_alloc_file_handle_request
,
3118 (dump_func
)dump_get_handle_fd_request
,
3119 (dump_func
)dump_flush_file_request
,
3120 (dump_func
)dump_lock_file_request
,
3121 (dump_func
)dump_unlock_file_request
,
3122 (dump_func
)dump_unmount_device_request
,
3123 (dump_func
)dump_create_socket_request
,
3124 (dump_func
)dump_accept_socket_request
,
3125 (dump_func
)dump_set_socket_event_request
,
3126 (dump_func
)dump_get_socket_event_request
,
3127 (dump_func
)dump_enable_socket_event_request
,
3128 (dump_func
)dump_set_socket_deferred_request
,
3129 (dump_func
)dump_alloc_console_request
,
3130 (dump_func
)dump_free_console_request
,
3131 (dump_func
)dump_get_console_renderer_events_request
,
3132 (dump_func
)dump_open_console_request
,
3133 (dump_func
)dump_get_console_wait_event_request
,
3134 (dump_func
)dump_get_console_mode_request
,
3135 (dump_func
)dump_set_console_mode_request
,
3136 (dump_func
)dump_set_console_input_info_request
,
3137 (dump_func
)dump_get_console_input_info_request
,
3138 (dump_func
)dump_append_console_input_history_request
,
3139 (dump_func
)dump_get_console_input_history_request
,
3140 (dump_func
)dump_create_console_output_request
,
3141 (dump_func
)dump_set_console_output_info_request
,
3142 (dump_func
)dump_get_console_output_info_request
,
3143 (dump_func
)dump_write_console_input_request
,
3144 (dump_func
)dump_read_console_input_request
,
3145 (dump_func
)dump_write_console_output_request
,
3146 (dump_func
)dump_fill_console_output_request
,
3147 (dump_func
)dump_read_console_output_request
,
3148 (dump_func
)dump_move_console_output_request
,
3149 (dump_func
)dump_send_console_signal_request
,
3150 (dump_func
)dump_create_change_notification_request
,
3151 (dump_func
)dump_next_change_notification_request
,
3152 (dump_func
)dump_create_mapping_request
,
3153 (dump_func
)dump_open_mapping_request
,
3154 (dump_func
)dump_get_mapping_info_request
,
3155 (dump_func
)dump_create_snapshot_request
,
3156 (dump_func
)dump_next_process_request
,
3157 (dump_func
)dump_next_thread_request
,
3158 (dump_func
)dump_next_module_request
,
3159 (dump_func
)dump_wait_debug_event_request
,
3160 (dump_func
)dump_queue_exception_event_request
,
3161 (dump_func
)dump_get_exception_status_request
,
3162 (dump_func
)dump_output_debug_string_request
,
3163 (dump_func
)dump_continue_debug_event_request
,
3164 (dump_func
)dump_debug_process_request
,
3165 (dump_func
)dump_debug_break_request
,
3166 (dump_func
)dump_set_debugger_kill_on_exit_request
,
3167 (dump_func
)dump_read_process_memory_request
,
3168 (dump_func
)dump_write_process_memory_request
,
3169 (dump_func
)dump_create_key_request
,
3170 (dump_func
)dump_open_key_request
,
3171 (dump_func
)dump_delete_key_request
,
3172 (dump_func
)dump_flush_key_request
,
3173 (dump_func
)dump_enum_key_request
,
3174 (dump_func
)dump_set_key_value_request
,
3175 (dump_func
)dump_get_key_value_request
,
3176 (dump_func
)dump_enum_key_value_request
,
3177 (dump_func
)dump_delete_key_value_request
,
3178 (dump_func
)dump_load_registry_request
,
3179 (dump_func
)dump_unload_registry_request
,
3180 (dump_func
)dump_save_registry_request
,
3181 (dump_func
)dump_set_registry_notification_request
,
3182 (dump_func
)dump_create_timer_request
,
3183 (dump_func
)dump_open_timer_request
,
3184 (dump_func
)dump_set_timer_request
,
3185 (dump_func
)dump_cancel_timer_request
,
3186 (dump_func
)dump_get_timer_info_request
,
3187 (dump_func
)dump_get_thread_context_request
,
3188 (dump_func
)dump_set_thread_context_request
,
3189 (dump_func
)dump_get_selector_entry_request
,
3190 (dump_func
)dump_add_atom_request
,
3191 (dump_func
)dump_delete_atom_request
,
3192 (dump_func
)dump_find_atom_request
,
3193 (dump_func
)dump_get_atom_information_request
,
3194 (dump_func
)dump_set_atom_information_request
,
3195 (dump_func
)dump_empty_atom_table_request
,
3196 (dump_func
)dump_init_atom_table_request
,
3197 (dump_func
)dump_get_msg_queue_request
,
3198 (dump_func
)dump_set_queue_mask_request
,
3199 (dump_func
)dump_get_queue_status_request
,
3200 (dump_func
)dump_wait_input_idle_request
,
3201 (dump_func
)dump_send_message_request
,
3202 (dump_func
)dump_get_message_request
,
3203 (dump_func
)dump_reply_message_request
,
3204 (dump_func
)dump_accept_hardware_message_request
,
3205 (dump_func
)dump_get_message_reply_request
,
3206 (dump_func
)dump_set_win_timer_request
,
3207 (dump_func
)dump_kill_win_timer_request
,
3208 (dump_func
)dump_get_serial_info_request
,
3209 (dump_func
)dump_set_serial_info_request
,
3210 (dump_func
)dump_register_async_request
,
3211 (dump_func
)dump_cancel_async_request
,
3212 (dump_func
)dump_create_named_pipe_request
,
3213 (dump_func
)dump_open_named_pipe_request
,
3214 (dump_func
)dump_connect_named_pipe_request
,
3215 (dump_func
)dump_wait_named_pipe_request
,
3216 (dump_func
)dump_disconnect_named_pipe_request
,
3217 (dump_func
)dump_get_named_pipe_info_request
,
3218 (dump_func
)dump_create_window_request
,
3219 (dump_func
)dump_destroy_window_request
,
3220 (dump_func
)dump_get_desktop_window_request
,
3221 (dump_func
)dump_set_window_owner_request
,
3222 (dump_func
)dump_get_window_info_request
,
3223 (dump_func
)dump_set_window_info_request
,
3224 (dump_func
)dump_set_parent_request
,
3225 (dump_func
)dump_get_window_parents_request
,
3226 (dump_func
)dump_get_window_children_request
,
3227 (dump_func
)dump_get_window_children_from_point_request
,
3228 (dump_func
)dump_get_window_tree_request
,
3229 (dump_func
)dump_set_window_pos_request
,
3230 (dump_func
)dump_get_window_rectangles_request
,
3231 (dump_func
)dump_get_window_text_request
,
3232 (dump_func
)dump_set_window_text_request
,
3233 (dump_func
)dump_get_windows_offset_request
,
3234 (dump_func
)dump_get_visible_region_request
,
3235 (dump_func
)dump_get_window_region_request
,
3236 (dump_func
)dump_set_window_region_request
,
3237 (dump_func
)dump_get_update_region_request
,
3238 (dump_func
)dump_update_window_zorder_request
,
3239 (dump_func
)dump_redraw_window_request
,
3240 (dump_func
)dump_set_window_property_request
,
3241 (dump_func
)dump_remove_window_property_request
,
3242 (dump_func
)dump_get_window_property_request
,
3243 (dump_func
)dump_get_window_properties_request
,
3244 (dump_func
)dump_create_winstation_request
,
3245 (dump_func
)dump_open_winstation_request
,
3246 (dump_func
)dump_close_winstation_request
,
3247 (dump_func
)dump_get_process_winstation_request
,
3248 (dump_func
)dump_set_process_winstation_request
,
3249 (dump_func
)dump_create_desktop_request
,
3250 (dump_func
)dump_open_desktop_request
,
3251 (dump_func
)dump_close_desktop_request
,
3252 (dump_func
)dump_get_thread_desktop_request
,
3253 (dump_func
)dump_set_thread_desktop_request
,
3254 (dump_func
)dump_set_user_object_info_request
,
3255 (dump_func
)dump_attach_thread_input_request
,
3256 (dump_func
)dump_get_thread_input_request
,
3257 (dump_func
)dump_get_last_input_time_request
,
3258 (dump_func
)dump_get_key_state_request
,
3259 (dump_func
)dump_set_key_state_request
,
3260 (dump_func
)dump_set_foreground_window_request
,
3261 (dump_func
)dump_set_focus_window_request
,
3262 (dump_func
)dump_set_active_window_request
,
3263 (dump_func
)dump_set_capture_window_request
,
3264 (dump_func
)dump_set_caret_window_request
,
3265 (dump_func
)dump_set_caret_info_request
,
3266 (dump_func
)dump_set_hook_request
,
3267 (dump_func
)dump_remove_hook_request
,
3268 (dump_func
)dump_start_hook_chain_request
,
3269 (dump_func
)dump_finish_hook_chain_request
,
3270 (dump_func
)dump_get_next_hook_request
,
3271 (dump_func
)dump_create_class_request
,
3272 (dump_func
)dump_destroy_class_request
,
3273 (dump_func
)dump_set_class_info_request
,
3274 (dump_func
)dump_set_clipboard_info_request
,
3275 (dump_func
)dump_open_token_request
,
3276 (dump_func
)dump_set_global_windows_request
,
3277 (dump_func
)dump_adjust_token_privileges_request
,
3278 (dump_func
)dump_get_token_privileges_request
,
3279 (dump_func
)dump_check_token_privileges_request
,
3280 (dump_func
)dump_duplicate_token_request
,
3281 (dump_func
)dump_access_check_request
,
3282 (dump_func
)dump_get_token_user_request
,
3283 (dump_func
)dump_create_mailslot_request
,
3284 (dump_func
)dump_open_mailslot_request
,
3285 (dump_func
)dump_set_mailslot_info_request
,
3288 static const dump_func reply_dumpers
[REQ_NB_REQUESTS
] = {
3289 (dump_func
)dump_new_process_reply
,
3290 (dump_func
)dump_get_new_process_info_reply
,
3291 (dump_func
)dump_new_thread_reply
,
3292 (dump_func
)dump_get_startup_info_reply
,
3294 (dump_func
)dump_init_thread_reply
,
3295 (dump_func
)dump_terminate_process_reply
,
3296 (dump_func
)dump_terminate_thread_reply
,
3297 (dump_func
)dump_get_process_info_reply
,
3299 (dump_func
)dump_get_thread_info_reply
,
3301 (dump_func
)dump_get_dll_info_reply
,
3302 (dump_func
)dump_suspend_thread_reply
,
3303 (dump_func
)dump_resume_thread_reply
,
3307 (dump_func
)dump_get_apc_reply
,
3308 (dump_func
)dump_close_handle_reply
,
3309 (dump_func
)dump_set_handle_info_reply
,
3310 (dump_func
)dump_dup_handle_reply
,
3311 (dump_func
)dump_open_process_reply
,
3312 (dump_func
)dump_open_thread_reply
,
3314 (dump_func
)dump_create_event_reply
,
3316 (dump_func
)dump_open_event_reply
,
3317 (dump_func
)dump_create_mutex_reply
,
3318 (dump_func
)dump_release_mutex_reply
,
3319 (dump_func
)dump_open_mutex_reply
,
3320 (dump_func
)dump_create_semaphore_reply
,
3321 (dump_func
)dump_release_semaphore_reply
,
3322 (dump_func
)dump_open_semaphore_reply
,
3323 (dump_func
)dump_create_file_reply
,
3324 (dump_func
)dump_alloc_file_handle_reply
,
3325 (dump_func
)dump_get_handle_fd_reply
,
3326 (dump_func
)dump_flush_file_reply
,
3327 (dump_func
)dump_lock_file_reply
,
3330 (dump_func
)dump_create_socket_reply
,
3331 (dump_func
)dump_accept_socket_reply
,
3333 (dump_func
)dump_get_socket_event_reply
,
3336 (dump_func
)dump_alloc_console_reply
,
3338 (dump_func
)dump_get_console_renderer_events_reply
,
3339 (dump_func
)dump_open_console_reply
,
3340 (dump_func
)dump_get_console_wait_event_reply
,
3341 (dump_func
)dump_get_console_mode_reply
,
3344 (dump_func
)dump_get_console_input_info_reply
,
3346 (dump_func
)dump_get_console_input_history_reply
,
3347 (dump_func
)dump_create_console_output_reply
,
3349 (dump_func
)dump_get_console_output_info_reply
,
3350 (dump_func
)dump_write_console_input_reply
,
3351 (dump_func
)dump_read_console_input_reply
,
3352 (dump_func
)dump_write_console_output_reply
,
3353 (dump_func
)dump_fill_console_output_reply
,
3354 (dump_func
)dump_read_console_output_reply
,
3357 (dump_func
)dump_create_change_notification_reply
,
3359 (dump_func
)dump_create_mapping_reply
,
3360 (dump_func
)dump_open_mapping_reply
,
3361 (dump_func
)dump_get_mapping_info_reply
,
3362 (dump_func
)dump_create_snapshot_reply
,
3363 (dump_func
)dump_next_process_reply
,
3364 (dump_func
)dump_next_thread_reply
,
3365 (dump_func
)dump_next_module_reply
,
3366 (dump_func
)dump_wait_debug_event_reply
,
3367 (dump_func
)dump_queue_exception_event_reply
,
3368 (dump_func
)dump_get_exception_status_reply
,
3372 (dump_func
)dump_debug_break_reply
,
3374 (dump_func
)dump_read_process_memory_reply
,
3376 (dump_func
)dump_create_key_reply
,
3377 (dump_func
)dump_open_key_reply
,
3380 (dump_func
)dump_enum_key_reply
,
3382 (dump_func
)dump_get_key_value_reply
,
3383 (dump_func
)dump_enum_key_value_reply
,
3389 (dump_func
)dump_create_timer_reply
,
3390 (dump_func
)dump_open_timer_reply
,
3391 (dump_func
)dump_set_timer_reply
,
3392 (dump_func
)dump_cancel_timer_reply
,
3393 (dump_func
)dump_get_timer_info_reply
,
3394 (dump_func
)dump_get_thread_context_reply
,
3396 (dump_func
)dump_get_selector_entry_reply
,
3397 (dump_func
)dump_add_atom_reply
,
3399 (dump_func
)dump_find_atom_reply
,
3400 (dump_func
)dump_get_atom_information_reply
,
3403 (dump_func
)dump_init_atom_table_reply
,
3404 (dump_func
)dump_get_msg_queue_reply
,
3405 (dump_func
)dump_set_queue_mask_reply
,
3406 (dump_func
)dump_get_queue_status_reply
,
3407 (dump_func
)dump_wait_input_idle_reply
,
3409 (dump_func
)dump_get_message_reply
,
3412 (dump_func
)dump_get_message_reply_reply
,
3413 (dump_func
)dump_set_win_timer_reply
,
3415 (dump_func
)dump_get_serial_info_reply
,
3419 (dump_func
)dump_create_named_pipe_reply
,
3420 (dump_func
)dump_open_named_pipe_reply
,
3423 (dump_func
)dump_disconnect_named_pipe_reply
,
3424 (dump_func
)dump_get_named_pipe_info_reply
,
3425 (dump_func
)dump_create_window_reply
,
3427 (dump_func
)dump_get_desktop_window_reply
,
3428 (dump_func
)dump_set_window_owner_reply
,
3429 (dump_func
)dump_get_window_info_reply
,
3430 (dump_func
)dump_set_window_info_reply
,
3431 (dump_func
)dump_set_parent_reply
,
3432 (dump_func
)dump_get_window_parents_reply
,
3433 (dump_func
)dump_get_window_children_reply
,
3434 (dump_func
)dump_get_window_children_from_point_reply
,
3435 (dump_func
)dump_get_window_tree_reply
,
3436 (dump_func
)dump_set_window_pos_reply
,
3437 (dump_func
)dump_get_window_rectangles_reply
,
3438 (dump_func
)dump_get_window_text_reply
,
3440 (dump_func
)dump_get_windows_offset_reply
,
3441 (dump_func
)dump_get_visible_region_reply
,
3442 (dump_func
)dump_get_window_region_reply
,
3444 (dump_func
)dump_get_update_region_reply
,
3448 (dump_func
)dump_remove_window_property_reply
,
3449 (dump_func
)dump_get_window_property_reply
,
3450 (dump_func
)dump_get_window_properties_reply
,
3451 (dump_func
)dump_create_winstation_reply
,
3452 (dump_func
)dump_open_winstation_reply
,
3454 (dump_func
)dump_get_process_winstation_reply
,
3456 (dump_func
)dump_create_desktop_reply
,
3457 (dump_func
)dump_open_desktop_reply
,
3459 (dump_func
)dump_get_thread_desktop_reply
,
3461 (dump_func
)dump_set_user_object_info_reply
,
3463 (dump_func
)dump_get_thread_input_reply
,
3464 (dump_func
)dump_get_last_input_time_reply
,
3465 (dump_func
)dump_get_key_state_reply
,
3467 (dump_func
)dump_set_foreground_window_reply
,
3468 (dump_func
)dump_set_focus_window_reply
,
3469 (dump_func
)dump_set_active_window_reply
,
3470 (dump_func
)dump_set_capture_window_reply
,
3471 (dump_func
)dump_set_caret_window_reply
,
3472 (dump_func
)dump_set_caret_info_reply
,
3473 (dump_func
)dump_set_hook_reply
,
3474 (dump_func
)dump_remove_hook_reply
,
3475 (dump_func
)dump_start_hook_chain_reply
,
3477 (dump_func
)dump_get_next_hook_reply
,
3479 (dump_func
)dump_destroy_class_reply
,
3480 (dump_func
)dump_set_class_info_reply
,
3481 (dump_func
)dump_set_clipboard_info_reply
,
3482 (dump_func
)dump_open_token_reply
,
3483 (dump_func
)dump_set_global_windows_reply
,
3484 (dump_func
)dump_adjust_token_privileges_reply
,
3485 (dump_func
)dump_get_token_privileges_reply
,
3486 (dump_func
)dump_check_token_privileges_reply
,
3487 (dump_func
)dump_duplicate_token_reply
,
3488 (dump_func
)dump_access_check_reply
,
3489 (dump_func
)dump_get_token_user_reply
,
3490 (dump_func
)dump_create_mailslot_reply
,
3491 (dump_func
)dump_open_mailslot_reply
,
3492 (dump_func
)dump_set_mailslot_info_reply
,
3495 static const char * const req_names
[REQ_NB_REQUESTS
] = {
3497 "get_new_process_info",
3500 "init_process_done",
3502 "terminate_process",
3528 "release_semaphore",
3531 "alloc_file_handle",
3541 "enable_socket_event",
3542 "set_socket_deferred",
3545 "get_console_renderer_events",
3547 "get_console_wait_event",
3550 "set_console_input_info",
3551 "get_console_input_info",
3552 "append_console_input_history",
3553 "get_console_input_history",
3554 "create_console_output",
3555 "set_console_output_info",
3556 "get_console_output_info",
3557 "write_console_input",
3558 "read_console_input",
3559 "write_console_output",
3560 "fill_console_output",
3561 "read_console_output",
3562 "move_console_output",
3563 "send_console_signal",
3564 "create_change_notification",
3565 "next_change_notification",
3574 "queue_exception_event",
3575 "get_exception_status",
3576 "output_debug_string",
3577 "continue_debug_event",
3580 "set_debugger_kill_on_exit",
3581 "read_process_memory",
3582 "write_process_memory",
3595 "set_registry_notification",
3601 "get_thread_context",
3602 "set_thread_context",
3603 "get_selector_entry",
3607 "get_atom_information",
3608 "set_atom_information",
3618 "accept_hardware_message",
3619 "get_message_reply",
3626 "create_named_pipe",
3628 "connect_named_pipe",
3630 "disconnect_named_pipe",
3631 "get_named_pipe_info",
3634 "get_desktop_window",
3639 "get_window_parents",
3640 "get_window_children",
3641 "get_window_children_from_point",
3644 "get_window_rectangles",
3647 "get_windows_offset",
3648 "get_visible_region",
3649 "get_window_region",
3650 "set_window_region",
3651 "get_update_region",
3652 "update_window_zorder",
3654 "set_window_property",
3655 "remove_window_property",
3656 "get_window_property",
3657 "get_window_properties",
3658 "create_winstation",
3661 "get_process_winstation",
3662 "set_process_winstation",
3666 "get_thread_desktop",
3667 "set_thread_desktop",
3668 "set_user_object_info",
3669 "attach_thread_input",
3671 "get_last_input_time",
3674 "set_foreground_window",
3676 "set_active_window",
3677 "set_capture_window",
3683 "finish_hook_chain",
3688 "set_clipboard_info",
3690 "set_global_windows",
3691 "adjust_token_privileges",
3692 "get_token_privileges",
3693 "check_token_privileges",
3699 "set_mailslot_info",
3708 { "ACCESS_DENIED", STATUS_ACCESS_DENIED
},
3709 { "ACCESS_VIOLATION", STATUS_ACCESS_VIOLATION
},
3710 { "ALIAS_EXISTS", STATUS_ALIAS_EXISTS
},
3711 { "BUFFER_OVERFLOW", STATUS_BUFFER_OVERFLOW
},
3712 { "BUFFER_TOO_SMALL", STATUS_BUFFER_TOO_SMALL
},
3713 { "CHILD_MUST_BE_VOLATILE", STATUS_CHILD_MUST_BE_VOLATILE
},
3714 { "DEVICE_BUSY", STATUS_DEVICE_BUSY
},
3715 { "DIRECTORY_NOT_EMPTY", STATUS_DIRECTORY_NOT_EMPTY
},
3716 { "DISK_FULL", STATUS_DISK_FULL
},
3717 { "DLL_NOT_FOUND", STATUS_DLL_NOT_FOUND
},
3718 { "ERROR_CLASS_ALREADY_EXISTS", 0xc0010000 | ERROR_CLASS_ALREADY_EXISTS
},
3719 { "ERROR_CLASS_DOES_NOT_EXIST", 0xc0010000 | ERROR_CLASS_DOES_NOT_EXIST
},
3720 { "ERROR_CLASS_HAS_WINDOWS", 0xc0010000 | ERROR_CLASS_HAS_WINDOWS
},
3721 { "ERROR_CLIPBOARD_NOT_OPEN", 0xc0010000 | ERROR_CLIPBOARD_NOT_OPEN
},
3722 { "ERROR_INVALID_INDEX", 0xc0010000 | ERROR_INVALID_INDEX
},
3723 { "ERROR_SEEK", 0xc0010000 | ERROR_SEEK
},
3724 { "FILE_INVALID", STATUS_FILE_INVALID
},
3725 { "FILE_IS_A_DIRECTORY", STATUS_FILE_IS_A_DIRECTORY
},
3726 { "FILE_LOCK_CONFLICT", STATUS_FILE_LOCK_CONFLICT
},
3727 { "HANDLE_NOT_CLOSABLE", STATUS_HANDLE_NOT_CLOSABLE
},
3728 { "INVALID_CID", STATUS_INVALID_CID
},
3729 { "INVALID_FILE_FOR_SECTION", STATUS_INVALID_FILE_FOR_SECTION
},
3730 { "INVALID_HANDLE", STATUS_INVALID_HANDLE
},
3731 { "INVALID_PARAMETER", STATUS_INVALID_PARAMETER
},
3732 { "IO_TIMEOUT", STATUS_IO_TIMEOUT
},
3733 { "KEY_DELETED", STATUS_KEY_DELETED
},
3734 { "MEDIA_WRITE_PROTECTED", STATUS_MEDIA_WRITE_PROTECTED
},
3735 { "MUTANT_NOT_OWNED", STATUS_MUTANT_NOT_OWNED
},
3736 { "NOT_ALL_ASSIGNED", STATUS_NOT_ALL_ASSIGNED
},
3737 { "NOT_A_DIRECTORY", STATUS_NOT_A_DIRECTORY
},
3738 { "NOT_IMPLEMENTED", STATUS_NOT_IMPLEMENTED
},
3739 { "NOT_REGISTRY_FILE", STATUS_NOT_REGISTRY_FILE
},
3740 { "NO_DATA_DETECTED", STATUS_NO_DATA_DETECTED
},
3741 { "NO_IMPERSONATION_TOKEN", STATUS_NO_IMPERSONATION_TOKEN
},
3742 { "NO_MEMORY", STATUS_NO_MEMORY
},
3743 { "NO_MORE_ENTRIES", STATUS_NO_MORE_ENTRIES
},
3744 { "NO_MORE_FILES", STATUS_NO_MORE_FILES
},
3745 { "NO_SUCH_DEVICE", STATUS_NO_SUCH_DEVICE
},
3746 { "NO_SUCH_FILE", STATUS_NO_SUCH_FILE
},
3747 { "NO_TOKEN", STATUS_NO_TOKEN
},
3748 { "OBJECT_NAME_COLLISION", STATUS_OBJECT_NAME_COLLISION
},
3749 { "OBJECT_NAME_INVALID", STATUS_OBJECT_NAME_INVALID
},
3750 { "OBJECT_NAME_NOT_FOUND", STATUS_OBJECT_NAME_NOT_FOUND
},
3751 { "OBJECT_PATH_INVALID", STATUS_OBJECT_PATH_INVALID
},
3752 { "OBJECT_TYPE_MISMATCH", STATUS_OBJECT_TYPE_MISMATCH
},
3753 { "PENDING", STATUS_PENDING
},
3754 { "PIPE_BUSY", STATUS_PIPE_BUSY
},
3755 { "PIPE_CONNECTED", STATUS_PIPE_CONNECTED
},
3756 { "PIPE_DISCONNECTED", STATUS_PIPE_DISCONNECTED
},
3757 { "PIPE_LISTENING", STATUS_PIPE_LISTENING
},
3758 { "PIPE_NOT_AVAILABLE", STATUS_PIPE_NOT_AVAILABLE
},
3759 { "PRIVILEGE_NOT_HELD", STATUS_PRIVILEGE_NOT_HELD
},
3760 { "SECTION_TOO_BIG", STATUS_SECTION_TOO_BIG
},
3761 { "SEMAPHORE_LIMIT_EXCEEDED", STATUS_SEMAPHORE_LIMIT_EXCEEDED
},
3762 { "SHARING_VIOLATION", STATUS_SHARING_VIOLATION
},
3763 { "SUSPEND_COUNT_EXCEEDED", STATUS_SUSPEND_COUNT_EXCEEDED
},
3764 { "TIMEOUT", STATUS_TIMEOUT
},
3765 { "UNSUCCESSFUL", STATUS_UNSUCCESSFUL
},
3766 { "VOLUME_DISMOUNTED", STATUS_VOLUME_DISMOUNTED
},
3767 { "WAS_LOCKED", STATUS_WAS_LOCKED
},
3771 /* ### make_requests end ### */
3772 /* Everything above this line is generated automatically by tools/make_requests */
3774 static const char *get_status_name( unsigned int status
)
3777 static char buffer
[10];
3781 for (i
= 0; status_names
[i
].name
; i
++)
3782 if (status_names
[i
].value
== status
) return status_names
[i
].name
;
3784 sprintf( buffer
, "%x", status
);
3788 void trace_request(void)
3790 enum request req
= current
->req
.request_header
.req
;
3791 if (req
< REQ_NB_REQUESTS
)
3793 fprintf( stderr
, "%04x: %s(", current
->id
, req_names
[req
] );
3794 if (req_dumpers
[req
])
3797 cur_data
= get_req_data();
3798 cur_size
= get_req_data_size();
3799 req_dumpers
[req
]( ¤t
->req
);
3801 fprintf( stderr
, " )\n" );
3803 else fprintf( stderr
, "%04x: %d(?)\n", current
->id
, req
);
3806 void trace_reply( enum request req
, const union generic_reply
*reply
)
3808 if (req
< REQ_NB_REQUESTS
)
3810 fprintf( stderr
, "%04x: %s() = %s",
3811 current
->id
, req_names
[req
], get_status_name(current
->error
) );
3812 if (reply_dumpers
[req
])
3814 fprintf( stderr
, " {" );
3816 cur_data
= current
->reply_data
;
3817 cur_size
= reply
->reply_header
.reply_size
;
3818 reply_dumpers
[req
]( reply
);
3819 fprintf( stderr
, " }" );
3821 fputc( '\n', stderr
);
3823 else fprintf( stderr
, "%04x: %d() = %s\n",
3824 current
->id
, req
, get_status_name(current
->error
) );