crypt32: Simplify certificate creation.
[wine/multimedia.git] / server / trace.c
blob9b5cc395d90f09d828b82060e472a20e8ca5083f
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 "request.h"
40 #include "unicode.h"
42 static int cur_pos;
43 static const void *cur_data;
44 static int cur_size;
46 /* utility functions */
48 inline static void remove_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 struct timeval tv;
68 int secs, usecs;
70 if (!time->sec && !time->usec)
72 fprintf( stderr, "0" );
73 return;
75 gettimeofday( &tv, NULL );
76 secs = time->sec - tv.tv_sec;
77 if ((usecs = time->usec - tv.tv_usec) < 0)
79 usecs += 1000000;
80 secs--;
82 if (secs > 0 || (secs == 0 && usecs >= 0))
83 fprintf( stderr, "%d.%06d (+%d.%06d)", time->sec, time->usec, secs, usecs );
84 else
85 fprintf( stderr, "%d.%06d (-%d.%06d)", time->sec, time->usec, abs(secs+1), 1000000-usecs );
88 static void dump_rectangle( const rectangle_t *rect )
90 fprintf( stderr, "{%d,%d;%d,%d}",
91 rect->left, rect->top, rect->right, rect->bottom );
94 static void dump_char_info( const char_info_t *info )
96 fprintf( stderr, "{'" );
97 dump_strW( &info->ch, 1, stderr, "\'\'" );
98 fprintf( stderr, "',%04x}", info->attr );
101 static void dump_context( const CONTEXT *context )
103 #ifdef __i386__
104 fprintf( stderr, "{flags=%08lx,eax=%08lx,ebx=%08lx,ecx=%08lx,edx=%08lx,esi=%08lx,edi=%08lx,"
105 "ebp=%08lx,eip=%08lx,esp=%08lx,eflags=%08lx,cs=%04lx,ds=%04lx,es=%04lx,"
106 "fs=%04lx,gs=%04lx,dr0=%08lx,dr1=%08lx,dr2=%08lx,dr3=%08lx,dr6=%08lx,dr7=%08lx,",
107 context->ContextFlags, context->Eax, context->Ebx, context->Ecx, context->Edx,
108 context->Esi, context->Edi, context->Ebp, context->Eip, context->Esp, context->EFlags,
109 context->SegCs, context->SegDs, context->SegEs, context->SegFs, context->SegGs,
110 context->Dr0, context->Dr1, context->Dr2, context->Dr3, context->Dr6, context->Dr7 );
111 fprintf( stderr, "float=" );
112 dump_uints( (const int *)&context->FloatSave, sizeof(context->FloatSave) / sizeof(int) );
113 fprintf( stderr, "}" );
114 #else
115 dump_uints( (const int *)context, sizeof(*context) / sizeof(int) );
116 #endif
119 static void dump_exc_record( const EXCEPTION_RECORD *rec )
121 unsigned int i;
122 fprintf( stderr, "{code=%lx,flags=%lx,rec=%p,addr=%p,params={",
123 rec->ExceptionCode, rec->ExceptionFlags, rec->ExceptionRecord,
124 rec->ExceptionAddress );
125 for (i = 0; i < min(rec->NumberParameters,EXCEPTION_MAXIMUM_PARAMETERS); i++)
127 if (i) fputc( ',', stderr );
128 fprintf( stderr, "%lx", rec->ExceptionInformation[i] );
130 fputc( '}', stderr );
133 static void dump_varargs_ints( size_t size )
135 const int *data = cur_data;
136 size_t len = size / sizeof(*data);
138 fputc( '{', stderr );
139 while (len > 0)
141 fprintf( stderr, "%d", *data++ );
142 if (--len) fputc( ',', stderr );
144 fputc( '}', stderr );
145 remove_data( size );
148 static void dump_varargs_handles( size_t size )
150 const obj_handle_t *data = cur_data;
151 size_t len = size / sizeof(*data);
153 fputc( '{', stderr );
154 while (len > 0)
156 fprintf( stderr, "%p", *data++ );
157 if (--len) fputc( ',', stderr );
159 fputc( '}', stderr );
160 remove_data( size );
163 static void dump_varargs_user_handles( size_t size )
165 const user_handle_t *data = cur_data;
166 size_t len = size / sizeof(*data);
168 fputc( '{', stderr );
169 while (len > 0)
171 fprintf( stderr, "%p", *data++ );
172 if (--len) fputc( ',', stderr );
174 fputc( '}', stderr );
175 remove_data( size );
178 static void dump_varargs_bytes( size_t size )
180 const unsigned char *data = cur_data;
181 size_t len = size;
183 fputc( '{', stderr );
184 while (len > 0)
186 fprintf( stderr, "%02x", *data++ );
187 if (--len) fputc( ',', stderr );
189 fputc( '}', stderr );
190 remove_data( size );
193 static void dump_varargs_string( size_t size )
195 fprintf( stderr, "\"%.*s\"", (int)size, (const char *)cur_data );
196 remove_data( size );
199 static void dump_varargs_unicode_str( size_t size )
201 fprintf( stderr, "L\"" );
202 dump_strW( cur_data, size / sizeof(WCHAR), stderr, "\"\"" );
203 fputc( '\"', stderr );
204 remove_data( size );
207 static void dump_varargs_context( size_t size )
209 if (!size)
211 fprintf( stderr, "{}" );
212 return;
214 dump_context( cur_data );
215 remove_data( size );
218 static void dump_varargs_exc_event( size_t size )
220 const CONTEXT *ptr = cur_data;
222 if (!size)
224 fprintf( stderr, "{}" );
225 return;
227 fprintf( stderr, "{context=" );
228 dump_context( ptr );
229 fprintf( stderr, ",rec=" );
230 dump_exc_record( (const EXCEPTION_RECORD *)(ptr + 1) );
231 fputc( '}', stderr );
232 remove_data( size );
235 static void dump_varargs_debug_event( size_t size )
237 const debug_event_t *event = cur_data;
239 if (!size)
241 fprintf( stderr, "{}" );
242 return;
244 switch(event->code)
246 case EXCEPTION_DEBUG_EVENT:
247 fprintf( stderr, "{exception," );
248 dump_exc_record( &event->info.exception.record );
249 fprintf( stderr, ",first=%d}", event->info.exception.first );
250 break;
251 case CREATE_THREAD_DEBUG_EVENT:
252 fprintf( stderr, "{create_thread,thread=%p,teb=%p,start=%p}",
253 event->info.create_thread.handle, event->info.create_thread.teb,
254 event->info.create_thread.start );
255 break;
256 case CREATE_PROCESS_DEBUG_EVENT:
257 fprintf( stderr, "{create_process,file=%p,process=%p,thread=%p,base=%p,offset=%d,"
258 "size=%d,teb=%p,start=%p,name=%p,unicode=%d}",
259 event->info.create_process.file, event->info.create_process.process,
260 event->info.create_process.thread, event->info.create_process.base,
261 event->info.create_process.dbg_offset, event->info.create_process.dbg_size,
262 event->info.create_process.teb, event->info.create_process.start,
263 event->info.create_process.name, event->info.create_process.unicode );
264 break;
265 case EXIT_THREAD_DEBUG_EVENT:
266 fprintf( stderr, "{exit_thread,code=%d}", event->info.exit.exit_code );
267 break;
268 case EXIT_PROCESS_DEBUG_EVENT:
269 fprintf( stderr, "{exit_process,code=%d}", event->info.exit.exit_code );
270 break;
271 case LOAD_DLL_DEBUG_EVENT:
272 fprintf( stderr, "{load_dll,file=%p,base=%p,offset=%d,size=%d,name=%p,unicode=%d}",
273 event->info.load_dll.handle, event->info.load_dll.base,
274 event->info.load_dll.dbg_offset, event->info.load_dll.dbg_size,
275 event->info.load_dll.name, event->info.load_dll.unicode );
276 break;
277 case UNLOAD_DLL_DEBUG_EVENT:
278 fprintf( stderr, "{unload_dll,base=%p}", event->info.unload_dll.base );
279 break;
280 case OUTPUT_DEBUG_STRING_EVENT:
281 fprintf( stderr, "{output_string,data=%p,unicode=%d,len=%d}",
282 event->info.output_string.string, event->info.output_string.unicode,
283 event->info.output_string.length );
284 break;
285 case RIP_EVENT:
286 fprintf( stderr, "{rip,err=%d,type=%d}",
287 event->info.rip_info.error, event->info.rip_info.type );
288 break;
289 case 0: /* zero is the code returned on timeouts */
290 fprintf( stderr, "{}" );
291 break;
292 default:
293 fprintf( stderr, "{code=??? (%d)}", event->code );
294 break;
296 remove_data( size );
299 /* dump a unicode string contained in a buffer; helper for dump_varargs_startup_info */
300 static void dump_inline_unicode_string( const UNICODE_STRING *str, const void *data, size_t size )
302 size_t length = str->Length;
303 size_t offset = (size_t)str->Buffer;
305 if (offset >= size) return;
306 if (offset + length > size) length = size - offset;
307 dump_strW( (const WCHAR *)data + offset/sizeof(WCHAR), length/sizeof(WCHAR), stderr, "\"\"" );
310 static void dump_varargs_startup_info( size_t size )
312 const RTL_USER_PROCESS_PARAMETERS *ptr = cur_data;
313 RTL_USER_PROCESS_PARAMETERS params;
315 if (size < sizeof(params.Size))
317 fprintf( stderr, "{}" );
318 return;
320 if (size > ptr->Size) size = ptr->Size;
321 memset( &params, 0, sizeof(params) );
322 memcpy( &params, ptr, min( size, sizeof(params) ));
324 fprintf( stderr, "{AllocationSize=%lx,", params.AllocationSize );
325 fprintf( stderr, "Size=%lx,", params.Size );
326 fprintf( stderr, "Flags=%lx,", params.Flags );
327 fprintf( stderr, "DebugFlags=%lx,", params.DebugFlags );
328 fprintf( stderr, "ConsoleHandle=%p,", params.ConsoleHandle );
329 fprintf( stderr, "ConsoleFlags=%lx,", params.ConsoleFlags );
330 fprintf( stderr, "hStdInput=%p,", params.hStdInput );
331 fprintf( stderr, "hStdOutput=%p,", params.hStdOutput );
332 fprintf( stderr, "hStdError=%p,", params.hStdError );
333 fprintf( stderr, "CurrentDirectory.Handle=%p,", params.CurrentDirectory.Handle );
334 fprintf( stderr, "dwX=%ld,", params.dwX );
335 fprintf( stderr, "dwY=%ld,", params.dwY );
336 fprintf( stderr, "dwXSize=%ld,", params.dwXSize );
337 fprintf( stderr, "dwYSize=%ld,", params.dwYSize );
338 fprintf( stderr, "dwXCountChars=%ld,", params.dwXCountChars );
339 fprintf( stderr, "dwYCountChars=%ld,", params.dwYCountChars );
340 fprintf( stderr, "dwFillAttribute=%lx,", params.dwFillAttribute );
341 fprintf( stderr, "dwFlags=%lx,", params.dwFlags );
342 fprintf( stderr, "wShowWindow=%lx,", params.wShowWindow );
343 fprintf( stderr, "CurrentDirectory.DosPath=L\"" );
344 dump_inline_unicode_string( &params.CurrentDirectory.DosPath, cur_data, size );
345 fprintf( stderr, "\",DllPath=L\"" );
346 dump_inline_unicode_string( &params.DllPath, cur_data, size );
347 fprintf( stderr, "\",ImagePathName=L\"" );
348 dump_inline_unicode_string( &params.ImagePathName, cur_data, size );
349 fprintf( stderr, "\",CommandLine=L\"" );
350 dump_inline_unicode_string( &params.CommandLine, cur_data, size );
351 fprintf( stderr, "\",WindowTitle=L\"" );
352 dump_inline_unicode_string( &params.WindowTitle, cur_data, size );
353 fprintf( stderr, "\",Desktop=L\"" );
354 dump_inline_unicode_string( &params.Desktop, cur_data, size );
355 fprintf( stderr, "\",ShellInfo=L\"" );
356 dump_inline_unicode_string( &params.ShellInfo, cur_data, size );
357 fprintf( stderr, "\",RuntimeInfo=L\"" );
358 dump_inline_unicode_string( &params.RuntimeInfo, cur_data, size );
359 fprintf( stderr, "\"}" );
360 remove_data( size );
363 static void dump_varargs_input_records( size_t size )
365 const INPUT_RECORD *rec = cur_data;
366 size_t len = size / sizeof(*rec);
368 fputc( '{', stderr );
369 while (len > 0)
371 fprintf( stderr, "{%04x,...}", rec->EventType );
372 rec++;
373 if (--len) fputc( ',', stderr );
375 fputc( '}', stderr );
376 remove_data( size );
379 static void dump_varargs_rectangles( size_t size )
381 const rectangle_t *rect = cur_data;
382 size_t len = size / sizeof(*rect);
384 fputc( '{', stderr );
385 while (len > 0)
387 dump_rectangle( rect++ );
388 if (--len) fputc( ',', stderr );
390 fputc( '}', stderr );
391 remove_data( size );
394 static void dump_varargs_properties( size_t size )
396 const property_data_t *prop = cur_data;
397 size_t len = size / sizeof(*prop);
399 fputc( '{', stderr );
400 while (len > 0)
402 fprintf( stderr, "{atom=%04x,str=%d,handle=%p}",
403 prop->atom, prop->string, prop->handle );
404 prop++;
405 if (--len) fputc( ',', stderr );
407 fputc( '}', stderr );
408 remove_data( size );
411 static void dump_varargs_LUID_AND_ATTRIBUTES( size_t size )
413 const LUID_AND_ATTRIBUTES *lat = cur_data;
414 size_t len = size / sizeof(*lat);
416 fputc( '{', stderr );
417 while (len > 0)
419 fprintf( stderr, "{luid=%08lx%08lx,attr=%lx}",
420 lat->Luid.HighPart, lat->Luid.LowPart, lat->Attributes );
421 lat++;
422 if (--len) fputc( ',', stderr );
424 fputc( '}', stderr );
425 remove_data( size );
428 static void dump_inline_sid( const SID *sid, size_t size )
430 DWORD i;
432 /* security check */
433 if ((FIELD_OFFSET(SID, SubAuthority[0]) > size) ||
434 (FIELD_OFFSET(SID, SubAuthority[sid->SubAuthorityCount]) > size))
436 fprintf( stderr, "<invalid sid>" );
437 return;
440 fputc( '{', stderr );
441 fprintf( stderr, "S-%u-%lu", sid->Revision, MAKELONG(
442 MAKEWORD( sid->IdentifierAuthority.Value[5],
443 sid->IdentifierAuthority.Value[4] ),
444 MAKEWORD( sid->IdentifierAuthority.Value[3],
445 sid->IdentifierAuthority.Value[2] ) ) );
446 for (i = 0; i < sid->SubAuthorityCount; i++)
447 fprintf( stderr, "-%lu", sid->SubAuthority[i] );
448 fputc( '}', stderr );
451 static void dump_varargs_SID( size_t size )
453 const SID *sid = cur_data;
454 dump_inline_sid( sid, size );
455 remove_data( size );
458 static void dump_inline_acl( const ACL *acl, size_t size )
460 const ACE_HEADER *ace;
461 ULONG i;
462 fputc( '{', stderr );
464 if (size)
466 if (size < sizeof(ACL))
468 fprintf( stderr, "<invalid acl>}\n" );
469 return;
471 size -= sizeof(ACL);
472 ace = (const ACE_HEADER *)(acl + 1);
473 for (i = 0; i < acl->AceCount; i++)
475 const SID *sid = NULL;
476 size_t sid_size = 0;
478 if (size < sizeof(ACE_HEADER))
479 return;
480 if (size < ace->AceSize)
481 return;
482 size -= ace->AceSize;
483 if (i != 0) fputc( ',', stderr );
484 fprintf( stderr, "{AceType=" );
485 switch (ace->AceType)
487 case ACCESS_DENIED_ACE_TYPE:
488 sid = (const SID *)&((const ACCESS_DENIED_ACE *)ace)->SidStart;
489 sid_size = ace->AceSize - FIELD_OFFSET(ACCESS_DENIED_ACE, SidStart);
490 fprintf( stderr, "ACCESS_DENIED_ACE_TYPE,Mask=%lx",
491 ((const ACCESS_DENIED_ACE *)ace)->Mask );
492 break;
493 case ACCESS_ALLOWED_ACE_TYPE:
494 sid = (const SID *)&((const ACCESS_ALLOWED_ACE *)ace)->SidStart;
495 sid_size = ace->AceSize - FIELD_OFFSET(ACCESS_ALLOWED_ACE, SidStart);
496 fprintf( stderr, "ACCESS_ALLOWED_ACE_TYPE,Mask=%lx",
497 ((const ACCESS_ALLOWED_ACE *)ace)->Mask );
498 break;
499 case SYSTEM_AUDIT_ACE_TYPE:
500 sid = (const SID *)&((const SYSTEM_AUDIT_ACE *)ace)->SidStart;
501 sid_size = ace->AceSize - FIELD_OFFSET(SYSTEM_AUDIT_ACE, SidStart);
502 fprintf( stderr, "SYSTEM_AUDIT_ACE_TYPE,Mask=%lx",
503 ((const SYSTEM_AUDIT_ACE *)ace)->Mask );
504 break;
505 case SYSTEM_ALARM_ACE_TYPE:
506 sid = (const SID *)&((const SYSTEM_ALARM_ACE *)ace)->SidStart;
507 sid_size = ace->AceSize - FIELD_OFFSET(SYSTEM_ALARM_ACE, SidStart);
508 fprintf( stderr, "SYSTEM_ALARM_ACE_TYPE,Mask=%lx",
509 ((const SYSTEM_ALARM_ACE *)ace)->Mask );
510 break;
511 default:
512 fprintf( stderr, "unknown<%d>", ace->AceType );
513 break;
515 fprintf( stderr, ",AceFlags=%x,Sid=", ace->AceFlags );
516 if (sid)
517 dump_inline_sid( sid, sid_size );
518 ace = (const ACE_HEADER *)((const char *)ace + ace->AceSize);
519 fputc( '}', stderr );
522 fputc( '}', stderr );
525 static void dump_inline_security_descriptor( const struct security_descriptor *sd, size_t size )
527 fputc( '{', stderr );
528 if (size >= sizeof(struct security_descriptor))
530 size_t offset = sizeof(struct security_descriptor);
531 fprintf( stderr, "control=%08x", sd->control );
532 fprintf( stderr, ",owner=" );
533 if ((sd->owner_len > FIELD_OFFSET(SID, SubAuthority[255])) || (offset + sd->owner_len > size))
534 return;
535 dump_inline_sid( (const SID *)((const char *)sd + offset), sd->owner_len );
536 offset += sd->owner_len;
537 fprintf( stderr, ",group=" );
538 if ((sd->group_len > FIELD_OFFSET(SID, SubAuthority[255])) || (offset + sd->group_len > size))
539 return;
540 dump_inline_sid( (const SID *)((const char *)sd + offset), sd->group_len );
541 offset += sd->group_len;
542 fprintf( stderr, ",sacl=" );
543 if ((sd->sacl_len >= MAX_ACL_LEN) || (offset + sd->sacl_len > size))
544 return;
545 dump_inline_acl( (const ACL *)((const char *)sd + offset), sd->sacl_len );
546 offset += sd->sacl_len;
547 fprintf( stderr, ",dacl=" );
548 if ((sd->dacl_len >= MAX_ACL_LEN) || (offset + sd->dacl_len > size))
549 return;
550 dump_inline_acl( (const ACL *)((const char *)sd + offset), sd->dacl_len );
551 offset += sd->dacl_len;
553 fputc( '}', stderr );
556 static void dump_varargs_security_descriptor( size_t size )
558 const struct security_descriptor *sd = cur_data;
559 dump_inline_security_descriptor( sd, size );
560 remove_data( size );
563 static void dump_varargs_token_groups( size_t size )
565 const struct token_groups *tg = cur_data;
566 fputc( '{', stderr );
567 if (size >= sizeof(struct token_groups))
569 size_t offset = sizeof(*tg);
570 fprintf( stderr, "count=%08x,", tg->count );
571 if (tg->count * sizeof(unsigned int) <= size)
573 unsigned int i;
574 const unsigned int *attr = (const unsigned int *)(tg + 1);
576 offset += tg->count * sizeof(unsigned int);
578 fputc( '[', stderr );
579 for (i = 0; i < tg->count; i++)
581 const SID *sid = (const SID *)((const char *)cur_data + offset);
582 if (i != 0)
583 fputc( ',', stderr );
584 fputc( '{', stderr );
585 fprintf( stderr, "attributes=%08x", attr[i] );
586 fprintf( stderr, ",sid=" );
587 dump_inline_sid( sid, size - offset );
588 if ((offset + FIELD_OFFSET(SID, SubAuthority[0]) > size) ||
589 (offset + FIELD_OFFSET(SID, SubAuthority[sid->SubAuthorityCount]) > size))
590 break;
591 offset += FIELD_OFFSET(SID, SubAuthority[sid->SubAuthorityCount]);
592 fputc( '}', stderr );
594 fputc( ']', stderr );
597 fputc( '}', stderr );
600 typedef void (*dump_func)( const void *req );
602 /* Everything below this line is generated automatically by tools/make_requests */
603 /* ### make_requests begin ### */
605 static void dump_new_process_request( const struct new_process_request *req )
607 fprintf( stderr, " inherit_all=%d,", req->inherit_all );
608 fprintf( stderr, " create_flags=%08x,", req->create_flags );
609 fprintf( stderr, " unix_pid=%d,", req->unix_pid );
610 fprintf( stderr, " exe_file=%p,", req->exe_file );
611 fprintf( stderr, " hstdin=%p,", req->hstdin );
612 fprintf( stderr, " hstdout=%p,", req->hstdout );
613 fprintf( stderr, " hstderr=%p,", req->hstderr );
614 fprintf( stderr, " info=" );
615 dump_varargs_startup_info( cur_size );
616 fputc( ',', stderr );
617 fprintf( stderr, " env=" );
618 dump_varargs_unicode_str( cur_size );
621 static void dump_new_process_reply( const struct new_process_reply *req )
623 fprintf( stderr, " info=%p", req->info );
626 static void dump_get_new_process_info_request( const struct get_new_process_info_request *req )
628 fprintf( stderr, " info=%p,", req->info );
629 fprintf( stderr, " process_access=%08x,", req->process_access );
630 fprintf( stderr, " process_attr=%08x,", req->process_attr );
631 fprintf( stderr, " thread_access=%08x,", req->thread_access );
632 fprintf( stderr, " thread_attr=%08x", req->thread_attr );
635 static void dump_get_new_process_info_reply( const struct get_new_process_info_reply *req )
637 fprintf( stderr, " pid=%04x,", req->pid );
638 fprintf( stderr, " phandle=%p,", req->phandle );
639 fprintf( stderr, " tid=%04x,", req->tid );
640 fprintf( stderr, " thandle=%p,", req->thandle );
641 fprintf( stderr, " success=%d", req->success );
644 static void dump_new_thread_request( const struct new_thread_request *req )
646 fprintf( stderr, " access=%08x,", req->access );
647 fprintf( stderr, " attributes=%08x,", req->attributes );
648 fprintf( stderr, " suspend=%d,", req->suspend );
649 fprintf( stderr, " request_fd=%d", req->request_fd );
652 static void dump_new_thread_reply( const struct new_thread_reply *req )
654 fprintf( stderr, " tid=%04x,", req->tid );
655 fprintf( stderr, " handle=%p", req->handle );
658 static void dump_get_startup_info_request( const struct get_startup_info_request *req )
662 static void dump_get_startup_info_reply( const struct get_startup_info_reply *req )
664 fprintf( stderr, " exe_file=%p,", req->exe_file );
665 fprintf( stderr, " hstdin=%p,", req->hstdin );
666 fprintf( stderr, " hstdout=%p,", req->hstdout );
667 fprintf( stderr, " hstderr=%p,", req->hstderr );
668 fprintf( stderr, " info=" );
669 dump_varargs_startup_info( cur_size );
670 fputc( ',', stderr );
671 fprintf( stderr, " env=" );
672 dump_varargs_unicode_str( cur_size );
675 static void dump_init_process_done_request( const struct init_process_done_request *req )
677 fprintf( stderr, " module=%p,", req->module );
678 fprintf( stderr, " entry=%p,", req->entry );
679 fprintf( stderr, " gui=%d", req->gui );
682 static void dump_init_thread_request( const struct init_thread_request *req )
684 fprintf( stderr, " unix_pid=%d,", req->unix_pid );
685 fprintf( stderr, " unix_tid=%d,", req->unix_tid );
686 fprintf( stderr, " teb=%p,", req->teb );
687 fprintf( stderr, " peb=%p,", req->peb );
688 fprintf( stderr, " entry=%p,", req->entry );
689 fprintf( stderr, " ldt_copy=%p,", req->ldt_copy );
690 fprintf( stderr, " reply_fd=%d,", req->reply_fd );
691 fprintf( stderr, " wait_fd=%d,", req->wait_fd );
692 fprintf( stderr, " debug_level=%d", req->debug_level );
695 static void dump_init_thread_reply( const struct init_thread_reply *req )
697 fprintf( stderr, " pid=%04x,", req->pid );
698 fprintf( stderr, " tid=%04x,", req->tid );
699 fprintf( stderr, " info_size=%lu,", (unsigned long)req->info_size );
700 fprintf( stderr, " server_start=%ld,", (long)req->server_start );
701 fprintf( stderr, " version=%d", req->version );
704 static void dump_terminate_process_request( const struct terminate_process_request *req )
706 fprintf( stderr, " handle=%p,", req->handle );
707 fprintf( stderr, " exit_code=%d", req->exit_code );
710 static void dump_terminate_process_reply( const struct terminate_process_reply *req )
712 fprintf( stderr, " self=%d", req->self );
715 static void dump_terminate_thread_request( const struct terminate_thread_request *req )
717 fprintf( stderr, " handle=%p,", req->handle );
718 fprintf( stderr, " exit_code=%d", req->exit_code );
721 static void dump_terminate_thread_reply( const struct terminate_thread_reply *req )
723 fprintf( stderr, " self=%d,", req->self );
724 fprintf( stderr, " last=%d", req->last );
727 static void dump_get_process_info_request( const struct get_process_info_request *req )
729 fprintf( stderr, " handle=%p", req->handle );
732 static void dump_get_process_info_reply( const struct get_process_info_reply *req )
734 fprintf( stderr, " pid=%04x,", req->pid );
735 fprintf( stderr, " ppid=%04x,", req->ppid );
736 fprintf( stderr, " exit_code=%d,", req->exit_code );
737 fprintf( stderr, " priority=%d,", req->priority );
738 fprintf( stderr, " affinity=%d,", req->affinity );
739 fprintf( stderr, " peb=%p", req->peb );
742 static void dump_set_process_info_request( const struct set_process_info_request *req )
744 fprintf( stderr, " handle=%p,", req->handle );
745 fprintf( stderr, " mask=%d,", req->mask );
746 fprintf( stderr, " priority=%d,", req->priority );
747 fprintf( stderr, " affinity=%d", req->affinity );
750 static void dump_get_thread_info_request( const struct get_thread_info_request *req )
752 fprintf( stderr, " handle=%p,", req->handle );
753 fprintf( stderr, " tid_in=%04x", req->tid_in );
756 static void dump_get_thread_info_reply( const struct get_thread_info_reply *req )
758 fprintf( stderr, " pid=%04x,", req->pid );
759 fprintf( stderr, " tid=%04x,", req->tid );
760 fprintf( stderr, " teb=%p,", req->teb );
761 fprintf( stderr, " exit_code=%d,", req->exit_code );
762 fprintf( stderr, " priority=%d,", req->priority );
763 fprintf( stderr, " affinity=%d,", req->affinity );
764 fprintf( stderr, " creation_time=%ld,", (long)req->creation_time );
765 fprintf( stderr, " exit_time=%ld", (long)req->exit_time );
768 static void dump_set_thread_info_request( const struct set_thread_info_request *req )
770 fprintf( stderr, " handle=%p,", req->handle );
771 fprintf( stderr, " mask=%d,", req->mask );
772 fprintf( stderr, " priority=%d,", req->priority );
773 fprintf( stderr, " affinity=%d,", req->affinity );
774 fprintf( stderr, " token=%p", req->token );
777 static void dump_get_dll_info_request( const struct get_dll_info_request *req )
779 fprintf( stderr, " handle=%p,", req->handle );
780 fprintf( stderr, " base_address=%p", req->base_address );
783 static void dump_get_dll_info_reply( const struct get_dll_info_reply *req )
785 fprintf( stderr, " size=%lu,", (unsigned long)req->size );
786 fprintf( stderr, " entry_point=%p,", req->entry_point );
787 fprintf( stderr, " filename=" );
788 dump_varargs_unicode_str( cur_size );
791 static void dump_suspend_thread_request( const struct suspend_thread_request *req )
793 fprintf( stderr, " handle=%p", req->handle );
796 static void dump_suspend_thread_reply( const struct suspend_thread_reply *req )
798 fprintf( stderr, " count=%d", req->count );
801 static void dump_resume_thread_request( const struct resume_thread_request *req )
803 fprintf( stderr, " handle=%p", req->handle );
806 static void dump_resume_thread_reply( const struct resume_thread_reply *req )
808 fprintf( stderr, " count=%d", req->count );
811 static void dump_load_dll_request( const struct load_dll_request *req )
813 fprintf( stderr, " handle=%p,", req->handle );
814 fprintf( stderr, " base=%p,", req->base );
815 fprintf( stderr, " size=%lu,", (unsigned long)req->size );
816 fprintf( stderr, " dbg_offset=%d,", req->dbg_offset );
817 fprintf( stderr, " dbg_size=%d,", req->dbg_size );
818 fprintf( stderr, " name=%p,", req->name );
819 fprintf( stderr, " filename=" );
820 dump_varargs_unicode_str( cur_size );
823 static void dump_unload_dll_request( const struct unload_dll_request *req )
825 fprintf( stderr, " base=%p", req->base );
828 static void dump_queue_apc_request( const struct queue_apc_request *req )
830 fprintf( stderr, " handle=%p,", req->handle );
831 fprintf( stderr, " user=%d,", req->user );
832 fprintf( stderr, " func=%p,", req->func );
833 fprintf( stderr, " arg1=%p,", req->arg1 );
834 fprintf( stderr, " arg2=%p,", req->arg2 );
835 fprintf( stderr, " arg3=%p", req->arg3 );
838 static void dump_get_apc_request( const struct get_apc_request *req )
840 fprintf( stderr, " alertable=%d", req->alertable );
843 static void dump_get_apc_reply( const struct get_apc_reply *req )
845 fprintf( stderr, " func=%p,", req->func );
846 fprintf( stderr, " type=%d,", req->type );
847 fprintf( stderr, " arg1=%p,", req->arg1 );
848 fprintf( stderr, " arg2=%p,", req->arg2 );
849 fprintf( stderr, " arg3=%p", req->arg3 );
852 static void dump_close_handle_request( const struct close_handle_request *req )
854 fprintf( stderr, " handle=%p", req->handle );
857 static void dump_close_handle_reply( const struct close_handle_reply *req )
859 fprintf( stderr, " fd=%d", req->fd );
862 static void dump_set_handle_info_request( const struct set_handle_info_request *req )
864 fprintf( stderr, " handle=%p,", req->handle );
865 fprintf( stderr, " flags=%d,", req->flags );
866 fprintf( stderr, " mask=%d", req->mask );
869 static void dump_set_handle_info_reply( const struct set_handle_info_reply *req )
871 fprintf( stderr, " old_flags=%d", req->old_flags );
874 static void dump_dup_handle_request( const struct dup_handle_request *req )
876 fprintf( stderr, " src_process=%p,", req->src_process );
877 fprintf( stderr, " src_handle=%p,", req->src_handle );
878 fprintf( stderr, " dst_process=%p,", req->dst_process );
879 fprintf( stderr, " access=%08x,", req->access );
880 fprintf( stderr, " attributes=%08x,", req->attributes );
881 fprintf( stderr, " options=%08x", req->options );
884 static void dump_dup_handle_reply( const struct dup_handle_reply *req )
886 fprintf( stderr, " handle=%p,", req->handle );
887 fprintf( stderr, " fd=%d", req->fd );
890 static void dump_open_process_request( const struct open_process_request *req )
892 fprintf( stderr, " pid=%04x,", req->pid );
893 fprintf( stderr, " access=%08x,", req->access );
894 fprintf( stderr, " attributes=%08x", req->attributes );
897 static void dump_open_process_reply( const struct open_process_reply *req )
899 fprintf( stderr, " handle=%p", req->handle );
902 static void dump_open_thread_request( const struct open_thread_request *req )
904 fprintf( stderr, " tid=%04x,", req->tid );
905 fprintf( stderr, " access=%08x,", req->access );
906 fprintf( stderr, " attributes=%08x", req->attributes );
909 static void dump_open_thread_reply( const struct open_thread_reply *req )
911 fprintf( stderr, " handle=%p", req->handle );
914 static void dump_select_request( const struct select_request *req )
916 fprintf( stderr, " flags=%d,", req->flags );
917 fprintf( stderr, " cookie=%p,", req->cookie );
918 fprintf( stderr, " signal=%p,", req->signal );
919 fprintf( stderr, " timeout=" );
920 dump_abs_time( &req->timeout );
921 fprintf( stderr, "," );
922 fprintf( stderr, " handles=" );
923 dump_varargs_handles( cur_size );
926 static void dump_create_event_request( const struct create_event_request *req )
928 fprintf( stderr, " access=%08x,", req->access );
929 fprintf( stderr, " attributes=%08x,", req->attributes );
930 fprintf( stderr, " rootdir=%p,", req->rootdir );
931 fprintf( stderr, " manual_reset=%d,", req->manual_reset );
932 fprintf( stderr, " initial_state=%d,", req->initial_state );
933 fprintf( stderr, " name=" );
934 dump_varargs_unicode_str( cur_size );
937 static void dump_create_event_reply( const struct create_event_reply *req )
939 fprintf( stderr, " handle=%p", req->handle );
942 static void dump_event_op_request( const struct event_op_request *req )
944 fprintf( stderr, " handle=%p,", req->handle );
945 fprintf( stderr, " op=%d", req->op );
948 static void dump_open_event_request( const struct open_event_request *req )
950 fprintf( stderr, " access=%08x,", req->access );
951 fprintf( stderr, " attributes=%08x,", req->attributes );
952 fprintf( stderr, " rootdir=%p,", req->rootdir );
953 fprintf( stderr, " name=" );
954 dump_varargs_unicode_str( cur_size );
957 static void dump_open_event_reply( const struct open_event_reply *req )
959 fprintf( stderr, " handle=%p", req->handle );
962 static void dump_create_mutex_request( const struct create_mutex_request *req )
964 fprintf( stderr, " access=%08x,", req->access );
965 fprintf( stderr, " attributes=%08x,", req->attributes );
966 fprintf( stderr, " rootdir=%p,", req->rootdir );
967 fprintf( stderr, " owned=%d,", req->owned );
968 fprintf( stderr, " name=" );
969 dump_varargs_unicode_str( cur_size );
972 static void dump_create_mutex_reply( const struct create_mutex_reply *req )
974 fprintf( stderr, " handle=%p", req->handle );
977 static void dump_release_mutex_request( const struct release_mutex_request *req )
979 fprintf( stderr, " handle=%p", req->handle );
982 static void dump_release_mutex_reply( const struct release_mutex_reply *req )
984 fprintf( stderr, " prev_count=%08x", req->prev_count );
987 static void dump_open_mutex_request( const struct open_mutex_request *req )
989 fprintf( stderr, " access=%08x,", req->access );
990 fprintf( stderr, " attributes=%08x,", req->attributes );
991 fprintf( stderr, " rootdir=%p,", req->rootdir );
992 fprintf( stderr, " name=" );
993 dump_varargs_unicode_str( cur_size );
996 static void dump_open_mutex_reply( const struct open_mutex_reply *req )
998 fprintf( stderr, " handle=%p", req->handle );
1001 static void dump_create_semaphore_request( const struct create_semaphore_request *req )
1003 fprintf( stderr, " access=%08x,", req->access );
1004 fprintf( stderr, " attributes=%08x,", req->attributes );
1005 fprintf( stderr, " rootdir=%p,", req->rootdir );
1006 fprintf( stderr, " initial=%08x,", req->initial );
1007 fprintf( stderr, " max=%08x,", req->max );
1008 fprintf( stderr, " name=" );
1009 dump_varargs_unicode_str( cur_size );
1012 static void dump_create_semaphore_reply( const struct create_semaphore_reply *req )
1014 fprintf( stderr, " handle=%p", req->handle );
1017 static void dump_release_semaphore_request( const struct release_semaphore_request *req )
1019 fprintf( stderr, " handle=%p,", req->handle );
1020 fprintf( stderr, " count=%08x", req->count );
1023 static void dump_release_semaphore_reply( const struct release_semaphore_reply *req )
1025 fprintf( stderr, " prev_count=%08x", req->prev_count );
1028 static void dump_open_semaphore_request( const struct open_semaphore_request *req )
1030 fprintf( stderr, " access=%08x,", req->access );
1031 fprintf( stderr, " attributes=%08x,", req->attributes );
1032 fprintf( stderr, " rootdir=%p,", req->rootdir );
1033 fprintf( stderr, " name=" );
1034 dump_varargs_unicode_str( cur_size );
1037 static void dump_open_semaphore_reply( const struct open_semaphore_reply *req )
1039 fprintf( stderr, " handle=%p", req->handle );
1042 static void dump_create_file_request( const struct create_file_request *req )
1044 fprintf( stderr, " access=%08x,", req->access );
1045 fprintf( stderr, " attributes=%08x,", req->attributes );
1046 fprintf( stderr, " sharing=%08x,", req->sharing );
1047 fprintf( stderr, " create=%d,", req->create );
1048 fprintf( stderr, " options=%08x,", req->options );
1049 fprintf( stderr, " attrs=%08x,", req->attrs );
1050 fprintf( stderr, " filename=" );
1051 dump_varargs_string( cur_size );
1054 static void dump_create_file_reply( const struct create_file_reply *req )
1056 fprintf( stderr, " handle=%p", req->handle );
1059 static void dump_open_file_object_request( const struct open_file_object_request *req )
1061 fprintf( stderr, " access=%08x,", req->access );
1062 fprintf( stderr, " attributes=%08x,", req->attributes );
1063 fprintf( stderr, " rootdir=%p,", req->rootdir );
1064 fprintf( stderr, " sharing=%08x,", req->sharing );
1065 fprintf( stderr, " filename=" );
1066 dump_varargs_unicode_str( cur_size );
1069 static void dump_open_file_object_reply( const struct open_file_object_reply *req )
1071 fprintf( stderr, " handle=%p", req->handle );
1074 static void dump_alloc_file_handle_request( const struct alloc_file_handle_request *req )
1076 fprintf( stderr, " access=%08x,", req->access );
1077 fprintf( stderr, " attributes=%08x,", req->attributes );
1078 fprintf( stderr, " fd=%d", req->fd );
1081 static void dump_alloc_file_handle_reply( const struct alloc_file_handle_reply *req )
1083 fprintf( stderr, " handle=%p", req->handle );
1086 static void dump_get_handle_fd_request( const struct get_handle_fd_request *req )
1088 fprintf( stderr, " handle=%p,", req->handle );
1089 fprintf( stderr, " access=%08x", req->access );
1092 static void dump_get_handle_fd_reply( const struct get_handle_fd_reply *req )
1094 fprintf( stderr, " fd=%d,", req->fd );
1095 fprintf( stderr, " removable=%d,", req->removable );
1096 fprintf( stderr, " flags=%d", req->flags );
1099 static void dump_set_handle_fd_request( const struct set_handle_fd_request *req )
1101 fprintf( stderr, " handle=%p,", req->handle );
1102 fprintf( stderr, " fd=%d,", req->fd );
1103 fprintf( stderr, " removable=%d", req->removable );
1106 static void dump_set_handle_fd_reply( const struct set_handle_fd_reply *req )
1108 fprintf( stderr, " cur_fd=%d", req->cur_fd );
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, " handle=%p,", req->handle );
1482 fprintf( stderr, " event=%p,", req->event );
1483 fprintf( stderr, " filter=%08x,", req->filter );
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=%lu,", (unsigned long)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=%lu,", (unsigned long)req->total );
1767 fprintf( stderr, " namelen=%lu,", (unsigned long)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=%lu,", (unsigned long)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=%lu,", (unsigned long)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=%lu,", (unsigned long)req->total );
1813 fprintf( stderr, " namelen=%lu,", (unsigned long)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=%lu,", (unsigned long)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_wait_input_idle_request( const struct wait_input_idle_request *req )
2067 fprintf( stderr, " handle=%p,", req->handle );
2068 fprintf( stderr, " timeout=%d", req->timeout );
2071 static void dump_wait_input_idle_reply( const struct wait_input_idle_reply *req )
2073 fprintf( stderr, " event=%p", req->event );
2076 static void dump_send_message_request( const struct send_message_request *req )
2078 fprintf( stderr, " id=%04x,", req->id );
2079 fprintf( stderr, " type=%d,", req->type );
2080 fprintf( stderr, " flags=%d,", req->flags );
2081 fprintf( stderr, " win=%p,", req->win );
2082 fprintf( stderr, " msg=%08x,", req->msg );
2083 fprintf( stderr, " wparam=%lx,", req->wparam );
2084 fprintf( stderr, " lparam=%lx,", req->lparam );
2085 fprintf( stderr, " x=%d,", req->x );
2086 fprintf( stderr, " y=%d,", req->y );
2087 fprintf( stderr, " time=%08x,", req->time );
2088 fprintf( stderr, " info=%08x,", req->info );
2089 fprintf( stderr, " timeout=%d,", req->timeout );
2090 fprintf( stderr, " callback=%p,", req->callback );
2091 fprintf( stderr, " data=" );
2092 dump_varargs_bytes( cur_size );
2095 static void dump_post_quit_message_request( const struct post_quit_message_request *req )
2097 fprintf( stderr, " exit_code=%d", req->exit_code );
2100 static void dump_get_message_request( const struct get_message_request *req )
2102 fprintf( stderr, " flags=%d,", req->flags );
2103 fprintf( stderr, " get_win=%p,", req->get_win );
2104 fprintf( stderr, " get_first=%08x,", req->get_first );
2105 fprintf( stderr, " get_last=%08x,", req->get_last );
2106 fprintf( stderr, " hw_id=%08x", req->hw_id );
2109 static void dump_get_message_reply( const struct get_message_reply *req )
2111 fprintf( stderr, " type=%d,", req->type );
2112 fprintf( stderr, " win=%p,", req->win );
2113 fprintf( stderr, " msg=%08x,", req->msg );
2114 fprintf( stderr, " wparam=%lx,", req->wparam );
2115 fprintf( stderr, " lparam=%lx,", req->lparam );
2116 fprintf( stderr, " x=%d,", req->x );
2117 fprintf( stderr, " y=%d,", req->y );
2118 fprintf( stderr, " hook=%p,", req->hook );
2119 fprintf( stderr, " hook_proc=%p,", req->hook_proc );
2120 fprintf( stderr, " time=%08x,", req->time );
2121 fprintf( stderr, " info=%08x,", req->info );
2122 fprintf( stderr, " hw_id=%08x,", req->hw_id );
2123 fprintf( stderr, " active_hooks=%08x,", req->active_hooks );
2124 fprintf( stderr, " total=%lu,", (unsigned long)req->total );
2125 fprintf( stderr, " data=" );
2126 dump_varargs_bytes( cur_size );
2129 static void dump_reply_message_request( const struct reply_message_request *req )
2131 fprintf( stderr, " result=%08x,", req->result );
2132 fprintf( stderr, " remove=%d,", req->remove );
2133 fprintf( stderr, " data=" );
2134 dump_varargs_bytes( cur_size );
2137 static void dump_accept_hardware_message_request( const struct accept_hardware_message_request *req )
2139 fprintf( stderr, " hw_id=%08x,", req->hw_id );
2140 fprintf( stderr, " remove=%d,", req->remove );
2141 fprintf( stderr, " new_win=%p", req->new_win );
2144 static void dump_get_message_reply_request( const struct get_message_reply_request *req )
2146 fprintf( stderr, " cancel=%d", req->cancel );
2149 static void dump_get_message_reply_reply( const struct get_message_reply_reply *req )
2151 fprintf( stderr, " result=%08x,", req->result );
2152 fprintf( stderr, " data=" );
2153 dump_varargs_bytes( cur_size );
2156 static void dump_set_win_timer_request( const struct set_win_timer_request *req )
2158 fprintf( stderr, " win=%p,", req->win );
2159 fprintf( stderr, " msg=%08x,", req->msg );
2160 fprintf( stderr, " id=%08x,", req->id );
2161 fprintf( stderr, " rate=%08x,", req->rate );
2162 fprintf( stderr, " lparam=%lx", req->lparam );
2165 static void dump_set_win_timer_reply( const struct set_win_timer_reply *req )
2167 fprintf( stderr, " id=%08x", req->id );
2170 static void dump_kill_win_timer_request( const struct kill_win_timer_request *req )
2172 fprintf( stderr, " win=%p,", req->win );
2173 fprintf( stderr, " msg=%08x,", req->msg );
2174 fprintf( stderr, " id=%08x", req->id );
2177 static void dump_get_serial_info_request( const struct get_serial_info_request *req )
2179 fprintf( stderr, " handle=%p", req->handle );
2182 static void dump_get_serial_info_reply( const struct get_serial_info_reply *req )
2184 fprintf( stderr, " readinterval=%08x,", req->readinterval );
2185 fprintf( stderr, " readconst=%08x,", req->readconst );
2186 fprintf( stderr, " readmult=%08x,", req->readmult );
2187 fprintf( stderr, " writeconst=%08x,", req->writeconst );
2188 fprintf( stderr, " writemult=%08x,", req->writemult );
2189 fprintf( stderr, " eventmask=%08x", req->eventmask );
2192 static void dump_set_serial_info_request( const struct set_serial_info_request *req )
2194 fprintf( stderr, " handle=%p,", req->handle );
2195 fprintf( stderr, " flags=%d,", req->flags );
2196 fprintf( stderr, " readinterval=%08x,", req->readinterval );
2197 fprintf( stderr, " readconst=%08x,", req->readconst );
2198 fprintf( stderr, " readmult=%08x,", req->readmult );
2199 fprintf( stderr, " writeconst=%08x,", req->writeconst );
2200 fprintf( stderr, " writemult=%08x,", req->writemult );
2201 fprintf( stderr, " eventmask=%08x", req->eventmask );
2204 static void dump_register_async_request( const struct register_async_request *req )
2206 fprintf( stderr, " handle=%p,", req->handle );
2207 fprintf( stderr, " type=%d,", req->type );
2208 fprintf( stderr, " io_apc=%p,", req->io_apc );
2209 fprintf( stderr, " io_sb=%p,", req->io_sb );
2210 fprintf( stderr, " io_user=%p,", req->io_user );
2211 fprintf( stderr, " count=%d", req->count );
2214 static void dump_cancel_async_request( const struct cancel_async_request *req )
2216 fprintf( stderr, " handle=%p", req->handle );
2219 static void dump_create_named_pipe_request( const struct create_named_pipe_request *req )
2221 fprintf( stderr, " access=%08x,", req->access );
2222 fprintf( stderr, " attributes=%08x,", req->attributes );
2223 fprintf( stderr, " rootdir=%p,", req->rootdir );
2224 fprintf( stderr, " options=%08x,", req->options );
2225 fprintf( stderr, " flags=%08x,", req->flags );
2226 fprintf( stderr, " maxinstances=%08x,", req->maxinstances );
2227 fprintf( stderr, " outsize=%08x,", req->outsize );
2228 fprintf( stderr, " insize=%08x,", req->insize );
2229 fprintf( stderr, " timeout=%08x,", req->timeout );
2230 fprintf( stderr, " name=" );
2231 dump_varargs_unicode_str( cur_size );
2234 static void dump_create_named_pipe_reply( const struct create_named_pipe_reply *req )
2236 fprintf( stderr, " handle=%p", req->handle );
2239 static void dump_open_named_pipe_request( const struct open_named_pipe_request *req )
2241 fprintf( stderr, " access=%08x,", req->access );
2242 fprintf( stderr, " attributes=%08x,", req->attributes );
2243 fprintf( stderr, " rootdir=%p,", req->rootdir );
2244 fprintf( stderr, " flags=%08x,", req->flags );
2245 fprintf( stderr, " name=" );
2246 dump_varargs_unicode_str( cur_size );
2249 static void dump_open_named_pipe_reply( const struct open_named_pipe_reply *req )
2251 fprintf( stderr, " handle=%p", req->handle );
2254 static void dump_connect_named_pipe_request( const struct connect_named_pipe_request *req )
2256 fprintf( stderr, " handle=%p,", req->handle );
2257 fprintf( stderr, " event=%p,", req->event );
2258 fprintf( stderr, " func=%p", req->func );
2261 static void dump_wait_named_pipe_request( const struct wait_named_pipe_request *req )
2263 fprintf( stderr, " handle=%p,", req->handle );
2264 fprintf( stderr, " timeout=%08x,", req->timeout );
2265 fprintf( stderr, " event=%p,", req->event );
2266 fprintf( stderr, " func=%p,", req->func );
2267 fprintf( stderr, " name=" );
2268 dump_varargs_unicode_str( cur_size );
2271 static void dump_disconnect_named_pipe_request( const struct disconnect_named_pipe_request *req )
2273 fprintf( stderr, " handle=%p", req->handle );
2276 static void dump_disconnect_named_pipe_reply( const struct disconnect_named_pipe_reply *req )
2278 fprintf( stderr, " fd=%d", req->fd );
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, " handle=%p,", req->handle );
2357 fprintf( stderr, " flags=%08x,", req->flags );
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, " instance=%p,", req->instance );
2362 fprintf( stderr, " is_unicode=%d,", req->is_unicode );
2363 fprintf( stderr, " user_data=%p,", req->user_data );
2364 fprintf( stderr, " extra_offset=%d,", req->extra_offset );
2365 fprintf( stderr, " extra_size=%lu,", (unsigned long)req->extra_size );
2366 fprintf( stderr, " extra_value=%08x", 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=%p,", req->old_user_data );
2376 fprintf( stderr, " old_extra_value=%08x", 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, " handle=%p,", req->handle );
2451 fprintf( stderr, " previous=%p,", req->previous );
2452 fprintf( stderr, " flags=%08x,", req->flags );
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_org_x=%d,", req->top_org_x );
2525 fprintf( stderr, " top_org_y=%d,", req->top_org_y );
2526 fprintf( stderr, " win_org_x=%d,", req->win_org_x );
2527 fprintf( stderr, " win_org_y=%d,", req->win_org_y );
2528 fprintf( stderr, " total_size=%lu,", (unsigned long)req->total_size );
2529 fprintf( stderr, " region=" );
2530 dump_varargs_rectangles( cur_size );
2533 static void dump_get_window_region_request( const struct get_window_region_request *req )
2535 fprintf( stderr, " window=%p", req->window );
2538 static void dump_get_window_region_reply( const struct get_window_region_reply *req )
2540 fprintf( stderr, " total_size=%lu,", (unsigned long)req->total_size );
2541 fprintf( stderr, " region=" );
2542 dump_varargs_rectangles( cur_size );
2545 static void dump_set_window_region_request( const struct set_window_region_request *req )
2547 fprintf( stderr, " window=%p,", req->window );
2548 fprintf( stderr, " region=" );
2549 dump_varargs_rectangles( cur_size );
2552 static void dump_get_update_region_request( const struct get_update_region_request *req )
2554 fprintf( stderr, " window=%p,", req->window );
2555 fprintf( stderr, " from_child=%p,", req->from_child );
2556 fprintf( stderr, " flags=%08x", req->flags );
2559 static void dump_get_update_region_reply( const struct get_update_region_reply *req )
2561 fprintf( stderr, " child=%p,", req->child );
2562 fprintf( stderr, " flags=%08x,", req->flags );
2563 fprintf( stderr, " total_size=%lu,", (unsigned long)req->total_size );
2564 fprintf( stderr, " region=" );
2565 dump_varargs_rectangles( cur_size );
2568 static void dump_update_window_zorder_request( const struct update_window_zorder_request *req )
2570 fprintf( stderr, " window=%p,", req->window );
2571 fprintf( stderr, " rect=" );
2572 dump_rectangle( &req->rect );
2575 static void dump_redraw_window_request( const struct redraw_window_request *req )
2577 fprintf( stderr, " window=%p,", req->window );
2578 fprintf( stderr, " flags=%08x,", req->flags );
2579 fprintf( stderr, " region=" );
2580 dump_varargs_rectangles( cur_size );
2583 static void dump_set_window_property_request( const struct set_window_property_request *req )
2585 fprintf( stderr, " window=%p,", req->window );
2586 fprintf( stderr, " atom=%04x,", req->atom );
2587 fprintf( stderr, " handle=%p,", req->handle );
2588 fprintf( stderr, " name=" );
2589 dump_varargs_unicode_str( cur_size );
2592 static void dump_remove_window_property_request( const struct remove_window_property_request *req )
2594 fprintf( stderr, " window=%p,", req->window );
2595 fprintf( stderr, " atom=%04x,", req->atom );
2596 fprintf( stderr, " name=" );
2597 dump_varargs_unicode_str( cur_size );
2600 static void dump_remove_window_property_reply( const struct remove_window_property_reply *req )
2602 fprintf( stderr, " handle=%p", req->handle );
2605 static void dump_get_window_property_request( const struct get_window_property_request *req )
2607 fprintf( stderr, " window=%p,", req->window );
2608 fprintf( stderr, " atom=%04x,", req->atom );
2609 fprintf( stderr, " name=" );
2610 dump_varargs_unicode_str( cur_size );
2613 static void dump_get_window_property_reply( const struct get_window_property_reply *req )
2615 fprintf( stderr, " handle=%p", req->handle );
2618 static void dump_get_window_properties_request( const struct get_window_properties_request *req )
2620 fprintf( stderr, " window=%p", req->window );
2623 static void dump_get_window_properties_reply( const struct get_window_properties_reply *req )
2625 fprintf( stderr, " total=%d,", req->total );
2626 fprintf( stderr, " props=" );
2627 dump_varargs_properties( cur_size );
2630 static void dump_create_winstation_request( const struct create_winstation_request *req )
2632 fprintf( stderr, " flags=%08x,", req->flags );
2633 fprintf( stderr, " access=%08x,", req->access );
2634 fprintf( stderr, " attributes=%08x,", req->attributes );
2635 fprintf( stderr, " name=" );
2636 dump_varargs_unicode_str( cur_size );
2639 static void dump_create_winstation_reply( const struct create_winstation_reply *req )
2641 fprintf( stderr, " handle=%p", req->handle );
2644 static void dump_open_winstation_request( const struct open_winstation_request *req )
2646 fprintf( stderr, " access=%08x,", req->access );
2647 fprintf( stderr, " attributes=%08x,", req->attributes );
2648 fprintf( stderr, " name=" );
2649 dump_varargs_unicode_str( cur_size );
2652 static void dump_open_winstation_reply( const struct open_winstation_reply *req )
2654 fprintf( stderr, " handle=%p", req->handle );
2657 static void dump_close_winstation_request( const struct close_winstation_request *req )
2659 fprintf( stderr, " handle=%p", req->handle );
2662 static void dump_get_process_winstation_request( const struct get_process_winstation_request *req )
2666 static void dump_get_process_winstation_reply( const struct get_process_winstation_reply *req )
2668 fprintf( stderr, " handle=%p", req->handle );
2671 static void dump_set_process_winstation_request( const struct set_process_winstation_request *req )
2673 fprintf( stderr, " handle=%p", req->handle );
2676 static void dump_create_desktop_request( const struct create_desktop_request *req )
2678 fprintf( stderr, " flags=%08x,", req->flags );
2679 fprintf( stderr, " access=%08x,", req->access );
2680 fprintf( stderr, " attributes=%08x,", req->attributes );
2681 fprintf( stderr, " name=" );
2682 dump_varargs_unicode_str( cur_size );
2685 static void dump_create_desktop_reply( const struct create_desktop_reply *req )
2687 fprintf( stderr, " handle=%p", req->handle );
2690 static void dump_open_desktop_request( const struct open_desktop_request *req )
2692 fprintf( stderr, " flags=%08x,", req->flags );
2693 fprintf( stderr, " access=%08x,", req->access );
2694 fprintf( stderr, " attributes=%08x,", req->attributes );
2695 fprintf( stderr, " name=" );
2696 dump_varargs_unicode_str( cur_size );
2699 static void dump_open_desktop_reply( const struct open_desktop_reply *req )
2701 fprintf( stderr, " handle=%p", req->handle );
2704 static void dump_close_desktop_request( const struct close_desktop_request *req )
2706 fprintf( stderr, " handle=%p", req->handle );
2709 static void dump_get_thread_desktop_request( const struct get_thread_desktop_request *req )
2711 fprintf( stderr, " tid=%04x", req->tid );
2714 static void dump_get_thread_desktop_reply( const struct get_thread_desktop_reply *req )
2716 fprintf( stderr, " handle=%p", req->handle );
2719 static void dump_set_thread_desktop_request( const struct set_thread_desktop_request *req )
2721 fprintf( stderr, " handle=%p", req->handle );
2724 static void dump_set_user_object_info_request( const struct set_user_object_info_request *req )
2726 fprintf( stderr, " handle=%p,", req->handle );
2727 fprintf( stderr, " flags=%08x,", req->flags );
2728 fprintf( stderr, " obj_flags=%08x", req->obj_flags );
2731 static void dump_set_user_object_info_reply( const struct set_user_object_info_reply *req )
2733 fprintf( stderr, " is_desktop=%d,", req->is_desktop );
2734 fprintf( stderr, " old_obj_flags=%08x,", req->old_obj_flags );
2735 fprintf( stderr, " name=" );
2736 dump_varargs_unicode_str( cur_size );
2739 static void dump_attach_thread_input_request( const struct attach_thread_input_request *req )
2741 fprintf( stderr, " tid_from=%04x,", req->tid_from );
2742 fprintf( stderr, " tid_to=%04x,", req->tid_to );
2743 fprintf( stderr, " attach=%d", req->attach );
2746 static void dump_get_thread_input_request( const struct get_thread_input_request *req )
2748 fprintf( stderr, " tid=%04x", req->tid );
2751 static void dump_get_thread_input_reply( const struct get_thread_input_reply *req )
2753 fprintf( stderr, " focus=%p,", req->focus );
2754 fprintf( stderr, " capture=%p,", req->capture );
2755 fprintf( stderr, " active=%p,", req->active );
2756 fprintf( stderr, " foreground=%p,", req->foreground );
2757 fprintf( stderr, " menu_owner=%p,", req->menu_owner );
2758 fprintf( stderr, " move_size=%p,", req->move_size );
2759 fprintf( stderr, " caret=%p,", req->caret );
2760 fprintf( stderr, " rect=" );
2761 dump_rectangle( &req->rect );
2764 static void dump_get_last_input_time_request( const struct get_last_input_time_request *req )
2768 static void dump_get_last_input_time_reply( const struct get_last_input_time_reply *req )
2770 fprintf( stderr, " time=%08x", req->time );
2773 static void dump_get_key_state_request( const struct get_key_state_request *req )
2775 fprintf( stderr, " tid=%04x,", req->tid );
2776 fprintf( stderr, " key=%d", req->key );
2779 static void dump_get_key_state_reply( const struct get_key_state_reply *req )
2781 fprintf( stderr, " state=%02x,", req->state );
2782 fprintf( stderr, " keystate=" );
2783 dump_varargs_bytes( cur_size );
2786 static void dump_set_key_state_request( const struct set_key_state_request *req )
2788 fprintf( stderr, " tid=%04x,", req->tid );
2789 fprintf( stderr, " keystate=" );
2790 dump_varargs_bytes( cur_size );
2793 static void dump_set_foreground_window_request( const struct set_foreground_window_request *req )
2795 fprintf( stderr, " handle=%p", req->handle );
2798 static void dump_set_foreground_window_reply( const struct set_foreground_window_reply *req )
2800 fprintf( stderr, " previous=%p,", req->previous );
2801 fprintf( stderr, " send_msg_old=%d,", req->send_msg_old );
2802 fprintf( stderr, " send_msg_new=%d", req->send_msg_new );
2805 static void dump_set_focus_window_request( const struct set_focus_window_request *req )
2807 fprintf( stderr, " handle=%p", req->handle );
2810 static void dump_set_focus_window_reply( const struct set_focus_window_reply *req )
2812 fprintf( stderr, " previous=%p", req->previous );
2815 static void dump_set_active_window_request( const struct set_active_window_request *req )
2817 fprintf( stderr, " handle=%p", req->handle );
2820 static void dump_set_active_window_reply( const struct set_active_window_reply *req )
2822 fprintf( stderr, " previous=%p", req->previous );
2825 static void dump_set_capture_window_request( const struct set_capture_window_request *req )
2827 fprintf( stderr, " handle=%p,", req->handle );
2828 fprintf( stderr, " flags=%08x", req->flags );
2831 static void dump_set_capture_window_reply( const struct set_capture_window_reply *req )
2833 fprintf( stderr, " previous=%p,", req->previous );
2834 fprintf( stderr, " full_handle=%p", req->full_handle );
2837 static void dump_set_caret_window_request( const struct set_caret_window_request *req )
2839 fprintf( stderr, " handle=%p,", req->handle );
2840 fprintf( stderr, " width=%d,", req->width );
2841 fprintf( stderr, " height=%d", req->height );
2844 static void dump_set_caret_window_reply( const struct set_caret_window_reply *req )
2846 fprintf( stderr, " previous=%p,", req->previous );
2847 fprintf( stderr, " old_rect=" );
2848 dump_rectangle( &req->old_rect );
2849 fprintf( stderr, "," );
2850 fprintf( stderr, " old_hide=%d,", req->old_hide );
2851 fprintf( stderr, " old_state=%d", req->old_state );
2854 static void dump_set_caret_info_request( const struct set_caret_info_request *req )
2856 fprintf( stderr, " flags=%08x,", req->flags );
2857 fprintf( stderr, " handle=%p,", req->handle );
2858 fprintf( stderr, " x=%d,", req->x );
2859 fprintf( stderr, " y=%d,", req->y );
2860 fprintf( stderr, " hide=%d,", req->hide );
2861 fprintf( stderr, " state=%d", req->state );
2864 static void dump_set_caret_info_reply( const struct set_caret_info_reply *req )
2866 fprintf( stderr, " full_handle=%p,", req->full_handle );
2867 fprintf( stderr, " old_rect=" );
2868 dump_rectangle( &req->old_rect );
2869 fprintf( stderr, "," );
2870 fprintf( stderr, " old_hide=%d,", req->old_hide );
2871 fprintf( stderr, " old_state=%d", req->old_state );
2874 static void dump_set_hook_request( const struct set_hook_request *req )
2876 fprintf( stderr, " id=%d,", req->id );
2877 fprintf( stderr, " pid=%04x,", req->pid );
2878 fprintf( stderr, " tid=%04x,", req->tid );
2879 fprintf( stderr, " event_min=%d,", req->event_min );
2880 fprintf( stderr, " event_max=%d,", req->event_max );
2881 fprintf( stderr, " flags=%d,", req->flags );
2882 fprintf( stderr, " proc=%p,", req->proc );
2883 fprintf( stderr, " unicode=%d,", req->unicode );
2884 fprintf( stderr, " module=" );
2885 dump_varargs_unicode_str( cur_size );
2888 static void dump_set_hook_reply( const struct set_hook_reply *req )
2890 fprintf( stderr, " handle=%p,", req->handle );
2891 fprintf( stderr, " active_hooks=%08x", req->active_hooks );
2894 static void dump_remove_hook_request( const struct remove_hook_request *req )
2896 fprintf( stderr, " handle=%p,", req->handle );
2897 fprintf( stderr, " id=%d,", req->id );
2898 fprintf( stderr, " proc=%p", req->proc );
2901 static void dump_remove_hook_reply( const struct remove_hook_reply *req )
2903 fprintf( stderr, " active_hooks=%08x", req->active_hooks );
2906 static void dump_start_hook_chain_request( const struct start_hook_chain_request *req )
2908 fprintf( stderr, " id=%d,", req->id );
2909 fprintf( stderr, " event=%d,", req->event );
2910 fprintf( stderr, " window=%p,", req->window );
2911 fprintf( stderr, " object_id=%d,", req->object_id );
2912 fprintf( stderr, " child_id=%d", req->child_id );
2915 static void dump_start_hook_chain_reply( const struct start_hook_chain_reply *req )
2917 fprintf( stderr, " handle=%p,", req->handle );
2918 fprintf( stderr, " pid=%04x,", req->pid );
2919 fprintf( stderr, " tid=%04x,", req->tid );
2920 fprintf( stderr, " proc=%p,", req->proc );
2921 fprintf( stderr, " unicode=%d,", req->unicode );
2922 fprintf( stderr, " active_hooks=%08x,", req->active_hooks );
2923 fprintf( stderr, " module=" );
2924 dump_varargs_unicode_str( cur_size );
2927 static void dump_finish_hook_chain_request( const struct finish_hook_chain_request *req )
2929 fprintf( stderr, " id=%d", req->id );
2932 static void dump_get_next_hook_request( const struct get_next_hook_request *req )
2934 fprintf( stderr, " handle=%p,", req->handle );
2935 fprintf( stderr, " event=%d,", req->event );
2936 fprintf( stderr, " window=%p,", req->window );
2937 fprintf( stderr, " object_id=%d,", req->object_id );
2938 fprintf( stderr, " child_id=%d", req->child_id );
2941 static void dump_get_next_hook_reply( const struct get_next_hook_reply *req )
2943 fprintf( stderr, " next=%p,", req->next );
2944 fprintf( stderr, " id=%d,", req->id );
2945 fprintf( stderr, " pid=%04x,", req->pid );
2946 fprintf( stderr, " tid=%04x,", req->tid );
2947 fprintf( stderr, " proc=%p,", req->proc );
2948 fprintf( stderr, " prev_unicode=%d,", req->prev_unicode );
2949 fprintf( stderr, " next_unicode=%d,", req->next_unicode );
2950 fprintf( stderr, " module=" );
2951 dump_varargs_unicode_str( cur_size );
2954 static void dump_create_class_request( const struct create_class_request *req )
2956 fprintf( stderr, " local=%d,", req->local );
2957 fprintf( stderr, " atom=%04x,", req->atom );
2958 fprintf( stderr, " style=%08x,", req->style );
2959 fprintf( stderr, " instance=%p,", req->instance );
2960 fprintf( stderr, " extra=%d,", req->extra );
2961 fprintf( stderr, " win_extra=%d,", req->win_extra );
2962 fprintf( stderr, " client_ptr=%p", req->client_ptr );
2965 static void dump_destroy_class_request( const struct destroy_class_request *req )
2967 fprintf( stderr, " atom=%04x,", req->atom );
2968 fprintf( stderr, " instance=%p", req->instance );
2971 static void dump_destroy_class_reply( const struct destroy_class_reply *req )
2973 fprintf( stderr, " client_ptr=%p", req->client_ptr );
2976 static void dump_set_class_info_request( const struct set_class_info_request *req )
2978 fprintf( stderr, " window=%p,", req->window );
2979 fprintf( stderr, " flags=%08x,", req->flags );
2980 fprintf( stderr, " atom=%04x,", req->atom );
2981 fprintf( stderr, " style=%08x,", req->style );
2982 fprintf( stderr, " win_extra=%d,", req->win_extra );
2983 fprintf( stderr, " instance=%p,", req->instance );
2984 fprintf( stderr, " extra_offset=%d,", req->extra_offset );
2985 fprintf( stderr, " extra_size=%lu,", (unsigned long)req->extra_size );
2986 fprintf( stderr, " extra_value=%08x", req->extra_value );
2989 static void dump_set_class_info_reply( const struct set_class_info_reply *req )
2991 fprintf( stderr, " old_atom=%04x,", req->old_atom );
2992 fprintf( stderr, " old_style=%08x,", req->old_style );
2993 fprintf( stderr, " old_extra=%d,", req->old_extra );
2994 fprintf( stderr, " old_win_extra=%d,", req->old_win_extra );
2995 fprintf( stderr, " old_instance=%p,", req->old_instance );
2996 fprintf( stderr, " old_extra_value=%08x", req->old_extra_value );
2999 static void dump_set_clipboard_info_request( const struct set_clipboard_info_request *req )
3001 fprintf( stderr, " flags=%08x,", req->flags );
3002 fprintf( stderr, " clipboard=%p,", req->clipboard );
3003 fprintf( stderr, " owner=%p,", req->owner );
3004 fprintf( stderr, " viewer=%p,", req->viewer );
3005 fprintf( stderr, " seqno=%08x", req->seqno );
3008 static void dump_set_clipboard_info_reply( const struct set_clipboard_info_reply *req )
3010 fprintf( stderr, " flags=%08x,", req->flags );
3011 fprintf( stderr, " old_clipboard=%p,", req->old_clipboard );
3012 fprintf( stderr, " old_owner=%p,", req->old_owner );
3013 fprintf( stderr, " old_viewer=%p,", req->old_viewer );
3014 fprintf( stderr, " seqno=%08x", req->seqno );
3017 static void dump_open_token_request( const struct open_token_request *req )
3019 fprintf( stderr, " handle=%p,", req->handle );
3020 fprintf( stderr, " access=%08x,", req->access );
3021 fprintf( stderr, " attributes=%08x,", req->attributes );
3022 fprintf( stderr, " flags=%08x", req->flags );
3025 static void dump_open_token_reply( const struct open_token_reply *req )
3027 fprintf( stderr, " token=%p", req->token );
3030 static void dump_set_global_windows_request( const struct set_global_windows_request *req )
3032 fprintf( stderr, " flags=%08x,", req->flags );
3033 fprintf( stderr, " shell_window=%p,", req->shell_window );
3034 fprintf( stderr, " shell_listview=%p,", req->shell_listview );
3035 fprintf( stderr, " progman_window=%p,", req->progman_window );
3036 fprintf( stderr, " taskman_window=%p", req->taskman_window );
3039 static void dump_set_global_windows_reply( const struct set_global_windows_reply *req )
3041 fprintf( stderr, " old_shell_window=%p,", req->old_shell_window );
3042 fprintf( stderr, " old_shell_listview=%p,", req->old_shell_listview );
3043 fprintf( stderr, " old_progman_window=%p,", req->old_progman_window );
3044 fprintf( stderr, " old_taskman_window=%p", req->old_taskman_window );
3047 static void dump_adjust_token_privileges_request( const struct adjust_token_privileges_request *req )
3049 fprintf( stderr, " handle=%p,", req->handle );
3050 fprintf( stderr, " disable_all=%d,", req->disable_all );
3051 fprintf( stderr, " get_modified_state=%d,", req->get_modified_state );
3052 fprintf( stderr, " privileges=" );
3053 dump_varargs_LUID_AND_ATTRIBUTES( cur_size );
3056 static void dump_adjust_token_privileges_reply( const struct adjust_token_privileges_reply *req )
3058 fprintf( stderr, " len=%08x,", req->len );
3059 fprintf( stderr, " privileges=" );
3060 dump_varargs_LUID_AND_ATTRIBUTES( cur_size );
3063 static void dump_get_token_privileges_request( const struct get_token_privileges_request *req )
3065 fprintf( stderr, " handle=%p", req->handle );
3068 static void dump_get_token_privileges_reply( const struct get_token_privileges_reply *req )
3070 fprintf( stderr, " len=%08x,", req->len );
3071 fprintf( stderr, " privileges=" );
3072 dump_varargs_LUID_AND_ATTRIBUTES( cur_size );
3075 static void dump_check_token_privileges_request( const struct check_token_privileges_request *req )
3077 fprintf( stderr, " handle=%p,", req->handle );
3078 fprintf( stderr, " all_required=%d,", req->all_required );
3079 fprintf( stderr, " privileges=" );
3080 dump_varargs_LUID_AND_ATTRIBUTES( cur_size );
3083 static void dump_check_token_privileges_reply( const struct check_token_privileges_reply *req )
3085 fprintf( stderr, " has_privileges=%d,", req->has_privileges );
3086 fprintf( stderr, " privileges=" );
3087 dump_varargs_LUID_AND_ATTRIBUTES( cur_size );
3090 static void dump_duplicate_token_request( const struct duplicate_token_request *req )
3092 fprintf( stderr, " handle=%p,", req->handle );
3093 fprintf( stderr, " access=%08x,", req->access );
3094 fprintf( stderr, " attributes=%08x,", req->attributes );
3095 fprintf( stderr, " primary=%d,", req->primary );
3096 fprintf( stderr, " impersonation_level=%d", req->impersonation_level );
3099 static void dump_duplicate_token_reply( const struct duplicate_token_reply *req )
3101 fprintf( stderr, " new_handle=%p", req->new_handle );
3104 static void dump_access_check_request( const struct access_check_request *req )
3106 fprintf( stderr, " handle=%p,", req->handle );
3107 fprintf( stderr, " desired_access=%08x,", req->desired_access );
3108 fprintf( stderr, " mapping_read=%08x,", req->mapping_read );
3109 fprintf( stderr, " mapping_write=%08x,", req->mapping_write );
3110 fprintf( stderr, " mapping_execute=%08x,", req->mapping_execute );
3111 fprintf( stderr, " mapping_all=%08x,", req->mapping_all );
3112 fprintf( stderr, " sd=" );
3113 dump_varargs_security_descriptor( cur_size );
3116 static void dump_access_check_reply( const struct access_check_reply *req )
3118 fprintf( stderr, " access_granted=%08x,", req->access_granted );
3119 fprintf( stderr, " access_status=%08x,", req->access_status );
3120 fprintf( stderr, " privileges_len=%08x,", req->privileges_len );
3121 fprintf( stderr, " privileges=" );
3122 dump_varargs_LUID_AND_ATTRIBUTES( cur_size );
3125 static void dump_get_token_user_request( const struct get_token_user_request *req )
3127 fprintf( stderr, " handle=%p", req->handle );
3130 static void dump_get_token_user_reply( const struct get_token_user_reply *req )
3132 fprintf( stderr, " user_len=%lu,", (unsigned long)req->user_len );
3133 fprintf( stderr, " user=" );
3134 dump_varargs_SID( cur_size );
3137 static void dump_get_token_groups_request( const struct get_token_groups_request *req )
3139 fprintf( stderr, " handle=%p", req->handle );
3142 static void dump_get_token_groups_reply( const struct get_token_groups_reply *req )
3144 fprintf( stderr, " user_len=%lu,", (unsigned long)req->user_len );
3145 fprintf( stderr, " user=" );
3146 dump_varargs_token_groups( cur_size );
3149 static void dump_create_mailslot_request( const struct create_mailslot_request *req )
3151 fprintf( stderr, " access=%08x,", req->access );
3152 fprintf( stderr, " attributes=%08x,", req->attributes );
3153 fprintf( stderr, " rootdir=%p,", req->rootdir );
3154 fprintf( stderr, " max_msgsize=%08x,", req->max_msgsize );
3155 fprintf( stderr, " read_timeout=%d,", req->read_timeout );
3156 fprintf( stderr, " name=" );
3157 dump_varargs_unicode_str( cur_size );
3160 static void dump_create_mailslot_reply( const struct create_mailslot_reply *req )
3162 fprintf( stderr, " handle=%p", req->handle );
3165 static void dump_open_mailslot_request( const struct open_mailslot_request *req )
3167 fprintf( stderr, " access=%08x,", req->access );
3168 fprintf( stderr, " attributes=%08x,", req->attributes );
3169 fprintf( stderr, " rootdir=%p,", req->rootdir );
3170 fprintf( stderr, " sharing=%08x,", req->sharing );
3171 fprintf( stderr, " name=" );
3172 dump_varargs_unicode_str( cur_size );
3175 static void dump_open_mailslot_reply( const struct open_mailslot_reply *req )
3177 fprintf( stderr, " handle=%p", req->handle );
3180 static void dump_set_mailslot_info_request( const struct set_mailslot_info_request *req )
3182 fprintf( stderr, " handle=%p,", req->handle );
3183 fprintf( stderr, " flags=%08x,", req->flags );
3184 fprintf( stderr, " read_timeout=%d", req->read_timeout );
3187 static void dump_set_mailslot_info_reply( const struct set_mailslot_info_reply *req )
3189 fprintf( stderr, " max_msgsize=%08x,", req->max_msgsize );
3190 fprintf( stderr, " read_timeout=%d,", req->read_timeout );
3191 fprintf( stderr, " msg_count=%08x,", req->msg_count );
3192 fprintf( stderr, " next_msgsize=%08x", req->next_msgsize );
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=%lu,", (unsigned long)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_set_handle_fd_request,
3306 (dump_func)dump_flush_file_request,
3307 (dump_func)dump_lock_file_request,
3308 (dump_func)dump_unlock_file_request,
3309 (dump_func)dump_unmount_device_request,
3310 (dump_func)dump_create_socket_request,
3311 (dump_func)dump_accept_socket_request,
3312 (dump_func)dump_set_socket_event_request,
3313 (dump_func)dump_get_socket_event_request,
3314 (dump_func)dump_enable_socket_event_request,
3315 (dump_func)dump_set_socket_deferred_request,
3316 (dump_func)dump_alloc_console_request,
3317 (dump_func)dump_free_console_request,
3318 (dump_func)dump_get_console_renderer_events_request,
3319 (dump_func)dump_open_console_request,
3320 (dump_func)dump_get_console_wait_event_request,
3321 (dump_func)dump_get_console_mode_request,
3322 (dump_func)dump_set_console_mode_request,
3323 (dump_func)dump_set_console_input_info_request,
3324 (dump_func)dump_get_console_input_info_request,
3325 (dump_func)dump_append_console_input_history_request,
3326 (dump_func)dump_get_console_input_history_request,
3327 (dump_func)dump_create_console_output_request,
3328 (dump_func)dump_set_console_output_info_request,
3329 (dump_func)dump_get_console_output_info_request,
3330 (dump_func)dump_write_console_input_request,
3331 (dump_func)dump_read_console_input_request,
3332 (dump_func)dump_write_console_output_request,
3333 (dump_func)dump_fill_console_output_request,
3334 (dump_func)dump_read_console_output_request,
3335 (dump_func)dump_move_console_output_request,
3336 (dump_func)dump_send_console_signal_request,
3337 (dump_func)dump_read_directory_changes_request,
3338 (dump_func)dump_read_change_request,
3339 (dump_func)dump_create_mapping_request,
3340 (dump_func)dump_open_mapping_request,
3341 (dump_func)dump_get_mapping_info_request,
3342 (dump_func)dump_create_snapshot_request,
3343 (dump_func)dump_next_process_request,
3344 (dump_func)dump_next_thread_request,
3345 (dump_func)dump_next_module_request,
3346 (dump_func)dump_wait_debug_event_request,
3347 (dump_func)dump_queue_exception_event_request,
3348 (dump_func)dump_get_exception_status_request,
3349 (dump_func)dump_output_debug_string_request,
3350 (dump_func)dump_continue_debug_event_request,
3351 (dump_func)dump_debug_process_request,
3352 (dump_func)dump_debug_break_request,
3353 (dump_func)dump_set_debugger_kill_on_exit_request,
3354 (dump_func)dump_read_process_memory_request,
3355 (dump_func)dump_write_process_memory_request,
3356 (dump_func)dump_create_key_request,
3357 (dump_func)dump_open_key_request,
3358 (dump_func)dump_delete_key_request,
3359 (dump_func)dump_flush_key_request,
3360 (dump_func)dump_enum_key_request,
3361 (dump_func)dump_set_key_value_request,
3362 (dump_func)dump_get_key_value_request,
3363 (dump_func)dump_enum_key_value_request,
3364 (dump_func)dump_delete_key_value_request,
3365 (dump_func)dump_load_registry_request,
3366 (dump_func)dump_unload_registry_request,
3367 (dump_func)dump_save_registry_request,
3368 (dump_func)dump_set_registry_notification_request,
3369 (dump_func)dump_create_timer_request,
3370 (dump_func)dump_open_timer_request,
3371 (dump_func)dump_set_timer_request,
3372 (dump_func)dump_cancel_timer_request,
3373 (dump_func)dump_get_timer_info_request,
3374 (dump_func)dump_get_thread_context_request,
3375 (dump_func)dump_set_thread_context_request,
3376 (dump_func)dump_get_selector_entry_request,
3377 (dump_func)dump_add_atom_request,
3378 (dump_func)dump_delete_atom_request,
3379 (dump_func)dump_find_atom_request,
3380 (dump_func)dump_get_atom_information_request,
3381 (dump_func)dump_set_atom_information_request,
3382 (dump_func)dump_empty_atom_table_request,
3383 (dump_func)dump_init_atom_table_request,
3384 (dump_func)dump_get_msg_queue_request,
3385 (dump_func)dump_set_queue_mask_request,
3386 (dump_func)dump_get_queue_status_request,
3387 (dump_func)dump_wait_input_idle_request,
3388 (dump_func)dump_send_message_request,
3389 (dump_func)dump_post_quit_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_next_hook_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)dump_close_handle_reply,
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_set_handle_fd_reply,
3522 (dump_func)dump_flush_file_reply,
3523 (dump_func)dump_lock_file_reply,
3524 (dump_func)0,
3525 (dump_func)0,
3526 (dump_func)dump_create_socket_reply,
3527 (dump_func)dump_accept_socket_reply,
3528 (dump_func)0,
3529 (dump_func)dump_get_socket_event_reply,
3530 (dump_func)0,
3531 (dump_func)0,
3532 (dump_func)dump_alloc_console_reply,
3533 (dump_func)0,
3534 (dump_func)dump_get_console_renderer_events_reply,
3535 (dump_func)dump_open_console_reply,
3536 (dump_func)dump_get_console_wait_event_reply,
3537 (dump_func)dump_get_console_mode_reply,
3538 (dump_func)0,
3539 (dump_func)0,
3540 (dump_func)dump_get_console_input_info_reply,
3541 (dump_func)0,
3542 (dump_func)dump_get_console_input_history_reply,
3543 (dump_func)dump_create_console_output_reply,
3544 (dump_func)0,
3545 (dump_func)dump_get_console_output_info_reply,
3546 (dump_func)dump_write_console_input_reply,
3547 (dump_func)dump_read_console_input_reply,
3548 (dump_func)dump_write_console_output_reply,
3549 (dump_func)dump_fill_console_output_reply,
3550 (dump_func)dump_read_console_output_reply,
3551 (dump_func)0,
3552 (dump_func)0,
3553 (dump_func)0,
3554 (dump_func)dump_read_change_reply,
3555 (dump_func)dump_create_mapping_reply,
3556 (dump_func)dump_open_mapping_reply,
3557 (dump_func)dump_get_mapping_info_reply,
3558 (dump_func)dump_create_snapshot_reply,
3559 (dump_func)dump_next_process_reply,
3560 (dump_func)dump_next_thread_reply,
3561 (dump_func)dump_next_module_reply,
3562 (dump_func)dump_wait_debug_event_reply,
3563 (dump_func)dump_queue_exception_event_reply,
3564 (dump_func)dump_get_exception_status_reply,
3565 (dump_func)0,
3566 (dump_func)0,
3567 (dump_func)0,
3568 (dump_func)dump_debug_break_reply,
3569 (dump_func)0,
3570 (dump_func)dump_read_process_memory_reply,
3571 (dump_func)0,
3572 (dump_func)dump_create_key_reply,
3573 (dump_func)dump_open_key_reply,
3574 (dump_func)0,
3575 (dump_func)0,
3576 (dump_func)dump_enum_key_reply,
3577 (dump_func)0,
3578 (dump_func)dump_get_key_value_reply,
3579 (dump_func)dump_enum_key_value_reply,
3580 (dump_func)0,
3581 (dump_func)0,
3582 (dump_func)0,
3583 (dump_func)0,
3584 (dump_func)0,
3585 (dump_func)dump_create_timer_reply,
3586 (dump_func)dump_open_timer_reply,
3587 (dump_func)dump_set_timer_reply,
3588 (dump_func)dump_cancel_timer_reply,
3589 (dump_func)dump_get_timer_info_reply,
3590 (dump_func)dump_get_thread_context_reply,
3591 (dump_func)dump_set_thread_context_reply,
3592 (dump_func)dump_get_selector_entry_reply,
3593 (dump_func)dump_add_atom_reply,
3594 (dump_func)0,
3595 (dump_func)dump_find_atom_reply,
3596 (dump_func)dump_get_atom_information_reply,
3597 (dump_func)0,
3598 (dump_func)0,
3599 (dump_func)dump_init_atom_table_reply,
3600 (dump_func)dump_get_msg_queue_reply,
3601 (dump_func)dump_set_queue_mask_reply,
3602 (dump_func)dump_get_queue_status_reply,
3603 (dump_func)dump_wait_input_idle_reply,
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)dump_disconnect_named_pipe_reply,
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_next_hook_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 "set_handle_fd",
3738 "flush_file",
3739 "lock_file",
3740 "unlock_file",
3741 "unmount_device",
3742 "create_socket",
3743 "accept_socket",
3744 "set_socket_event",
3745 "get_socket_event",
3746 "enable_socket_event",
3747 "set_socket_deferred",
3748 "alloc_console",
3749 "free_console",
3750 "get_console_renderer_events",
3751 "open_console",
3752 "get_console_wait_event",
3753 "get_console_mode",
3754 "set_console_mode",
3755 "set_console_input_info",
3756 "get_console_input_info",
3757 "append_console_input_history",
3758 "get_console_input_history",
3759 "create_console_output",
3760 "set_console_output_info",
3761 "get_console_output_info",
3762 "write_console_input",
3763 "read_console_input",
3764 "write_console_output",
3765 "fill_console_output",
3766 "read_console_output",
3767 "move_console_output",
3768 "send_console_signal",
3769 "read_directory_changes",
3770 "read_change",
3771 "create_mapping",
3772 "open_mapping",
3773 "get_mapping_info",
3774 "create_snapshot",
3775 "next_process",
3776 "next_thread",
3777 "next_module",
3778 "wait_debug_event",
3779 "queue_exception_event",
3780 "get_exception_status",
3781 "output_debug_string",
3782 "continue_debug_event",
3783 "debug_process",
3784 "debug_break",
3785 "set_debugger_kill_on_exit",
3786 "read_process_memory",
3787 "write_process_memory",
3788 "create_key",
3789 "open_key",
3790 "delete_key",
3791 "flush_key",
3792 "enum_key",
3793 "set_key_value",
3794 "get_key_value",
3795 "enum_key_value",
3796 "delete_key_value",
3797 "load_registry",
3798 "unload_registry",
3799 "save_registry",
3800 "set_registry_notification",
3801 "create_timer",
3802 "open_timer",
3803 "set_timer",
3804 "cancel_timer",
3805 "get_timer_info",
3806 "get_thread_context",
3807 "set_thread_context",
3808 "get_selector_entry",
3809 "add_atom",
3810 "delete_atom",
3811 "find_atom",
3812 "get_atom_information",
3813 "set_atom_information",
3814 "empty_atom_table",
3815 "init_atom_table",
3816 "get_msg_queue",
3817 "set_queue_mask",
3818 "get_queue_status",
3819 "wait_input_idle",
3820 "send_message",
3821 "post_quit_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_next_hook",
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_SEEK", 0xc0010000 | ERROR_SEEK },
3937 { "FILE_IS_A_DIRECTORY", STATUS_FILE_IS_A_DIRECTORY },
3938 { "FILE_LOCK_CONFLICT", STATUS_FILE_LOCK_CONFLICT },
3939 { "HANDLE_NOT_CLOSABLE", STATUS_HANDLE_NOT_CLOSABLE },
3940 { "INSTANCE_NOT_AVAILABLE", STATUS_INSTANCE_NOT_AVAILABLE },
3941 { "INVALID_CID", STATUS_INVALID_CID },
3942 { "INVALID_FILE_FOR_SECTION", STATUS_INVALID_FILE_FOR_SECTION },
3943 { "INVALID_HANDLE", STATUS_INVALID_HANDLE },
3944 { "INVALID_PARAMETER", STATUS_INVALID_PARAMETER },
3945 { "IO_TIMEOUT", STATUS_IO_TIMEOUT },
3946 { "KEY_DELETED", STATUS_KEY_DELETED },
3947 { "MAPPED_FILE_SIZE_ZERO", STATUS_MAPPED_FILE_SIZE_ZERO },
3948 { "MEDIA_WRITE_PROTECTED", STATUS_MEDIA_WRITE_PROTECTED },
3949 { "MUTANT_NOT_OWNED", STATUS_MUTANT_NOT_OWNED },
3950 { "NAME_TOO_LONG", STATUS_NAME_TOO_LONG },
3951 { "NOT_ALL_ASSIGNED", STATUS_NOT_ALL_ASSIGNED },
3952 { "NOT_A_DIRECTORY", STATUS_NOT_A_DIRECTORY },
3953 { "NOT_IMPLEMENTED", STATUS_NOT_IMPLEMENTED },
3954 { "NOT_REGISTRY_FILE", STATUS_NOT_REGISTRY_FILE },
3955 { "NO_DATA_DETECTED", STATUS_NO_DATA_DETECTED },
3956 { "NO_IMPERSONATION_TOKEN", STATUS_NO_IMPERSONATION_TOKEN },
3957 { "NO_MEMORY", STATUS_NO_MEMORY },
3958 { "NO_MORE_ENTRIES", STATUS_NO_MORE_ENTRIES },
3959 { "NO_MORE_FILES", STATUS_NO_MORE_FILES },
3960 { "NO_SUCH_DEVICE", STATUS_NO_SUCH_DEVICE },
3961 { "NO_SUCH_FILE", STATUS_NO_SUCH_FILE },
3962 { "NO_TOKEN", STATUS_NO_TOKEN },
3963 { "OBJECT_NAME_COLLISION", STATUS_OBJECT_NAME_COLLISION },
3964 { "OBJECT_NAME_EXISTS", STATUS_OBJECT_NAME_EXISTS },
3965 { "OBJECT_NAME_INVALID", STATUS_OBJECT_NAME_INVALID },
3966 { "OBJECT_NAME_NOT_FOUND", STATUS_OBJECT_NAME_NOT_FOUND },
3967 { "OBJECT_PATH_INVALID", STATUS_OBJECT_PATH_INVALID },
3968 { "OBJECT_PATH_NOT_FOUND", STATUS_OBJECT_PATH_NOT_FOUND },
3969 { "OBJECT_PATH_SYNTAX_BAD", STATUS_OBJECT_PATH_SYNTAX_BAD },
3970 { "OBJECT_TYPE_MISMATCH", STATUS_OBJECT_TYPE_MISMATCH },
3971 { "PENDING", STATUS_PENDING },
3972 { "PIPE_BUSY", STATUS_PIPE_BUSY },
3973 { "PIPE_CONNECTED", STATUS_PIPE_CONNECTED },
3974 { "PIPE_DISCONNECTED", STATUS_PIPE_DISCONNECTED },
3975 { "PIPE_LISTENING", STATUS_PIPE_LISTENING },
3976 { "PIPE_NOT_AVAILABLE", STATUS_PIPE_NOT_AVAILABLE },
3977 { "PRIVILEGE_NOT_HELD", STATUS_PRIVILEGE_NOT_HELD },
3978 { "SECTION_TOO_BIG", STATUS_SECTION_TOO_BIG },
3979 { "SEMAPHORE_LIMIT_EXCEEDED", STATUS_SEMAPHORE_LIMIT_EXCEEDED },
3980 { "SHARING_VIOLATION", STATUS_SHARING_VIOLATION },
3981 { "SUSPEND_COUNT_EXCEEDED", STATUS_SUSPEND_COUNT_EXCEEDED },
3982 { "TIMEOUT", STATUS_TIMEOUT },
3983 { "TOO_MANY_OPENED_FILES", STATUS_TOO_MANY_OPENED_FILES },
3984 { "UNSUCCESSFUL", STATUS_UNSUCCESSFUL },
3985 { "VOLUME_DISMOUNTED", STATUS_VOLUME_DISMOUNTED },
3986 { "WAS_LOCKED", STATUS_WAS_LOCKED },
3987 { NULL, 0 }
3990 /* ### make_requests end ### */
3991 /* Everything above this line is generated automatically by tools/make_requests */
3993 static const char *get_status_name( unsigned int status )
3995 int i;
3996 static char buffer[10];
3998 if (status)
4000 for (i = 0; status_names[i].name; i++)
4001 if (status_names[i].value == status) return status_names[i].name;
4003 sprintf( buffer, "%x", status );
4004 return buffer;
4007 void trace_request(void)
4009 enum request req = current->req.request_header.req;
4010 if (req < REQ_NB_REQUESTS)
4012 fprintf( stderr, "%04x: %s(", current->id, req_names[req] );
4013 if (req_dumpers[req])
4015 cur_pos = 0;
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_pos = 0;
4035 cur_data = current->reply_data;
4036 cur_size = reply->reply_header.reply_size;
4037 reply_dumpers[req]( reply );
4038 fprintf( stderr, " }" );
4040 fputc( '\n', stderr );
4042 else fprintf( stderr, "%04x: %d() = %s\n",
4043 current->id, req, get_status_name(current->error) );