mshtml: Fix failing test.
[wine/hacks.git] / server / trace.c
blobb128ad52e27cfcffb8c83f142e60b00d2ff362ba
1 /*
2 * Server request tracing
4 * Copyright (C) 1999 Alexandre Julliard
6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Lesser General Public
8 * License as published by the Free Software Foundation; either
9 * version 2.1 of the License, or (at your option) any later version.
11 * This library is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 * Lesser General Public License for more details.
16 * You should have received a copy of the GNU Lesser General Public
17 * License along with this library; if not, write to the Free Software
18 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
21 #include "config.h"
22 #include "wine/port.h"
24 #include <ctype.h>
25 #include <stdarg.h>
26 #include <stdio.h>
27 #include <sys/types.h>
29 #ifdef HAVE_SYS_UIO_H
30 #include <sys/uio.h>
31 #endif
33 #include "ntstatus.h"
34 #define WIN32_NO_STATUS
35 #include "windef.h"
36 #include "winbase.h"
37 #include "wincon.h"
38 #include "winternl.h"
39 #include "file.h"
40 #include "request.h"
41 #include "unicode.h"
43 static const void *cur_data;
44 static data_size_t cur_size;
46 /* utility functions */
48 inline static void remove_data( data_size_t size )
50 cur_data = (const char *)cur_data + size;
51 cur_size -= size;
54 static void dump_uints( const int *ptr, int len )
56 fputc( '{', stderr );
57 while (len > 0)
59 fprintf( stderr, "%08x", *ptr++ );
60 if (--len) fputc( ',', stderr );
62 fputc( '}', stderr );
65 static void dump_abs_time( const abs_time_t *time )
67 int secs, usecs;
69 if (!time->sec && !time->usec)
71 fprintf( stderr, "0" );
72 return;
74 secs = time->sec - current_time.tv_sec;
75 if ((usecs = time->usec - current_time.tv_usec) < 0)
77 usecs += 1000000;
78 secs--;
80 if (secs > 0 || (secs == 0 && usecs >= 0))
81 fprintf( stderr, "%d.%06d (+%d.%06d)", time->sec, time->usec, secs, usecs );
82 else
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 )
101 #ifdef __i386__
102 fprintf( stderr, "{flags=%08x,eax=%08x,ebx=%08x,ecx=%08x,edx=%08x,esi=%08x,edi=%08x,"
103 "ebp=%08x,eip=%08x,esp=%08x,eflags=%08x,cs=%04x,ds=%04x,es=%04x,"
104 "fs=%04x,gs=%04x,dr0=%08x,dr1=%08x,dr2=%08x,dr3=%08x,dr6=%08x,dr7=%08x,",
105 context->ContextFlags, context->Eax, context->Ebx, context->Ecx, context->Edx,
106 context->Esi, context->Edi, context->Ebp, context->Eip, context->Esp, context->EFlags,
107 context->SegCs, context->SegDs, context->SegEs, context->SegFs, context->SegGs,
108 context->Dr0, context->Dr1, context->Dr2, context->Dr3, context->Dr6, context->Dr7 );
109 fprintf( stderr, "float=" );
110 dump_uints( (const int *)&context->FloatSave, sizeof(context->FloatSave) / sizeof(int) );
111 fprintf( stderr, "}" );
112 #else
113 dump_uints( (const int *)context, sizeof(*context) / sizeof(int) );
114 #endif
117 static void dump_exc_record( const EXCEPTION_RECORD *rec )
119 unsigned int i;
120 fprintf( stderr, "{code=%x,flags=%x,rec=%p,addr=%p,params={",
121 rec->ExceptionCode, rec->ExceptionFlags, rec->ExceptionRecord,
122 rec->ExceptionAddress );
123 for (i = 0; i < min(rec->NumberParameters,EXCEPTION_MAXIMUM_PARAMETERS); i++)
125 if (i) fputc( ',', stderr );
126 fprintf( stderr, "%lx", rec->ExceptionInformation[i] );
128 fputc( '}', stderr );
131 static void dump_varargs_ints( data_size_t size )
133 const int *data = cur_data;
134 data_size_t len = size / sizeof(*data);
136 fputc( '{', stderr );
137 while (len > 0)
139 fprintf( stderr, "%d", *data++ );
140 if (--len) fputc( ',', stderr );
142 fputc( '}', stderr );
143 remove_data( size );
146 static void dump_varargs_handles( data_size_t size )
148 const obj_handle_t *data = cur_data;
149 data_size_t len = size / sizeof(*data);
151 fputc( '{', stderr );
152 while (len > 0)
154 fprintf( stderr, "%p", *data++ );
155 if (--len) fputc( ',', stderr );
157 fputc( '}', stderr );
158 remove_data( size );
161 static void dump_varargs_user_handles( data_size_t size )
163 const user_handle_t *data = cur_data;
164 data_size_t len = size / sizeof(*data);
166 fputc( '{', stderr );
167 while (len > 0)
169 fprintf( stderr, "%p", *data++ );
170 if (--len) fputc( ',', stderr );
172 fputc( '}', stderr );
173 remove_data( size );
176 static void dump_varargs_bytes( data_size_t size )
178 const unsigned char *data = cur_data;
179 data_size_t len = size;
181 fputc( '{', stderr );
182 while (len > 0)
184 fprintf( stderr, "%02x", *data++ );
185 if (--len) fputc( ',', stderr );
187 fputc( '}', stderr );
188 remove_data( size );
191 static void dump_varargs_string( data_size_t size )
193 fprintf( stderr, "\"%.*s\"", (int)size, (const char *)cur_data );
194 remove_data( size );
197 static void dump_varargs_unicode_str( data_size_t size )
199 fprintf( stderr, "L\"" );
200 dump_strW( cur_data, size / sizeof(WCHAR), stderr, "\"\"" );
201 fputc( '\"', stderr );
202 remove_data( size );
205 static void dump_varargs_context( data_size_t size )
207 if (!size)
209 fprintf( stderr, "{}" );
210 return;
212 dump_context( cur_data );
213 remove_data( size );
216 static void dump_varargs_exc_event( data_size_t size )
218 const CONTEXT *ptr = cur_data;
220 if (!size)
222 fprintf( stderr, "{}" );
223 return;
225 fprintf( stderr, "{context=" );
226 dump_context( ptr );
227 fprintf( stderr, ",rec=" );
228 dump_exc_record( (const EXCEPTION_RECORD *)(ptr + 1) );
229 fputc( '}', stderr );
230 remove_data( size );
233 static void dump_varargs_debug_event( data_size_t size )
235 const debug_event_t *event = cur_data;
237 if (!size)
239 fprintf( stderr, "{}" );
240 return;
242 switch(event->code)
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 );
248 break;
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 );
253 break;
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 );
262 break;
263 case EXIT_THREAD_DEBUG_EVENT:
264 fprintf( stderr, "{exit_thread,code=%d}", event->info.exit.exit_code );
265 break;
266 case EXIT_PROCESS_DEBUG_EVENT:
267 fprintf( stderr, "{exit_process,code=%d}", event->info.exit.exit_code );
268 break;
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 );
274 break;
275 case UNLOAD_DLL_DEBUG_EVENT:
276 fprintf( stderr, "{unload_dll,base=%p}", event->info.unload_dll.base );
277 break;
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 );
282 break;
283 case RIP_EVENT:
284 fprintf( stderr, "{rip,err=%d,type=%d}",
285 event->info.rip_info.error, event->info.rip_info.type );
286 break;
287 case 0: /* zero is the code returned on timeouts */
288 fprintf( stderr, "{}" );
289 break;
290 default:
291 fprintf( stderr, "{code=??? (%d)}", event->code );
292 break;
294 remove_data( size );
297 /* dump a unicode string contained in a buffer; helper for dump_varargs_startup_info */
298 static void dump_inline_unicode_string( const UNICODE_STRING *str, const void *data, data_size_t size )
300 size_t length = str->Length;
301 size_t offset = (size_t)str->Buffer;
303 if (offset >= size) return;
304 if (offset + length > size) length = size - offset;
305 dump_strW( (const WCHAR *)data + offset/sizeof(WCHAR), length/sizeof(WCHAR), stderr, "\"\"" );
308 static void dump_varargs_startup_info( data_size_t size )
310 const RTL_USER_PROCESS_PARAMETERS *ptr = cur_data;
311 RTL_USER_PROCESS_PARAMETERS params;
313 if (size < sizeof(params.Size))
315 fprintf( stderr, "{}" );
316 return;
318 if (size > ptr->Size) size = ptr->Size;
319 memset( &params, 0, sizeof(params) );
320 memcpy( &params, ptr, min( size, sizeof(params) ));
322 fprintf( stderr, "{AllocationSize=%x,", params.AllocationSize );
323 fprintf( stderr, "Size=%x,", params.Size );
324 fprintf( stderr, "Flags=%x,", params.Flags );
325 fprintf( stderr, "DebugFlags=%x,", params.DebugFlags );
326 fprintf( stderr, "ConsoleHandle=%p,", params.ConsoleHandle );
327 fprintf( stderr, "ConsoleFlags=%x,", params.ConsoleFlags );
328 fprintf( stderr, "hStdInput=%p,", params.hStdInput );
329 fprintf( stderr, "hStdOutput=%p,", params.hStdOutput );
330 fprintf( stderr, "hStdError=%p,", params.hStdError );
331 fprintf( stderr, "CurrentDirectory.Handle=%p,", params.CurrentDirectory.Handle );
332 fprintf( stderr, "dwX=%d,", params.dwX );
333 fprintf( stderr, "dwY=%d,", params.dwY );
334 fprintf( stderr, "dwXSize=%d,", params.dwXSize );
335 fprintf( stderr, "dwYSize=%d,", params.dwYSize );
336 fprintf( stderr, "dwXCountChars=%d,", params.dwXCountChars );
337 fprintf( stderr, "dwYCountChars=%d,", params.dwYCountChars );
338 fprintf( stderr, "dwFillAttribute=%x,", params.dwFillAttribute );
339 fprintf( stderr, "dwFlags=%x,", params.dwFlags );
340 fprintf( stderr, "wShowWindow=%x,", params.wShowWindow );
341 fprintf( stderr, "CurrentDirectory.DosPath=L\"" );
342 dump_inline_unicode_string( &params.CurrentDirectory.DosPath, cur_data, size );
343 fprintf( stderr, "\",DllPath=L\"" );
344 dump_inline_unicode_string( &params.DllPath, cur_data, size );
345 fprintf( stderr, "\",ImagePathName=L\"" );
346 dump_inline_unicode_string( &params.ImagePathName, cur_data, size );
347 fprintf( stderr, "\",CommandLine=L\"" );
348 dump_inline_unicode_string( &params.CommandLine, cur_data, size );
349 fprintf( stderr, "\",WindowTitle=L\"" );
350 dump_inline_unicode_string( &params.WindowTitle, cur_data, size );
351 fprintf( stderr, "\",Desktop=L\"" );
352 dump_inline_unicode_string( &params.Desktop, cur_data, size );
353 fprintf( stderr, "\",ShellInfo=L\"" );
354 dump_inline_unicode_string( &params.ShellInfo, cur_data, size );
355 fprintf( stderr, "\",RuntimeInfo=L\"" );
356 dump_inline_unicode_string( &params.RuntimeInfo, cur_data, size );
357 fprintf( stderr, "\"}" );
358 remove_data( size );
361 static void dump_varargs_input_records( data_size_t size )
363 const INPUT_RECORD *rec = cur_data;
364 data_size_t len = size / sizeof(*rec);
366 fputc( '{', stderr );
367 while (len > 0)
369 fprintf( stderr, "{%04x,...}", rec->EventType );
370 rec++;
371 if (--len) fputc( ',', stderr );
373 fputc( '}', stderr );
374 remove_data( size );
377 static void dump_varargs_rectangles( data_size_t size )
379 const rectangle_t *rect = cur_data;
380 data_size_t len = size / sizeof(*rect);
382 fputc( '{', stderr );
383 while (len > 0)
385 dump_rectangle( rect++ );
386 if (--len) fputc( ',', stderr );
388 fputc( '}', stderr );
389 remove_data( size );
392 static void dump_varargs_message_data( data_size_t size )
394 /* FIXME: dump the structured data */
395 dump_varargs_bytes( size );
398 static void dump_varargs_properties( data_size_t size )
400 const property_data_t *prop = cur_data;
401 data_size_t len = size / sizeof(*prop);
403 fputc( '{', stderr );
404 while (len > 0)
406 fprintf( stderr, "{atom=%04x,str=%d,handle=%p}",
407 prop->atom, prop->string, prop->handle );
408 prop++;
409 if (--len) fputc( ',', stderr );
411 fputc( '}', stderr );
412 remove_data( size );
415 static void dump_varargs_LUID_AND_ATTRIBUTES( data_size_t size )
417 const LUID_AND_ATTRIBUTES *lat = cur_data;
418 data_size_t len = size / sizeof(*lat);
420 fputc( '{', stderr );
421 while (len > 0)
423 fprintf( stderr, "{luid=%08x%08x,attr=%x}",
424 lat->Luid.HighPart, lat->Luid.LowPart, lat->Attributes );
425 lat++;
426 if (--len) fputc( ',', stderr );
428 fputc( '}', stderr );
429 remove_data( size );
432 static void dump_inline_sid( const SID *sid, data_size_t size )
434 DWORD i;
436 /* security check */
437 if ((FIELD_OFFSET(SID, SubAuthority[0]) > size) ||
438 (FIELD_OFFSET(SID, SubAuthority[sid->SubAuthorityCount]) > size))
440 fprintf( stderr, "<invalid sid>" );
441 return;
444 fputc( '{', stderr );
445 fprintf( stderr, "S-%u-%u", sid->Revision, MAKELONG(
446 MAKEWORD( sid->IdentifierAuthority.Value[5],
447 sid->IdentifierAuthority.Value[4] ),
448 MAKEWORD( sid->IdentifierAuthority.Value[3],
449 sid->IdentifierAuthority.Value[2] ) ) );
450 for (i = 0; i < sid->SubAuthorityCount; i++)
451 fprintf( stderr, "-%u", sid->SubAuthority[i] );
452 fputc( '}', stderr );
455 static void dump_varargs_SID( data_size_t size )
457 const SID *sid = cur_data;
458 dump_inline_sid( sid, size );
459 remove_data( size );
462 static void dump_inline_acl( const ACL *acl, data_size_t size )
464 const ACE_HEADER *ace;
465 ULONG i;
466 fputc( '{', stderr );
468 if (size)
470 if (size < sizeof(ACL))
472 fprintf( stderr, "<invalid acl>}\n" );
473 return;
475 size -= sizeof(ACL);
476 ace = (const ACE_HEADER *)(acl + 1);
477 for (i = 0; i < acl->AceCount; i++)
479 const SID *sid = NULL;
480 data_size_t sid_size = 0;
482 if (size < sizeof(ACE_HEADER))
483 return;
484 if (size < ace->AceSize)
485 return;
486 size -= ace->AceSize;
487 if (i != 0) fputc( ',', stderr );
488 fprintf( stderr, "{AceType=" );
489 switch (ace->AceType)
491 case ACCESS_DENIED_ACE_TYPE:
492 sid = (const SID *)&((const ACCESS_DENIED_ACE *)ace)->SidStart;
493 sid_size = ace->AceSize - FIELD_OFFSET(ACCESS_DENIED_ACE, SidStart);
494 fprintf( stderr, "ACCESS_DENIED_ACE_TYPE,Mask=%x",
495 ((const ACCESS_DENIED_ACE *)ace)->Mask );
496 break;
497 case ACCESS_ALLOWED_ACE_TYPE:
498 sid = (const SID *)&((const ACCESS_ALLOWED_ACE *)ace)->SidStart;
499 sid_size = ace->AceSize - FIELD_OFFSET(ACCESS_ALLOWED_ACE, SidStart);
500 fprintf( stderr, "ACCESS_ALLOWED_ACE_TYPE,Mask=%x",
501 ((const ACCESS_ALLOWED_ACE *)ace)->Mask );
502 break;
503 case SYSTEM_AUDIT_ACE_TYPE:
504 sid = (const SID *)&((const SYSTEM_AUDIT_ACE *)ace)->SidStart;
505 sid_size = ace->AceSize - FIELD_OFFSET(SYSTEM_AUDIT_ACE, SidStart);
506 fprintf( stderr, "SYSTEM_AUDIT_ACE_TYPE,Mask=%x",
507 ((const SYSTEM_AUDIT_ACE *)ace)->Mask );
508 break;
509 case SYSTEM_ALARM_ACE_TYPE:
510 sid = (const SID *)&((const SYSTEM_ALARM_ACE *)ace)->SidStart;
511 sid_size = ace->AceSize - FIELD_OFFSET(SYSTEM_ALARM_ACE, SidStart);
512 fprintf( stderr, "SYSTEM_ALARM_ACE_TYPE,Mask=%x",
513 ((const SYSTEM_ALARM_ACE *)ace)->Mask );
514 break;
515 default:
516 fprintf( stderr, "unknown<%d>", ace->AceType );
517 break;
519 fprintf( stderr, ",AceFlags=%x,Sid=", ace->AceFlags );
520 if (sid)
521 dump_inline_sid( sid, sid_size );
522 ace = (const ACE_HEADER *)((const char *)ace + ace->AceSize);
523 fputc( '}', stderr );
526 fputc( '}', stderr );
529 static void dump_inline_security_descriptor( const struct security_descriptor *sd, data_size_t size )
531 fputc( '{', stderr );
532 if (size >= sizeof(struct security_descriptor))
534 size_t offset = sizeof(struct security_descriptor);
535 fprintf( stderr, "control=%08x", sd->control );
536 fprintf( stderr, ",owner=" );
537 if ((sd->owner_len > FIELD_OFFSET(SID, SubAuthority[255])) || (offset + sd->owner_len > size))
538 return;
539 dump_inline_sid( (const SID *)((const char *)sd + offset), sd->owner_len );
540 offset += sd->owner_len;
541 fprintf( stderr, ",group=" );
542 if ((sd->group_len > FIELD_OFFSET(SID, SubAuthority[255])) || (offset + sd->group_len > size))
543 return;
544 dump_inline_sid( (const SID *)((const char *)sd + offset), sd->group_len );
545 offset += sd->group_len;
546 fprintf( stderr, ",sacl=" );
547 if ((sd->sacl_len >= MAX_ACL_LEN) || (offset + sd->sacl_len > size))
548 return;
549 dump_inline_acl( (const ACL *)((const char *)sd + offset), sd->sacl_len );
550 offset += sd->sacl_len;
551 fprintf( stderr, ",dacl=" );
552 if ((sd->dacl_len >= MAX_ACL_LEN) || (offset + sd->dacl_len > size))
553 return;
554 dump_inline_acl( (const ACL *)((const char *)sd + offset), sd->dacl_len );
555 offset += sd->dacl_len;
557 fputc( '}', stderr );
560 static void dump_varargs_security_descriptor( data_size_t size )
562 const struct security_descriptor *sd = cur_data;
563 dump_inline_security_descriptor( sd, size );
564 remove_data( size );
567 static void dump_varargs_token_groups( data_size_t size )
569 const struct token_groups *tg = cur_data;
570 fputc( '{', stderr );
571 if (size >= sizeof(struct token_groups))
573 size_t offset = sizeof(*tg);
574 fprintf( stderr, "count=%08x,", tg->count );
575 if (tg->count * sizeof(unsigned int) <= size)
577 unsigned int i;
578 const unsigned int *attr = (const unsigned int *)(tg + 1);
580 offset += tg->count * sizeof(unsigned int);
582 fputc( '[', stderr );
583 for (i = 0; i < tg->count; i++)
585 const SID *sid = (const SID *)((const char *)cur_data + offset);
586 if (i != 0)
587 fputc( ',', stderr );
588 fputc( '{', stderr );
589 fprintf( stderr, "attributes=%08x", attr[i] );
590 fprintf( stderr, ",sid=" );
591 dump_inline_sid( sid, size - offset );
592 if ((offset + FIELD_OFFSET(SID, SubAuthority[0]) > size) ||
593 (offset + FIELD_OFFSET(SID, SubAuthority[sid->SubAuthorityCount]) > size))
594 break;
595 offset += FIELD_OFFSET(SID, SubAuthority[sid->SubAuthorityCount]);
596 fputc( '}', stderr );
598 fputc( ']', stderr );
601 fputc( '}', stderr );
604 typedef void (*dump_func)( const void *req );
606 /* Everything below this line is generated automatically by tools/make_requests */
607 /* ### make_requests begin ### */
609 static void dump_new_process_request( const struct new_process_request *req )
611 fprintf( stderr, " inherit_all=%d,", req->inherit_all );
612 fprintf( stderr, " create_flags=%08x,", req->create_flags );
613 fprintf( stderr, " socket_fd=%d,", req->socket_fd );
614 fprintf( stderr, " exe_file=%p,", req->exe_file );
615 fprintf( stderr, " hstdin=%p,", req->hstdin );
616 fprintf( stderr, " hstdout=%p,", req->hstdout );
617 fprintf( stderr, " hstderr=%p,", req->hstderr );
618 fprintf( stderr, " process_access=%08x,", req->process_access );
619 fprintf( stderr, " process_attr=%08x,", req->process_attr );
620 fprintf( stderr, " thread_access=%08x,", req->thread_access );
621 fprintf( stderr, " thread_attr=%08x,", req->thread_attr );
622 fprintf( stderr, " info=" );
623 dump_varargs_startup_info( cur_size );
624 fputc( ',', stderr );
625 fprintf( stderr, " env=" );
626 dump_varargs_unicode_str( cur_size );
629 static void dump_new_process_reply( const struct new_process_reply *req )
631 fprintf( stderr, " info=%p,", req->info );
632 fprintf( stderr, " pid=%04x,", req->pid );
633 fprintf( stderr, " phandle=%p,", req->phandle );
634 fprintf( stderr, " tid=%04x,", req->tid );
635 fprintf( stderr, " thandle=%p", req->thandle );
638 static void dump_get_new_process_info_request( const struct get_new_process_info_request *req )
640 fprintf( stderr, " info=%p", req->info );
643 static void dump_get_new_process_info_reply( const struct get_new_process_info_reply *req )
645 fprintf( stderr, " success=%d,", req->success );
646 fprintf( stderr, " exit_code=%d", req->exit_code );
649 static void dump_new_thread_request( const struct new_thread_request *req )
651 fprintf( stderr, " access=%08x,", req->access );
652 fprintf( stderr, " attributes=%08x,", req->attributes );
653 fprintf( stderr, " suspend=%d,", req->suspend );
654 fprintf( stderr, " request_fd=%d", req->request_fd );
657 static void dump_new_thread_reply( const struct new_thread_reply *req )
659 fprintf( stderr, " tid=%04x,", req->tid );
660 fprintf( stderr, " handle=%p", req->handle );
663 static void dump_get_startup_info_request( const struct get_startup_info_request *req )
667 static void dump_get_startup_info_reply( const struct get_startup_info_reply *req )
669 fprintf( stderr, " exe_file=%p,", req->exe_file );
670 fprintf( stderr, " hstdin=%p,", req->hstdin );
671 fprintf( stderr, " hstdout=%p,", req->hstdout );
672 fprintf( stderr, " hstderr=%p,", req->hstderr );
673 fprintf( stderr, " info=" );
674 dump_varargs_startup_info( cur_size );
675 fputc( ',', stderr );
676 fprintf( stderr, " env=" );
677 dump_varargs_unicode_str( cur_size );
680 static void dump_init_process_done_request( const struct init_process_done_request *req )
682 fprintf( stderr, " module=%p,", req->module );
683 fprintf( stderr, " entry=%p,", req->entry );
684 fprintf( stderr, " gui=%d", req->gui );
687 static void dump_init_thread_request( const struct init_thread_request *req )
689 fprintf( stderr, " unix_pid=%d,", req->unix_pid );
690 fprintf( stderr, " unix_tid=%d,", req->unix_tid );
691 fprintf( stderr, " debug_level=%d,", req->debug_level );
692 fprintf( stderr, " teb=%p,", req->teb );
693 fprintf( stderr, " peb=%p,", req->peb );
694 fprintf( stderr, " entry=%p,", req->entry );
695 fprintf( stderr, " ldt_copy=%p,", req->ldt_copy );
696 fprintf( stderr, " reply_fd=%d,", req->reply_fd );
697 fprintf( stderr, " wait_fd=%d", req->wait_fd );
700 static void dump_init_thread_reply( const struct init_thread_reply *req )
702 fprintf( stderr, " pid=%04x,", req->pid );
703 fprintf( stderr, " tid=%04x,", req->tid );
704 fprintf( stderr, " info_size=%u,", req->info_size );
705 fprintf( stderr, " server_start=" );
706 dump_abs_time( &req->server_start );
707 fprintf( stderr, "," );
708 fprintf( stderr, " version=%d", req->version );
711 static void dump_terminate_process_request( const struct terminate_process_request *req )
713 fprintf( stderr, " handle=%p,", req->handle );
714 fprintf( stderr, " exit_code=%d", req->exit_code );
717 static void dump_terminate_process_reply( const struct terminate_process_reply *req )
719 fprintf( stderr, " self=%d", req->self );
722 static void dump_terminate_thread_request( const struct terminate_thread_request *req )
724 fprintf( stderr, " handle=%p,", req->handle );
725 fprintf( stderr, " exit_code=%d", req->exit_code );
728 static void dump_terminate_thread_reply( const struct terminate_thread_reply *req )
730 fprintf( stderr, " self=%d,", req->self );
731 fprintf( stderr, " last=%d", req->last );
734 static void dump_get_process_info_request( const struct get_process_info_request *req )
736 fprintf( stderr, " handle=%p", req->handle );
739 static void dump_get_process_info_reply( const struct get_process_info_reply *req )
741 fprintf( stderr, " pid=%04x,", req->pid );
742 fprintf( stderr, " ppid=%04x,", req->ppid );
743 fprintf( stderr, " exit_code=%d,", req->exit_code );
744 fprintf( stderr, " priority=%d,", req->priority );
745 fprintf( stderr, " affinity=%d,", req->affinity );
746 fprintf( stderr, " peb=%p,", req->peb );
747 fprintf( stderr, " start_time=" );
748 dump_abs_time( &req->start_time );
749 fprintf( stderr, "," );
750 fprintf( stderr, " end_time=" );
751 dump_abs_time( &req->end_time );
754 static void dump_set_process_info_request( const struct set_process_info_request *req )
756 fprintf( stderr, " handle=%p,", req->handle );
757 fprintf( stderr, " mask=%d,", req->mask );
758 fprintf( stderr, " priority=%d,", req->priority );
759 fprintf( stderr, " affinity=%d", req->affinity );
762 static void dump_get_thread_info_request( const struct get_thread_info_request *req )
764 fprintf( stderr, " handle=%p,", req->handle );
765 fprintf( stderr, " tid_in=%04x", req->tid_in );
768 static void dump_get_thread_info_reply( const struct get_thread_info_reply *req )
770 fprintf( stderr, " pid=%04x,", req->pid );
771 fprintf( stderr, " tid=%04x,", req->tid );
772 fprintf( stderr, " teb=%p,", req->teb );
773 fprintf( stderr, " exit_code=%d,", req->exit_code );
774 fprintf( stderr, " priority=%d,", req->priority );
775 fprintf( stderr, " affinity=%d,", req->affinity );
776 fprintf( stderr, " creation_time=" );
777 dump_abs_time( &req->creation_time );
778 fprintf( stderr, "," );
779 fprintf( stderr, " exit_time=" );
780 dump_abs_time( &req->exit_time );
781 fprintf( stderr, "," );
782 fprintf( stderr, " last=%d", req->last );
785 static void dump_set_thread_info_request( const struct set_thread_info_request *req )
787 fprintf( stderr, " handle=%p,", req->handle );
788 fprintf( stderr, " mask=%d,", req->mask );
789 fprintf( stderr, " priority=%d,", req->priority );
790 fprintf( stderr, " affinity=%d,", req->affinity );
791 fprintf( stderr, " token=%p", req->token );
794 static void dump_get_dll_info_request( const struct get_dll_info_request *req )
796 fprintf( stderr, " handle=%p,", req->handle );
797 fprintf( stderr, " base_address=%p", req->base_address );
800 static void dump_get_dll_info_reply( const struct get_dll_info_reply *req )
802 fprintf( stderr, " size=%lu,", (unsigned long)req->size );
803 fprintf( stderr, " entry_point=%p,", req->entry_point );
804 fprintf( stderr, " filename=" );
805 dump_varargs_unicode_str( cur_size );
808 static void dump_suspend_thread_request( const struct suspend_thread_request *req )
810 fprintf( stderr, " handle=%p", req->handle );
813 static void dump_suspend_thread_reply( const struct suspend_thread_reply *req )
815 fprintf( stderr, " count=%d", req->count );
818 static void dump_resume_thread_request( const struct resume_thread_request *req )
820 fprintf( stderr, " handle=%p", req->handle );
823 static void dump_resume_thread_reply( const struct resume_thread_reply *req )
825 fprintf( stderr, " count=%d", req->count );
828 static void dump_load_dll_request( const struct load_dll_request *req )
830 fprintf( stderr, " handle=%p,", req->handle );
831 fprintf( stderr, " base=%p,", req->base );
832 fprintf( stderr, " size=%lu,", (unsigned long)req->size );
833 fprintf( stderr, " dbg_offset=%d,", req->dbg_offset );
834 fprintf( stderr, " dbg_size=%d,", req->dbg_size );
835 fprintf( stderr, " name=%p,", req->name );
836 fprintf( stderr, " filename=" );
837 dump_varargs_unicode_str( cur_size );
840 static void dump_unload_dll_request( const struct unload_dll_request *req )
842 fprintf( stderr, " base=%p", req->base );
845 static void dump_queue_apc_request( const struct queue_apc_request *req )
847 fprintf( stderr, " handle=%p,", req->handle );
848 fprintf( stderr, " user=%d,", req->user );
849 fprintf( stderr, " func=%p,", req->func );
850 fprintf( stderr, " arg1=%p,", req->arg1 );
851 fprintf( stderr, " arg2=%p,", req->arg2 );
852 fprintf( stderr, " arg3=%p", req->arg3 );
855 static void dump_get_apc_request( const struct get_apc_request *req )
857 fprintf( stderr, " alertable=%d", req->alertable );
860 static void dump_get_apc_reply( const struct get_apc_reply *req )
862 fprintf( stderr, " func=%p,", req->func );
863 fprintf( stderr, " type=%d,", req->type );
864 fprintf( stderr, " arg1=%p,", req->arg1 );
865 fprintf( stderr, " arg2=%p,", req->arg2 );
866 fprintf( stderr, " arg3=%p", req->arg3 );
869 static void dump_close_handle_request( const struct close_handle_request *req )
871 fprintf( stderr, " handle=%p", req->handle );
874 static void dump_set_handle_info_request( const struct set_handle_info_request *req )
876 fprintf( stderr, " handle=%p,", req->handle );
877 fprintf( stderr, " flags=%d,", req->flags );
878 fprintf( stderr, " mask=%d", req->mask );
881 static void dump_set_handle_info_reply( const struct set_handle_info_reply *req )
883 fprintf( stderr, " old_flags=%d", req->old_flags );
886 static void dump_dup_handle_request( const struct dup_handle_request *req )
888 fprintf( stderr, " src_process=%p,", req->src_process );
889 fprintf( stderr, " src_handle=%p,", req->src_handle );
890 fprintf( stderr, " dst_process=%p,", req->dst_process );
891 fprintf( stderr, " access=%08x,", req->access );
892 fprintf( stderr, " attributes=%08x,", req->attributes );
893 fprintf( stderr, " options=%08x", req->options );
896 static void dump_dup_handle_reply( const struct dup_handle_reply *req )
898 fprintf( stderr, " handle=%p,", req->handle );
899 fprintf( stderr, " closed=%d", req->closed );
902 static void dump_open_process_request( const struct open_process_request *req )
904 fprintf( stderr, " pid=%04x,", req->pid );
905 fprintf( stderr, " access=%08x,", req->access );
906 fprintf( stderr, " attributes=%08x", req->attributes );
909 static void dump_open_process_reply( const struct open_process_reply *req )
911 fprintf( stderr, " handle=%p", req->handle );
914 static void dump_open_thread_request( const struct open_thread_request *req )
916 fprintf( stderr, " tid=%04x,", req->tid );
917 fprintf( stderr, " access=%08x,", req->access );
918 fprintf( stderr, " attributes=%08x", req->attributes );
921 static void dump_open_thread_reply( const struct open_thread_reply *req )
923 fprintf( stderr, " handle=%p", req->handle );
926 static void dump_select_request( const struct select_request *req )
928 fprintf( stderr, " flags=%d,", req->flags );
929 fprintf( stderr, " cookie=%p,", req->cookie );
930 fprintf( stderr, " signal=%p,", req->signal );
931 fprintf( stderr, " timeout=" );
932 dump_abs_time( &req->timeout );
933 fprintf( stderr, "," );
934 fprintf( stderr, " handles=" );
935 dump_varargs_handles( cur_size );
938 static void dump_create_event_request( const struct create_event_request *req )
940 fprintf( stderr, " access=%08x,", req->access );
941 fprintf( stderr, " attributes=%08x,", req->attributes );
942 fprintf( stderr, " rootdir=%p,", req->rootdir );
943 fprintf( stderr, " manual_reset=%d,", req->manual_reset );
944 fprintf( stderr, " initial_state=%d,", req->initial_state );
945 fprintf( stderr, " name=" );
946 dump_varargs_unicode_str( cur_size );
949 static void dump_create_event_reply( const struct create_event_reply *req )
951 fprintf( stderr, " handle=%p", req->handle );
954 static void dump_event_op_request( const struct event_op_request *req )
956 fprintf( stderr, " handle=%p,", req->handle );
957 fprintf( stderr, " op=%d", req->op );
960 static void dump_open_event_request( const struct open_event_request *req )
962 fprintf( stderr, " access=%08x,", req->access );
963 fprintf( stderr, " attributes=%08x,", req->attributes );
964 fprintf( stderr, " rootdir=%p,", req->rootdir );
965 fprintf( stderr, " name=" );
966 dump_varargs_unicode_str( cur_size );
969 static void dump_open_event_reply( const struct open_event_reply *req )
971 fprintf( stderr, " handle=%p", req->handle );
974 static void dump_create_mutex_request( const struct create_mutex_request *req )
976 fprintf( stderr, " access=%08x,", req->access );
977 fprintf( stderr, " attributes=%08x,", req->attributes );
978 fprintf( stderr, " rootdir=%p,", req->rootdir );
979 fprintf( stderr, " owned=%d,", req->owned );
980 fprintf( stderr, " name=" );
981 dump_varargs_unicode_str( cur_size );
984 static void dump_create_mutex_reply( const struct create_mutex_reply *req )
986 fprintf( stderr, " handle=%p", req->handle );
989 static void dump_release_mutex_request( const struct release_mutex_request *req )
991 fprintf( stderr, " handle=%p", req->handle );
994 static void dump_release_mutex_reply( const struct release_mutex_reply *req )
996 fprintf( stderr, " prev_count=%08x", req->prev_count );
999 static void dump_open_mutex_request( const struct open_mutex_request *req )
1001 fprintf( stderr, " access=%08x,", req->access );
1002 fprintf( stderr, " attributes=%08x,", req->attributes );
1003 fprintf( stderr, " rootdir=%p,", req->rootdir );
1004 fprintf( stderr, " name=" );
1005 dump_varargs_unicode_str( cur_size );
1008 static void dump_open_mutex_reply( const struct open_mutex_reply *req )
1010 fprintf( stderr, " handle=%p", req->handle );
1013 static void dump_create_semaphore_request( const struct create_semaphore_request *req )
1015 fprintf( stderr, " access=%08x,", req->access );
1016 fprintf( stderr, " attributes=%08x,", req->attributes );
1017 fprintf( stderr, " rootdir=%p,", req->rootdir );
1018 fprintf( stderr, " initial=%08x,", req->initial );
1019 fprintf( stderr, " max=%08x,", req->max );
1020 fprintf( stderr, " name=" );
1021 dump_varargs_unicode_str( cur_size );
1024 static void dump_create_semaphore_reply( const struct create_semaphore_reply *req )
1026 fprintf( stderr, " handle=%p", req->handle );
1029 static void dump_release_semaphore_request( const struct release_semaphore_request *req )
1031 fprintf( stderr, " handle=%p,", req->handle );
1032 fprintf( stderr, " count=%08x", req->count );
1035 static void dump_release_semaphore_reply( const struct release_semaphore_reply *req )
1037 fprintf( stderr, " prev_count=%08x", req->prev_count );
1040 static void dump_open_semaphore_request( const struct open_semaphore_request *req )
1042 fprintf( stderr, " access=%08x,", req->access );
1043 fprintf( stderr, " attributes=%08x,", req->attributes );
1044 fprintf( stderr, " rootdir=%p,", req->rootdir );
1045 fprintf( stderr, " name=" );
1046 dump_varargs_unicode_str( cur_size );
1049 static void dump_open_semaphore_reply( const struct open_semaphore_reply *req )
1051 fprintf( stderr, " handle=%p", req->handle );
1054 static void dump_create_file_request( const struct create_file_request *req )
1056 fprintf( stderr, " access=%08x,", req->access );
1057 fprintf( stderr, " attributes=%08x,", req->attributes );
1058 fprintf( stderr, " sharing=%08x,", req->sharing );
1059 fprintf( stderr, " create=%d,", req->create );
1060 fprintf( stderr, " options=%08x,", req->options );
1061 fprintf( stderr, " attrs=%08x,", req->attrs );
1062 fprintf( stderr, " filename=" );
1063 dump_varargs_string( cur_size );
1066 static void dump_create_file_reply( const struct create_file_reply *req )
1068 fprintf( stderr, " handle=%p", req->handle );
1071 static void dump_open_file_object_request( const struct open_file_object_request *req )
1073 fprintf( stderr, " access=%08x,", req->access );
1074 fprintf( stderr, " attributes=%08x,", req->attributes );
1075 fprintf( stderr, " rootdir=%p,", req->rootdir );
1076 fprintf( stderr, " sharing=%08x,", req->sharing );
1077 fprintf( stderr, " filename=" );
1078 dump_varargs_unicode_str( cur_size );
1081 static void dump_open_file_object_reply( const struct open_file_object_reply *req )
1083 fprintf( stderr, " handle=%p", req->handle );
1086 static void dump_alloc_file_handle_request( const struct alloc_file_handle_request *req )
1088 fprintf( stderr, " access=%08x,", req->access );
1089 fprintf( stderr, " attributes=%08x,", req->attributes );
1090 fprintf( stderr, " fd=%d", req->fd );
1093 static void dump_alloc_file_handle_reply( const struct alloc_file_handle_reply *req )
1095 fprintf( stderr, " handle=%p", req->handle );
1098 static void dump_get_handle_fd_request( const struct get_handle_fd_request *req )
1100 fprintf( stderr, " handle=%p,", req->handle );
1101 fprintf( stderr, " access=%08x,", req->access );
1102 fprintf( stderr, " cached=%d", req->cached );
1105 static void dump_get_handle_fd_reply( const struct get_handle_fd_reply *req )
1107 fprintf( stderr, " type=%d,", req->type );
1108 fprintf( stderr, " flags=%d", req->flags );
1111 static void dump_flush_file_request( const struct flush_file_request *req )
1113 fprintf( stderr, " handle=%p", req->handle );
1116 static void dump_flush_file_reply( const struct flush_file_reply *req )
1118 fprintf( stderr, " event=%p", req->event );
1121 static void dump_lock_file_request( const struct lock_file_request *req )
1123 fprintf( stderr, " handle=%p,", req->handle );
1124 fprintf( stderr, " offset_low=%08x,", req->offset_low );
1125 fprintf( stderr, " offset_high=%08x,", req->offset_high );
1126 fprintf( stderr, " count_low=%08x,", req->count_low );
1127 fprintf( stderr, " count_high=%08x,", req->count_high );
1128 fprintf( stderr, " shared=%d,", req->shared );
1129 fprintf( stderr, " wait=%d", req->wait );
1132 static void dump_lock_file_reply( const struct lock_file_reply *req )
1134 fprintf( stderr, " handle=%p,", req->handle );
1135 fprintf( stderr, " overlapped=%d", req->overlapped );
1138 static void dump_unlock_file_request( const struct unlock_file_request *req )
1140 fprintf( stderr, " handle=%p,", req->handle );
1141 fprintf( stderr, " offset_low=%08x,", req->offset_low );
1142 fprintf( stderr, " offset_high=%08x,", req->offset_high );
1143 fprintf( stderr, " count_low=%08x,", req->count_low );
1144 fprintf( stderr, " count_high=%08x", req->count_high );
1147 static void dump_unmount_device_request( const struct unmount_device_request *req )
1149 fprintf( stderr, " handle=%p", req->handle );
1152 static void dump_create_socket_request( const struct create_socket_request *req )
1154 fprintf( stderr, " access=%08x,", req->access );
1155 fprintf( stderr, " attributes=%08x,", req->attributes );
1156 fprintf( stderr, " family=%d,", req->family );
1157 fprintf( stderr, " type=%d,", req->type );
1158 fprintf( stderr, " protocol=%d,", req->protocol );
1159 fprintf( stderr, " flags=%08x", req->flags );
1162 static void dump_create_socket_reply( const struct create_socket_reply *req )
1164 fprintf( stderr, " handle=%p", req->handle );
1167 static void dump_accept_socket_request( const struct accept_socket_request *req )
1169 fprintf( stderr, " lhandle=%p,", req->lhandle );
1170 fprintf( stderr, " access=%08x,", req->access );
1171 fprintf( stderr, " attributes=%08x", req->attributes );
1174 static void dump_accept_socket_reply( const struct accept_socket_reply *req )
1176 fprintf( stderr, " handle=%p", req->handle );
1179 static void dump_set_socket_event_request( const struct set_socket_event_request *req )
1181 fprintf( stderr, " handle=%p,", req->handle );
1182 fprintf( stderr, " mask=%08x,", req->mask );
1183 fprintf( stderr, " event=%p,", req->event );
1184 fprintf( stderr, " window=%p,", req->window );
1185 fprintf( stderr, " msg=%08x", req->msg );
1188 static void dump_get_socket_event_request( const struct get_socket_event_request *req )
1190 fprintf( stderr, " handle=%p,", req->handle );
1191 fprintf( stderr, " service=%d,", req->service );
1192 fprintf( stderr, " c_event=%p", req->c_event );
1195 static void dump_get_socket_event_reply( const struct get_socket_event_reply *req )
1197 fprintf( stderr, " mask=%08x,", req->mask );
1198 fprintf( stderr, " pmask=%08x,", req->pmask );
1199 fprintf( stderr, " state=%08x,", req->state );
1200 fprintf( stderr, " errors=" );
1201 dump_varargs_ints( cur_size );
1204 static void dump_enable_socket_event_request( const struct enable_socket_event_request *req )
1206 fprintf( stderr, " handle=%p,", req->handle );
1207 fprintf( stderr, " mask=%08x,", req->mask );
1208 fprintf( stderr, " sstate=%08x,", req->sstate );
1209 fprintf( stderr, " cstate=%08x", req->cstate );
1212 static void dump_set_socket_deferred_request( const struct set_socket_deferred_request *req )
1214 fprintf( stderr, " handle=%p,", req->handle );
1215 fprintf( stderr, " deferred=%p", req->deferred );
1218 static void dump_alloc_console_request( const struct alloc_console_request *req )
1220 fprintf( stderr, " access=%08x,", req->access );
1221 fprintf( stderr, " attributes=%08x,", req->attributes );
1222 fprintf( stderr, " pid=%04x", req->pid );
1225 static void dump_alloc_console_reply( const struct alloc_console_reply *req )
1227 fprintf( stderr, " handle_in=%p,", req->handle_in );
1228 fprintf( stderr, " event=%p", req->event );
1231 static void dump_free_console_request( const struct free_console_request *req )
1235 static void dump_get_console_renderer_events_request( const struct get_console_renderer_events_request *req )
1237 fprintf( stderr, " handle=%p", req->handle );
1240 static void dump_get_console_renderer_events_reply( const struct get_console_renderer_events_reply *req )
1242 fprintf( stderr, " data=" );
1243 dump_varargs_bytes( cur_size );
1246 static void dump_open_console_request( const struct open_console_request *req )
1248 fprintf( stderr, " from=%p,", req->from );
1249 fprintf( stderr, " access=%08x,", req->access );
1250 fprintf( stderr, " attributes=%08x,", req->attributes );
1251 fprintf( stderr, " share=%d", req->share );
1254 static void dump_open_console_reply( const struct open_console_reply *req )
1256 fprintf( stderr, " handle=%p", req->handle );
1259 static void dump_get_console_wait_event_request( const struct get_console_wait_event_request *req )
1263 static void dump_get_console_wait_event_reply( const struct get_console_wait_event_reply *req )
1265 fprintf( stderr, " handle=%p", req->handle );
1268 static void dump_get_console_mode_request( const struct get_console_mode_request *req )
1270 fprintf( stderr, " handle=%p", req->handle );
1273 static void dump_get_console_mode_reply( const struct get_console_mode_reply *req )
1275 fprintf( stderr, " mode=%d", req->mode );
1278 static void dump_set_console_mode_request( const struct set_console_mode_request *req )
1280 fprintf( stderr, " handle=%p,", req->handle );
1281 fprintf( stderr, " mode=%d", req->mode );
1284 static void dump_set_console_input_info_request( const struct set_console_input_info_request *req )
1286 fprintf( stderr, " handle=%p,", req->handle );
1287 fprintf( stderr, " mask=%d,", req->mask );
1288 fprintf( stderr, " active_sb=%p,", req->active_sb );
1289 fprintf( stderr, " history_mode=%d,", req->history_mode );
1290 fprintf( stderr, " history_size=%d,", req->history_size );
1291 fprintf( stderr, " edition_mode=%d,", req->edition_mode );
1292 fprintf( stderr, " title=" );
1293 dump_varargs_unicode_str( cur_size );
1296 static void dump_get_console_input_info_request( const struct get_console_input_info_request *req )
1298 fprintf( stderr, " handle=%p", req->handle );
1301 static void dump_get_console_input_info_reply( const struct get_console_input_info_reply *req )
1303 fprintf( stderr, " history_mode=%d,", req->history_mode );
1304 fprintf( stderr, " history_size=%d,", req->history_size );
1305 fprintf( stderr, " history_index=%d,", req->history_index );
1306 fprintf( stderr, " edition_mode=%d,", req->edition_mode );
1307 fprintf( stderr, " title=" );
1308 dump_varargs_unicode_str( cur_size );
1311 static void dump_append_console_input_history_request( const struct append_console_input_history_request *req )
1313 fprintf( stderr, " handle=%p,", req->handle );
1314 fprintf( stderr, " line=" );
1315 dump_varargs_unicode_str( cur_size );
1318 static void dump_get_console_input_history_request( const struct get_console_input_history_request *req )
1320 fprintf( stderr, " handle=%p,", req->handle );
1321 fprintf( stderr, " index=%d", req->index );
1324 static void dump_get_console_input_history_reply( const struct get_console_input_history_reply *req )
1326 fprintf( stderr, " total=%d,", req->total );
1327 fprintf( stderr, " line=" );
1328 dump_varargs_unicode_str( cur_size );
1331 static void dump_create_console_output_request( const struct create_console_output_request *req )
1333 fprintf( stderr, " handle_in=%p,", req->handle_in );
1334 fprintf( stderr, " access=%08x,", req->access );
1335 fprintf( stderr, " attributes=%08x,", req->attributes );
1336 fprintf( stderr, " share=%08x", req->share );
1339 static void dump_create_console_output_reply( const struct create_console_output_reply *req )
1341 fprintf( stderr, " handle_out=%p", req->handle_out );
1344 static void dump_set_console_output_info_request( const struct set_console_output_info_request *req )
1346 fprintf( stderr, " handle=%p,", req->handle );
1347 fprintf( stderr, " mask=%d,", req->mask );
1348 fprintf( stderr, " cursor_size=%d,", req->cursor_size );
1349 fprintf( stderr, " cursor_visible=%d,", req->cursor_visible );
1350 fprintf( stderr, " cursor_x=%d,", req->cursor_x );
1351 fprintf( stderr, " cursor_y=%d,", req->cursor_y );
1352 fprintf( stderr, " width=%d,", req->width );
1353 fprintf( stderr, " height=%d,", req->height );
1354 fprintf( stderr, " attr=%d,", req->attr );
1355 fprintf( stderr, " win_left=%d,", req->win_left );
1356 fprintf( stderr, " win_top=%d,", req->win_top );
1357 fprintf( stderr, " win_right=%d,", req->win_right );
1358 fprintf( stderr, " win_bottom=%d,", req->win_bottom );
1359 fprintf( stderr, " max_width=%d,", req->max_width );
1360 fprintf( stderr, " max_height=%d", req->max_height );
1363 static void dump_get_console_output_info_request( const struct get_console_output_info_request *req )
1365 fprintf( stderr, " handle=%p", req->handle );
1368 static void dump_get_console_output_info_reply( const struct get_console_output_info_reply *req )
1370 fprintf( stderr, " cursor_size=%d,", req->cursor_size );
1371 fprintf( stderr, " cursor_visible=%d,", req->cursor_visible );
1372 fprintf( stderr, " cursor_x=%d,", req->cursor_x );
1373 fprintf( stderr, " cursor_y=%d,", req->cursor_y );
1374 fprintf( stderr, " width=%d,", req->width );
1375 fprintf( stderr, " height=%d,", req->height );
1376 fprintf( stderr, " attr=%d,", req->attr );
1377 fprintf( stderr, " win_left=%d,", req->win_left );
1378 fprintf( stderr, " win_top=%d,", req->win_top );
1379 fprintf( stderr, " win_right=%d,", req->win_right );
1380 fprintf( stderr, " win_bottom=%d,", req->win_bottom );
1381 fprintf( stderr, " max_width=%d,", req->max_width );
1382 fprintf( stderr, " max_height=%d", req->max_height );
1385 static void dump_write_console_input_request( const struct write_console_input_request *req )
1387 fprintf( stderr, " handle=%p,", req->handle );
1388 fprintf( stderr, " rec=" );
1389 dump_varargs_input_records( cur_size );
1392 static void dump_write_console_input_reply( const struct write_console_input_reply *req )
1394 fprintf( stderr, " written=%d", req->written );
1397 static void dump_read_console_input_request( const struct read_console_input_request *req )
1399 fprintf( stderr, " handle=%p,", req->handle );
1400 fprintf( stderr, " flush=%d", req->flush );
1403 static void dump_read_console_input_reply( const struct read_console_input_reply *req )
1405 fprintf( stderr, " read=%d,", req->read );
1406 fprintf( stderr, " rec=" );
1407 dump_varargs_input_records( cur_size );
1410 static void dump_write_console_output_request( const struct write_console_output_request *req )
1412 fprintf( stderr, " handle=%p,", req->handle );
1413 fprintf( stderr, " x=%d,", req->x );
1414 fprintf( stderr, " y=%d,", req->y );
1415 fprintf( stderr, " mode=%d,", req->mode );
1416 fprintf( stderr, " wrap=%d,", req->wrap );
1417 fprintf( stderr, " data=" );
1418 dump_varargs_bytes( cur_size );
1421 static void dump_write_console_output_reply( const struct write_console_output_reply *req )
1423 fprintf( stderr, " written=%d,", req->written );
1424 fprintf( stderr, " width=%d,", req->width );
1425 fprintf( stderr, " height=%d", req->height );
1428 static void dump_fill_console_output_request( const struct fill_console_output_request *req )
1430 fprintf( stderr, " handle=%p,", req->handle );
1431 fprintf( stderr, " x=%d,", req->x );
1432 fprintf( stderr, " y=%d,", req->y );
1433 fprintf( stderr, " mode=%d,", req->mode );
1434 fprintf( stderr, " count=%d,", req->count );
1435 fprintf( stderr, " wrap=%d,", req->wrap );
1436 fprintf( stderr, " data=" );
1437 dump_char_info( &req->data );
1440 static void dump_fill_console_output_reply( const struct fill_console_output_reply *req )
1442 fprintf( stderr, " written=%d", req->written );
1445 static void dump_read_console_output_request( const struct read_console_output_request *req )
1447 fprintf( stderr, " handle=%p,", req->handle );
1448 fprintf( stderr, " x=%d,", req->x );
1449 fprintf( stderr, " y=%d,", req->y );
1450 fprintf( stderr, " mode=%d,", req->mode );
1451 fprintf( stderr, " wrap=%d", req->wrap );
1454 static void dump_read_console_output_reply( const struct read_console_output_reply *req )
1456 fprintf( stderr, " width=%d,", req->width );
1457 fprintf( stderr, " height=%d,", req->height );
1458 fprintf( stderr, " data=" );
1459 dump_varargs_bytes( cur_size );
1462 static void dump_move_console_output_request( const struct move_console_output_request *req )
1464 fprintf( stderr, " handle=%p,", req->handle );
1465 fprintf( stderr, " x_src=%d,", req->x_src );
1466 fprintf( stderr, " y_src=%d,", req->y_src );
1467 fprintf( stderr, " x_dst=%d,", req->x_dst );
1468 fprintf( stderr, " y_dst=%d,", req->y_dst );
1469 fprintf( stderr, " w=%d,", req->w );
1470 fprintf( stderr, " h=%d", req->h );
1473 static void dump_send_console_signal_request( const struct send_console_signal_request *req )
1475 fprintf( stderr, " signal=%d,", req->signal );
1476 fprintf( stderr, " group_id=%04x", req->group_id );
1479 static void dump_read_directory_changes_request( const struct read_directory_changes_request *req )
1481 fprintf( stderr, " filter=%08x,", req->filter );
1482 fprintf( stderr, " handle=%p,", req->handle );
1483 fprintf( stderr, " event=%p,", req->event );
1484 fprintf( stderr, " subtree=%d,", req->subtree );
1485 fprintf( stderr, " want_data=%d,", req->want_data );
1486 fprintf( stderr, " io_apc=%p,", req->io_apc );
1487 fprintf( stderr, " io_sb=%p,", req->io_sb );
1488 fprintf( stderr, " io_user=%p", req->io_user );
1491 static void dump_read_change_request( const struct read_change_request *req )
1493 fprintf( stderr, " handle=%p", req->handle );
1496 static void dump_read_change_reply( const struct read_change_reply *req )
1498 fprintf( stderr, " action=%d,", req->action );
1499 fprintf( stderr, " name=" );
1500 dump_varargs_string( cur_size );
1503 static void dump_create_mapping_request( const struct create_mapping_request *req )
1505 fprintf( stderr, " access=%08x,", req->access );
1506 fprintf( stderr, " attributes=%08x,", req->attributes );
1507 fprintf( stderr, " rootdir=%p,", req->rootdir );
1508 fprintf( stderr, " size_high=%d,", req->size_high );
1509 fprintf( stderr, " size_low=%d,", req->size_low );
1510 fprintf( stderr, " protect=%d,", req->protect );
1511 fprintf( stderr, " file_handle=%p,", req->file_handle );
1512 fprintf( stderr, " name=" );
1513 dump_varargs_unicode_str( cur_size );
1516 static void dump_create_mapping_reply( const struct create_mapping_reply *req )
1518 fprintf( stderr, " handle=%p", req->handle );
1521 static void dump_open_mapping_request( const struct open_mapping_request *req )
1523 fprintf( stderr, " access=%08x,", req->access );
1524 fprintf( stderr, " attributes=%08x,", req->attributes );
1525 fprintf( stderr, " rootdir=%p,", req->rootdir );
1526 fprintf( stderr, " name=" );
1527 dump_varargs_unicode_str( cur_size );
1530 static void dump_open_mapping_reply( const struct open_mapping_reply *req )
1532 fprintf( stderr, " handle=%p", req->handle );
1535 static void dump_get_mapping_info_request( const struct get_mapping_info_request *req )
1537 fprintf( stderr, " handle=%p", req->handle );
1540 static void dump_get_mapping_info_reply( const struct get_mapping_info_reply *req )
1542 fprintf( stderr, " size_high=%d,", req->size_high );
1543 fprintf( stderr, " size_low=%d,", req->size_low );
1544 fprintf( stderr, " protect=%d,", req->protect );
1545 fprintf( stderr, " header_size=%d,", req->header_size );
1546 fprintf( stderr, " base=%p,", req->base );
1547 fprintf( stderr, " shared_file=%p,", req->shared_file );
1548 fprintf( stderr, " shared_size=%d", req->shared_size );
1551 static void dump_create_snapshot_request( const struct create_snapshot_request *req )
1553 fprintf( stderr, " attributes=%08x,", req->attributes );
1554 fprintf( stderr, " flags=%d,", req->flags );
1555 fprintf( stderr, " pid=%04x", req->pid );
1558 static void dump_create_snapshot_reply( const struct create_snapshot_reply *req )
1560 fprintf( stderr, " handle=%p", req->handle );
1563 static void dump_next_process_request( const struct next_process_request *req )
1565 fprintf( stderr, " handle=%p,", req->handle );
1566 fprintf( stderr, " reset=%d", req->reset );
1569 static void dump_next_process_reply( const struct next_process_reply *req )
1571 fprintf( stderr, " count=%d,", req->count );
1572 fprintf( stderr, " pid=%04x,", req->pid );
1573 fprintf( stderr, " ppid=%04x,", req->ppid );
1574 fprintf( stderr, " heap=%p,", req->heap );
1575 fprintf( stderr, " module=%p,", req->module );
1576 fprintf( stderr, " threads=%d,", req->threads );
1577 fprintf( stderr, " priority=%d,", req->priority );
1578 fprintf( stderr, " handles=%d,", req->handles );
1579 fprintf( stderr, " filename=" );
1580 dump_varargs_unicode_str( cur_size );
1583 static void dump_next_thread_request( const struct next_thread_request *req )
1585 fprintf( stderr, " handle=%p,", req->handle );
1586 fprintf( stderr, " reset=%d", req->reset );
1589 static void dump_next_thread_reply( const struct next_thread_reply *req )
1591 fprintf( stderr, " count=%d,", req->count );
1592 fprintf( stderr, " pid=%04x,", req->pid );
1593 fprintf( stderr, " tid=%04x,", req->tid );
1594 fprintf( stderr, " base_pri=%d,", req->base_pri );
1595 fprintf( stderr, " delta_pri=%d", req->delta_pri );
1598 static void dump_next_module_request( const struct next_module_request *req )
1600 fprintf( stderr, " handle=%p,", req->handle );
1601 fprintf( stderr, " reset=%d", req->reset );
1604 static void dump_next_module_reply( const struct next_module_reply *req )
1606 fprintf( stderr, " pid=%04x,", req->pid );
1607 fprintf( stderr, " base=%p,", req->base );
1608 fprintf( stderr, " size=%lu,", (unsigned long)req->size );
1609 fprintf( stderr, " filename=" );
1610 dump_varargs_unicode_str( cur_size );
1613 static void dump_wait_debug_event_request( const struct wait_debug_event_request *req )
1615 fprintf( stderr, " get_handle=%d", req->get_handle );
1618 static void dump_wait_debug_event_reply( const struct wait_debug_event_reply *req )
1620 fprintf( stderr, " pid=%04x,", req->pid );
1621 fprintf( stderr, " tid=%04x,", req->tid );
1622 fprintf( stderr, " wait=%p,", req->wait );
1623 fprintf( stderr, " event=" );
1624 dump_varargs_debug_event( cur_size );
1627 static void dump_queue_exception_event_request( const struct queue_exception_event_request *req )
1629 fprintf( stderr, " first=%d,", req->first );
1630 fprintf( stderr, " record=" );
1631 dump_varargs_exc_event( cur_size );
1634 static void dump_queue_exception_event_reply( const struct queue_exception_event_reply *req )
1636 fprintf( stderr, " handle=%p", req->handle );
1639 static void dump_get_exception_status_request( const struct get_exception_status_request *req )
1641 fprintf( stderr, " handle=%p", req->handle );
1644 static void dump_get_exception_status_reply( const struct get_exception_status_reply *req )
1646 fprintf( stderr, " context=" );
1647 dump_varargs_context( cur_size );
1650 static void dump_output_debug_string_request( const struct output_debug_string_request *req )
1652 fprintf( stderr, " string=%p,", req->string );
1653 fprintf( stderr, " unicode=%d,", req->unicode );
1654 fprintf( stderr, " length=%d", req->length );
1657 static void dump_continue_debug_event_request( const struct continue_debug_event_request *req )
1659 fprintf( stderr, " pid=%04x,", req->pid );
1660 fprintf( stderr, " tid=%04x,", req->tid );
1661 fprintf( stderr, " status=%d", req->status );
1664 static void dump_debug_process_request( const struct debug_process_request *req )
1666 fprintf( stderr, " pid=%04x,", req->pid );
1667 fprintf( stderr, " attach=%d", req->attach );
1670 static void dump_debug_break_request( const struct debug_break_request *req )
1672 fprintf( stderr, " handle=%p", req->handle );
1675 static void dump_debug_break_reply( const struct debug_break_reply *req )
1677 fprintf( stderr, " self=%d", req->self );
1680 static void dump_set_debugger_kill_on_exit_request( const struct set_debugger_kill_on_exit_request *req )
1682 fprintf( stderr, " kill_on_exit=%d", req->kill_on_exit );
1685 static void dump_read_process_memory_request( const struct read_process_memory_request *req )
1687 fprintf( stderr, " handle=%p,", req->handle );
1688 fprintf( stderr, " addr=%p", req->addr );
1691 static void dump_read_process_memory_reply( const struct read_process_memory_reply *req )
1693 fprintf( stderr, " data=" );
1694 dump_varargs_bytes( cur_size );
1697 static void dump_write_process_memory_request( const struct write_process_memory_request *req )
1699 fprintf( stderr, " handle=%p,", req->handle );
1700 fprintf( stderr, " addr=%p,", req->addr );
1701 fprintf( stderr, " data=" );
1702 dump_varargs_bytes( cur_size );
1705 static void dump_create_key_request( const struct create_key_request *req )
1707 fprintf( stderr, " parent=%p,", req->parent );
1708 fprintf( stderr, " access=%08x,", req->access );
1709 fprintf( stderr, " attributes=%08x,", req->attributes );
1710 fprintf( stderr, " options=%08x,", req->options );
1711 fprintf( stderr, " modif=%ld,", (long)req->modif );
1712 fprintf( stderr, " namelen=%u,", req->namelen );
1713 fprintf( stderr, " name=" );
1714 dump_varargs_unicode_str( min(cur_size,req->namelen) );
1715 fputc( ',', stderr );
1716 fprintf( stderr, " class=" );
1717 dump_varargs_unicode_str( cur_size );
1720 static void dump_create_key_reply( const struct create_key_reply *req )
1722 fprintf( stderr, " hkey=%p,", req->hkey );
1723 fprintf( stderr, " created=%d", req->created );
1726 static void dump_open_key_request( const struct open_key_request *req )
1728 fprintf( stderr, " parent=%p,", req->parent );
1729 fprintf( stderr, " access=%08x,", req->access );
1730 fprintf( stderr, " attributes=%08x,", req->attributes );
1731 fprintf( stderr, " name=" );
1732 dump_varargs_unicode_str( cur_size );
1735 static void dump_open_key_reply( const struct open_key_reply *req )
1737 fprintf( stderr, " hkey=%p", req->hkey );
1740 static void dump_delete_key_request( const struct delete_key_request *req )
1742 fprintf( stderr, " hkey=%p", req->hkey );
1745 static void dump_flush_key_request( const struct flush_key_request *req )
1747 fprintf( stderr, " hkey=%p", req->hkey );
1750 static void dump_enum_key_request( const struct enum_key_request *req )
1752 fprintf( stderr, " hkey=%p,", req->hkey );
1753 fprintf( stderr, " index=%d,", req->index );
1754 fprintf( stderr, " info_class=%d", req->info_class );
1757 static void dump_enum_key_reply( const struct enum_key_reply *req )
1759 fprintf( stderr, " subkeys=%d,", req->subkeys );
1760 fprintf( stderr, " max_subkey=%d,", req->max_subkey );
1761 fprintf( stderr, " max_class=%d,", req->max_class );
1762 fprintf( stderr, " values=%d,", req->values );
1763 fprintf( stderr, " max_value=%d,", req->max_value );
1764 fprintf( stderr, " max_data=%d,", req->max_data );
1765 fprintf( stderr, " modif=%ld,", (long)req->modif );
1766 fprintf( stderr, " total=%u,", req->total );
1767 fprintf( stderr, " namelen=%u,", req->namelen );
1768 fprintf( stderr, " name=" );
1769 dump_varargs_unicode_str( min(cur_size,req->namelen) );
1770 fputc( ',', stderr );
1771 fprintf( stderr, " class=" );
1772 dump_varargs_unicode_str( cur_size );
1775 static void dump_set_key_value_request( const struct set_key_value_request *req )
1777 fprintf( stderr, " hkey=%p,", req->hkey );
1778 fprintf( stderr, " type=%d,", req->type );
1779 fprintf( stderr, " namelen=%u,", req->namelen );
1780 fprintf( stderr, " name=" );
1781 dump_varargs_unicode_str( min(cur_size,req->namelen) );
1782 fputc( ',', stderr );
1783 fprintf( stderr, " data=" );
1784 dump_varargs_bytes( cur_size );
1787 static void dump_get_key_value_request( const struct get_key_value_request *req )
1789 fprintf( stderr, " hkey=%p,", req->hkey );
1790 fprintf( stderr, " name=" );
1791 dump_varargs_unicode_str( cur_size );
1794 static void dump_get_key_value_reply( const struct get_key_value_reply *req )
1796 fprintf( stderr, " type=%d,", req->type );
1797 fprintf( stderr, " total=%u,", req->total );
1798 fprintf( stderr, " data=" );
1799 dump_varargs_bytes( cur_size );
1802 static void dump_enum_key_value_request( const struct enum_key_value_request *req )
1804 fprintf( stderr, " hkey=%p,", req->hkey );
1805 fprintf( stderr, " index=%d,", req->index );
1806 fprintf( stderr, " info_class=%d", req->info_class );
1809 static void dump_enum_key_value_reply( const struct enum_key_value_reply *req )
1811 fprintf( stderr, " type=%d,", req->type );
1812 fprintf( stderr, " total=%u,", req->total );
1813 fprintf( stderr, " namelen=%u,", req->namelen );
1814 fprintf( stderr, " name=" );
1815 dump_varargs_unicode_str( min(cur_size,req->namelen) );
1816 fputc( ',', stderr );
1817 fprintf( stderr, " data=" );
1818 dump_varargs_bytes( cur_size );
1821 static void dump_delete_key_value_request( const struct delete_key_value_request *req )
1823 fprintf( stderr, " hkey=%p,", req->hkey );
1824 fprintf( stderr, " name=" );
1825 dump_varargs_unicode_str( cur_size );
1828 static void dump_load_registry_request( const struct load_registry_request *req )
1830 fprintf( stderr, " hkey=%p,", req->hkey );
1831 fprintf( stderr, " file=%p,", req->file );
1832 fprintf( stderr, " name=" );
1833 dump_varargs_unicode_str( cur_size );
1836 static void dump_unload_registry_request( const struct unload_registry_request *req )
1838 fprintf( stderr, " hkey=%p", req->hkey );
1841 static void dump_save_registry_request( const struct save_registry_request *req )
1843 fprintf( stderr, " hkey=%p,", req->hkey );
1844 fprintf( stderr, " file=%p", req->file );
1847 static void dump_set_registry_notification_request( const struct set_registry_notification_request *req )
1849 fprintf( stderr, " hkey=%p,", req->hkey );
1850 fprintf( stderr, " event=%p,", req->event );
1851 fprintf( stderr, " subtree=%d,", req->subtree );
1852 fprintf( stderr, " filter=%08x", req->filter );
1855 static void dump_create_timer_request( const struct create_timer_request *req )
1857 fprintf( stderr, " access=%08x,", req->access );
1858 fprintf( stderr, " attributes=%08x,", req->attributes );
1859 fprintf( stderr, " rootdir=%p,", req->rootdir );
1860 fprintf( stderr, " manual=%d,", req->manual );
1861 fprintf( stderr, " name=" );
1862 dump_varargs_unicode_str( cur_size );
1865 static void dump_create_timer_reply( const struct create_timer_reply *req )
1867 fprintf( stderr, " handle=%p", req->handle );
1870 static void dump_open_timer_request( const struct open_timer_request *req )
1872 fprintf( stderr, " access=%08x,", req->access );
1873 fprintf( stderr, " attributes=%08x,", req->attributes );
1874 fprintf( stderr, " rootdir=%p,", req->rootdir );
1875 fprintf( stderr, " name=" );
1876 dump_varargs_unicode_str( cur_size );
1879 static void dump_open_timer_reply( const struct open_timer_reply *req )
1881 fprintf( stderr, " handle=%p", req->handle );
1884 static void dump_set_timer_request( const struct set_timer_request *req )
1886 fprintf( stderr, " handle=%p,", req->handle );
1887 fprintf( stderr, " expire=" );
1888 dump_abs_time( &req->expire );
1889 fprintf( stderr, "," );
1890 fprintf( stderr, " period=%d,", req->period );
1891 fprintf( stderr, " callback=%p,", req->callback );
1892 fprintf( stderr, " arg=%p", req->arg );
1895 static void dump_set_timer_reply( const struct set_timer_reply *req )
1897 fprintf( stderr, " signaled=%d", req->signaled );
1900 static void dump_cancel_timer_request( const struct cancel_timer_request *req )
1902 fprintf( stderr, " handle=%p", req->handle );
1905 static void dump_cancel_timer_reply( const struct cancel_timer_reply *req )
1907 fprintf( stderr, " signaled=%d", req->signaled );
1910 static void dump_get_timer_info_request( const struct get_timer_info_request *req )
1912 fprintf( stderr, " handle=%p", req->handle );
1915 static void dump_get_timer_info_reply( const struct get_timer_info_reply *req )
1917 fprintf( stderr, " when=" );
1918 dump_abs_time( &req->when );
1919 fprintf( stderr, "," );
1920 fprintf( stderr, " signaled=%d", req->signaled );
1923 static void dump_get_thread_context_request( const struct get_thread_context_request *req )
1925 fprintf( stderr, " handle=%p,", req->handle );
1926 fprintf( stderr, " flags=%08x,", req->flags );
1927 fprintf( stderr, " suspend=%d", req->suspend );
1930 static void dump_get_thread_context_reply( const struct get_thread_context_reply *req )
1932 fprintf( stderr, " self=%d,", req->self );
1933 fprintf( stderr, " context=" );
1934 dump_varargs_context( cur_size );
1937 static void dump_set_thread_context_request( const struct set_thread_context_request *req )
1939 fprintf( stderr, " handle=%p,", req->handle );
1940 fprintf( stderr, " flags=%08x,", req->flags );
1941 fprintf( stderr, " suspend=%d,", req->suspend );
1942 fprintf( stderr, " context=" );
1943 dump_varargs_context( cur_size );
1946 static void dump_set_thread_context_reply( const struct set_thread_context_reply *req )
1948 fprintf( stderr, " self=%d", req->self );
1951 static void dump_get_selector_entry_request( const struct get_selector_entry_request *req )
1953 fprintf( stderr, " handle=%p,", req->handle );
1954 fprintf( stderr, " entry=%d", req->entry );
1957 static void dump_get_selector_entry_reply( const struct get_selector_entry_reply *req )
1959 fprintf( stderr, " base=%08x,", req->base );
1960 fprintf( stderr, " limit=%08x,", req->limit );
1961 fprintf( stderr, " flags=%02x", req->flags );
1964 static void dump_add_atom_request( const struct add_atom_request *req )
1966 fprintf( stderr, " table=%p,", req->table );
1967 fprintf( stderr, " name=" );
1968 dump_varargs_unicode_str( cur_size );
1971 static void dump_add_atom_reply( const struct add_atom_reply *req )
1973 fprintf( stderr, " atom=%04x", req->atom );
1976 static void dump_delete_atom_request( const struct delete_atom_request *req )
1978 fprintf( stderr, " table=%p,", req->table );
1979 fprintf( stderr, " atom=%04x", req->atom );
1982 static void dump_find_atom_request( const struct find_atom_request *req )
1984 fprintf( stderr, " table=%p,", req->table );
1985 fprintf( stderr, " name=" );
1986 dump_varargs_unicode_str( cur_size );
1989 static void dump_find_atom_reply( const struct find_atom_reply *req )
1991 fprintf( stderr, " atom=%04x", req->atom );
1994 static void dump_get_atom_information_request( const struct get_atom_information_request *req )
1996 fprintf( stderr, " table=%p,", req->table );
1997 fprintf( stderr, " atom=%04x", req->atom );
2000 static void dump_get_atom_information_reply( const struct get_atom_information_reply *req )
2002 fprintf( stderr, " count=%d,", req->count );
2003 fprintf( stderr, " pinned=%d,", req->pinned );
2004 fprintf( stderr, " total=%u,", req->total );
2005 fprintf( stderr, " name=" );
2006 dump_varargs_unicode_str( cur_size );
2009 static void dump_set_atom_information_request( const struct set_atom_information_request *req )
2011 fprintf( stderr, " table=%p,", req->table );
2012 fprintf( stderr, " atom=%04x,", req->atom );
2013 fprintf( stderr, " pinned=%d", req->pinned );
2016 static void dump_empty_atom_table_request( const struct empty_atom_table_request *req )
2018 fprintf( stderr, " table=%p,", req->table );
2019 fprintf( stderr, " if_pinned=%d", req->if_pinned );
2022 static void dump_init_atom_table_request( const struct init_atom_table_request *req )
2024 fprintf( stderr, " entries=%d", req->entries );
2027 static void dump_init_atom_table_reply( const struct init_atom_table_reply *req )
2029 fprintf( stderr, " table=%p", req->table );
2032 static void dump_get_msg_queue_request( const struct get_msg_queue_request *req )
2036 static void dump_get_msg_queue_reply( const struct get_msg_queue_reply *req )
2038 fprintf( stderr, " handle=%p", req->handle );
2041 static void dump_set_queue_mask_request( const struct set_queue_mask_request *req )
2043 fprintf( stderr, " wake_mask=%08x,", req->wake_mask );
2044 fprintf( stderr, " changed_mask=%08x,", req->changed_mask );
2045 fprintf( stderr, " skip_wait=%d", req->skip_wait );
2048 static void dump_set_queue_mask_reply( const struct set_queue_mask_reply *req )
2050 fprintf( stderr, " wake_bits=%08x,", req->wake_bits );
2051 fprintf( stderr, " changed_bits=%08x", req->changed_bits );
2054 static void dump_get_queue_status_request( const struct get_queue_status_request *req )
2056 fprintf( stderr, " clear=%d", req->clear );
2059 static void dump_get_queue_status_reply( const struct get_queue_status_reply *req )
2061 fprintf( stderr, " wake_bits=%08x,", req->wake_bits );
2062 fprintf( stderr, " changed_bits=%08x", req->changed_bits );
2065 static void dump_get_process_idle_event_request( const struct get_process_idle_event_request *req )
2067 fprintf( stderr, " handle=%p", req->handle );
2070 static void dump_get_process_idle_event_reply( const struct get_process_idle_event_reply *req )
2072 fprintf( stderr, " event=%p", req->event );
2075 static void dump_send_message_request( const struct send_message_request *req )
2077 fprintf( stderr, " id=%04x,", req->id );
2078 fprintf( stderr, " type=%d,", req->type );
2079 fprintf( stderr, " flags=%d,", req->flags );
2080 fprintf( stderr, " win=%p,", req->win );
2081 fprintf( stderr, " msg=%08x,", req->msg );
2082 fprintf( stderr, " wparam=%lx,", req->wparam );
2083 fprintf( stderr, " lparam=%lx,", req->lparam );
2084 fprintf( stderr, " timeout=%d,", req->timeout );
2085 fprintf( stderr, " data=" );
2086 dump_varargs_message_data( cur_size );
2089 static void dump_post_quit_message_request( const struct post_quit_message_request *req )
2091 fprintf( stderr, " exit_code=%d", req->exit_code );
2094 static void dump_send_hardware_message_request( const struct send_hardware_message_request *req )
2096 fprintf( stderr, " id=%04x,", req->id );
2097 fprintf( stderr, " win=%p,", req->win );
2098 fprintf( stderr, " msg=%08x,", req->msg );
2099 fprintf( stderr, " time=%08x,", req->time );
2100 fprintf( stderr, " wparam=%lx,", req->wparam );
2101 fprintf( stderr, " lparam=%lx,", req->lparam );
2102 fprintf( stderr, " info=%lx,", req->info );
2103 fprintf( stderr, " x=%d,", req->x );
2104 fprintf( stderr, " y=%d", req->y );
2107 static void dump_get_message_request( const struct get_message_request *req )
2109 fprintf( stderr, " flags=%d,", req->flags );
2110 fprintf( stderr, " get_win=%p,", req->get_win );
2111 fprintf( stderr, " get_first=%08x,", req->get_first );
2112 fprintf( stderr, " get_last=%08x,", req->get_last );
2113 fprintf( stderr, " hw_id=%08x", req->hw_id );
2116 static void dump_get_message_reply( const struct get_message_reply *req )
2118 fprintf( stderr, " win=%p,", req->win );
2119 fprintf( stderr, " type=%d,", req->type );
2120 fprintf( stderr, " msg=%08x,", req->msg );
2121 fprintf( stderr, " wparam=%lx,", req->wparam );
2122 fprintf( stderr, " lparam=%lx,", req->lparam );
2123 fprintf( stderr, " info=%lx,", req->info );
2124 fprintf( stderr, " x=%d,", req->x );
2125 fprintf( stderr, " y=%d,", req->y );
2126 fprintf( stderr, " time=%08x,", req->time );
2127 fprintf( stderr, " hw_id=%08x,", req->hw_id );
2128 fprintf( stderr, " active_hooks=%08x,", req->active_hooks );
2129 fprintf( stderr, " total=%u,", req->total );
2130 fprintf( stderr, " data=" );
2131 dump_varargs_message_data( cur_size );
2134 static void dump_reply_message_request( const struct reply_message_request *req )
2136 fprintf( stderr, " result=%08x,", req->result );
2137 fprintf( stderr, " remove=%d,", req->remove );
2138 fprintf( stderr, " data=" );
2139 dump_varargs_bytes( cur_size );
2142 static void dump_accept_hardware_message_request( const struct accept_hardware_message_request *req )
2144 fprintf( stderr, " hw_id=%08x,", req->hw_id );
2145 fprintf( stderr, " remove=%d,", req->remove );
2146 fprintf( stderr, " new_win=%p", req->new_win );
2149 static void dump_get_message_reply_request( const struct get_message_reply_request *req )
2151 fprintf( stderr, " cancel=%d", req->cancel );
2154 static void dump_get_message_reply_reply( const struct get_message_reply_reply *req )
2156 fprintf( stderr, " result=%08x,", req->result );
2157 fprintf( stderr, " data=" );
2158 dump_varargs_bytes( cur_size );
2161 static void dump_set_win_timer_request( const struct set_win_timer_request *req )
2163 fprintf( stderr, " win=%p,", req->win );
2164 fprintf( stderr, " msg=%08x,", req->msg );
2165 fprintf( stderr, " rate=%08x,", req->rate );
2166 fprintf( stderr, " id=%lx,", req->id );
2167 fprintf( stderr, " lparam=%lx", req->lparam );
2170 static void dump_set_win_timer_reply( const struct set_win_timer_reply *req )
2172 fprintf( stderr, " id=%lx", req->id );
2175 static void dump_kill_win_timer_request( const struct kill_win_timer_request *req )
2177 fprintf( stderr, " win=%p,", req->win );
2178 fprintf( stderr, " msg=%08x,", req->msg );
2179 fprintf( stderr, " id=%lx", req->id );
2182 static void dump_get_serial_info_request( const struct get_serial_info_request *req )
2184 fprintf( stderr, " handle=%p", req->handle );
2187 static void dump_get_serial_info_reply( const struct get_serial_info_reply *req )
2189 fprintf( stderr, " readinterval=%08x,", req->readinterval );
2190 fprintf( stderr, " readconst=%08x,", req->readconst );
2191 fprintf( stderr, " readmult=%08x,", req->readmult );
2192 fprintf( stderr, " writeconst=%08x,", req->writeconst );
2193 fprintf( stderr, " writemult=%08x,", req->writemult );
2194 fprintf( stderr, " eventmask=%08x", req->eventmask );
2197 static void dump_set_serial_info_request( const struct set_serial_info_request *req )
2199 fprintf( stderr, " handle=%p,", req->handle );
2200 fprintf( stderr, " flags=%d,", req->flags );
2201 fprintf( stderr, " readinterval=%08x,", req->readinterval );
2202 fprintf( stderr, " readconst=%08x,", req->readconst );
2203 fprintf( stderr, " readmult=%08x,", req->readmult );
2204 fprintf( stderr, " writeconst=%08x,", req->writeconst );
2205 fprintf( stderr, " writemult=%08x,", req->writemult );
2206 fprintf( stderr, " eventmask=%08x", req->eventmask );
2209 static void dump_register_async_request( const struct register_async_request *req )
2211 fprintf( stderr, " handle=%p,", req->handle );
2212 fprintf( stderr, " type=%d,", req->type );
2213 fprintf( stderr, " io_apc=%p,", req->io_apc );
2214 fprintf( stderr, " io_sb=%p,", req->io_sb );
2215 fprintf( stderr, " io_user=%p,", req->io_user );
2216 fprintf( stderr, " count=%d", req->count );
2219 static void dump_cancel_async_request( const struct cancel_async_request *req )
2221 fprintf( stderr, " handle=%p", req->handle );
2224 static void dump_create_named_pipe_request( const struct create_named_pipe_request *req )
2226 fprintf( stderr, " access=%08x,", req->access );
2227 fprintf( stderr, " attributes=%08x,", req->attributes );
2228 fprintf( stderr, " rootdir=%p,", req->rootdir );
2229 fprintf( stderr, " options=%08x,", req->options );
2230 fprintf( stderr, " flags=%08x,", req->flags );
2231 fprintf( stderr, " maxinstances=%08x,", req->maxinstances );
2232 fprintf( stderr, " outsize=%08x,", req->outsize );
2233 fprintf( stderr, " insize=%08x,", req->insize );
2234 fprintf( stderr, " timeout=%08x,", req->timeout );
2235 fprintf( stderr, " name=" );
2236 dump_varargs_unicode_str( cur_size );
2239 static void dump_create_named_pipe_reply( const struct create_named_pipe_reply *req )
2241 fprintf( stderr, " handle=%p", req->handle );
2244 static void dump_open_named_pipe_request( const struct open_named_pipe_request *req )
2246 fprintf( stderr, " access=%08x,", req->access );
2247 fprintf( stderr, " attributes=%08x,", req->attributes );
2248 fprintf( stderr, " rootdir=%p,", req->rootdir );
2249 fprintf( stderr, " flags=%08x,", req->flags );
2250 fprintf( stderr, " name=" );
2251 dump_varargs_unicode_str( cur_size );
2254 static void dump_open_named_pipe_reply( const struct open_named_pipe_reply *req )
2256 fprintf( stderr, " handle=%p", req->handle );
2259 static void dump_connect_named_pipe_request( const struct connect_named_pipe_request *req )
2261 fprintf( stderr, " handle=%p,", req->handle );
2262 fprintf( stderr, " event=%p,", req->event );
2263 fprintf( stderr, " func=%p", req->func );
2266 static void dump_wait_named_pipe_request( const struct wait_named_pipe_request *req )
2268 fprintf( stderr, " handle=%p,", req->handle );
2269 fprintf( stderr, " timeout=%08x,", req->timeout );
2270 fprintf( stderr, " event=%p,", req->event );
2271 fprintf( stderr, " func=%p,", req->func );
2272 fprintf( stderr, " name=" );
2273 dump_varargs_unicode_str( cur_size );
2276 static void dump_disconnect_named_pipe_request( const struct disconnect_named_pipe_request *req )
2278 fprintf( stderr, " handle=%p", req->handle );
2281 static void dump_get_named_pipe_info_request( const struct get_named_pipe_info_request *req )
2283 fprintf( stderr, " handle=%p", req->handle );
2286 static void dump_get_named_pipe_info_reply( const struct get_named_pipe_info_reply *req )
2288 fprintf( stderr, " flags=%08x,", req->flags );
2289 fprintf( stderr, " maxinstances=%08x,", req->maxinstances );
2290 fprintf( stderr, " instances=%08x,", req->instances );
2291 fprintf( stderr, " outsize=%08x,", req->outsize );
2292 fprintf( stderr, " insize=%08x", req->insize );
2295 static void dump_create_window_request( const struct create_window_request *req )
2297 fprintf( stderr, " parent=%p,", req->parent );
2298 fprintf( stderr, " owner=%p,", req->owner );
2299 fprintf( stderr, " atom=%04x,", req->atom );
2300 fprintf( stderr, " instance=%p", req->instance );
2303 static void dump_create_window_reply( const struct create_window_reply *req )
2305 fprintf( stderr, " handle=%p,", req->handle );
2306 fprintf( stderr, " parent=%p,", req->parent );
2307 fprintf( stderr, " owner=%p,", req->owner );
2308 fprintf( stderr, " extra=%d,", req->extra );
2309 fprintf( stderr, " class_ptr=%p", req->class_ptr );
2312 static void dump_destroy_window_request( const struct destroy_window_request *req )
2314 fprintf( stderr, " handle=%p", req->handle );
2317 static void dump_get_desktop_window_request( const struct get_desktop_window_request *req )
2319 fprintf( stderr, " force=%d", req->force );
2322 static void dump_get_desktop_window_reply( const struct get_desktop_window_reply *req )
2324 fprintf( stderr, " handle=%p", req->handle );
2327 static void dump_set_window_owner_request( const struct set_window_owner_request *req )
2329 fprintf( stderr, " handle=%p,", req->handle );
2330 fprintf( stderr, " owner=%p", req->owner );
2333 static void dump_set_window_owner_reply( const struct set_window_owner_reply *req )
2335 fprintf( stderr, " full_owner=%p,", req->full_owner );
2336 fprintf( stderr, " prev_owner=%p", req->prev_owner );
2339 static void dump_get_window_info_request( const struct get_window_info_request *req )
2341 fprintf( stderr, " handle=%p", req->handle );
2344 static void dump_get_window_info_reply( const struct get_window_info_reply *req )
2346 fprintf( stderr, " full_handle=%p,", req->full_handle );
2347 fprintf( stderr, " last_active=%p,", req->last_active );
2348 fprintf( stderr, " pid=%04x,", req->pid );
2349 fprintf( stderr, " tid=%04x,", req->tid );
2350 fprintf( stderr, " atom=%04x,", req->atom );
2351 fprintf( stderr, " is_unicode=%d", req->is_unicode );
2354 static void dump_set_window_info_request( const struct set_window_info_request *req )
2356 fprintf( stderr, " flags=%08x,", req->flags );
2357 fprintf( stderr, " handle=%p,", req->handle );
2358 fprintf( stderr, " style=%08x,", req->style );
2359 fprintf( stderr, " ex_style=%08x,", req->ex_style );
2360 fprintf( stderr, " id=%08x,", req->id );
2361 fprintf( stderr, " is_unicode=%d,", req->is_unicode );
2362 fprintf( stderr, " instance=%p,", req->instance );
2363 fprintf( stderr, " user_data=%lx,", req->user_data );
2364 fprintf( stderr, " extra_offset=%d,", req->extra_offset );
2365 fprintf( stderr, " extra_size=%u,", req->extra_size );
2366 fprintf( stderr, " extra_value=%lx", req->extra_value );
2369 static void dump_set_window_info_reply( const struct set_window_info_reply *req )
2371 fprintf( stderr, " old_style=%08x,", req->old_style );
2372 fprintf( stderr, " old_ex_style=%08x,", req->old_ex_style );
2373 fprintf( stderr, " old_id=%08x,", req->old_id );
2374 fprintf( stderr, " old_instance=%p,", req->old_instance );
2375 fprintf( stderr, " old_user_data=%lx,", req->old_user_data );
2376 fprintf( stderr, " old_extra_value=%lx", req->old_extra_value );
2379 static void dump_set_parent_request( const struct set_parent_request *req )
2381 fprintf( stderr, " handle=%p,", req->handle );
2382 fprintf( stderr, " parent=%p", req->parent );
2385 static void dump_set_parent_reply( const struct set_parent_reply *req )
2387 fprintf( stderr, " old_parent=%p,", req->old_parent );
2388 fprintf( stderr, " full_parent=%p", req->full_parent );
2391 static void dump_get_window_parents_request( const struct get_window_parents_request *req )
2393 fprintf( stderr, " handle=%p", req->handle );
2396 static void dump_get_window_parents_reply( const struct get_window_parents_reply *req )
2398 fprintf( stderr, " count=%d,", req->count );
2399 fprintf( stderr, " parents=" );
2400 dump_varargs_user_handles( cur_size );
2403 static void dump_get_window_children_request( const struct get_window_children_request *req )
2405 fprintf( stderr, " parent=%p,", req->parent );
2406 fprintf( stderr, " atom=%04x,", req->atom );
2407 fprintf( stderr, " tid=%04x", req->tid );
2410 static void dump_get_window_children_reply( const struct get_window_children_reply *req )
2412 fprintf( stderr, " count=%d,", req->count );
2413 fprintf( stderr, " children=" );
2414 dump_varargs_user_handles( cur_size );
2417 static void dump_get_window_children_from_point_request( const struct get_window_children_from_point_request *req )
2419 fprintf( stderr, " parent=%p,", req->parent );
2420 fprintf( stderr, " x=%d,", req->x );
2421 fprintf( stderr, " y=%d", req->y );
2424 static void dump_get_window_children_from_point_reply( const struct get_window_children_from_point_reply *req )
2426 fprintf( stderr, " count=%d,", req->count );
2427 fprintf( stderr, " children=" );
2428 dump_varargs_user_handles( cur_size );
2431 static void dump_get_window_tree_request( const struct get_window_tree_request *req )
2433 fprintf( stderr, " handle=%p", req->handle );
2436 static void dump_get_window_tree_reply( const struct get_window_tree_reply *req )
2438 fprintf( stderr, " parent=%p,", req->parent );
2439 fprintf( stderr, " owner=%p,", req->owner );
2440 fprintf( stderr, " next_sibling=%p,", req->next_sibling );
2441 fprintf( stderr, " prev_sibling=%p,", req->prev_sibling );
2442 fprintf( stderr, " first_sibling=%p,", req->first_sibling );
2443 fprintf( stderr, " last_sibling=%p,", req->last_sibling );
2444 fprintf( stderr, " first_child=%p,", req->first_child );
2445 fprintf( stderr, " last_child=%p", req->last_child );
2448 static void dump_set_window_pos_request( const struct set_window_pos_request *req )
2450 fprintf( stderr, " flags=%08x,", req->flags );
2451 fprintf( stderr, " handle=%p,", req->handle );
2452 fprintf( stderr, " previous=%p,", req->previous );
2453 fprintf( stderr, " window=" );
2454 dump_rectangle( &req->window );
2455 fprintf( stderr, "," );
2456 fprintf( stderr, " client=" );
2457 dump_rectangle( &req->client );
2458 fprintf( stderr, "," );
2459 fprintf( stderr, " valid=" );
2460 dump_varargs_rectangles( cur_size );
2463 static void dump_set_window_pos_reply( const struct set_window_pos_reply *req )
2465 fprintf( stderr, " new_style=%08x", req->new_style );
2468 static void dump_get_window_rectangles_request( const struct get_window_rectangles_request *req )
2470 fprintf( stderr, " handle=%p", req->handle );
2473 static void dump_get_window_rectangles_reply( const struct get_window_rectangles_reply *req )
2475 fprintf( stderr, " window=" );
2476 dump_rectangle( &req->window );
2477 fprintf( stderr, "," );
2478 fprintf( stderr, " visible=" );
2479 dump_rectangle( &req->visible );
2480 fprintf( stderr, "," );
2481 fprintf( stderr, " client=" );
2482 dump_rectangle( &req->client );
2485 static void dump_get_window_text_request( const struct get_window_text_request *req )
2487 fprintf( stderr, " handle=%p", req->handle );
2490 static void dump_get_window_text_reply( const struct get_window_text_reply *req )
2492 fprintf( stderr, " text=" );
2493 dump_varargs_unicode_str( cur_size );
2496 static void dump_set_window_text_request( const struct set_window_text_request *req )
2498 fprintf( stderr, " handle=%p,", req->handle );
2499 fprintf( stderr, " text=" );
2500 dump_varargs_unicode_str( cur_size );
2503 static void dump_get_windows_offset_request( const struct get_windows_offset_request *req )
2505 fprintf( stderr, " from=%p,", req->from );
2506 fprintf( stderr, " to=%p", req->to );
2509 static void dump_get_windows_offset_reply( const struct get_windows_offset_reply *req )
2511 fprintf( stderr, " x=%d,", req->x );
2512 fprintf( stderr, " y=%d", req->y );
2515 static void dump_get_visible_region_request( const struct get_visible_region_request *req )
2517 fprintf( stderr, " window=%p,", req->window );
2518 fprintf( stderr, " flags=%08x", req->flags );
2521 static void dump_get_visible_region_reply( const struct get_visible_region_reply *req )
2523 fprintf( stderr, " top_win=%p,", req->top_win );
2524 fprintf( stderr, " top_rect=" );
2525 dump_rectangle( &req->top_rect );
2526 fprintf( stderr, "," );
2527 fprintf( stderr, " win_rect=" );
2528 dump_rectangle( &req->win_rect );
2529 fprintf( stderr, "," );
2530 fprintf( stderr, " total_size=%u,", req->total_size );
2531 fprintf( stderr, " region=" );
2532 dump_varargs_rectangles( cur_size );
2535 static void dump_get_window_region_request( const struct get_window_region_request *req )
2537 fprintf( stderr, " window=%p", req->window );
2540 static void dump_get_window_region_reply( const struct get_window_region_reply *req )
2542 fprintf( stderr, " total_size=%u,", req->total_size );
2543 fprintf( stderr, " region=" );
2544 dump_varargs_rectangles( cur_size );
2547 static void dump_set_window_region_request( const struct set_window_region_request *req )
2549 fprintf( stderr, " window=%p,", req->window );
2550 fprintf( stderr, " region=" );
2551 dump_varargs_rectangles( cur_size );
2554 static void dump_get_update_region_request( const struct get_update_region_request *req )
2556 fprintf( stderr, " window=%p,", req->window );
2557 fprintf( stderr, " from_child=%p,", req->from_child );
2558 fprintf( stderr, " flags=%08x", req->flags );
2561 static void dump_get_update_region_reply( const struct get_update_region_reply *req )
2563 fprintf( stderr, " child=%p,", req->child );
2564 fprintf( stderr, " flags=%08x,", req->flags );
2565 fprintf( stderr, " total_size=%u,", req->total_size );
2566 fprintf( stderr, " region=" );
2567 dump_varargs_rectangles( cur_size );
2570 static void dump_update_window_zorder_request( const struct update_window_zorder_request *req )
2572 fprintf( stderr, " window=%p,", req->window );
2573 fprintf( stderr, " rect=" );
2574 dump_rectangle( &req->rect );
2577 static void dump_redraw_window_request( const struct redraw_window_request *req )
2579 fprintf( stderr, " window=%p,", req->window );
2580 fprintf( stderr, " flags=%08x,", req->flags );
2581 fprintf( stderr, " region=" );
2582 dump_varargs_rectangles( cur_size );
2585 static void dump_set_window_property_request( const struct set_window_property_request *req )
2587 fprintf( stderr, " window=%p,", req->window );
2588 fprintf( stderr, " atom=%04x,", req->atom );
2589 fprintf( stderr, " handle=%p,", req->handle );
2590 fprintf( stderr, " name=" );
2591 dump_varargs_unicode_str( cur_size );
2594 static void dump_remove_window_property_request( const struct remove_window_property_request *req )
2596 fprintf( stderr, " window=%p,", req->window );
2597 fprintf( stderr, " atom=%04x,", req->atom );
2598 fprintf( stderr, " name=" );
2599 dump_varargs_unicode_str( cur_size );
2602 static void dump_remove_window_property_reply( const struct remove_window_property_reply *req )
2604 fprintf( stderr, " handle=%p", req->handle );
2607 static void dump_get_window_property_request( const struct get_window_property_request *req )
2609 fprintf( stderr, " window=%p,", req->window );
2610 fprintf( stderr, " atom=%04x,", req->atom );
2611 fprintf( stderr, " name=" );
2612 dump_varargs_unicode_str( cur_size );
2615 static void dump_get_window_property_reply( const struct get_window_property_reply *req )
2617 fprintf( stderr, " handle=%p", req->handle );
2620 static void dump_get_window_properties_request( const struct get_window_properties_request *req )
2622 fprintf( stderr, " window=%p", req->window );
2625 static void dump_get_window_properties_reply( const struct get_window_properties_reply *req )
2627 fprintf( stderr, " total=%d,", req->total );
2628 fprintf( stderr, " props=" );
2629 dump_varargs_properties( cur_size );
2632 static void dump_create_winstation_request( const struct create_winstation_request *req )
2634 fprintf( stderr, " flags=%08x,", req->flags );
2635 fprintf( stderr, " access=%08x,", req->access );
2636 fprintf( stderr, " attributes=%08x,", req->attributes );
2637 fprintf( stderr, " name=" );
2638 dump_varargs_unicode_str( cur_size );
2641 static void dump_create_winstation_reply( const struct create_winstation_reply *req )
2643 fprintf( stderr, " handle=%p", req->handle );
2646 static void dump_open_winstation_request( const struct open_winstation_request *req )
2648 fprintf( stderr, " access=%08x,", req->access );
2649 fprintf( stderr, " attributes=%08x,", req->attributes );
2650 fprintf( stderr, " name=" );
2651 dump_varargs_unicode_str( cur_size );
2654 static void dump_open_winstation_reply( const struct open_winstation_reply *req )
2656 fprintf( stderr, " handle=%p", req->handle );
2659 static void dump_close_winstation_request( const struct close_winstation_request *req )
2661 fprintf( stderr, " handle=%p", req->handle );
2664 static void dump_get_process_winstation_request( const struct get_process_winstation_request *req )
2668 static void dump_get_process_winstation_reply( const struct get_process_winstation_reply *req )
2670 fprintf( stderr, " handle=%p", req->handle );
2673 static void dump_set_process_winstation_request( const struct set_process_winstation_request *req )
2675 fprintf( stderr, " handle=%p", req->handle );
2678 static void dump_create_desktop_request( const struct create_desktop_request *req )
2680 fprintf( stderr, " flags=%08x,", req->flags );
2681 fprintf( stderr, " access=%08x,", req->access );
2682 fprintf( stderr, " attributes=%08x,", req->attributes );
2683 fprintf( stderr, " name=" );
2684 dump_varargs_unicode_str( cur_size );
2687 static void dump_create_desktop_reply( const struct create_desktop_reply *req )
2689 fprintf( stderr, " handle=%p", req->handle );
2692 static void dump_open_desktop_request( const struct open_desktop_request *req )
2694 fprintf( stderr, " flags=%08x,", req->flags );
2695 fprintf( stderr, " access=%08x,", req->access );
2696 fprintf( stderr, " attributes=%08x,", req->attributes );
2697 fprintf( stderr, " name=" );
2698 dump_varargs_unicode_str( cur_size );
2701 static void dump_open_desktop_reply( const struct open_desktop_reply *req )
2703 fprintf( stderr, " handle=%p", req->handle );
2706 static void dump_close_desktop_request( const struct close_desktop_request *req )
2708 fprintf( stderr, " handle=%p", req->handle );
2711 static void dump_get_thread_desktop_request( const struct get_thread_desktop_request *req )
2713 fprintf( stderr, " tid=%04x", req->tid );
2716 static void dump_get_thread_desktop_reply( const struct get_thread_desktop_reply *req )
2718 fprintf( stderr, " handle=%p", req->handle );
2721 static void dump_set_thread_desktop_request( const struct set_thread_desktop_request *req )
2723 fprintf( stderr, " handle=%p", req->handle );
2726 static void dump_set_user_object_info_request( const struct set_user_object_info_request *req )
2728 fprintf( stderr, " handle=%p,", req->handle );
2729 fprintf( stderr, " flags=%08x,", req->flags );
2730 fprintf( stderr, " obj_flags=%08x", req->obj_flags );
2733 static void dump_set_user_object_info_reply( const struct set_user_object_info_reply *req )
2735 fprintf( stderr, " is_desktop=%d,", req->is_desktop );
2736 fprintf( stderr, " old_obj_flags=%08x,", req->old_obj_flags );
2737 fprintf( stderr, " name=" );
2738 dump_varargs_unicode_str( cur_size );
2741 static void dump_attach_thread_input_request( const struct attach_thread_input_request *req )
2743 fprintf( stderr, " tid_from=%04x,", req->tid_from );
2744 fprintf( stderr, " tid_to=%04x,", req->tid_to );
2745 fprintf( stderr, " attach=%d", req->attach );
2748 static void dump_get_thread_input_request( const struct get_thread_input_request *req )
2750 fprintf( stderr, " tid=%04x", req->tid );
2753 static void dump_get_thread_input_reply( const struct get_thread_input_reply *req )
2755 fprintf( stderr, " focus=%p,", req->focus );
2756 fprintf( stderr, " capture=%p,", req->capture );
2757 fprintf( stderr, " active=%p,", req->active );
2758 fprintf( stderr, " foreground=%p,", req->foreground );
2759 fprintf( stderr, " menu_owner=%p,", req->menu_owner );
2760 fprintf( stderr, " move_size=%p,", req->move_size );
2761 fprintf( stderr, " caret=%p,", req->caret );
2762 fprintf( stderr, " rect=" );
2763 dump_rectangle( &req->rect );
2766 static void dump_get_last_input_time_request( const struct get_last_input_time_request *req )
2770 static void dump_get_last_input_time_reply( const struct get_last_input_time_reply *req )
2772 fprintf( stderr, " time=%08x", req->time );
2775 static void dump_get_key_state_request( const struct get_key_state_request *req )
2777 fprintf( stderr, " tid=%04x,", req->tid );
2778 fprintf( stderr, " key=%d", req->key );
2781 static void dump_get_key_state_reply( const struct get_key_state_reply *req )
2783 fprintf( stderr, " state=%02x,", req->state );
2784 fprintf( stderr, " keystate=" );
2785 dump_varargs_bytes( cur_size );
2788 static void dump_set_key_state_request( const struct set_key_state_request *req )
2790 fprintf( stderr, " tid=%04x,", req->tid );
2791 fprintf( stderr, " keystate=" );
2792 dump_varargs_bytes( cur_size );
2795 static void dump_set_foreground_window_request( const struct set_foreground_window_request *req )
2797 fprintf( stderr, " handle=%p", req->handle );
2800 static void dump_set_foreground_window_reply( const struct set_foreground_window_reply *req )
2802 fprintf( stderr, " previous=%p,", req->previous );
2803 fprintf( stderr, " send_msg_old=%d,", req->send_msg_old );
2804 fprintf( stderr, " send_msg_new=%d", req->send_msg_new );
2807 static void dump_set_focus_window_request( const struct set_focus_window_request *req )
2809 fprintf( stderr, " handle=%p", req->handle );
2812 static void dump_set_focus_window_reply( const struct set_focus_window_reply *req )
2814 fprintf( stderr, " previous=%p", req->previous );
2817 static void dump_set_active_window_request( const struct set_active_window_request *req )
2819 fprintf( stderr, " handle=%p", req->handle );
2822 static void dump_set_active_window_reply( const struct set_active_window_reply *req )
2824 fprintf( stderr, " previous=%p", req->previous );
2827 static void dump_set_capture_window_request( const struct set_capture_window_request *req )
2829 fprintf( stderr, " handle=%p,", req->handle );
2830 fprintf( stderr, " flags=%08x", req->flags );
2833 static void dump_set_capture_window_reply( const struct set_capture_window_reply *req )
2835 fprintf( stderr, " previous=%p,", req->previous );
2836 fprintf( stderr, " full_handle=%p", req->full_handle );
2839 static void dump_set_caret_window_request( const struct set_caret_window_request *req )
2841 fprintf( stderr, " handle=%p,", req->handle );
2842 fprintf( stderr, " width=%d,", req->width );
2843 fprintf( stderr, " height=%d", req->height );
2846 static void dump_set_caret_window_reply( const struct set_caret_window_reply *req )
2848 fprintf( stderr, " previous=%p,", req->previous );
2849 fprintf( stderr, " old_rect=" );
2850 dump_rectangle( &req->old_rect );
2851 fprintf( stderr, "," );
2852 fprintf( stderr, " old_hide=%d,", req->old_hide );
2853 fprintf( stderr, " old_state=%d", req->old_state );
2856 static void dump_set_caret_info_request( const struct set_caret_info_request *req )
2858 fprintf( stderr, " flags=%08x,", req->flags );
2859 fprintf( stderr, " handle=%p,", req->handle );
2860 fprintf( stderr, " x=%d,", req->x );
2861 fprintf( stderr, " y=%d,", req->y );
2862 fprintf( stderr, " hide=%d,", req->hide );
2863 fprintf( stderr, " state=%d", req->state );
2866 static void dump_set_caret_info_reply( const struct set_caret_info_reply *req )
2868 fprintf( stderr, " full_handle=%p,", req->full_handle );
2869 fprintf( stderr, " old_rect=" );
2870 dump_rectangle( &req->old_rect );
2871 fprintf( stderr, "," );
2872 fprintf( stderr, " old_hide=%d,", req->old_hide );
2873 fprintf( stderr, " old_state=%d", req->old_state );
2876 static void dump_set_hook_request( const struct set_hook_request *req )
2878 fprintf( stderr, " id=%d,", req->id );
2879 fprintf( stderr, " pid=%04x,", req->pid );
2880 fprintf( stderr, " tid=%04x,", req->tid );
2881 fprintf( stderr, " event_min=%d,", req->event_min );
2882 fprintf( stderr, " event_max=%d,", req->event_max );
2883 fprintf( stderr, " flags=%d,", req->flags );
2884 fprintf( stderr, " proc=%p,", req->proc );
2885 fprintf( stderr, " unicode=%d,", req->unicode );
2886 fprintf( stderr, " module=" );
2887 dump_varargs_unicode_str( cur_size );
2890 static void dump_set_hook_reply( const struct set_hook_reply *req )
2892 fprintf( stderr, " handle=%p,", req->handle );
2893 fprintf( stderr, " active_hooks=%08x", req->active_hooks );
2896 static void dump_remove_hook_request( const struct remove_hook_request *req )
2898 fprintf( stderr, " handle=%p,", req->handle );
2899 fprintf( stderr, " id=%d,", req->id );
2900 fprintf( stderr, " proc=%p", req->proc );
2903 static void dump_remove_hook_reply( const struct remove_hook_reply *req )
2905 fprintf( stderr, " active_hooks=%08x", req->active_hooks );
2908 static void dump_start_hook_chain_request( const struct start_hook_chain_request *req )
2910 fprintf( stderr, " id=%d,", req->id );
2911 fprintf( stderr, " event=%d,", req->event );
2912 fprintf( stderr, " window=%p,", req->window );
2913 fprintf( stderr, " object_id=%d,", req->object_id );
2914 fprintf( stderr, " child_id=%d", req->child_id );
2917 static void dump_start_hook_chain_reply( const struct start_hook_chain_reply *req )
2919 fprintf( stderr, " handle=%p,", req->handle );
2920 fprintf( stderr, " pid=%04x,", req->pid );
2921 fprintf( stderr, " tid=%04x,", req->tid );
2922 fprintf( stderr, " proc=%p,", req->proc );
2923 fprintf( stderr, " unicode=%d,", req->unicode );
2924 fprintf( stderr, " active_hooks=%08x,", req->active_hooks );
2925 fprintf( stderr, " module=" );
2926 dump_varargs_unicode_str( cur_size );
2929 static void dump_finish_hook_chain_request( const struct finish_hook_chain_request *req )
2931 fprintf( stderr, " id=%d", req->id );
2934 static void dump_get_hook_info_request( const struct get_hook_info_request *req )
2936 fprintf( stderr, " handle=%p,", req->handle );
2937 fprintf( stderr, " get_next=%d,", req->get_next );
2938 fprintf( stderr, " event=%d,", req->event );
2939 fprintf( stderr, " window=%p,", req->window );
2940 fprintf( stderr, " object_id=%d,", req->object_id );
2941 fprintf( stderr, " child_id=%d", req->child_id );
2944 static void dump_get_hook_info_reply( const struct get_hook_info_reply *req )
2946 fprintf( stderr, " handle=%p,", req->handle );
2947 fprintf( stderr, " id=%d,", req->id );
2948 fprintf( stderr, " pid=%04x,", req->pid );
2949 fprintf( stderr, " tid=%04x,", req->tid );
2950 fprintf( stderr, " proc=%p,", req->proc );
2951 fprintf( stderr, " unicode=%d,", req->unicode );
2952 fprintf( stderr, " module=" );
2953 dump_varargs_unicode_str( cur_size );
2956 static void dump_create_class_request( const struct create_class_request *req )
2958 fprintf( stderr, " local=%d,", req->local );
2959 fprintf( stderr, " atom=%04x,", req->atom );
2960 fprintf( stderr, " style=%08x,", req->style );
2961 fprintf( stderr, " instance=%p,", req->instance );
2962 fprintf( stderr, " extra=%d,", req->extra );
2963 fprintf( stderr, " win_extra=%d,", req->win_extra );
2964 fprintf( stderr, " client_ptr=%p", req->client_ptr );
2967 static void dump_destroy_class_request( const struct destroy_class_request *req )
2969 fprintf( stderr, " atom=%04x,", req->atom );
2970 fprintf( stderr, " instance=%p", req->instance );
2973 static void dump_destroy_class_reply( const struct destroy_class_reply *req )
2975 fprintf( stderr, " client_ptr=%p", req->client_ptr );
2978 static void dump_set_class_info_request( const struct set_class_info_request *req )
2980 fprintf( stderr, " window=%p,", req->window );
2981 fprintf( stderr, " flags=%08x,", req->flags );
2982 fprintf( stderr, " atom=%04x,", req->atom );
2983 fprintf( stderr, " style=%08x,", req->style );
2984 fprintf( stderr, " win_extra=%d,", req->win_extra );
2985 fprintf( stderr, " instance=%p,", req->instance );
2986 fprintf( stderr, " extra_offset=%d,", req->extra_offset );
2987 fprintf( stderr, " extra_size=%u,", req->extra_size );
2988 fprintf( stderr, " extra_value=%lx", req->extra_value );
2991 static void dump_set_class_info_reply( const struct set_class_info_reply *req )
2993 fprintf( stderr, " old_atom=%04x,", req->old_atom );
2994 fprintf( stderr, " old_style=%08x,", req->old_style );
2995 fprintf( stderr, " old_extra=%d,", req->old_extra );
2996 fprintf( stderr, " old_win_extra=%d,", req->old_win_extra );
2997 fprintf( stderr, " old_instance=%p,", req->old_instance );
2998 fprintf( stderr, " old_extra_value=%lx", req->old_extra_value );
3001 static void dump_set_clipboard_info_request( const struct set_clipboard_info_request *req )
3003 fprintf( stderr, " flags=%08x,", req->flags );
3004 fprintf( stderr, " clipboard=%p,", req->clipboard );
3005 fprintf( stderr, " owner=%p,", req->owner );
3006 fprintf( stderr, " viewer=%p,", req->viewer );
3007 fprintf( stderr, " seqno=%08x", req->seqno );
3010 static void dump_set_clipboard_info_reply( const struct set_clipboard_info_reply *req )
3012 fprintf( stderr, " flags=%08x,", req->flags );
3013 fprintf( stderr, " old_clipboard=%p,", req->old_clipboard );
3014 fprintf( stderr, " old_owner=%p,", req->old_owner );
3015 fprintf( stderr, " old_viewer=%p,", req->old_viewer );
3016 fprintf( stderr, " seqno=%08x", req->seqno );
3019 static void dump_open_token_request( const struct open_token_request *req )
3021 fprintf( stderr, " handle=%p,", req->handle );
3022 fprintf( stderr, " access=%08x,", req->access );
3023 fprintf( stderr, " attributes=%08x,", req->attributes );
3024 fprintf( stderr, " flags=%08x", req->flags );
3027 static void dump_open_token_reply( const struct open_token_reply *req )
3029 fprintf( stderr, " token=%p", req->token );
3032 static void dump_set_global_windows_request( const struct set_global_windows_request *req )
3034 fprintf( stderr, " flags=%08x,", req->flags );
3035 fprintf( stderr, " shell_window=%p,", req->shell_window );
3036 fprintf( stderr, " shell_listview=%p,", req->shell_listview );
3037 fprintf( stderr, " progman_window=%p,", req->progman_window );
3038 fprintf( stderr, " taskman_window=%p", req->taskman_window );
3041 static void dump_set_global_windows_reply( const struct set_global_windows_reply *req )
3043 fprintf( stderr, " old_shell_window=%p,", req->old_shell_window );
3044 fprintf( stderr, " old_shell_listview=%p,", req->old_shell_listview );
3045 fprintf( stderr, " old_progman_window=%p,", req->old_progman_window );
3046 fprintf( stderr, " old_taskman_window=%p", req->old_taskman_window );
3049 static void dump_adjust_token_privileges_request( const struct adjust_token_privileges_request *req )
3051 fprintf( stderr, " handle=%p,", req->handle );
3052 fprintf( stderr, " disable_all=%d,", req->disable_all );
3053 fprintf( stderr, " get_modified_state=%d,", req->get_modified_state );
3054 fprintf( stderr, " privileges=" );
3055 dump_varargs_LUID_AND_ATTRIBUTES( cur_size );
3058 static void dump_adjust_token_privileges_reply( const struct adjust_token_privileges_reply *req )
3060 fprintf( stderr, " len=%08x,", req->len );
3061 fprintf( stderr, " privileges=" );
3062 dump_varargs_LUID_AND_ATTRIBUTES( cur_size );
3065 static void dump_get_token_privileges_request( const struct get_token_privileges_request *req )
3067 fprintf( stderr, " handle=%p", req->handle );
3070 static void dump_get_token_privileges_reply( const struct get_token_privileges_reply *req )
3072 fprintf( stderr, " len=%08x,", req->len );
3073 fprintf( stderr, " privileges=" );
3074 dump_varargs_LUID_AND_ATTRIBUTES( cur_size );
3077 static void dump_check_token_privileges_request( const struct check_token_privileges_request *req )
3079 fprintf( stderr, " handle=%p,", req->handle );
3080 fprintf( stderr, " all_required=%d,", req->all_required );
3081 fprintf( stderr, " privileges=" );
3082 dump_varargs_LUID_AND_ATTRIBUTES( cur_size );
3085 static void dump_check_token_privileges_reply( const struct check_token_privileges_reply *req )
3087 fprintf( stderr, " has_privileges=%d,", req->has_privileges );
3088 fprintf( stderr, " privileges=" );
3089 dump_varargs_LUID_AND_ATTRIBUTES( cur_size );
3092 static void dump_duplicate_token_request( const struct duplicate_token_request *req )
3094 fprintf( stderr, " handle=%p,", req->handle );
3095 fprintf( stderr, " access=%08x,", req->access );
3096 fprintf( stderr, " attributes=%08x,", req->attributes );
3097 fprintf( stderr, " primary=%d,", req->primary );
3098 fprintf( stderr, " impersonation_level=%d", req->impersonation_level );
3101 static void dump_duplicate_token_reply( const struct duplicate_token_reply *req )
3103 fprintf( stderr, " new_handle=%p", req->new_handle );
3106 static void dump_access_check_request( const struct access_check_request *req )
3108 fprintf( stderr, " handle=%p,", req->handle );
3109 fprintf( stderr, " desired_access=%08x,", req->desired_access );
3110 fprintf( stderr, " mapping_read=%08x,", req->mapping_read );
3111 fprintf( stderr, " mapping_write=%08x,", req->mapping_write );
3112 fprintf( stderr, " mapping_execute=%08x,", req->mapping_execute );
3113 fprintf( stderr, " mapping_all=%08x,", req->mapping_all );
3114 fprintf( stderr, " sd=" );
3115 dump_varargs_security_descriptor( cur_size );
3118 static void dump_access_check_reply( const struct access_check_reply *req )
3120 fprintf( stderr, " access_granted=%08x,", req->access_granted );
3121 fprintf( stderr, " access_status=%08x,", req->access_status );
3122 fprintf( stderr, " privileges_len=%08x,", req->privileges_len );
3123 fprintf( stderr, " privileges=" );
3124 dump_varargs_LUID_AND_ATTRIBUTES( cur_size );
3127 static void dump_get_token_user_request( const struct get_token_user_request *req )
3129 fprintf( stderr, " handle=%p", req->handle );
3132 static void dump_get_token_user_reply( const struct get_token_user_reply *req )
3134 fprintf( stderr, " user_len=%u,", req->user_len );
3135 fprintf( stderr, " user=" );
3136 dump_varargs_SID( cur_size );
3139 static void dump_get_token_groups_request( const struct get_token_groups_request *req )
3141 fprintf( stderr, " handle=%p", req->handle );
3144 static void dump_get_token_groups_reply( const struct get_token_groups_reply *req )
3146 fprintf( stderr, " user_len=%u,", req->user_len );
3147 fprintf( stderr, " user=" );
3148 dump_varargs_token_groups( cur_size );
3151 static void dump_create_mailslot_request( const struct create_mailslot_request *req )
3153 fprintf( stderr, " access=%08x,", req->access );
3154 fprintf( stderr, " attributes=%08x,", req->attributes );
3155 fprintf( stderr, " rootdir=%p,", req->rootdir );
3156 fprintf( stderr, " max_msgsize=%08x,", req->max_msgsize );
3157 fprintf( stderr, " read_timeout=%d,", req->read_timeout );
3158 fprintf( stderr, " name=" );
3159 dump_varargs_unicode_str( cur_size );
3162 static void dump_create_mailslot_reply( const struct create_mailslot_reply *req )
3164 fprintf( stderr, " handle=%p", req->handle );
3167 static void dump_open_mailslot_request( const struct open_mailslot_request *req )
3169 fprintf( stderr, " access=%08x,", req->access );
3170 fprintf( stderr, " attributes=%08x,", req->attributes );
3171 fprintf( stderr, " rootdir=%p,", req->rootdir );
3172 fprintf( stderr, " sharing=%08x,", req->sharing );
3173 fprintf( stderr, " name=" );
3174 dump_varargs_unicode_str( cur_size );
3177 static void dump_open_mailslot_reply( const struct open_mailslot_reply *req )
3179 fprintf( stderr, " handle=%p", req->handle );
3182 static void dump_set_mailslot_info_request( const struct set_mailslot_info_request *req )
3184 fprintf( stderr, " handle=%p,", req->handle );
3185 fprintf( stderr, " flags=%08x,", req->flags );
3186 fprintf( stderr, " read_timeout=%d", req->read_timeout );
3189 static void dump_set_mailslot_info_reply( const struct set_mailslot_info_reply *req )
3191 fprintf( stderr, " max_msgsize=%08x,", req->max_msgsize );
3192 fprintf( stderr, " read_timeout=%d", req->read_timeout );
3195 static void dump_create_directory_request( const struct create_directory_request *req )
3197 fprintf( stderr, " access=%08x,", req->access );
3198 fprintf( stderr, " attributes=%08x,", req->attributes );
3199 fprintf( stderr, " rootdir=%p,", req->rootdir );
3200 fprintf( stderr, " directory_name=" );
3201 dump_varargs_unicode_str( cur_size );
3204 static void dump_create_directory_reply( const struct create_directory_reply *req )
3206 fprintf( stderr, " handle=%p", req->handle );
3209 static void dump_open_directory_request( const struct open_directory_request *req )
3211 fprintf( stderr, " access=%08x,", req->access );
3212 fprintf( stderr, " attributes=%08x,", req->attributes );
3213 fprintf( stderr, " rootdir=%p,", req->rootdir );
3214 fprintf( stderr, " directory_name=" );
3215 dump_varargs_unicode_str( cur_size );
3218 static void dump_open_directory_reply( const struct open_directory_reply *req )
3220 fprintf( stderr, " handle=%p", req->handle );
3223 static void dump_create_symlink_request( const struct create_symlink_request *req )
3225 fprintf( stderr, " access=%08x,", req->access );
3226 fprintf( stderr, " attributes=%08x,", req->attributes );
3227 fprintf( stderr, " rootdir=%p,", req->rootdir );
3228 fprintf( stderr, " name_len=%u,", req->name_len );
3229 fprintf( stderr, " name=" );
3230 dump_varargs_unicode_str( min(cur_size,req->name_len) );
3231 fputc( ',', stderr );
3232 fprintf( stderr, " target_name=" );
3233 dump_varargs_unicode_str( cur_size );
3236 static void dump_create_symlink_reply( const struct create_symlink_reply *req )
3238 fprintf( stderr, " handle=%p", req->handle );
3241 static void dump_open_symlink_request( const struct open_symlink_request *req )
3243 fprintf( stderr, " access=%08x,", req->access );
3244 fprintf( stderr, " attributes=%08x,", req->attributes );
3245 fprintf( stderr, " rootdir=%p,", req->rootdir );
3246 fprintf( stderr, " name=" );
3247 dump_varargs_unicode_str( cur_size );
3250 static void dump_open_symlink_reply( const struct open_symlink_reply *req )
3252 fprintf( stderr, " handle=%p", req->handle );
3255 static void dump_query_symlink_request( const struct query_symlink_request *req )
3257 fprintf( stderr, " handle=%p", req->handle );
3260 static void dump_query_symlink_reply( const struct query_symlink_reply *req )
3262 fprintf( stderr, " target_name=" );
3263 dump_varargs_unicode_str( cur_size );
3266 static const dump_func req_dumpers[REQ_NB_REQUESTS] = {
3267 (dump_func)dump_new_process_request,
3268 (dump_func)dump_get_new_process_info_request,
3269 (dump_func)dump_new_thread_request,
3270 (dump_func)dump_get_startup_info_request,
3271 (dump_func)dump_init_process_done_request,
3272 (dump_func)dump_init_thread_request,
3273 (dump_func)dump_terminate_process_request,
3274 (dump_func)dump_terminate_thread_request,
3275 (dump_func)dump_get_process_info_request,
3276 (dump_func)dump_set_process_info_request,
3277 (dump_func)dump_get_thread_info_request,
3278 (dump_func)dump_set_thread_info_request,
3279 (dump_func)dump_get_dll_info_request,
3280 (dump_func)dump_suspend_thread_request,
3281 (dump_func)dump_resume_thread_request,
3282 (dump_func)dump_load_dll_request,
3283 (dump_func)dump_unload_dll_request,
3284 (dump_func)dump_queue_apc_request,
3285 (dump_func)dump_get_apc_request,
3286 (dump_func)dump_close_handle_request,
3287 (dump_func)dump_set_handle_info_request,
3288 (dump_func)dump_dup_handle_request,
3289 (dump_func)dump_open_process_request,
3290 (dump_func)dump_open_thread_request,
3291 (dump_func)dump_select_request,
3292 (dump_func)dump_create_event_request,
3293 (dump_func)dump_event_op_request,
3294 (dump_func)dump_open_event_request,
3295 (dump_func)dump_create_mutex_request,
3296 (dump_func)dump_release_mutex_request,
3297 (dump_func)dump_open_mutex_request,
3298 (dump_func)dump_create_semaphore_request,
3299 (dump_func)dump_release_semaphore_request,
3300 (dump_func)dump_open_semaphore_request,
3301 (dump_func)dump_create_file_request,
3302 (dump_func)dump_open_file_object_request,
3303 (dump_func)dump_alloc_file_handle_request,
3304 (dump_func)dump_get_handle_fd_request,
3305 (dump_func)dump_flush_file_request,
3306 (dump_func)dump_lock_file_request,
3307 (dump_func)dump_unlock_file_request,
3308 (dump_func)dump_unmount_device_request,
3309 (dump_func)dump_create_socket_request,
3310 (dump_func)dump_accept_socket_request,
3311 (dump_func)dump_set_socket_event_request,
3312 (dump_func)dump_get_socket_event_request,
3313 (dump_func)dump_enable_socket_event_request,
3314 (dump_func)dump_set_socket_deferred_request,
3315 (dump_func)dump_alloc_console_request,
3316 (dump_func)dump_free_console_request,
3317 (dump_func)dump_get_console_renderer_events_request,
3318 (dump_func)dump_open_console_request,
3319 (dump_func)dump_get_console_wait_event_request,
3320 (dump_func)dump_get_console_mode_request,
3321 (dump_func)dump_set_console_mode_request,
3322 (dump_func)dump_set_console_input_info_request,
3323 (dump_func)dump_get_console_input_info_request,
3324 (dump_func)dump_append_console_input_history_request,
3325 (dump_func)dump_get_console_input_history_request,
3326 (dump_func)dump_create_console_output_request,
3327 (dump_func)dump_set_console_output_info_request,
3328 (dump_func)dump_get_console_output_info_request,
3329 (dump_func)dump_write_console_input_request,
3330 (dump_func)dump_read_console_input_request,
3331 (dump_func)dump_write_console_output_request,
3332 (dump_func)dump_fill_console_output_request,
3333 (dump_func)dump_read_console_output_request,
3334 (dump_func)dump_move_console_output_request,
3335 (dump_func)dump_send_console_signal_request,
3336 (dump_func)dump_read_directory_changes_request,
3337 (dump_func)dump_read_change_request,
3338 (dump_func)dump_create_mapping_request,
3339 (dump_func)dump_open_mapping_request,
3340 (dump_func)dump_get_mapping_info_request,
3341 (dump_func)dump_create_snapshot_request,
3342 (dump_func)dump_next_process_request,
3343 (dump_func)dump_next_thread_request,
3344 (dump_func)dump_next_module_request,
3345 (dump_func)dump_wait_debug_event_request,
3346 (dump_func)dump_queue_exception_event_request,
3347 (dump_func)dump_get_exception_status_request,
3348 (dump_func)dump_output_debug_string_request,
3349 (dump_func)dump_continue_debug_event_request,
3350 (dump_func)dump_debug_process_request,
3351 (dump_func)dump_debug_break_request,
3352 (dump_func)dump_set_debugger_kill_on_exit_request,
3353 (dump_func)dump_read_process_memory_request,
3354 (dump_func)dump_write_process_memory_request,
3355 (dump_func)dump_create_key_request,
3356 (dump_func)dump_open_key_request,
3357 (dump_func)dump_delete_key_request,
3358 (dump_func)dump_flush_key_request,
3359 (dump_func)dump_enum_key_request,
3360 (dump_func)dump_set_key_value_request,
3361 (dump_func)dump_get_key_value_request,
3362 (dump_func)dump_enum_key_value_request,
3363 (dump_func)dump_delete_key_value_request,
3364 (dump_func)dump_load_registry_request,
3365 (dump_func)dump_unload_registry_request,
3366 (dump_func)dump_save_registry_request,
3367 (dump_func)dump_set_registry_notification_request,
3368 (dump_func)dump_create_timer_request,
3369 (dump_func)dump_open_timer_request,
3370 (dump_func)dump_set_timer_request,
3371 (dump_func)dump_cancel_timer_request,
3372 (dump_func)dump_get_timer_info_request,
3373 (dump_func)dump_get_thread_context_request,
3374 (dump_func)dump_set_thread_context_request,
3375 (dump_func)dump_get_selector_entry_request,
3376 (dump_func)dump_add_atom_request,
3377 (dump_func)dump_delete_atom_request,
3378 (dump_func)dump_find_atom_request,
3379 (dump_func)dump_get_atom_information_request,
3380 (dump_func)dump_set_atom_information_request,
3381 (dump_func)dump_empty_atom_table_request,
3382 (dump_func)dump_init_atom_table_request,
3383 (dump_func)dump_get_msg_queue_request,
3384 (dump_func)dump_set_queue_mask_request,
3385 (dump_func)dump_get_queue_status_request,
3386 (dump_func)dump_get_process_idle_event_request,
3387 (dump_func)dump_send_message_request,
3388 (dump_func)dump_post_quit_message_request,
3389 (dump_func)dump_send_hardware_message_request,
3390 (dump_func)dump_get_message_request,
3391 (dump_func)dump_reply_message_request,
3392 (dump_func)dump_accept_hardware_message_request,
3393 (dump_func)dump_get_message_reply_request,
3394 (dump_func)dump_set_win_timer_request,
3395 (dump_func)dump_kill_win_timer_request,
3396 (dump_func)dump_get_serial_info_request,
3397 (dump_func)dump_set_serial_info_request,
3398 (dump_func)dump_register_async_request,
3399 (dump_func)dump_cancel_async_request,
3400 (dump_func)dump_create_named_pipe_request,
3401 (dump_func)dump_open_named_pipe_request,
3402 (dump_func)dump_connect_named_pipe_request,
3403 (dump_func)dump_wait_named_pipe_request,
3404 (dump_func)dump_disconnect_named_pipe_request,
3405 (dump_func)dump_get_named_pipe_info_request,
3406 (dump_func)dump_create_window_request,
3407 (dump_func)dump_destroy_window_request,
3408 (dump_func)dump_get_desktop_window_request,
3409 (dump_func)dump_set_window_owner_request,
3410 (dump_func)dump_get_window_info_request,
3411 (dump_func)dump_set_window_info_request,
3412 (dump_func)dump_set_parent_request,
3413 (dump_func)dump_get_window_parents_request,
3414 (dump_func)dump_get_window_children_request,
3415 (dump_func)dump_get_window_children_from_point_request,
3416 (dump_func)dump_get_window_tree_request,
3417 (dump_func)dump_set_window_pos_request,
3418 (dump_func)dump_get_window_rectangles_request,
3419 (dump_func)dump_get_window_text_request,
3420 (dump_func)dump_set_window_text_request,
3421 (dump_func)dump_get_windows_offset_request,
3422 (dump_func)dump_get_visible_region_request,
3423 (dump_func)dump_get_window_region_request,
3424 (dump_func)dump_set_window_region_request,
3425 (dump_func)dump_get_update_region_request,
3426 (dump_func)dump_update_window_zorder_request,
3427 (dump_func)dump_redraw_window_request,
3428 (dump_func)dump_set_window_property_request,
3429 (dump_func)dump_remove_window_property_request,
3430 (dump_func)dump_get_window_property_request,
3431 (dump_func)dump_get_window_properties_request,
3432 (dump_func)dump_create_winstation_request,
3433 (dump_func)dump_open_winstation_request,
3434 (dump_func)dump_close_winstation_request,
3435 (dump_func)dump_get_process_winstation_request,
3436 (dump_func)dump_set_process_winstation_request,
3437 (dump_func)dump_create_desktop_request,
3438 (dump_func)dump_open_desktop_request,
3439 (dump_func)dump_close_desktop_request,
3440 (dump_func)dump_get_thread_desktop_request,
3441 (dump_func)dump_set_thread_desktop_request,
3442 (dump_func)dump_set_user_object_info_request,
3443 (dump_func)dump_attach_thread_input_request,
3444 (dump_func)dump_get_thread_input_request,
3445 (dump_func)dump_get_last_input_time_request,
3446 (dump_func)dump_get_key_state_request,
3447 (dump_func)dump_set_key_state_request,
3448 (dump_func)dump_set_foreground_window_request,
3449 (dump_func)dump_set_focus_window_request,
3450 (dump_func)dump_set_active_window_request,
3451 (dump_func)dump_set_capture_window_request,
3452 (dump_func)dump_set_caret_window_request,
3453 (dump_func)dump_set_caret_info_request,
3454 (dump_func)dump_set_hook_request,
3455 (dump_func)dump_remove_hook_request,
3456 (dump_func)dump_start_hook_chain_request,
3457 (dump_func)dump_finish_hook_chain_request,
3458 (dump_func)dump_get_hook_info_request,
3459 (dump_func)dump_create_class_request,
3460 (dump_func)dump_destroy_class_request,
3461 (dump_func)dump_set_class_info_request,
3462 (dump_func)dump_set_clipboard_info_request,
3463 (dump_func)dump_open_token_request,
3464 (dump_func)dump_set_global_windows_request,
3465 (dump_func)dump_adjust_token_privileges_request,
3466 (dump_func)dump_get_token_privileges_request,
3467 (dump_func)dump_check_token_privileges_request,
3468 (dump_func)dump_duplicate_token_request,
3469 (dump_func)dump_access_check_request,
3470 (dump_func)dump_get_token_user_request,
3471 (dump_func)dump_get_token_groups_request,
3472 (dump_func)dump_create_mailslot_request,
3473 (dump_func)dump_open_mailslot_request,
3474 (dump_func)dump_set_mailslot_info_request,
3475 (dump_func)dump_create_directory_request,
3476 (dump_func)dump_open_directory_request,
3477 (dump_func)dump_create_symlink_request,
3478 (dump_func)dump_open_symlink_request,
3479 (dump_func)dump_query_symlink_request,
3482 static const dump_func reply_dumpers[REQ_NB_REQUESTS] = {
3483 (dump_func)dump_new_process_reply,
3484 (dump_func)dump_get_new_process_info_reply,
3485 (dump_func)dump_new_thread_reply,
3486 (dump_func)dump_get_startup_info_reply,
3487 (dump_func)0,
3488 (dump_func)dump_init_thread_reply,
3489 (dump_func)dump_terminate_process_reply,
3490 (dump_func)dump_terminate_thread_reply,
3491 (dump_func)dump_get_process_info_reply,
3492 (dump_func)0,
3493 (dump_func)dump_get_thread_info_reply,
3494 (dump_func)0,
3495 (dump_func)dump_get_dll_info_reply,
3496 (dump_func)dump_suspend_thread_reply,
3497 (dump_func)dump_resume_thread_reply,
3498 (dump_func)0,
3499 (dump_func)0,
3500 (dump_func)0,
3501 (dump_func)dump_get_apc_reply,
3502 (dump_func)0,
3503 (dump_func)dump_set_handle_info_reply,
3504 (dump_func)dump_dup_handle_reply,
3505 (dump_func)dump_open_process_reply,
3506 (dump_func)dump_open_thread_reply,
3507 (dump_func)0,
3508 (dump_func)dump_create_event_reply,
3509 (dump_func)0,
3510 (dump_func)dump_open_event_reply,
3511 (dump_func)dump_create_mutex_reply,
3512 (dump_func)dump_release_mutex_reply,
3513 (dump_func)dump_open_mutex_reply,
3514 (dump_func)dump_create_semaphore_reply,
3515 (dump_func)dump_release_semaphore_reply,
3516 (dump_func)dump_open_semaphore_reply,
3517 (dump_func)dump_create_file_reply,
3518 (dump_func)dump_open_file_object_reply,
3519 (dump_func)dump_alloc_file_handle_reply,
3520 (dump_func)dump_get_handle_fd_reply,
3521 (dump_func)dump_flush_file_reply,
3522 (dump_func)dump_lock_file_reply,
3523 (dump_func)0,
3524 (dump_func)0,
3525 (dump_func)dump_create_socket_reply,
3526 (dump_func)dump_accept_socket_reply,
3527 (dump_func)0,
3528 (dump_func)dump_get_socket_event_reply,
3529 (dump_func)0,
3530 (dump_func)0,
3531 (dump_func)dump_alloc_console_reply,
3532 (dump_func)0,
3533 (dump_func)dump_get_console_renderer_events_reply,
3534 (dump_func)dump_open_console_reply,
3535 (dump_func)dump_get_console_wait_event_reply,
3536 (dump_func)dump_get_console_mode_reply,
3537 (dump_func)0,
3538 (dump_func)0,
3539 (dump_func)dump_get_console_input_info_reply,
3540 (dump_func)0,
3541 (dump_func)dump_get_console_input_history_reply,
3542 (dump_func)dump_create_console_output_reply,
3543 (dump_func)0,
3544 (dump_func)dump_get_console_output_info_reply,
3545 (dump_func)dump_write_console_input_reply,
3546 (dump_func)dump_read_console_input_reply,
3547 (dump_func)dump_write_console_output_reply,
3548 (dump_func)dump_fill_console_output_reply,
3549 (dump_func)dump_read_console_output_reply,
3550 (dump_func)0,
3551 (dump_func)0,
3552 (dump_func)0,
3553 (dump_func)dump_read_change_reply,
3554 (dump_func)dump_create_mapping_reply,
3555 (dump_func)dump_open_mapping_reply,
3556 (dump_func)dump_get_mapping_info_reply,
3557 (dump_func)dump_create_snapshot_reply,
3558 (dump_func)dump_next_process_reply,
3559 (dump_func)dump_next_thread_reply,
3560 (dump_func)dump_next_module_reply,
3561 (dump_func)dump_wait_debug_event_reply,
3562 (dump_func)dump_queue_exception_event_reply,
3563 (dump_func)dump_get_exception_status_reply,
3564 (dump_func)0,
3565 (dump_func)0,
3566 (dump_func)0,
3567 (dump_func)dump_debug_break_reply,
3568 (dump_func)0,
3569 (dump_func)dump_read_process_memory_reply,
3570 (dump_func)0,
3571 (dump_func)dump_create_key_reply,
3572 (dump_func)dump_open_key_reply,
3573 (dump_func)0,
3574 (dump_func)0,
3575 (dump_func)dump_enum_key_reply,
3576 (dump_func)0,
3577 (dump_func)dump_get_key_value_reply,
3578 (dump_func)dump_enum_key_value_reply,
3579 (dump_func)0,
3580 (dump_func)0,
3581 (dump_func)0,
3582 (dump_func)0,
3583 (dump_func)0,
3584 (dump_func)dump_create_timer_reply,
3585 (dump_func)dump_open_timer_reply,
3586 (dump_func)dump_set_timer_reply,
3587 (dump_func)dump_cancel_timer_reply,
3588 (dump_func)dump_get_timer_info_reply,
3589 (dump_func)dump_get_thread_context_reply,
3590 (dump_func)dump_set_thread_context_reply,
3591 (dump_func)dump_get_selector_entry_reply,
3592 (dump_func)dump_add_atom_reply,
3593 (dump_func)0,
3594 (dump_func)dump_find_atom_reply,
3595 (dump_func)dump_get_atom_information_reply,
3596 (dump_func)0,
3597 (dump_func)0,
3598 (dump_func)dump_init_atom_table_reply,
3599 (dump_func)dump_get_msg_queue_reply,
3600 (dump_func)dump_set_queue_mask_reply,
3601 (dump_func)dump_get_queue_status_reply,
3602 (dump_func)dump_get_process_idle_event_reply,
3603 (dump_func)0,
3604 (dump_func)0,
3605 (dump_func)0,
3606 (dump_func)dump_get_message_reply,
3607 (dump_func)0,
3608 (dump_func)0,
3609 (dump_func)dump_get_message_reply_reply,
3610 (dump_func)dump_set_win_timer_reply,
3611 (dump_func)0,
3612 (dump_func)dump_get_serial_info_reply,
3613 (dump_func)0,
3614 (dump_func)0,
3615 (dump_func)0,
3616 (dump_func)dump_create_named_pipe_reply,
3617 (dump_func)dump_open_named_pipe_reply,
3618 (dump_func)0,
3619 (dump_func)0,
3620 (dump_func)0,
3621 (dump_func)dump_get_named_pipe_info_reply,
3622 (dump_func)dump_create_window_reply,
3623 (dump_func)0,
3624 (dump_func)dump_get_desktop_window_reply,
3625 (dump_func)dump_set_window_owner_reply,
3626 (dump_func)dump_get_window_info_reply,
3627 (dump_func)dump_set_window_info_reply,
3628 (dump_func)dump_set_parent_reply,
3629 (dump_func)dump_get_window_parents_reply,
3630 (dump_func)dump_get_window_children_reply,
3631 (dump_func)dump_get_window_children_from_point_reply,
3632 (dump_func)dump_get_window_tree_reply,
3633 (dump_func)dump_set_window_pos_reply,
3634 (dump_func)dump_get_window_rectangles_reply,
3635 (dump_func)dump_get_window_text_reply,
3636 (dump_func)0,
3637 (dump_func)dump_get_windows_offset_reply,
3638 (dump_func)dump_get_visible_region_reply,
3639 (dump_func)dump_get_window_region_reply,
3640 (dump_func)0,
3641 (dump_func)dump_get_update_region_reply,
3642 (dump_func)0,
3643 (dump_func)0,
3644 (dump_func)0,
3645 (dump_func)dump_remove_window_property_reply,
3646 (dump_func)dump_get_window_property_reply,
3647 (dump_func)dump_get_window_properties_reply,
3648 (dump_func)dump_create_winstation_reply,
3649 (dump_func)dump_open_winstation_reply,
3650 (dump_func)0,
3651 (dump_func)dump_get_process_winstation_reply,
3652 (dump_func)0,
3653 (dump_func)dump_create_desktop_reply,
3654 (dump_func)dump_open_desktop_reply,
3655 (dump_func)0,
3656 (dump_func)dump_get_thread_desktop_reply,
3657 (dump_func)0,
3658 (dump_func)dump_set_user_object_info_reply,
3659 (dump_func)0,
3660 (dump_func)dump_get_thread_input_reply,
3661 (dump_func)dump_get_last_input_time_reply,
3662 (dump_func)dump_get_key_state_reply,
3663 (dump_func)0,
3664 (dump_func)dump_set_foreground_window_reply,
3665 (dump_func)dump_set_focus_window_reply,
3666 (dump_func)dump_set_active_window_reply,
3667 (dump_func)dump_set_capture_window_reply,
3668 (dump_func)dump_set_caret_window_reply,
3669 (dump_func)dump_set_caret_info_reply,
3670 (dump_func)dump_set_hook_reply,
3671 (dump_func)dump_remove_hook_reply,
3672 (dump_func)dump_start_hook_chain_reply,
3673 (dump_func)0,
3674 (dump_func)dump_get_hook_info_reply,
3675 (dump_func)0,
3676 (dump_func)dump_destroy_class_reply,
3677 (dump_func)dump_set_class_info_reply,
3678 (dump_func)dump_set_clipboard_info_reply,
3679 (dump_func)dump_open_token_reply,
3680 (dump_func)dump_set_global_windows_reply,
3681 (dump_func)dump_adjust_token_privileges_reply,
3682 (dump_func)dump_get_token_privileges_reply,
3683 (dump_func)dump_check_token_privileges_reply,
3684 (dump_func)dump_duplicate_token_reply,
3685 (dump_func)dump_access_check_reply,
3686 (dump_func)dump_get_token_user_reply,
3687 (dump_func)dump_get_token_groups_reply,
3688 (dump_func)dump_create_mailslot_reply,
3689 (dump_func)dump_open_mailslot_reply,
3690 (dump_func)dump_set_mailslot_info_reply,
3691 (dump_func)dump_create_directory_reply,
3692 (dump_func)dump_open_directory_reply,
3693 (dump_func)dump_create_symlink_reply,
3694 (dump_func)dump_open_symlink_reply,
3695 (dump_func)dump_query_symlink_reply,
3698 static const char * const req_names[REQ_NB_REQUESTS] = {
3699 "new_process",
3700 "get_new_process_info",
3701 "new_thread",
3702 "get_startup_info",
3703 "init_process_done",
3704 "init_thread",
3705 "terminate_process",
3706 "terminate_thread",
3707 "get_process_info",
3708 "set_process_info",
3709 "get_thread_info",
3710 "set_thread_info",
3711 "get_dll_info",
3712 "suspend_thread",
3713 "resume_thread",
3714 "load_dll",
3715 "unload_dll",
3716 "queue_apc",
3717 "get_apc",
3718 "close_handle",
3719 "set_handle_info",
3720 "dup_handle",
3721 "open_process",
3722 "open_thread",
3723 "select",
3724 "create_event",
3725 "event_op",
3726 "open_event",
3727 "create_mutex",
3728 "release_mutex",
3729 "open_mutex",
3730 "create_semaphore",
3731 "release_semaphore",
3732 "open_semaphore",
3733 "create_file",
3734 "open_file_object",
3735 "alloc_file_handle",
3736 "get_handle_fd",
3737 "flush_file",
3738 "lock_file",
3739 "unlock_file",
3740 "unmount_device",
3741 "create_socket",
3742 "accept_socket",
3743 "set_socket_event",
3744 "get_socket_event",
3745 "enable_socket_event",
3746 "set_socket_deferred",
3747 "alloc_console",
3748 "free_console",
3749 "get_console_renderer_events",
3750 "open_console",
3751 "get_console_wait_event",
3752 "get_console_mode",
3753 "set_console_mode",
3754 "set_console_input_info",
3755 "get_console_input_info",
3756 "append_console_input_history",
3757 "get_console_input_history",
3758 "create_console_output",
3759 "set_console_output_info",
3760 "get_console_output_info",
3761 "write_console_input",
3762 "read_console_input",
3763 "write_console_output",
3764 "fill_console_output",
3765 "read_console_output",
3766 "move_console_output",
3767 "send_console_signal",
3768 "read_directory_changes",
3769 "read_change",
3770 "create_mapping",
3771 "open_mapping",
3772 "get_mapping_info",
3773 "create_snapshot",
3774 "next_process",
3775 "next_thread",
3776 "next_module",
3777 "wait_debug_event",
3778 "queue_exception_event",
3779 "get_exception_status",
3780 "output_debug_string",
3781 "continue_debug_event",
3782 "debug_process",
3783 "debug_break",
3784 "set_debugger_kill_on_exit",
3785 "read_process_memory",
3786 "write_process_memory",
3787 "create_key",
3788 "open_key",
3789 "delete_key",
3790 "flush_key",
3791 "enum_key",
3792 "set_key_value",
3793 "get_key_value",
3794 "enum_key_value",
3795 "delete_key_value",
3796 "load_registry",
3797 "unload_registry",
3798 "save_registry",
3799 "set_registry_notification",
3800 "create_timer",
3801 "open_timer",
3802 "set_timer",
3803 "cancel_timer",
3804 "get_timer_info",
3805 "get_thread_context",
3806 "set_thread_context",
3807 "get_selector_entry",
3808 "add_atom",
3809 "delete_atom",
3810 "find_atom",
3811 "get_atom_information",
3812 "set_atom_information",
3813 "empty_atom_table",
3814 "init_atom_table",
3815 "get_msg_queue",
3816 "set_queue_mask",
3817 "get_queue_status",
3818 "get_process_idle_event",
3819 "send_message",
3820 "post_quit_message",
3821 "send_hardware_message",
3822 "get_message",
3823 "reply_message",
3824 "accept_hardware_message",
3825 "get_message_reply",
3826 "set_win_timer",
3827 "kill_win_timer",
3828 "get_serial_info",
3829 "set_serial_info",
3830 "register_async",
3831 "cancel_async",
3832 "create_named_pipe",
3833 "open_named_pipe",
3834 "connect_named_pipe",
3835 "wait_named_pipe",
3836 "disconnect_named_pipe",
3837 "get_named_pipe_info",
3838 "create_window",
3839 "destroy_window",
3840 "get_desktop_window",
3841 "set_window_owner",
3842 "get_window_info",
3843 "set_window_info",
3844 "set_parent",
3845 "get_window_parents",
3846 "get_window_children",
3847 "get_window_children_from_point",
3848 "get_window_tree",
3849 "set_window_pos",
3850 "get_window_rectangles",
3851 "get_window_text",
3852 "set_window_text",
3853 "get_windows_offset",
3854 "get_visible_region",
3855 "get_window_region",
3856 "set_window_region",
3857 "get_update_region",
3858 "update_window_zorder",
3859 "redraw_window",
3860 "set_window_property",
3861 "remove_window_property",
3862 "get_window_property",
3863 "get_window_properties",
3864 "create_winstation",
3865 "open_winstation",
3866 "close_winstation",
3867 "get_process_winstation",
3868 "set_process_winstation",
3869 "create_desktop",
3870 "open_desktop",
3871 "close_desktop",
3872 "get_thread_desktop",
3873 "set_thread_desktop",
3874 "set_user_object_info",
3875 "attach_thread_input",
3876 "get_thread_input",
3877 "get_last_input_time",
3878 "get_key_state",
3879 "set_key_state",
3880 "set_foreground_window",
3881 "set_focus_window",
3882 "set_active_window",
3883 "set_capture_window",
3884 "set_caret_window",
3885 "set_caret_info",
3886 "set_hook",
3887 "remove_hook",
3888 "start_hook_chain",
3889 "finish_hook_chain",
3890 "get_hook_info",
3891 "create_class",
3892 "destroy_class",
3893 "set_class_info",
3894 "set_clipboard_info",
3895 "open_token",
3896 "set_global_windows",
3897 "adjust_token_privileges",
3898 "get_token_privileges",
3899 "check_token_privileges",
3900 "duplicate_token",
3901 "access_check",
3902 "get_token_user",
3903 "get_token_groups",
3904 "create_mailslot",
3905 "open_mailslot",
3906 "set_mailslot_info",
3907 "create_directory",
3908 "open_directory",
3909 "create_symlink",
3910 "open_symlink",
3911 "query_symlink",
3914 static const struct
3916 const char *name;
3917 unsigned int value;
3918 } status_names[] =
3920 { "ACCESS_DENIED", STATUS_ACCESS_DENIED },
3921 { "ACCESS_VIOLATION", STATUS_ACCESS_VIOLATION },
3922 { "ALIAS_EXISTS", STATUS_ALIAS_EXISTS },
3923 { "BAD_DEVICE_TYPE", STATUS_BAD_DEVICE_TYPE },
3924 { "BUFFER_OVERFLOW", STATUS_BUFFER_OVERFLOW },
3925 { "BUFFER_TOO_SMALL", STATUS_BUFFER_TOO_SMALL },
3926 { "CHILD_MUST_BE_VOLATILE", STATUS_CHILD_MUST_BE_VOLATILE },
3927 { "DEVICE_BUSY", STATUS_DEVICE_BUSY },
3928 { "DIRECTORY_NOT_EMPTY", STATUS_DIRECTORY_NOT_EMPTY },
3929 { "DISK_FULL", STATUS_DISK_FULL },
3930 { "DLL_NOT_FOUND", STATUS_DLL_NOT_FOUND },
3931 { "ERROR_CLASS_ALREADY_EXISTS", 0xc0010000 | ERROR_CLASS_ALREADY_EXISTS },
3932 { "ERROR_CLASS_DOES_NOT_EXIST", 0xc0010000 | ERROR_CLASS_DOES_NOT_EXIST },
3933 { "ERROR_CLASS_HAS_WINDOWS", 0xc0010000 | ERROR_CLASS_HAS_WINDOWS },
3934 { "ERROR_CLIPBOARD_NOT_OPEN", 0xc0010000 | ERROR_CLIPBOARD_NOT_OPEN },
3935 { "ERROR_INVALID_INDEX", 0xc0010000 | ERROR_INVALID_INDEX },
3936 { "ERROR_INVALID_WINDOW_HANDLE", 0xc0010000 | ERROR_INVALID_WINDOW_HANDLE },
3937 { "ERROR_SEEK", 0xc0010000 | ERROR_SEEK },
3938 { "FILE_IS_A_DIRECTORY", STATUS_FILE_IS_A_DIRECTORY },
3939 { "FILE_LOCK_CONFLICT", STATUS_FILE_LOCK_CONFLICT },
3940 { "HANDLE_NOT_CLOSABLE", STATUS_HANDLE_NOT_CLOSABLE },
3941 { "INSTANCE_NOT_AVAILABLE", STATUS_INSTANCE_NOT_AVAILABLE },
3942 { "INVALID_CID", STATUS_INVALID_CID },
3943 { "INVALID_FILE_FOR_SECTION", STATUS_INVALID_FILE_FOR_SECTION },
3944 { "INVALID_HANDLE", STATUS_INVALID_HANDLE },
3945 { "INVALID_PARAMETER", STATUS_INVALID_PARAMETER },
3946 { "IO_TIMEOUT", STATUS_IO_TIMEOUT },
3947 { "KEY_DELETED", STATUS_KEY_DELETED },
3948 { "MAPPED_FILE_SIZE_ZERO", STATUS_MAPPED_FILE_SIZE_ZERO },
3949 { "MEDIA_WRITE_PROTECTED", STATUS_MEDIA_WRITE_PROTECTED },
3950 { "MUTANT_NOT_OWNED", STATUS_MUTANT_NOT_OWNED },
3951 { "NAME_TOO_LONG", STATUS_NAME_TOO_LONG },
3952 { "NOT_ALL_ASSIGNED", STATUS_NOT_ALL_ASSIGNED },
3953 { "NOT_A_DIRECTORY", STATUS_NOT_A_DIRECTORY },
3954 { "NOT_IMPLEMENTED", STATUS_NOT_IMPLEMENTED },
3955 { "NOT_REGISTRY_FILE", STATUS_NOT_REGISTRY_FILE },
3956 { "NO_DATA_DETECTED", STATUS_NO_DATA_DETECTED },
3957 { "NO_IMPERSONATION_TOKEN", STATUS_NO_IMPERSONATION_TOKEN },
3958 { "NO_MEMORY", STATUS_NO_MEMORY },
3959 { "NO_MORE_ENTRIES", STATUS_NO_MORE_ENTRIES },
3960 { "NO_MORE_FILES", STATUS_NO_MORE_FILES },
3961 { "NO_SUCH_DEVICE", STATUS_NO_SUCH_DEVICE },
3962 { "NO_SUCH_FILE", STATUS_NO_SUCH_FILE },
3963 { "NO_TOKEN", STATUS_NO_TOKEN },
3964 { "OBJECT_NAME_COLLISION", STATUS_OBJECT_NAME_COLLISION },
3965 { "OBJECT_NAME_EXISTS", STATUS_OBJECT_NAME_EXISTS },
3966 { "OBJECT_NAME_INVALID", STATUS_OBJECT_NAME_INVALID },
3967 { "OBJECT_NAME_NOT_FOUND", STATUS_OBJECT_NAME_NOT_FOUND },
3968 { "OBJECT_PATH_INVALID", STATUS_OBJECT_PATH_INVALID },
3969 { "OBJECT_PATH_NOT_FOUND", STATUS_OBJECT_PATH_NOT_FOUND },
3970 { "OBJECT_PATH_SYNTAX_BAD", STATUS_OBJECT_PATH_SYNTAX_BAD },
3971 { "OBJECT_TYPE_MISMATCH", STATUS_OBJECT_TYPE_MISMATCH },
3972 { "PENDING", STATUS_PENDING },
3973 { "PIPE_BUSY", STATUS_PIPE_BUSY },
3974 { "PIPE_CONNECTED", STATUS_PIPE_CONNECTED },
3975 { "PIPE_DISCONNECTED", STATUS_PIPE_DISCONNECTED },
3976 { "PIPE_LISTENING", STATUS_PIPE_LISTENING },
3977 { "PIPE_NOT_AVAILABLE", STATUS_PIPE_NOT_AVAILABLE },
3978 { "PRIVILEGE_NOT_HELD", STATUS_PRIVILEGE_NOT_HELD },
3979 { "SECTION_TOO_BIG", STATUS_SECTION_TOO_BIG },
3980 { "SEMAPHORE_LIMIT_EXCEEDED", STATUS_SEMAPHORE_LIMIT_EXCEEDED },
3981 { "SHARING_VIOLATION", STATUS_SHARING_VIOLATION },
3982 { "SUSPEND_COUNT_EXCEEDED", STATUS_SUSPEND_COUNT_EXCEEDED },
3983 { "TIMEOUT", STATUS_TIMEOUT },
3984 { "TOO_MANY_OPENED_FILES", STATUS_TOO_MANY_OPENED_FILES },
3985 { "UNSUCCESSFUL", STATUS_UNSUCCESSFUL },
3986 { "VOLUME_DISMOUNTED", STATUS_VOLUME_DISMOUNTED },
3987 { "WAS_LOCKED", STATUS_WAS_LOCKED },
3988 { NULL, 0 }
3991 /* ### make_requests end ### */
3992 /* Everything above this line is generated automatically by tools/make_requests */
3994 static const char *get_status_name( unsigned int status )
3996 int i;
3997 static char buffer[10];
3999 if (status)
4001 for (i = 0; status_names[i].name; i++)
4002 if (status_names[i].value == status) return status_names[i].name;
4004 sprintf( buffer, "%x", status );
4005 return buffer;
4008 void trace_request(void)
4010 enum request req = current->req.request_header.req;
4011 if (req < REQ_NB_REQUESTS)
4013 fprintf( stderr, "%04x: %s(", current->id, req_names[req] );
4014 if (req_dumpers[req])
4016 cur_data = get_req_data();
4017 cur_size = get_req_data_size();
4018 req_dumpers[req]( &current->req );
4020 fprintf( stderr, " )\n" );
4022 else fprintf( stderr, "%04x: %d(?)\n", current->id, req );
4025 void trace_reply( enum request req, const union generic_reply *reply )
4027 if (req < REQ_NB_REQUESTS)
4029 fprintf( stderr, "%04x: %s() = %s",
4030 current->id, req_names[req], get_status_name(current->error) );
4031 if (reply_dumpers[req])
4033 fprintf( stderr, " {" );
4034 cur_data = current->reply_data;
4035 cur_size = reply->reply_header.reply_size;
4036 reply_dumpers[req]( reply );
4037 fprintf( stderr, " }" );
4039 fputc( '\n', stderr );
4041 else fprintf( stderr, "%04x: %d() = %s\n",
4042 current->id, req, get_status_name(current->error) );