Extract the executable name for msi advertised shortcuts.
[wine/gsoc_dplay.git] / server / trace.c
blob622f0c76311b44a039a5743e485ef67e47a9f634
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., 59 Temple Place, Suite 330, Boston, MA 02111-1307 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 "windef.h"
34 #include "winbase.h"
35 #include "wincon.h"
36 #include "winternl.h"
37 #include "request.h"
38 #include "unicode.h"
40 static int cur_pos;
41 static const void *cur_data;
42 static int cur_size;
44 /* utility functions */
46 inline static void remove_data( size_t size )
48 cur_data = (const char *)cur_data + size;
49 cur_size -= size;
52 static void dump_uints( const int *ptr, int len )
54 fputc( '{', stderr );
55 while (len > 0)
57 fprintf( stderr, "%08x", *ptr++ );
58 if (--len) fputc( ',', stderr );
60 fputc( '}', stderr );
63 static void dump_abs_time( const abs_time_t *time )
65 struct timeval tv;
66 int secs, usecs;
68 if (!time->sec && !time->usec)
70 fprintf( stderr, "0" );
71 return;
73 gettimeofday( &tv, NULL );
74 secs = time->sec - tv.tv_sec;
75 if ((usecs = time->usec - tv.tv_usec) < 0)
77 usecs += 1000000;
78 secs--;
80 if (secs > 0 || (secs == 0 && usecs >= 0))
81 fprintf( stderr, "%d.%06d (+%d.%06d)", time->sec, time->usec, secs, usecs );
82 else
83 fprintf( stderr, "%d.%06d (-%d.%06d)", time->sec, time->usec, abs(secs+1), 1000000-usecs );
86 static void dump_rectangle( const rectangle_t *rect )
88 fprintf( stderr, "{%d,%d;%d,%d}",
89 rect->left, rect->top, rect->right, rect->bottom );
92 static void dump_char_info( const char_info_t *info )
94 fprintf( stderr, "{'" );
95 dump_strW( &info->ch, 1, stderr, "\'\'" );
96 fprintf( stderr, "',%04x}", info->attr );
99 static void dump_context( const CONTEXT *context )
101 #ifdef __i386__
102 fprintf( stderr, "{flags=%08lx,eax=%08lx,ebx=%08lx,ecx=%08lx,edx=%08lx,esi=%08lx,edi=%08lx,"
103 "ebp=%08lx,eip=%08lx,esp=%08lx,eflags=%08lx,cs=%04lx,ds=%04lx,es=%04lx,"
104 "fs=%04lx,gs=%04lx,dr0=%08lx,dr1=%08lx,dr2=%08lx,dr3=%08lx,dr6=%08lx,dr7=%08lx,",
105 context->ContextFlags, context->Eax, context->Ebx, context->Ecx, context->Edx,
106 context->Esi, context->Edi, context->Ebp, context->Eip, context->Esp, context->EFlags,
107 context->SegCs, context->SegDs, context->SegEs, context->SegFs, context->SegGs,
108 context->Dr0, context->Dr1, context->Dr2, context->Dr3, context->Dr6, context->Dr7 );
109 fprintf( stderr, "float=" );
110 dump_uints( (const int *)&context->FloatSave, sizeof(context->FloatSave) / sizeof(int) );
111 fprintf( stderr, "}" );
112 #else
113 dump_uints( (const int *)context, sizeof(*context) / sizeof(int) );
114 #endif
117 static void dump_exc_record( const EXCEPTION_RECORD *rec )
119 unsigned int i;
120 fprintf( stderr, "{code=%lx,flags=%lx,rec=%p,addr=%p,params={",
121 rec->ExceptionCode, rec->ExceptionFlags, rec->ExceptionRecord,
122 rec->ExceptionAddress );
123 for (i = 0; i < min(rec->NumberParameters,EXCEPTION_MAXIMUM_PARAMETERS); i++)
125 if (i) fputc( ',', stderr );
126 fprintf( stderr, "%lx", rec->ExceptionInformation[i] );
128 fputc( '}', stderr );
131 static void dump_varargs_ints( size_t size )
133 const int *data = cur_data;
134 size_t len = size / sizeof(*data);
136 fputc( '{', stderr );
137 while (len > 0)
139 fprintf( stderr, "%d", *data++ );
140 if (--len) fputc( ',', stderr );
142 fputc( '}', stderr );
143 remove_data( size );
146 static void dump_varargs_handles( size_t size )
148 const obj_handle_t *data = cur_data;
149 size_t len = size / sizeof(*data);
151 fputc( '{', stderr );
152 while (len > 0)
154 fprintf( stderr, "%p", *data++ );
155 if (--len) fputc( ',', stderr );
157 fputc( '}', stderr );
158 remove_data( size );
161 static void dump_varargs_user_handles( size_t size )
163 const user_handle_t *data = cur_data;
164 size_t len = size / sizeof(*data);
166 fputc( '{', stderr );
167 while (len > 0)
169 fprintf( stderr, "%p", *data++ );
170 if (--len) fputc( ',', stderr );
172 fputc( '}', stderr );
173 remove_data( size );
176 static void dump_varargs_bytes( size_t size )
178 const unsigned char *data = cur_data;
179 size_t len = size;
181 fputc( '{', stderr );
182 while (len > 0)
184 fprintf( stderr, "%02x", *data++ );
185 if (--len) fputc( ',', stderr );
187 fputc( '}', stderr );
188 remove_data( size );
191 static void dump_varargs_string( size_t size )
193 fprintf( stderr, "\"%.*s\"", (int)size, (const char *)cur_data );
194 remove_data( size );
197 static void dump_varargs_unicode_str( size_t size )
199 fprintf( stderr, "L\"" );
200 dump_strW( cur_data, size / sizeof(WCHAR), stderr, "\"\"" );
201 fputc( '\"', stderr );
202 remove_data( size );
205 static void dump_varargs_context( size_t size )
207 if (!size)
209 fprintf( stderr, "{}" );
210 return;
212 dump_context( cur_data );
213 remove_data( size );
216 static void dump_varargs_exc_event( size_t size )
218 const CONTEXT *ptr = cur_data;
220 if (!size)
222 fprintf( stderr, "{}" );
223 return;
225 fprintf( stderr, "{context=" );
226 dump_context( ptr );
227 fprintf( stderr, ",rec=" );
228 dump_exc_record( (const EXCEPTION_RECORD *)(ptr + 1) );
229 fputc( '}', stderr );
230 remove_data( size );
233 static void dump_varargs_debug_event( size_t size )
235 const debug_event_t *event = cur_data;
237 if (!size)
239 fprintf( stderr, "{}" );
240 return;
242 switch(event->code)
244 case EXCEPTION_DEBUG_EVENT:
245 fprintf( stderr, "{exception," );
246 dump_exc_record( &event->info.exception.record );
247 fprintf( stderr, ",first=%d}", event->info.exception.first );
248 break;
249 case CREATE_THREAD_DEBUG_EVENT:
250 fprintf( stderr, "{create_thread,thread=%p,teb=%p,start=%p}",
251 event->info.create_thread.handle, event->info.create_thread.teb,
252 event->info.create_thread.start );
253 break;
254 case CREATE_PROCESS_DEBUG_EVENT:
255 fprintf( stderr, "{create_process,file=%p,process=%p,thread=%p,base=%p,offset=%d,"
256 "size=%d,teb=%p,start=%p,name=%p,unicode=%d}",
257 event->info.create_process.file, event->info.create_process.process,
258 event->info.create_process.thread, event->info.create_process.base,
259 event->info.create_process.dbg_offset, event->info.create_process.dbg_size,
260 event->info.create_process.teb, event->info.create_process.start,
261 event->info.create_process.name, event->info.create_process.unicode );
262 break;
263 case EXIT_THREAD_DEBUG_EVENT:
264 fprintf( stderr, "{exit_thread,code=%d}", event->info.exit.exit_code );
265 break;
266 case EXIT_PROCESS_DEBUG_EVENT:
267 fprintf( stderr, "{exit_process,code=%d}", event->info.exit.exit_code );
268 break;
269 case LOAD_DLL_DEBUG_EVENT:
270 fprintf( stderr, "{load_dll,file=%p,base=%p,offset=%d,size=%d,name=%p,unicode=%d}",
271 event->info.load_dll.handle, event->info.load_dll.base,
272 event->info.load_dll.dbg_offset, event->info.load_dll.dbg_size,
273 event->info.load_dll.name, event->info.load_dll.unicode );
274 break;
275 case UNLOAD_DLL_DEBUG_EVENT:
276 fprintf( stderr, "{unload_dll,base=%p}", event->info.unload_dll.base );
277 break;
278 case OUTPUT_DEBUG_STRING_EVENT:
279 fprintf( stderr, "{output_string,data=%p,unicode=%d,len=%d}",
280 event->info.output_string.string, event->info.output_string.unicode,
281 event->info.output_string.length );
282 break;
283 case RIP_EVENT:
284 fprintf( stderr, "{rip,err=%d,type=%d}",
285 event->info.rip_info.error, event->info.rip_info.type );
286 break;
287 case 0: /* zero is the code returned on timeouts */
288 fprintf( stderr, "{}" );
289 break;
290 default:
291 fprintf( stderr, "{code=??? (%d)}", event->code );
292 break;
294 remove_data( size );
297 /* dump a unicode string contained in a buffer; helper for dump_varargs_startup_info */
298 static void dump_inline_unicode_string( const UNICODE_STRING *str, const void *data, size_t size )
300 size_t length = str->Length / sizeof(WCHAR);
301 size_t offset = (size_t)str->Buffer;
303 if (offset >= size) return;
304 if (offset + length > size) length = size - offset;
305 dump_strW( (const WCHAR *)data + offset/sizeof(WCHAR), length, stderr, "\"\"" );
308 static void dump_varargs_startup_info( size_t size )
310 const RTL_USER_PROCESS_PARAMETERS *ptr = cur_data;
311 RTL_USER_PROCESS_PARAMETERS params;
313 if (size < sizeof(params.Size))
315 fprintf( stderr, "{}" );
316 return;
318 if (size > ptr->Size) size = ptr->Size;
319 memset( &params, 0, sizeof(params) );
320 memcpy( &params, ptr, min( size, sizeof(params) ));
322 fprintf( stderr, "{AllocationSize=%lx,", params.AllocationSize );
323 fprintf( stderr, "Size=%lx,", params.Size );
324 fprintf( stderr, "Flags=%lx,", params.Flags );
325 fprintf( stderr, "DebugFlags=%lx,", params.DebugFlags );
326 fprintf( stderr, "ConsoleHandle=%p,", params.ConsoleHandle );
327 fprintf( stderr, "ConsoleFlags=%lx,", params.ConsoleFlags );
328 fprintf( stderr, "hStdInput=%p,", params.hStdInput );
329 fprintf( stderr, "hStdOutput=%p,", params.hStdOutput );
330 fprintf( stderr, "hStdError=%p,", params.hStdError );
331 fprintf( stderr, "CurrentDirectory.Handle=%p,", params.CurrentDirectory.Handle );
332 fprintf( stderr, "dwX=%ld,", params.dwX );
333 fprintf( stderr, "dwY=%ld,", params.dwY );
334 fprintf( stderr, "dwXSize=%ld,", params.dwXSize );
335 fprintf( stderr, "dwYSize=%ld,", params.dwYSize );
336 fprintf( stderr, "dwXCountChars=%ld,", params.dwXCountChars );
337 fprintf( stderr, "dwYCountChars=%ld,", params.dwYCountChars );
338 fprintf( stderr, "dwFillAttribute=%lx,", params.dwFillAttribute );
339 fprintf( stderr, "dwFlags=%lx,", params.dwFlags );
340 fprintf( stderr, "wShowWindow=%lx,", params.wShowWindow );
341 fprintf( stderr, "CurrentDirectory.DosPath=L\"" );
342 dump_inline_unicode_string( &params.CurrentDirectory.DosPath, cur_data, size );
343 fprintf( stderr, "\",DllPath=L\"" );
344 dump_inline_unicode_string( &params.DllPath, cur_data, size );
345 fprintf( stderr, "\",ImagePathName=L\"" );
346 dump_inline_unicode_string( &params.ImagePathName, cur_data, size );
347 fprintf( stderr, "\",CommandLine=L\"" );
348 dump_inline_unicode_string( &params.CommandLine, cur_data, size );
349 fprintf( stderr, "\",WindowTitle=L\"" );
350 dump_inline_unicode_string( &params.WindowTitle, cur_data, size );
351 fprintf( stderr, "\",Desktop=L\"" );
352 dump_inline_unicode_string( &params.Desktop, cur_data, size );
353 fprintf( stderr, "\",ShellInfo=L\"" );
354 dump_inline_unicode_string( &params.ShellInfo, cur_data, size );
355 fprintf( stderr, "\",RuntimeInfo=L\"" );
356 dump_inline_unicode_string( &params.RuntimeInfo, cur_data, size );
357 fprintf( stderr, "\"}" );
358 remove_data( size );
361 static void dump_varargs_input_records( size_t size )
363 const INPUT_RECORD *rec = cur_data;
364 size_t len = size / sizeof(*rec);
366 fputc( '{', stderr );
367 while (len > 0)
369 fprintf( stderr, "{%04x,...}", rec->EventType );
370 rec++;
371 if (--len) fputc( ',', stderr );
373 fputc( '}', stderr );
374 remove_data( size );
377 static void dump_varargs_rectangles( size_t size )
379 const rectangle_t *rect = cur_data;
380 size_t len = size / sizeof(*rect);
382 fputc( '{', stderr );
383 while (len > 0)
385 dump_rectangle( rect++ );
386 if (--len) fputc( ',', stderr );
388 fputc( '}', stderr );
389 remove_data( size );
392 static void dump_varargs_properties( size_t size )
394 const property_data_t *prop = cur_data;
395 size_t len = size / sizeof(*prop);
397 fputc( '{', stderr );
398 while (len > 0)
400 fprintf( stderr, "{atom=%04x,str=%d,handle=%p}",
401 prop->atom, prop->string, prop->handle );
402 prop++;
403 if (--len) fputc( ',', stderr );
405 fputc( '}', stderr );
406 remove_data( size );
409 static void dump_varargs_LUID_AND_ATTRIBUTES( size_t size )
411 const LUID_AND_ATTRIBUTES *lat = cur_data;
412 size_t len = size / sizeof(*lat);
414 fputc( '{', stderr );
415 while (len > 0)
417 fprintf( stderr, "{luid=%08lx%08lx,attr=%lx}",
418 lat->Luid.HighPart, lat->Luid.LowPart, lat->Attributes );
419 lat++;
420 if (--len) fputc( ',', stderr );
422 fputc( '}', stderr );
423 remove_data( size );
426 static void dump_inline_sid( const SID *sid, size_t size )
428 DWORD i;
430 /* security check */
431 if ((FIELD_OFFSET(SID, SubAuthority[0]) > size) ||
432 (FIELD_OFFSET(SID, SubAuthority[sid->SubAuthorityCount]) > size))
434 fprintf( stderr, "<invalid sid>" );
435 return;
438 fputc( '{', stderr );
439 fprintf( stderr, "S-%u-%lu", sid->Revision, MAKELONG(
440 MAKEWORD( sid->IdentifierAuthority.Value[5],
441 sid->IdentifierAuthority.Value[4] ),
442 MAKEWORD( sid->IdentifierAuthority.Value[3],
443 sid->IdentifierAuthority.Value[2] ) ) );
444 for (i = 0; i < sid->SubAuthorityCount; i++)
445 fprintf( stderr, "-%lu", sid->SubAuthority[i] );
446 fputc( '}', stderr );
449 static void dump_varargs_SID( size_t size )
451 const SID *sid = cur_data;
452 dump_inline_sid( sid, size );
453 remove_data( size );
456 static void dump_inline_acl( const ACL *acl, size_t size )
458 const ACE_HEADER *ace;
459 ULONG i;
460 fputc( '{', stderr );
462 if (size)
464 if (size < sizeof(ACL))
466 fprintf( stderr, "<invalid acl>}\n" );
467 return;
469 size -= sizeof(ACL);
470 ace = (const ACE_HEADER *)(acl + 1);
471 for (i = 0; i < acl->AceCount; i++)
473 const SID *sid = NULL;
474 size_t sid_size = 0;
476 if (size < sizeof(ACE_HEADER))
477 return;
478 if (size < ace->AceSize)
479 return;
480 size -= ace->AceSize;
481 if (i != 0) fputc( ',', stderr );
482 fprintf( stderr, "{AceType=" );
483 switch (ace->AceType)
485 case ACCESS_DENIED_ACE_TYPE:
486 sid = (const SID *)&((const ACCESS_DENIED_ACE *)ace)->SidStart;
487 sid_size = ace->AceSize - FIELD_OFFSET(ACCESS_DENIED_ACE, SidStart);
488 fprintf( stderr, "ACCESS_DENIED_ACE_TYPE,Mask=%lx",
489 ((const ACCESS_DENIED_ACE *)ace)->Mask );
490 break;
491 case ACCESS_ALLOWED_ACE_TYPE:
492 sid = (const SID *)&((const ACCESS_ALLOWED_ACE *)ace)->SidStart;
493 sid_size = ace->AceSize - FIELD_OFFSET(ACCESS_ALLOWED_ACE, SidStart);
494 fprintf( stderr, "ACCESS_ALLOWED_ACE_TYPE,Mask=%lx",
495 ((const ACCESS_ALLOWED_ACE *)ace)->Mask );
496 break;
497 case SYSTEM_AUDIT_ACE_TYPE:
498 sid = (const SID *)&((const SYSTEM_AUDIT_ACE *)ace)->SidStart;
499 sid_size = ace->AceSize - FIELD_OFFSET(SYSTEM_AUDIT_ACE, SidStart);
500 fprintf( stderr, "SYSTEM_AUDIT_ACE_TYPE,Mask=%lx",
501 ((const SYSTEM_AUDIT_ACE *)ace)->Mask );
502 break;
503 case SYSTEM_ALARM_ACE_TYPE:
504 sid = (const SID *)&((const SYSTEM_ALARM_ACE *)ace)->SidStart;
505 sid_size = ace->AceSize - FIELD_OFFSET(SYSTEM_ALARM_ACE, SidStart);
506 fprintf( stderr, "SYSTEM_ALARM_ACE_TYPE,Mask=%lx",
507 ((const SYSTEM_ALARM_ACE *)ace)->Mask );
508 break;
509 default:
510 fprintf( stderr, "unknown<%d>", ace->AceType );
511 break;
513 fprintf( stderr, ",AceFlags=%x,Sid=", ace->AceFlags );
514 if (sid)
515 dump_inline_sid( sid, sid_size );
516 ace = (const ACE_HEADER *)((const char *)ace + ace->AceSize);
517 fputc( '}', stderr );
520 fputc( '}', stderr );
523 static void dump_inline_security_descriptor( const struct security_descriptor *sd, size_t size )
525 fputc( '{', stderr );
526 if (size >= sizeof(struct security_descriptor))
528 size_t offset = sizeof(struct security_descriptor);
529 fprintf( stderr, "control=%08x", sd->control );
530 fprintf( stderr, ",owner=" );
531 if ((sd->owner_len > FIELD_OFFSET(SID, SubAuthority[255])) || (offset + sd->owner_len > size))
532 return;
533 dump_inline_sid( (const SID *)((const char *)sd + offset), sd->owner_len );
534 offset += sd->owner_len;
535 fprintf( stderr, ",group=" );
536 if ((sd->group_len > FIELD_OFFSET(SID, SubAuthority[255])) || (offset + sd->group_len > size))
537 return;
538 dump_inline_sid( (const SID *)((const char *)sd + offset), sd->group_len );
539 offset += sd->group_len;
540 fprintf( stderr, ",sacl=" );
541 if ((sd->sacl_len >= MAX_ACL_LEN) || (offset + sd->sacl_len > size))
542 return;
543 dump_inline_acl( (const ACL *)((const char *)sd + offset), sd->sacl_len );
544 offset += sd->sacl_len;
545 fprintf( stderr, ",dacl=" );
546 if ((sd->dacl_len >= MAX_ACL_LEN) || (offset + sd->dacl_len > size))
547 return;
548 dump_inline_acl( (const ACL *)((const char *)sd + offset), sd->dacl_len );
549 offset += sd->dacl_len;
551 fputc( '}', stderr );
554 static void dump_varargs_security_descriptor( size_t size )
556 const struct security_descriptor *sd = cur_data;
557 dump_inline_security_descriptor( sd, size );
558 remove_data( size );
561 typedef void (*dump_func)( const void *req );
563 /* Everything below this line is generated automatically by tools/make_requests */
564 /* ### make_requests begin ### */
566 static void dump_new_process_request( const struct new_process_request *req )
568 fprintf( stderr, " inherit_all=%d,", req->inherit_all );
569 fprintf( stderr, " create_flags=%08x,", req->create_flags );
570 fprintf( stderr, " unix_pid=%d,", req->unix_pid );
571 fprintf( stderr, " exe_file=%p,", req->exe_file );
572 fprintf( stderr, " hstdin=%p,", req->hstdin );
573 fprintf( stderr, " hstdout=%p,", req->hstdout );
574 fprintf( stderr, " hstderr=%p,", req->hstderr );
575 fprintf( stderr, " info=" );
576 dump_varargs_startup_info( cur_size );
577 fputc( ',', stderr );
578 fprintf( stderr, " env=" );
579 dump_varargs_unicode_str( cur_size );
582 static void dump_new_process_reply( const struct new_process_reply *req )
584 fprintf( stderr, " info=%p", req->info );
587 static void dump_get_new_process_info_request( const struct get_new_process_info_request *req )
589 fprintf( stderr, " info=%p,", req->info );
590 fprintf( stderr, " pinherit=%d,", req->pinherit );
591 fprintf( stderr, " tinherit=%d", req->tinherit );
594 static void dump_get_new_process_info_reply( const struct get_new_process_info_reply *req )
596 fprintf( stderr, " pid=%04x,", req->pid );
597 fprintf( stderr, " phandle=%p,", req->phandle );
598 fprintf( stderr, " tid=%04x,", req->tid );
599 fprintf( stderr, " thandle=%p,", req->thandle );
600 fprintf( stderr, " success=%d", req->success );
603 static void dump_new_thread_request( const struct new_thread_request *req )
605 fprintf( stderr, " suspend=%d,", req->suspend );
606 fprintf( stderr, " inherit=%d,", req->inherit );
607 fprintf( stderr, " request_fd=%d", req->request_fd );
610 static void dump_new_thread_reply( const struct new_thread_reply *req )
612 fprintf( stderr, " tid=%04x,", req->tid );
613 fprintf( stderr, " handle=%p", req->handle );
616 static void dump_get_startup_info_request( const struct get_startup_info_request *req )
620 static void dump_get_startup_info_reply( const struct get_startup_info_reply *req )
622 fprintf( stderr, " create_flags=%08x,", req->create_flags );
623 fprintf( stderr, " exe_file=%p,", req->exe_file );
624 fprintf( stderr, " hstdin=%p,", req->hstdin );
625 fprintf( stderr, " hstdout=%p,", req->hstdout );
626 fprintf( stderr, " hstderr=%p,", req->hstderr );
627 fprintf( stderr, " info=" );
628 dump_varargs_startup_info( cur_size );
629 fputc( ',', stderr );
630 fprintf( stderr, " env=" );
631 dump_varargs_unicode_str( cur_size );
634 static void dump_init_process_done_request( const struct init_process_done_request *req )
636 fprintf( stderr, " module=%p,", req->module );
637 fprintf( stderr, " module_size=%d,", req->module_size );
638 fprintf( stderr, " entry=%p,", req->entry );
639 fprintf( stderr, " name=%p,", req->name );
640 fprintf( stderr, " exe_file=%p,", req->exe_file );
641 fprintf( stderr, " gui=%d,", req->gui );
642 fprintf( stderr, " filename=" );
643 dump_varargs_unicode_str( cur_size );
646 static void dump_init_thread_request( const struct init_thread_request *req )
648 fprintf( stderr, " unix_pid=%d,", req->unix_pid );
649 fprintf( stderr, " unix_tid=%d,", req->unix_tid );
650 fprintf( stderr, " teb=%p,", req->teb );
651 fprintf( stderr, " peb=%p,", req->peb );
652 fprintf( stderr, " entry=%p,", req->entry );
653 fprintf( stderr, " ldt_copy=%p,", req->ldt_copy );
654 fprintf( stderr, " reply_fd=%d,", req->reply_fd );
655 fprintf( stderr, " wait_fd=%d,", req->wait_fd );
656 fprintf( stderr, " debug_level=%d", req->debug_level );
659 static void dump_init_thread_reply( const struct init_thread_reply *req )
661 fprintf( stderr, " pid=%04x,", req->pid );
662 fprintf( stderr, " tid=%04x,", req->tid );
663 fprintf( stderr, " info_size=%d,", req->info_size );
664 fprintf( stderr, " server_start=%ld,", (long)req->server_start );
665 fprintf( stderr, " version=%d", req->version );
668 static void dump_terminate_process_request( const struct terminate_process_request *req )
670 fprintf( stderr, " handle=%p,", req->handle );
671 fprintf( stderr, " exit_code=%d", req->exit_code );
674 static void dump_terminate_process_reply( const struct terminate_process_reply *req )
676 fprintf( stderr, " self=%d", req->self );
679 static void dump_terminate_thread_request( const struct terminate_thread_request *req )
681 fprintf( stderr, " handle=%p,", req->handle );
682 fprintf( stderr, " exit_code=%d", req->exit_code );
685 static void dump_terminate_thread_reply( const struct terminate_thread_reply *req )
687 fprintf( stderr, " self=%d,", req->self );
688 fprintf( stderr, " last=%d", req->last );
691 static void dump_get_process_info_request( const struct get_process_info_request *req )
693 fprintf( stderr, " handle=%p", req->handle );
696 static void dump_get_process_info_reply( const struct get_process_info_reply *req )
698 fprintf( stderr, " pid=%04x,", req->pid );
699 fprintf( stderr, " ppid=%04x,", req->ppid );
700 fprintf( stderr, " exit_code=%d,", req->exit_code );
701 fprintf( stderr, " priority=%d,", req->priority );
702 fprintf( stderr, " affinity=%d,", req->affinity );
703 fprintf( stderr, " peb=%p", req->peb );
706 static void dump_set_process_info_request( const struct set_process_info_request *req )
708 fprintf( stderr, " handle=%p,", req->handle );
709 fprintf( stderr, " mask=%d,", req->mask );
710 fprintf( stderr, " priority=%d,", req->priority );
711 fprintf( stderr, " affinity=%d", req->affinity );
714 static void dump_get_thread_info_request( const struct get_thread_info_request *req )
716 fprintf( stderr, " handle=%p,", req->handle );
717 fprintf( stderr, " tid_in=%04x", req->tid_in );
720 static void dump_get_thread_info_reply( const struct get_thread_info_reply *req )
722 fprintf( stderr, " pid=%04x,", req->pid );
723 fprintf( stderr, " tid=%04x,", req->tid );
724 fprintf( stderr, " teb=%p,", req->teb );
725 fprintf( stderr, " exit_code=%d,", req->exit_code );
726 fprintf( stderr, " priority=%d,", req->priority );
727 fprintf( stderr, " affinity=%d,", req->affinity );
728 fprintf( stderr, " creation_time=%ld,", (long)req->creation_time );
729 fprintf( stderr, " exit_time=%ld", (long)req->exit_time );
732 static void dump_set_thread_info_request( const struct set_thread_info_request *req )
734 fprintf( stderr, " handle=%p,", req->handle );
735 fprintf( stderr, " mask=%d,", req->mask );
736 fprintf( stderr, " priority=%d,", req->priority );
737 fprintf( stderr, " affinity=%d,", req->affinity );
738 fprintf( stderr, " token=%p", req->token );
741 static void dump_get_dll_info_request( const struct get_dll_info_request *req )
743 fprintf( stderr, " handle=%p,", req->handle );
744 fprintf( stderr, " base_address=%p", req->base_address );
747 static void dump_get_dll_info_reply( const struct get_dll_info_reply *req )
749 fprintf( stderr, " size=%d,", req->size );
750 fprintf( stderr, " entry_point=%p,", req->entry_point );
751 fprintf( stderr, " filename=" );
752 dump_varargs_unicode_str( cur_size );
755 static void dump_suspend_thread_request( const struct suspend_thread_request *req )
757 fprintf( stderr, " handle=%p", req->handle );
760 static void dump_suspend_thread_reply( const struct suspend_thread_reply *req )
762 fprintf( stderr, " count=%d", req->count );
765 static void dump_resume_thread_request( const struct resume_thread_request *req )
767 fprintf( stderr, " handle=%p", req->handle );
770 static void dump_resume_thread_reply( const struct resume_thread_reply *req )
772 fprintf( stderr, " count=%d", req->count );
775 static void dump_load_dll_request( const struct load_dll_request *req )
777 fprintf( stderr, " handle=%p,", req->handle );
778 fprintf( stderr, " base=%p,", req->base );
779 fprintf( stderr, " size=%d,", req->size );
780 fprintf( stderr, " dbg_offset=%d,", req->dbg_offset );
781 fprintf( stderr, " dbg_size=%d,", req->dbg_size );
782 fprintf( stderr, " name=%p,", req->name );
783 fprintf( stderr, " filename=" );
784 dump_varargs_unicode_str( cur_size );
787 static void dump_unload_dll_request( const struct unload_dll_request *req )
789 fprintf( stderr, " base=%p", req->base );
792 static void dump_queue_apc_request( const struct queue_apc_request *req )
794 fprintf( stderr, " handle=%p,", req->handle );
795 fprintf( stderr, " user=%d,", req->user );
796 fprintf( stderr, " func=%p,", req->func );
797 fprintf( stderr, " arg1=%p,", req->arg1 );
798 fprintf( stderr, " arg2=%p,", req->arg2 );
799 fprintf( stderr, " arg3=%p", req->arg3 );
802 static void dump_get_apc_request( const struct get_apc_request *req )
804 fprintf( stderr, " alertable=%d", req->alertable );
807 static void dump_get_apc_reply( const struct get_apc_reply *req )
809 fprintf( stderr, " func=%p,", req->func );
810 fprintf( stderr, " type=%d,", req->type );
811 fprintf( stderr, " arg1=%p,", req->arg1 );
812 fprintf( stderr, " arg2=%p,", req->arg2 );
813 fprintf( stderr, " arg3=%p", req->arg3 );
816 static void dump_close_handle_request( const struct close_handle_request *req )
818 fprintf( stderr, " handle=%p", req->handle );
821 static void dump_close_handle_reply( const struct close_handle_reply *req )
823 fprintf( stderr, " fd=%d", req->fd );
826 static void dump_set_handle_info_request( const struct set_handle_info_request *req )
828 fprintf( stderr, " handle=%p,", req->handle );
829 fprintf( stderr, " flags=%d,", req->flags );
830 fprintf( stderr, " mask=%d", req->mask );
833 static void dump_set_handle_info_reply( const struct set_handle_info_reply *req )
835 fprintf( stderr, " old_flags=%d", req->old_flags );
838 static void dump_dup_handle_request( const struct dup_handle_request *req )
840 fprintf( stderr, " src_process=%p,", req->src_process );
841 fprintf( stderr, " src_handle=%p,", req->src_handle );
842 fprintf( stderr, " dst_process=%p,", req->dst_process );
843 fprintf( stderr, " access=%08x,", req->access );
844 fprintf( stderr, " inherit=%d,", req->inherit );
845 fprintf( stderr, " options=%d", req->options );
848 static void dump_dup_handle_reply( const struct dup_handle_reply *req )
850 fprintf( stderr, " handle=%p,", req->handle );
851 fprintf( stderr, " fd=%d", req->fd );
854 static void dump_open_process_request( const struct open_process_request *req )
856 fprintf( stderr, " pid=%04x,", req->pid );
857 fprintf( stderr, " access=%08x,", req->access );
858 fprintf( stderr, " inherit=%d", req->inherit );
861 static void dump_open_process_reply( const struct open_process_reply *req )
863 fprintf( stderr, " handle=%p", req->handle );
866 static void dump_open_thread_request( const struct open_thread_request *req )
868 fprintf( stderr, " tid=%04x,", req->tid );
869 fprintf( stderr, " access=%08x,", req->access );
870 fprintf( stderr, " inherit=%d", req->inherit );
873 static void dump_open_thread_reply( const struct open_thread_reply *req )
875 fprintf( stderr, " handle=%p", req->handle );
878 static void dump_select_request( const struct select_request *req )
880 fprintf( stderr, " flags=%d,", req->flags );
881 fprintf( stderr, " cookie=%p,", req->cookie );
882 fprintf( stderr, " signal=%p,", req->signal );
883 fprintf( stderr, " timeout=" );
884 dump_abs_time( &req->timeout );
885 fprintf( stderr, "," );
886 fprintf( stderr, " handles=" );
887 dump_varargs_handles( cur_size );
890 static void dump_create_event_request( const struct create_event_request *req )
892 fprintf( stderr, " access=%08x,", req->access );
893 fprintf( stderr, " attributes=%08x,", req->attributes );
894 fprintf( stderr, " manual_reset=%d,", req->manual_reset );
895 fprintf( stderr, " initial_state=%d,", req->initial_state );
896 fprintf( stderr, " name=" );
897 dump_varargs_unicode_str( cur_size );
900 static void dump_create_event_reply( const struct create_event_reply *req )
902 fprintf( stderr, " handle=%p", req->handle );
905 static void dump_event_op_request( const struct event_op_request *req )
907 fprintf( stderr, " handle=%p,", req->handle );
908 fprintf( stderr, " op=%d", req->op );
911 static void dump_open_event_request( const struct open_event_request *req )
913 fprintf( stderr, " access=%08x,", req->access );
914 fprintf( stderr, " attributes=%08x,", req->attributes );
915 fprintf( stderr, " name=" );
916 dump_varargs_unicode_str( cur_size );
919 static void dump_open_event_reply( const struct open_event_reply *req )
921 fprintf( stderr, " handle=%p", req->handle );
924 static void dump_create_mutex_request( const struct create_mutex_request *req )
926 fprintf( stderr, " access=%08x,", req->access );
927 fprintf( stderr, " attributes=%08x,", req->attributes );
928 fprintf( stderr, " owned=%d,", req->owned );
929 fprintf( stderr, " name=" );
930 dump_varargs_unicode_str( cur_size );
933 static void dump_create_mutex_reply( const struct create_mutex_reply *req )
935 fprintf( stderr, " handle=%p", req->handle );
938 static void dump_release_mutex_request( const struct release_mutex_request *req )
940 fprintf( stderr, " handle=%p", req->handle );
943 static void dump_release_mutex_reply( const struct release_mutex_reply *req )
945 fprintf( stderr, " prev_count=%08x", req->prev_count );
948 static void dump_open_mutex_request( const struct open_mutex_request *req )
950 fprintf( stderr, " access=%08x,", req->access );
951 fprintf( stderr, " attributes=%08x,", req->attributes );
952 fprintf( stderr, " name=" );
953 dump_varargs_unicode_str( cur_size );
956 static void dump_open_mutex_reply( const struct open_mutex_reply *req )
958 fprintf( stderr, " handle=%p", req->handle );
961 static void dump_create_semaphore_request( const struct create_semaphore_request *req )
963 fprintf( stderr, " access=%08x,", req->access );
964 fprintf( stderr, " attributes=%08x,", req->attributes );
965 fprintf( stderr, " initial=%08x,", req->initial );
966 fprintf( stderr, " max=%08x,", req->max );
967 fprintf( stderr, " name=" );
968 dump_varargs_unicode_str( cur_size );
971 static void dump_create_semaphore_reply( const struct create_semaphore_reply *req )
973 fprintf( stderr, " handle=%p", req->handle );
976 static void dump_release_semaphore_request( const struct release_semaphore_request *req )
978 fprintf( stderr, " handle=%p,", req->handle );
979 fprintf( stderr, " count=%08x", req->count );
982 static void dump_release_semaphore_reply( const struct release_semaphore_reply *req )
984 fprintf( stderr, " prev_count=%08x", req->prev_count );
987 static void dump_open_semaphore_request( const struct open_semaphore_request *req )
989 fprintf( stderr, " access=%08x,", req->access );
990 fprintf( stderr, " attributes=%08x,", req->attributes );
991 fprintf( stderr, " name=" );
992 dump_varargs_unicode_str( cur_size );
995 static void dump_open_semaphore_reply( const struct open_semaphore_reply *req )
997 fprintf( stderr, " handle=%p", req->handle );
1000 static void dump_create_file_request( const struct create_file_request *req )
1002 fprintf( stderr, " access=%08x,", req->access );
1003 fprintf( stderr, " inherit=%d,", req->inherit );
1004 fprintf( stderr, " sharing=%08x,", req->sharing );
1005 fprintf( stderr, " create=%d,", req->create );
1006 fprintf( stderr, " options=%08x,", req->options );
1007 fprintf( stderr, " attrs=%08x,", req->attrs );
1008 fprintf( stderr, " filename=" );
1009 dump_varargs_string( cur_size );
1012 static void dump_create_file_reply( const struct create_file_reply *req )
1014 fprintf( stderr, " handle=%p", req->handle );
1017 static void dump_alloc_file_handle_request( const struct alloc_file_handle_request *req )
1019 fprintf( stderr, " access=%08x,", req->access );
1020 fprintf( stderr, " inherit=%d,", req->inherit );
1021 fprintf( stderr, " fd=%d", req->fd );
1024 static void dump_alloc_file_handle_reply( const struct alloc_file_handle_reply *req )
1026 fprintf( stderr, " handle=%p", req->handle );
1029 static void dump_get_handle_fd_request( const struct get_handle_fd_request *req )
1031 fprintf( stderr, " handle=%p,", req->handle );
1032 fprintf( stderr, " access=%08x", req->access );
1035 static void dump_get_handle_fd_reply( const struct get_handle_fd_reply *req )
1037 fprintf( stderr, " fd=%d,", req->fd );
1038 fprintf( stderr, " removable=%d,", req->removable );
1039 fprintf( stderr, " flags=%d", req->flags );
1042 static void dump_set_handle_fd_request( const struct set_handle_fd_request *req )
1044 fprintf( stderr, " handle=%p,", req->handle );
1045 fprintf( stderr, " fd=%d,", req->fd );
1046 fprintf( stderr, " removable=%d", req->removable );
1049 static void dump_set_handle_fd_reply( const struct set_handle_fd_reply *req )
1051 fprintf( stderr, " cur_fd=%d", req->cur_fd );
1054 static void dump_flush_file_request( const struct flush_file_request *req )
1056 fprintf( stderr, " handle=%p", req->handle );
1059 static void dump_flush_file_reply( const struct flush_file_reply *req )
1061 fprintf( stderr, " event=%p", req->event );
1064 static void dump_lock_file_request( const struct lock_file_request *req )
1066 fprintf( stderr, " handle=%p,", req->handle );
1067 fprintf( stderr, " offset_low=%08x,", req->offset_low );
1068 fprintf( stderr, " offset_high=%08x,", req->offset_high );
1069 fprintf( stderr, " count_low=%08x,", req->count_low );
1070 fprintf( stderr, " count_high=%08x,", req->count_high );
1071 fprintf( stderr, " shared=%d,", req->shared );
1072 fprintf( stderr, " wait=%d", req->wait );
1075 static void dump_lock_file_reply( const struct lock_file_reply *req )
1077 fprintf( stderr, " handle=%p,", req->handle );
1078 fprintf( stderr, " overlapped=%d", req->overlapped );
1081 static void dump_unlock_file_request( const struct unlock_file_request *req )
1083 fprintf( stderr, " handle=%p,", req->handle );
1084 fprintf( stderr, " offset_low=%08x,", req->offset_low );
1085 fprintf( stderr, " offset_high=%08x,", req->offset_high );
1086 fprintf( stderr, " count_low=%08x,", req->count_low );
1087 fprintf( stderr, " count_high=%08x", req->count_high );
1090 static void dump_unmount_device_request( const struct unmount_device_request *req )
1092 fprintf( stderr, " handle=%p", req->handle );
1095 static void dump_create_socket_request( const struct create_socket_request *req )
1097 fprintf( stderr, " access=%08x,", req->access );
1098 fprintf( stderr, " inherit=%d,", req->inherit );
1099 fprintf( stderr, " family=%d,", req->family );
1100 fprintf( stderr, " type=%d,", req->type );
1101 fprintf( stderr, " protocol=%d,", req->protocol );
1102 fprintf( stderr, " flags=%08x", req->flags );
1105 static void dump_create_socket_reply( const struct create_socket_reply *req )
1107 fprintf( stderr, " handle=%p", req->handle );
1110 static void dump_accept_socket_request( const struct accept_socket_request *req )
1112 fprintf( stderr, " lhandle=%p,", req->lhandle );
1113 fprintf( stderr, " access=%08x,", req->access );
1114 fprintf( stderr, " inherit=%d", req->inherit );
1117 static void dump_accept_socket_reply( const struct accept_socket_reply *req )
1119 fprintf( stderr, " handle=%p", req->handle );
1122 static void dump_set_socket_event_request( const struct set_socket_event_request *req )
1124 fprintf( stderr, " handle=%p,", req->handle );
1125 fprintf( stderr, " mask=%08x,", req->mask );
1126 fprintf( stderr, " event=%p,", req->event );
1127 fprintf( stderr, " window=%p,", req->window );
1128 fprintf( stderr, " msg=%08x", req->msg );
1131 static void dump_get_socket_event_request( const struct get_socket_event_request *req )
1133 fprintf( stderr, " handle=%p,", req->handle );
1134 fprintf( stderr, " service=%d,", req->service );
1135 fprintf( stderr, " c_event=%p", req->c_event );
1138 static void dump_get_socket_event_reply( const struct get_socket_event_reply *req )
1140 fprintf( stderr, " mask=%08x,", req->mask );
1141 fprintf( stderr, " pmask=%08x,", req->pmask );
1142 fprintf( stderr, " state=%08x,", req->state );
1143 fprintf( stderr, " errors=" );
1144 dump_varargs_ints( cur_size );
1147 static void dump_enable_socket_event_request( const struct enable_socket_event_request *req )
1149 fprintf( stderr, " handle=%p,", req->handle );
1150 fprintf( stderr, " mask=%08x,", req->mask );
1151 fprintf( stderr, " sstate=%08x,", req->sstate );
1152 fprintf( stderr, " cstate=%08x", req->cstate );
1155 static void dump_set_socket_deferred_request( const struct set_socket_deferred_request *req )
1157 fprintf( stderr, " handle=%p,", req->handle );
1158 fprintf( stderr, " deferred=%p", req->deferred );
1161 static void dump_alloc_console_request( const struct alloc_console_request *req )
1163 fprintf( stderr, " access=%08x,", req->access );
1164 fprintf( stderr, " inherit=%d,", req->inherit );
1165 fprintf( stderr, " pid=%04x", req->pid );
1168 static void dump_alloc_console_reply( const struct alloc_console_reply *req )
1170 fprintf( stderr, " handle_in=%p,", req->handle_in );
1171 fprintf( stderr, " event=%p", req->event );
1174 static void dump_free_console_request( const struct free_console_request *req )
1178 static void dump_get_console_renderer_events_request( const struct get_console_renderer_events_request *req )
1180 fprintf( stderr, " handle=%p", req->handle );
1183 static void dump_get_console_renderer_events_reply( const struct get_console_renderer_events_reply *req )
1185 fprintf( stderr, " data=" );
1186 dump_varargs_bytes( cur_size );
1189 static void dump_open_console_request( const struct open_console_request *req )
1191 fprintf( stderr, " from=%d,", req->from );
1192 fprintf( stderr, " access=%08x,", req->access );
1193 fprintf( stderr, " inherit=%d,", req->inherit );
1194 fprintf( stderr, " share=%d", req->share );
1197 static void dump_open_console_reply( const struct open_console_reply *req )
1199 fprintf( stderr, " handle=%p", req->handle );
1202 static void dump_get_console_wait_event_request( const struct get_console_wait_event_request *req )
1206 static void dump_get_console_wait_event_reply( const struct get_console_wait_event_reply *req )
1208 fprintf( stderr, " handle=%p", req->handle );
1211 static void dump_get_console_mode_request( const struct get_console_mode_request *req )
1213 fprintf( stderr, " handle=%p", req->handle );
1216 static void dump_get_console_mode_reply( const struct get_console_mode_reply *req )
1218 fprintf( stderr, " mode=%d", req->mode );
1221 static void dump_set_console_mode_request( const struct set_console_mode_request *req )
1223 fprintf( stderr, " handle=%p,", req->handle );
1224 fprintf( stderr, " mode=%d", req->mode );
1227 static void dump_set_console_input_info_request( const struct set_console_input_info_request *req )
1229 fprintf( stderr, " handle=%p,", req->handle );
1230 fprintf( stderr, " mask=%d,", req->mask );
1231 fprintf( stderr, " active_sb=%p,", req->active_sb );
1232 fprintf( stderr, " history_mode=%d,", req->history_mode );
1233 fprintf( stderr, " history_size=%d,", req->history_size );
1234 fprintf( stderr, " edition_mode=%d,", req->edition_mode );
1235 fprintf( stderr, " title=" );
1236 dump_varargs_unicode_str( cur_size );
1239 static void dump_get_console_input_info_request( const struct get_console_input_info_request *req )
1241 fprintf( stderr, " handle=%p", req->handle );
1244 static void dump_get_console_input_info_reply( const struct get_console_input_info_reply *req )
1246 fprintf( stderr, " history_mode=%d,", req->history_mode );
1247 fprintf( stderr, " history_size=%d,", req->history_size );
1248 fprintf( stderr, " history_index=%d,", req->history_index );
1249 fprintf( stderr, " edition_mode=%d,", req->edition_mode );
1250 fprintf( stderr, " title=" );
1251 dump_varargs_unicode_str( cur_size );
1254 static void dump_append_console_input_history_request( const struct append_console_input_history_request *req )
1256 fprintf( stderr, " handle=%p,", req->handle );
1257 fprintf( stderr, " line=" );
1258 dump_varargs_unicode_str( cur_size );
1261 static void dump_get_console_input_history_request( const struct get_console_input_history_request *req )
1263 fprintf( stderr, " handle=%p,", req->handle );
1264 fprintf( stderr, " index=%d", req->index );
1267 static void dump_get_console_input_history_reply( const struct get_console_input_history_reply *req )
1269 fprintf( stderr, " total=%d,", req->total );
1270 fprintf( stderr, " line=" );
1271 dump_varargs_unicode_str( cur_size );
1274 static void dump_create_console_output_request( const struct create_console_output_request *req )
1276 fprintf( stderr, " handle_in=%p,", req->handle_in );
1277 fprintf( stderr, " access=%d,", req->access );
1278 fprintf( stderr, " share=%d,", req->share );
1279 fprintf( stderr, " inherit=%d", req->inherit );
1282 static void dump_create_console_output_reply( const struct create_console_output_reply *req )
1284 fprintf( stderr, " handle_out=%p", req->handle_out );
1287 static void dump_set_console_output_info_request( const struct set_console_output_info_request *req )
1289 fprintf( stderr, " handle=%p,", req->handle );
1290 fprintf( stderr, " mask=%d,", req->mask );
1291 fprintf( stderr, " cursor_size=%d,", req->cursor_size );
1292 fprintf( stderr, " cursor_visible=%d,", req->cursor_visible );
1293 fprintf( stderr, " cursor_x=%d,", req->cursor_x );
1294 fprintf( stderr, " cursor_y=%d,", req->cursor_y );
1295 fprintf( stderr, " width=%d,", req->width );
1296 fprintf( stderr, " height=%d,", req->height );
1297 fprintf( stderr, " attr=%d,", req->attr );
1298 fprintf( stderr, " win_left=%d,", req->win_left );
1299 fprintf( stderr, " win_top=%d,", req->win_top );
1300 fprintf( stderr, " win_right=%d,", req->win_right );
1301 fprintf( stderr, " win_bottom=%d,", req->win_bottom );
1302 fprintf( stderr, " max_width=%d,", req->max_width );
1303 fprintf( stderr, " max_height=%d", req->max_height );
1306 static void dump_get_console_output_info_request( const struct get_console_output_info_request *req )
1308 fprintf( stderr, " handle=%p", req->handle );
1311 static void dump_get_console_output_info_reply( const struct get_console_output_info_reply *req )
1313 fprintf( stderr, " cursor_size=%d,", req->cursor_size );
1314 fprintf( stderr, " cursor_visible=%d,", req->cursor_visible );
1315 fprintf( stderr, " cursor_x=%d,", req->cursor_x );
1316 fprintf( stderr, " cursor_y=%d,", req->cursor_y );
1317 fprintf( stderr, " width=%d,", req->width );
1318 fprintf( stderr, " height=%d,", req->height );
1319 fprintf( stderr, " attr=%d,", req->attr );
1320 fprintf( stderr, " win_left=%d,", req->win_left );
1321 fprintf( stderr, " win_top=%d,", req->win_top );
1322 fprintf( stderr, " win_right=%d,", req->win_right );
1323 fprintf( stderr, " win_bottom=%d,", req->win_bottom );
1324 fprintf( stderr, " max_width=%d,", req->max_width );
1325 fprintf( stderr, " max_height=%d", req->max_height );
1328 static void dump_write_console_input_request( const struct write_console_input_request *req )
1330 fprintf( stderr, " handle=%p,", req->handle );
1331 fprintf( stderr, " rec=" );
1332 dump_varargs_input_records( cur_size );
1335 static void dump_write_console_input_reply( const struct write_console_input_reply *req )
1337 fprintf( stderr, " written=%d", req->written );
1340 static void dump_read_console_input_request( const struct read_console_input_request *req )
1342 fprintf( stderr, " handle=%p,", req->handle );
1343 fprintf( stderr, " flush=%d", req->flush );
1346 static void dump_read_console_input_reply( const struct read_console_input_reply *req )
1348 fprintf( stderr, " read=%d,", req->read );
1349 fprintf( stderr, " rec=" );
1350 dump_varargs_input_records( cur_size );
1353 static void dump_write_console_output_request( const struct write_console_output_request *req )
1355 fprintf( stderr, " handle=%p,", req->handle );
1356 fprintf( stderr, " x=%d,", req->x );
1357 fprintf( stderr, " y=%d,", req->y );
1358 fprintf( stderr, " mode=%d,", req->mode );
1359 fprintf( stderr, " wrap=%d,", req->wrap );
1360 fprintf( stderr, " data=" );
1361 dump_varargs_bytes( cur_size );
1364 static void dump_write_console_output_reply( const struct write_console_output_reply *req )
1366 fprintf( stderr, " written=%d,", req->written );
1367 fprintf( stderr, " width=%d,", req->width );
1368 fprintf( stderr, " height=%d", req->height );
1371 static void dump_fill_console_output_request( const struct fill_console_output_request *req )
1373 fprintf( stderr, " handle=%p,", req->handle );
1374 fprintf( stderr, " x=%d,", req->x );
1375 fprintf( stderr, " y=%d,", req->y );
1376 fprintf( stderr, " mode=%d,", req->mode );
1377 fprintf( stderr, " count=%d,", req->count );
1378 fprintf( stderr, " wrap=%d,", req->wrap );
1379 fprintf( stderr, " data=" );
1380 dump_char_info( &req->data );
1383 static void dump_fill_console_output_reply( const struct fill_console_output_reply *req )
1385 fprintf( stderr, " written=%d", req->written );
1388 static void dump_read_console_output_request( const struct read_console_output_request *req )
1390 fprintf( stderr, " handle=%p,", req->handle );
1391 fprintf( stderr, " x=%d,", req->x );
1392 fprintf( stderr, " y=%d,", req->y );
1393 fprintf( stderr, " mode=%d,", req->mode );
1394 fprintf( stderr, " wrap=%d", req->wrap );
1397 static void dump_read_console_output_reply( const struct read_console_output_reply *req )
1399 fprintf( stderr, " width=%d,", req->width );
1400 fprintf( stderr, " height=%d,", req->height );
1401 fprintf( stderr, " data=" );
1402 dump_varargs_bytes( cur_size );
1405 static void dump_move_console_output_request( const struct move_console_output_request *req )
1407 fprintf( stderr, " handle=%p,", req->handle );
1408 fprintf( stderr, " x_src=%d,", req->x_src );
1409 fprintf( stderr, " y_src=%d,", req->y_src );
1410 fprintf( stderr, " x_dst=%d,", req->x_dst );
1411 fprintf( stderr, " y_dst=%d,", req->y_dst );
1412 fprintf( stderr, " w=%d,", req->w );
1413 fprintf( stderr, " h=%d", req->h );
1416 static void dump_send_console_signal_request( const struct send_console_signal_request *req )
1418 fprintf( stderr, " signal=%d,", req->signal );
1419 fprintf( stderr, " group_id=%04x", req->group_id );
1422 static void dump_create_change_notification_request( const struct create_change_notification_request *req )
1424 fprintf( stderr, " handle=%p,", req->handle );
1425 fprintf( stderr, " subtree=%d,", req->subtree );
1426 fprintf( stderr, " filter=%08x", req->filter );
1429 static void dump_create_change_notification_reply( const struct create_change_notification_reply *req )
1431 fprintf( stderr, " handle=%p", req->handle );
1434 static void dump_next_change_notification_request( const struct next_change_notification_request *req )
1436 fprintf( stderr, " handle=%p", req->handle );
1439 static void dump_create_mapping_request( const struct create_mapping_request *req )
1441 fprintf( stderr, " access=%08x,", req->access );
1442 fprintf( stderr, " attributes=%08x,", req->attributes );
1443 fprintf( stderr, " size_high=%d,", req->size_high );
1444 fprintf( stderr, " size_low=%d,", req->size_low );
1445 fprintf( stderr, " protect=%d,", req->protect );
1446 fprintf( stderr, " file_handle=%p,", req->file_handle );
1447 fprintf( stderr, " name=" );
1448 dump_varargs_unicode_str( cur_size );
1451 static void dump_create_mapping_reply( const struct create_mapping_reply *req )
1453 fprintf( stderr, " handle=%p", req->handle );
1456 static void dump_open_mapping_request( const struct open_mapping_request *req )
1458 fprintf( stderr, " access=%08x,", req->access );
1459 fprintf( stderr, " attributes=%08x,", req->attributes );
1460 fprintf( stderr, " name=" );
1461 dump_varargs_unicode_str( cur_size );
1464 static void dump_open_mapping_reply( const struct open_mapping_reply *req )
1466 fprintf( stderr, " handle=%p", req->handle );
1469 static void dump_get_mapping_info_request( const struct get_mapping_info_request *req )
1471 fprintf( stderr, " handle=%p", req->handle );
1474 static void dump_get_mapping_info_reply( const struct get_mapping_info_reply *req )
1476 fprintf( stderr, " size_high=%d,", req->size_high );
1477 fprintf( stderr, " size_low=%d,", req->size_low );
1478 fprintf( stderr, " protect=%d,", req->protect );
1479 fprintf( stderr, " header_size=%d,", req->header_size );
1480 fprintf( stderr, " base=%p,", req->base );
1481 fprintf( stderr, " shared_file=%p,", req->shared_file );
1482 fprintf( stderr, " shared_size=%d", req->shared_size );
1485 static void dump_create_snapshot_request( const struct create_snapshot_request *req )
1487 fprintf( stderr, " inherit=%d,", req->inherit );
1488 fprintf( stderr, " flags=%d,", req->flags );
1489 fprintf( stderr, " pid=%04x", req->pid );
1492 static void dump_create_snapshot_reply( const struct create_snapshot_reply *req )
1494 fprintf( stderr, " handle=%p", req->handle );
1497 static void dump_next_process_request( const struct next_process_request *req )
1499 fprintf( stderr, " handle=%p,", req->handle );
1500 fprintf( stderr, " reset=%d", req->reset );
1503 static void dump_next_process_reply( const struct next_process_reply *req )
1505 fprintf( stderr, " count=%d,", req->count );
1506 fprintf( stderr, " pid=%04x,", req->pid );
1507 fprintf( stderr, " ppid=%04x,", req->ppid );
1508 fprintf( stderr, " heap=%p,", req->heap );
1509 fprintf( stderr, " module=%p,", req->module );
1510 fprintf( stderr, " threads=%d,", req->threads );
1511 fprintf( stderr, " priority=%d,", req->priority );
1512 fprintf( stderr, " handles=%d,", req->handles );
1513 fprintf( stderr, " filename=" );
1514 dump_varargs_unicode_str( cur_size );
1517 static void dump_next_thread_request( const struct next_thread_request *req )
1519 fprintf( stderr, " handle=%p,", req->handle );
1520 fprintf( stderr, " reset=%d", req->reset );
1523 static void dump_next_thread_reply( const struct next_thread_reply *req )
1525 fprintf( stderr, " count=%d,", req->count );
1526 fprintf( stderr, " pid=%04x,", req->pid );
1527 fprintf( stderr, " tid=%04x,", req->tid );
1528 fprintf( stderr, " base_pri=%d,", req->base_pri );
1529 fprintf( stderr, " delta_pri=%d", req->delta_pri );
1532 static void dump_next_module_request( const struct next_module_request *req )
1534 fprintf( stderr, " handle=%p,", req->handle );
1535 fprintf( stderr, " reset=%d", req->reset );
1538 static void dump_next_module_reply( const struct next_module_reply *req )
1540 fprintf( stderr, " pid=%04x,", req->pid );
1541 fprintf( stderr, " base=%p,", req->base );
1542 fprintf( stderr, " size=%d,", req->size );
1543 fprintf( stderr, " filename=" );
1544 dump_varargs_unicode_str( cur_size );
1547 static void dump_wait_debug_event_request( const struct wait_debug_event_request *req )
1549 fprintf( stderr, " get_handle=%d", req->get_handle );
1552 static void dump_wait_debug_event_reply( const struct wait_debug_event_reply *req )
1554 fprintf( stderr, " pid=%04x,", req->pid );
1555 fprintf( stderr, " tid=%04x,", req->tid );
1556 fprintf( stderr, " wait=%p,", req->wait );
1557 fprintf( stderr, " event=" );
1558 dump_varargs_debug_event( cur_size );
1561 static void dump_queue_exception_event_request( const struct queue_exception_event_request *req )
1563 fprintf( stderr, " first=%d,", req->first );
1564 fprintf( stderr, " record=" );
1565 dump_varargs_exc_event( cur_size );
1568 static void dump_queue_exception_event_reply( const struct queue_exception_event_reply *req )
1570 fprintf( stderr, " handle=%p", req->handle );
1573 static void dump_get_exception_status_request( const struct get_exception_status_request *req )
1575 fprintf( stderr, " handle=%p", req->handle );
1578 static void dump_get_exception_status_reply( const struct get_exception_status_reply *req )
1580 fprintf( stderr, " context=" );
1581 dump_varargs_context( cur_size );
1584 static void dump_output_debug_string_request( const struct output_debug_string_request *req )
1586 fprintf( stderr, " string=%p,", req->string );
1587 fprintf( stderr, " unicode=%d,", req->unicode );
1588 fprintf( stderr, " length=%d", req->length );
1591 static void dump_continue_debug_event_request( const struct continue_debug_event_request *req )
1593 fprintf( stderr, " pid=%04x,", req->pid );
1594 fprintf( stderr, " tid=%04x,", req->tid );
1595 fprintf( stderr, " status=%d", req->status );
1598 static void dump_debug_process_request( const struct debug_process_request *req )
1600 fprintf( stderr, " pid=%04x,", req->pid );
1601 fprintf( stderr, " attach=%d", req->attach );
1604 static void dump_debug_break_request( const struct debug_break_request *req )
1606 fprintf( stderr, " handle=%p", req->handle );
1609 static void dump_debug_break_reply( const struct debug_break_reply *req )
1611 fprintf( stderr, " self=%d", req->self );
1614 static void dump_set_debugger_kill_on_exit_request( const struct set_debugger_kill_on_exit_request *req )
1616 fprintf( stderr, " kill_on_exit=%d", req->kill_on_exit );
1619 static void dump_read_process_memory_request( const struct read_process_memory_request *req )
1621 fprintf( stderr, " handle=%p,", req->handle );
1622 fprintf( stderr, " addr=%p", req->addr );
1625 static void dump_read_process_memory_reply( const struct read_process_memory_reply *req )
1627 fprintf( stderr, " data=" );
1628 dump_varargs_bytes( cur_size );
1631 static void dump_write_process_memory_request( const struct write_process_memory_request *req )
1633 fprintf( stderr, " handle=%p,", req->handle );
1634 fprintf( stderr, " addr=%p,", req->addr );
1635 fprintf( stderr, " first_mask=%08x,", req->first_mask );
1636 fprintf( stderr, " last_mask=%08x,", req->last_mask );
1637 fprintf( stderr, " data=" );
1638 dump_varargs_bytes( cur_size );
1641 static void dump_create_key_request( const struct create_key_request *req )
1643 fprintf( stderr, " parent=%p,", req->parent );
1644 fprintf( stderr, " access=%08x,", req->access );
1645 fprintf( stderr, " options=%08x,", req->options );
1646 fprintf( stderr, " modif=%ld,", (long)req->modif );
1647 fprintf( stderr, " namelen=%d,", req->namelen );
1648 fprintf( stderr, " name=" );
1649 dump_varargs_unicode_str( min(cur_size,req->namelen) );
1650 fputc( ',', stderr );
1651 fprintf( stderr, " class=" );
1652 dump_varargs_unicode_str( cur_size );
1655 static void dump_create_key_reply( const struct create_key_reply *req )
1657 fprintf( stderr, " hkey=%p,", req->hkey );
1658 fprintf( stderr, " created=%d", req->created );
1661 static void dump_open_key_request( const struct open_key_request *req )
1663 fprintf( stderr, " parent=%p,", req->parent );
1664 fprintf( stderr, " access=%08x,", req->access );
1665 fprintf( stderr, " name=" );
1666 dump_varargs_unicode_str( cur_size );
1669 static void dump_open_key_reply( const struct open_key_reply *req )
1671 fprintf( stderr, " hkey=%p", req->hkey );
1674 static void dump_delete_key_request( const struct delete_key_request *req )
1676 fprintf( stderr, " hkey=%p", req->hkey );
1679 static void dump_flush_key_request( const struct flush_key_request *req )
1681 fprintf( stderr, " hkey=%p", req->hkey );
1684 static void dump_enum_key_request( const struct enum_key_request *req )
1686 fprintf( stderr, " hkey=%p,", req->hkey );
1687 fprintf( stderr, " index=%d,", req->index );
1688 fprintf( stderr, " info_class=%d", req->info_class );
1691 static void dump_enum_key_reply( const struct enum_key_reply *req )
1693 fprintf( stderr, " subkeys=%d,", req->subkeys );
1694 fprintf( stderr, " max_subkey=%d,", req->max_subkey );
1695 fprintf( stderr, " max_class=%d,", req->max_class );
1696 fprintf( stderr, " values=%d,", req->values );
1697 fprintf( stderr, " max_value=%d,", req->max_value );
1698 fprintf( stderr, " max_data=%d,", req->max_data );
1699 fprintf( stderr, " modif=%ld,", (long)req->modif );
1700 fprintf( stderr, " total=%d,", req->total );
1701 fprintf( stderr, " namelen=%d,", req->namelen );
1702 fprintf( stderr, " name=" );
1703 dump_varargs_unicode_str( min(cur_size,req->namelen) );
1704 fputc( ',', stderr );
1705 fprintf( stderr, " class=" );
1706 dump_varargs_unicode_str( cur_size );
1709 static void dump_set_key_value_request( const struct set_key_value_request *req )
1711 fprintf( stderr, " hkey=%p,", req->hkey );
1712 fprintf( stderr, " type=%d,", req->type );
1713 fprintf( stderr, " namelen=%d,", req->namelen );
1714 fprintf( stderr, " name=" );
1715 dump_varargs_unicode_str( min(cur_size,req->namelen) );
1716 fputc( ',', stderr );
1717 fprintf( stderr, " data=" );
1718 dump_varargs_bytes( cur_size );
1721 static void dump_get_key_value_request( const struct get_key_value_request *req )
1723 fprintf( stderr, " hkey=%p,", req->hkey );
1724 fprintf( stderr, " name=" );
1725 dump_varargs_unicode_str( cur_size );
1728 static void dump_get_key_value_reply( const struct get_key_value_reply *req )
1730 fprintf( stderr, " type=%d,", req->type );
1731 fprintf( stderr, " total=%d,", req->total );
1732 fprintf( stderr, " data=" );
1733 dump_varargs_bytes( cur_size );
1736 static void dump_enum_key_value_request( const struct enum_key_value_request *req )
1738 fprintf( stderr, " hkey=%p,", req->hkey );
1739 fprintf( stderr, " index=%d,", req->index );
1740 fprintf( stderr, " info_class=%d", req->info_class );
1743 static void dump_enum_key_value_reply( const struct enum_key_value_reply *req )
1745 fprintf( stderr, " type=%d,", req->type );
1746 fprintf( stderr, " total=%d,", req->total );
1747 fprintf( stderr, " namelen=%d,", req->namelen );
1748 fprintf( stderr, " name=" );
1749 dump_varargs_unicode_str( min(cur_size,req->namelen) );
1750 fputc( ',', stderr );
1751 fprintf( stderr, " data=" );
1752 dump_varargs_bytes( cur_size );
1755 static void dump_delete_key_value_request( const struct delete_key_value_request *req )
1757 fprintf( stderr, " hkey=%p,", req->hkey );
1758 fprintf( stderr, " name=" );
1759 dump_varargs_unicode_str( cur_size );
1762 static void dump_load_registry_request( const struct load_registry_request *req )
1764 fprintf( stderr, " hkey=%p,", req->hkey );
1765 fprintf( stderr, " file=%p,", req->file );
1766 fprintf( stderr, " name=" );
1767 dump_varargs_unicode_str( cur_size );
1770 static void dump_unload_registry_request( const struct unload_registry_request *req )
1772 fprintf( stderr, " hkey=%p", req->hkey );
1775 static void dump_save_registry_request( const struct save_registry_request *req )
1777 fprintf( stderr, " hkey=%p,", req->hkey );
1778 fprintf( stderr, " file=%p", req->file );
1781 static void dump_set_registry_notification_request( const struct set_registry_notification_request *req )
1783 fprintf( stderr, " hkey=%p,", req->hkey );
1784 fprintf( stderr, " event=%p,", req->event );
1785 fprintf( stderr, " subtree=%d,", req->subtree );
1786 fprintf( stderr, " filter=%08x", req->filter );
1789 static void dump_create_timer_request( const struct create_timer_request *req )
1791 fprintf( stderr, " access=%08x,", req->access );
1792 fprintf( stderr, " attributes=%08x,", req->attributes );
1793 fprintf( stderr, " manual=%d,", req->manual );
1794 fprintf( stderr, " name=" );
1795 dump_varargs_unicode_str( cur_size );
1798 static void dump_create_timer_reply( const struct create_timer_reply *req )
1800 fprintf( stderr, " handle=%p", req->handle );
1803 static void dump_open_timer_request( const struct open_timer_request *req )
1805 fprintf( stderr, " access=%08x,", req->access );
1806 fprintf( stderr, " attributes=%08x,", req->attributes );
1807 fprintf( stderr, " name=" );
1808 dump_varargs_unicode_str( cur_size );
1811 static void dump_open_timer_reply( const struct open_timer_reply *req )
1813 fprintf( stderr, " handle=%p", req->handle );
1816 static void dump_set_timer_request( const struct set_timer_request *req )
1818 fprintf( stderr, " handle=%p,", req->handle );
1819 fprintf( stderr, " expire=" );
1820 dump_abs_time( &req->expire );
1821 fprintf( stderr, "," );
1822 fprintf( stderr, " period=%d,", req->period );
1823 fprintf( stderr, " callback=%p,", req->callback );
1824 fprintf( stderr, " arg=%p", req->arg );
1827 static void dump_set_timer_reply( const struct set_timer_reply *req )
1829 fprintf( stderr, " signaled=%d", req->signaled );
1832 static void dump_cancel_timer_request( const struct cancel_timer_request *req )
1834 fprintf( stderr, " handle=%p", req->handle );
1837 static void dump_cancel_timer_reply( const struct cancel_timer_reply *req )
1839 fprintf( stderr, " signaled=%d", req->signaled );
1842 static void dump_get_timer_info_request( const struct get_timer_info_request *req )
1844 fprintf( stderr, " handle=%p", req->handle );
1847 static void dump_get_timer_info_reply( const struct get_timer_info_reply *req )
1849 fprintf( stderr, " when=" );
1850 dump_abs_time( &req->when );
1851 fprintf( stderr, "," );
1852 fprintf( stderr, " signaled=%d", req->signaled );
1855 static void dump_get_thread_context_request( const struct get_thread_context_request *req )
1857 fprintf( stderr, " handle=%p,", req->handle );
1858 fprintf( stderr, " flags=%08x,", req->flags );
1859 fprintf( stderr, " suspend=%d", req->suspend );
1862 static void dump_get_thread_context_reply( const struct get_thread_context_reply *req )
1864 fprintf( stderr, " context=" );
1865 dump_varargs_context( cur_size );
1868 static void dump_set_thread_context_request( const struct set_thread_context_request *req )
1870 fprintf( stderr, " handle=%p,", req->handle );
1871 fprintf( stderr, " flags=%08x,", req->flags );
1872 fprintf( stderr, " suspend=%d,", req->suspend );
1873 fprintf( stderr, " context=" );
1874 dump_varargs_context( cur_size );
1877 static void dump_get_selector_entry_request( const struct get_selector_entry_request *req )
1879 fprintf( stderr, " handle=%p,", req->handle );
1880 fprintf( stderr, " entry=%d", req->entry );
1883 static void dump_get_selector_entry_reply( const struct get_selector_entry_reply *req )
1885 fprintf( stderr, " base=%08x,", req->base );
1886 fprintf( stderr, " limit=%08x,", req->limit );
1887 fprintf( stderr, " flags=%02x", req->flags );
1890 static void dump_add_atom_request( const struct add_atom_request *req )
1892 fprintf( stderr, " table=%p,", req->table );
1893 fprintf( stderr, " name=" );
1894 dump_varargs_unicode_str( cur_size );
1897 static void dump_add_atom_reply( const struct add_atom_reply *req )
1899 fprintf( stderr, " atom=%04x", req->atom );
1902 static void dump_delete_atom_request( const struct delete_atom_request *req )
1904 fprintf( stderr, " table=%p,", req->table );
1905 fprintf( stderr, " atom=%04x", req->atom );
1908 static void dump_find_atom_request( const struct find_atom_request *req )
1910 fprintf( stderr, " table=%p,", req->table );
1911 fprintf( stderr, " name=" );
1912 dump_varargs_unicode_str( cur_size );
1915 static void dump_find_atom_reply( const struct find_atom_reply *req )
1917 fprintf( stderr, " atom=%04x", req->atom );
1920 static void dump_get_atom_information_request( const struct get_atom_information_request *req )
1922 fprintf( stderr, " table=%p,", req->table );
1923 fprintf( stderr, " atom=%04x", req->atom );
1926 static void dump_get_atom_information_reply( const struct get_atom_information_reply *req )
1928 fprintf( stderr, " count=%d,", req->count );
1929 fprintf( stderr, " pinned=%d,", req->pinned );
1930 fprintf( stderr, " name=" );
1931 dump_varargs_unicode_str( cur_size );
1934 static void dump_set_atom_information_request( const struct set_atom_information_request *req )
1936 fprintf( stderr, " table=%p,", req->table );
1937 fprintf( stderr, " atom=%04x,", req->atom );
1938 fprintf( stderr, " pinned=%d", req->pinned );
1941 static void dump_empty_atom_table_request( const struct empty_atom_table_request *req )
1943 fprintf( stderr, " table=%p,", req->table );
1944 fprintf( stderr, " if_pinned=%d", req->if_pinned );
1947 static void dump_init_atom_table_request( const struct init_atom_table_request *req )
1949 fprintf( stderr, " entries=%d", req->entries );
1952 static void dump_init_atom_table_reply( const struct init_atom_table_reply *req )
1954 fprintf( stderr, " table=%p", req->table );
1957 static void dump_get_msg_queue_request( const struct get_msg_queue_request *req )
1961 static void dump_get_msg_queue_reply( const struct get_msg_queue_reply *req )
1963 fprintf( stderr, " handle=%p", req->handle );
1966 static void dump_set_queue_mask_request( const struct set_queue_mask_request *req )
1968 fprintf( stderr, " wake_mask=%08x,", req->wake_mask );
1969 fprintf( stderr, " changed_mask=%08x,", req->changed_mask );
1970 fprintf( stderr, " skip_wait=%d", req->skip_wait );
1973 static void dump_set_queue_mask_reply( const struct set_queue_mask_reply *req )
1975 fprintf( stderr, " wake_bits=%08x,", req->wake_bits );
1976 fprintf( stderr, " changed_bits=%08x", req->changed_bits );
1979 static void dump_get_queue_status_request( const struct get_queue_status_request *req )
1981 fprintf( stderr, " clear=%d", req->clear );
1984 static void dump_get_queue_status_reply( const struct get_queue_status_reply *req )
1986 fprintf( stderr, " wake_bits=%08x,", req->wake_bits );
1987 fprintf( stderr, " changed_bits=%08x", req->changed_bits );
1990 static void dump_wait_input_idle_request( const struct wait_input_idle_request *req )
1992 fprintf( stderr, " handle=%p,", req->handle );
1993 fprintf( stderr, " timeout=%d", req->timeout );
1996 static void dump_wait_input_idle_reply( const struct wait_input_idle_reply *req )
1998 fprintf( stderr, " event=%p", req->event );
2001 static void dump_send_message_request( const struct send_message_request *req )
2003 fprintf( stderr, " id=%04x,", req->id );
2004 fprintf( stderr, " type=%d,", req->type );
2005 fprintf( stderr, " flags=%d,", req->flags );
2006 fprintf( stderr, " win=%p,", req->win );
2007 fprintf( stderr, " msg=%08x,", req->msg );
2008 fprintf( stderr, " wparam=%08x,", req->wparam );
2009 fprintf( stderr, " lparam=%08x,", req->lparam );
2010 fprintf( stderr, " x=%d,", req->x );
2011 fprintf( stderr, " y=%d,", req->y );
2012 fprintf( stderr, " time=%08x,", req->time );
2013 fprintf( stderr, " info=%08x,", req->info );
2014 fprintf( stderr, " timeout=%d,", req->timeout );
2015 fprintf( stderr, " callback=%p,", req->callback );
2016 fprintf( stderr, " data=" );
2017 dump_varargs_bytes( cur_size );
2020 static void dump_get_message_request( const struct get_message_request *req )
2022 fprintf( stderr, " flags=%d,", req->flags );
2023 fprintf( stderr, " get_win=%p,", req->get_win );
2024 fprintf( stderr, " get_first=%08x,", req->get_first );
2025 fprintf( stderr, " get_last=%08x,", req->get_last );
2026 fprintf( stderr, " hw_id=%08x", req->hw_id );
2029 static void dump_get_message_reply( const struct get_message_reply *req )
2031 fprintf( stderr, " type=%d,", req->type );
2032 fprintf( stderr, " win=%p,", req->win );
2033 fprintf( stderr, " msg=%08x,", req->msg );
2034 fprintf( stderr, " wparam=%08x,", req->wparam );
2035 fprintf( stderr, " lparam=%08x,", req->lparam );
2036 fprintf( stderr, " x=%d,", req->x );
2037 fprintf( stderr, " y=%d,", req->y );
2038 fprintf( stderr, " hook=%p,", req->hook );
2039 fprintf( stderr, " hook_proc=%p,", req->hook_proc );
2040 fprintf( stderr, " time=%08x,", req->time );
2041 fprintf( stderr, " info=%08x,", req->info );
2042 fprintf( stderr, " hw_id=%08x,", req->hw_id );
2043 fprintf( stderr, " active_hooks=%08x,", req->active_hooks );
2044 fprintf( stderr, " total=%d,", req->total );
2045 fprintf( stderr, " data=" );
2046 dump_varargs_bytes( cur_size );
2049 static void dump_reply_message_request( const struct reply_message_request *req )
2051 fprintf( stderr, " result=%08x,", req->result );
2052 fprintf( stderr, " remove=%d,", req->remove );
2053 fprintf( stderr, " data=" );
2054 dump_varargs_bytes( cur_size );
2057 static void dump_accept_hardware_message_request( const struct accept_hardware_message_request *req )
2059 fprintf( stderr, " hw_id=%08x,", req->hw_id );
2060 fprintf( stderr, " remove=%d,", req->remove );
2061 fprintf( stderr, " new_win=%p", req->new_win );
2064 static void dump_get_message_reply_request( const struct get_message_reply_request *req )
2066 fprintf( stderr, " cancel=%d", req->cancel );
2069 static void dump_get_message_reply_reply( const struct get_message_reply_reply *req )
2071 fprintf( stderr, " result=%08x,", req->result );
2072 fprintf( stderr, " data=" );
2073 dump_varargs_bytes( cur_size );
2076 static void dump_set_win_timer_request( const struct set_win_timer_request *req )
2078 fprintf( stderr, " win=%p,", req->win );
2079 fprintf( stderr, " msg=%08x,", req->msg );
2080 fprintf( stderr, " id=%08x,", req->id );
2081 fprintf( stderr, " rate=%08x,", req->rate );
2082 fprintf( stderr, " lparam=%08x", req->lparam );
2085 static void dump_set_win_timer_reply( const struct set_win_timer_reply *req )
2087 fprintf( stderr, " id=%08x", req->id );
2090 static void dump_kill_win_timer_request( const struct kill_win_timer_request *req )
2092 fprintf( stderr, " win=%p,", req->win );
2093 fprintf( stderr, " msg=%08x,", req->msg );
2094 fprintf( stderr, " id=%08x", req->id );
2097 static void dump_get_serial_info_request( const struct get_serial_info_request *req )
2099 fprintf( stderr, " handle=%p", req->handle );
2102 static void dump_get_serial_info_reply( const struct get_serial_info_reply *req )
2104 fprintf( stderr, " readinterval=%08x,", req->readinterval );
2105 fprintf( stderr, " readconst=%08x,", req->readconst );
2106 fprintf( stderr, " readmult=%08x,", req->readmult );
2107 fprintf( stderr, " writeconst=%08x,", req->writeconst );
2108 fprintf( stderr, " writemult=%08x,", req->writemult );
2109 fprintf( stderr, " eventmask=%08x,", req->eventmask );
2110 fprintf( stderr, " commerror=%08x", req->commerror );
2113 static void dump_set_serial_info_request( const struct set_serial_info_request *req )
2115 fprintf( stderr, " handle=%p,", req->handle );
2116 fprintf( stderr, " flags=%d,", req->flags );
2117 fprintf( stderr, " readinterval=%08x,", req->readinterval );
2118 fprintf( stderr, " readconst=%08x,", req->readconst );
2119 fprintf( stderr, " readmult=%08x,", req->readmult );
2120 fprintf( stderr, " writeconst=%08x,", req->writeconst );
2121 fprintf( stderr, " writemult=%08x,", req->writemult );
2122 fprintf( stderr, " eventmask=%08x,", req->eventmask );
2123 fprintf( stderr, " commerror=%08x", req->commerror );
2126 static void dump_register_async_request( const struct register_async_request *req )
2128 fprintf( stderr, " handle=%p,", req->handle );
2129 fprintf( stderr, " type=%d,", req->type );
2130 fprintf( stderr, " io_apc=%p,", req->io_apc );
2131 fprintf( stderr, " io_sb=%p,", req->io_sb );
2132 fprintf( stderr, " io_user=%p,", req->io_user );
2133 fprintf( stderr, " count=%d", req->count );
2136 static void dump_cancel_async_request( const struct cancel_async_request *req )
2138 fprintf( stderr, " handle=%p", req->handle );
2141 static void dump_create_named_pipe_request( const struct create_named_pipe_request *req )
2143 fprintf( stderr, " access=%08x,", req->access );
2144 fprintf( stderr, " attributes=%08x,", req->attributes );
2145 fprintf( stderr, " options=%08x,", req->options );
2146 fprintf( stderr, " flags=%08x,", req->flags );
2147 fprintf( stderr, " maxinstances=%08x,", req->maxinstances );
2148 fprintf( stderr, " outsize=%08x,", req->outsize );
2149 fprintf( stderr, " insize=%08x,", req->insize );
2150 fprintf( stderr, " timeout=%08x,", req->timeout );
2151 fprintf( stderr, " name=" );
2152 dump_varargs_unicode_str( cur_size );
2155 static void dump_create_named_pipe_reply( const struct create_named_pipe_reply *req )
2157 fprintf( stderr, " handle=%p", req->handle );
2160 static void dump_open_named_pipe_request( const struct open_named_pipe_request *req )
2162 fprintf( stderr, " access=%08x,", req->access );
2163 fprintf( stderr, " attributes=%08x,", req->attributes );
2164 fprintf( stderr, " flags=%08x,", req->flags );
2165 fprintf( stderr, " name=" );
2166 dump_varargs_unicode_str( cur_size );
2169 static void dump_open_named_pipe_reply( const struct open_named_pipe_reply *req )
2171 fprintf( stderr, " handle=%p", req->handle );
2174 static void dump_connect_named_pipe_request( const struct connect_named_pipe_request *req )
2176 fprintf( stderr, " handle=%p,", req->handle );
2177 fprintf( stderr, " event=%p,", req->event );
2178 fprintf( stderr, " func=%p", req->func );
2181 static void dump_wait_named_pipe_request( const struct wait_named_pipe_request *req )
2183 fprintf( stderr, " timeout=%08x,", req->timeout );
2184 fprintf( stderr, " overlapped=%p,", req->overlapped );
2185 fprintf( stderr, " func=%p,", req->func );
2186 fprintf( stderr, " name=" );
2187 dump_varargs_unicode_str( cur_size );
2190 static void dump_disconnect_named_pipe_request( const struct disconnect_named_pipe_request *req )
2192 fprintf( stderr, " handle=%p", req->handle );
2195 static void dump_disconnect_named_pipe_reply( const struct disconnect_named_pipe_reply *req )
2197 fprintf( stderr, " fd=%d", req->fd );
2200 static void dump_get_named_pipe_info_request( const struct get_named_pipe_info_request *req )
2202 fprintf( stderr, " handle=%p", req->handle );
2205 static void dump_get_named_pipe_info_reply( const struct get_named_pipe_info_reply *req )
2207 fprintf( stderr, " flags=%08x,", req->flags );
2208 fprintf( stderr, " maxinstances=%08x,", req->maxinstances );
2209 fprintf( stderr, " outsize=%08x,", req->outsize );
2210 fprintf( stderr, " insize=%08x", req->insize );
2213 static void dump_create_window_request( const struct create_window_request *req )
2215 fprintf( stderr, " parent=%p,", req->parent );
2216 fprintf( stderr, " owner=%p,", req->owner );
2217 fprintf( stderr, " atom=%04x,", req->atom );
2218 fprintf( stderr, " instance=%p", req->instance );
2221 static void dump_create_window_reply( const struct create_window_reply *req )
2223 fprintf( stderr, " handle=%p,", req->handle );
2224 fprintf( stderr, " extra=%d,", req->extra );
2225 fprintf( stderr, " class_ptr=%p", req->class_ptr );
2228 static void dump_destroy_window_request( const struct destroy_window_request *req )
2230 fprintf( stderr, " handle=%p", req->handle );
2233 static void dump_get_desktop_window_request( const struct get_desktop_window_request *req )
2237 static void dump_get_desktop_window_reply( const struct get_desktop_window_reply *req )
2239 fprintf( stderr, " handle=%p", req->handle );
2242 static void dump_set_window_owner_request( const struct set_window_owner_request *req )
2244 fprintf( stderr, " handle=%p,", req->handle );
2245 fprintf( stderr, " owner=%p", req->owner );
2248 static void dump_set_window_owner_reply( const struct set_window_owner_reply *req )
2250 fprintf( stderr, " full_owner=%p,", req->full_owner );
2251 fprintf( stderr, " prev_owner=%p", req->prev_owner );
2254 static void dump_get_window_info_request( const struct get_window_info_request *req )
2256 fprintf( stderr, " handle=%p", req->handle );
2259 static void dump_get_window_info_reply( const struct get_window_info_reply *req )
2261 fprintf( stderr, " full_handle=%p,", req->full_handle );
2262 fprintf( stderr, " last_active=%p,", req->last_active );
2263 fprintf( stderr, " pid=%04x,", req->pid );
2264 fprintf( stderr, " tid=%04x,", req->tid );
2265 fprintf( stderr, " atom=%04x,", req->atom );
2266 fprintf( stderr, " is_unicode=%d", req->is_unicode );
2269 static void dump_set_window_info_request( const struct set_window_info_request *req )
2271 fprintf( stderr, " handle=%p,", req->handle );
2272 fprintf( stderr, " flags=%08x,", req->flags );
2273 fprintf( stderr, " style=%08x,", req->style );
2274 fprintf( stderr, " ex_style=%08x,", req->ex_style );
2275 fprintf( stderr, " id=%08x,", req->id );
2276 fprintf( stderr, " instance=%p,", req->instance );
2277 fprintf( stderr, " is_unicode=%d,", req->is_unicode );
2278 fprintf( stderr, " user_data=%p,", req->user_data );
2279 fprintf( stderr, " extra_offset=%d,", req->extra_offset );
2280 fprintf( stderr, " extra_size=%d,", req->extra_size );
2281 fprintf( stderr, " extra_value=%08x", req->extra_value );
2284 static void dump_set_window_info_reply( const struct set_window_info_reply *req )
2286 fprintf( stderr, " old_style=%08x,", req->old_style );
2287 fprintf( stderr, " old_ex_style=%08x,", req->old_ex_style );
2288 fprintf( stderr, " old_id=%08x,", req->old_id );
2289 fprintf( stderr, " old_instance=%p,", req->old_instance );
2290 fprintf( stderr, " old_user_data=%p,", req->old_user_data );
2291 fprintf( stderr, " old_extra_value=%08x", req->old_extra_value );
2294 static void dump_set_parent_request( const struct set_parent_request *req )
2296 fprintf( stderr, " handle=%p,", req->handle );
2297 fprintf( stderr, " parent=%p", req->parent );
2300 static void dump_set_parent_reply( const struct set_parent_reply *req )
2302 fprintf( stderr, " old_parent=%p,", req->old_parent );
2303 fprintf( stderr, " full_parent=%p", req->full_parent );
2306 static void dump_get_window_parents_request( const struct get_window_parents_request *req )
2308 fprintf( stderr, " handle=%p", req->handle );
2311 static void dump_get_window_parents_reply( const struct get_window_parents_reply *req )
2313 fprintf( stderr, " count=%d,", req->count );
2314 fprintf( stderr, " parents=" );
2315 dump_varargs_user_handles( cur_size );
2318 static void dump_get_window_children_request( const struct get_window_children_request *req )
2320 fprintf( stderr, " parent=%p,", req->parent );
2321 fprintf( stderr, " atom=%04x,", req->atom );
2322 fprintf( stderr, " tid=%04x", req->tid );
2325 static void dump_get_window_children_reply( const struct get_window_children_reply *req )
2327 fprintf( stderr, " count=%d,", req->count );
2328 fprintf( stderr, " children=" );
2329 dump_varargs_user_handles( cur_size );
2332 static void dump_get_window_children_from_point_request( const struct get_window_children_from_point_request *req )
2334 fprintf( stderr, " parent=%p,", req->parent );
2335 fprintf( stderr, " x=%d,", req->x );
2336 fprintf( stderr, " y=%d", req->y );
2339 static void dump_get_window_children_from_point_reply( const struct get_window_children_from_point_reply *req )
2341 fprintf( stderr, " count=%d,", req->count );
2342 fprintf( stderr, " children=" );
2343 dump_varargs_user_handles( cur_size );
2346 static void dump_get_window_tree_request( const struct get_window_tree_request *req )
2348 fprintf( stderr, " handle=%p", req->handle );
2351 static void dump_get_window_tree_reply( const struct get_window_tree_reply *req )
2353 fprintf( stderr, " parent=%p,", req->parent );
2354 fprintf( stderr, " owner=%p,", req->owner );
2355 fprintf( stderr, " next_sibling=%p,", req->next_sibling );
2356 fprintf( stderr, " prev_sibling=%p,", req->prev_sibling );
2357 fprintf( stderr, " first_sibling=%p,", req->first_sibling );
2358 fprintf( stderr, " last_sibling=%p,", req->last_sibling );
2359 fprintf( stderr, " first_child=%p,", req->first_child );
2360 fprintf( stderr, " last_child=%p", req->last_child );
2363 static void dump_set_window_pos_request( const struct set_window_pos_request *req )
2365 fprintf( stderr, " handle=%p,", req->handle );
2366 fprintf( stderr, " previous=%p,", req->previous );
2367 fprintf( stderr, " flags=%08x,", req->flags );
2368 fprintf( stderr, " window=" );
2369 dump_rectangle( &req->window );
2370 fprintf( stderr, "," );
2371 fprintf( stderr, " client=" );
2372 dump_rectangle( &req->client );
2373 fprintf( stderr, "," );
2374 fprintf( stderr, " valid=" );
2375 dump_varargs_rectangles( cur_size );
2378 static void dump_set_window_pos_reply( const struct set_window_pos_reply *req )
2380 fprintf( stderr, " new_style=%08x", req->new_style );
2383 static void dump_get_window_rectangles_request( const struct get_window_rectangles_request *req )
2385 fprintf( stderr, " handle=%p", req->handle );
2388 static void dump_get_window_rectangles_reply( const struct get_window_rectangles_reply *req )
2390 fprintf( stderr, " window=" );
2391 dump_rectangle( &req->window );
2392 fprintf( stderr, "," );
2393 fprintf( stderr, " visible=" );
2394 dump_rectangle( &req->visible );
2395 fprintf( stderr, "," );
2396 fprintf( stderr, " client=" );
2397 dump_rectangle( &req->client );
2400 static void dump_get_window_text_request( const struct get_window_text_request *req )
2402 fprintf( stderr, " handle=%p", req->handle );
2405 static void dump_get_window_text_reply( const struct get_window_text_reply *req )
2407 fprintf( stderr, " text=" );
2408 dump_varargs_unicode_str( cur_size );
2411 static void dump_set_window_text_request( const struct set_window_text_request *req )
2413 fprintf( stderr, " handle=%p,", req->handle );
2414 fprintf( stderr, " text=" );
2415 dump_varargs_unicode_str( cur_size );
2418 static void dump_get_windows_offset_request( const struct get_windows_offset_request *req )
2420 fprintf( stderr, " from=%p,", req->from );
2421 fprintf( stderr, " to=%p", req->to );
2424 static void dump_get_windows_offset_reply( const struct get_windows_offset_reply *req )
2426 fprintf( stderr, " x=%d,", req->x );
2427 fprintf( stderr, " y=%d", req->y );
2430 static void dump_get_visible_region_request( const struct get_visible_region_request *req )
2432 fprintf( stderr, " window=%p,", req->window );
2433 fprintf( stderr, " flags=%08x", req->flags );
2436 static void dump_get_visible_region_reply( const struct get_visible_region_reply *req )
2438 fprintf( stderr, " top_win=%p,", req->top_win );
2439 fprintf( stderr, " top_org_x=%d,", req->top_org_x );
2440 fprintf( stderr, " top_org_y=%d,", req->top_org_y );
2441 fprintf( stderr, " win_org_x=%d,", req->win_org_x );
2442 fprintf( stderr, " win_org_y=%d,", req->win_org_y );
2443 fprintf( stderr, " total_size=%d,", req->total_size );
2444 fprintf( stderr, " region=" );
2445 dump_varargs_rectangles( cur_size );
2448 static void dump_get_window_region_request( const struct get_window_region_request *req )
2450 fprintf( stderr, " window=%p", req->window );
2453 static void dump_get_window_region_reply( const struct get_window_region_reply *req )
2455 fprintf( stderr, " total_size=%d,", req->total_size );
2456 fprintf( stderr, " region=" );
2457 dump_varargs_rectangles( cur_size );
2460 static void dump_set_window_region_request( const struct set_window_region_request *req )
2462 fprintf( stderr, " window=%p,", req->window );
2463 fprintf( stderr, " region=" );
2464 dump_varargs_rectangles( cur_size );
2467 static void dump_get_update_region_request( const struct get_update_region_request *req )
2469 fprintf( stderr, " window=%p,", req->window );
2470 fprintf( stderr, " from_child=%p,", req->from_child );
2471 fprintf( stderr, " flags=%08x", req->flags );
2474 static void dump_get_update_region_reply( const struct get_update_region_reply *req )
2476 fprintf( stderr, " child=%p,", req->child );
2477 fprintf( stderr, " flags=%08x,", req->flags );
2478 fprintf( stderr, " total_size=%d,", req->total_size );
2479 fprintf( stderr, " region=" );
2480 dump_varargs_rectangles( cur_size );
2483 static void dump_update_window_zorder_request( const struct update_window_zorder_request *req )
2485 fprintf( stderr, " window=%p,", req->window );
2486 fprintf( stderr, " rect=" );
2487 dump_rectangle( &req->rect );
2490 static void dump_redraw_window_request( const struct redraw_window_request *req )
2492 fprintf( stderr, " window=%p,", req->window );
2493 fprintf( stderr, " flags=%08x,", req->flags );
2494 fprintf( stderr, " region=" );
2495 dump_varargs_rectangles( cur_size );
2498 static void dump_set_window_property_request( const struct set_window_property_request *req )
2500 fprintf( stderr, " window=%p,", req->window );
2501 fprintf( stderr, " atom=%04x,", req->atom );
2502 fprintf( stderr, " handle=%p,", req->handle );
2503 fprintf( stderr, " name=" );
2504 dump_varargs_unicode_str( cur_size );
2507 static void dump_remove_window_property_request( const struct remove_window_property_request *req )
2509 fprintf( stderr, " window=%p,", req->window );
2510 fprintf( stderr, " atom=%04x,", req->atom );
2511 fprintf( stderr, " name=" );
2512 dump_varargs_unicode_str( cur_size );
2515 static void dump_remove_window_property_reply( const struct remove_window_property_reply *req )
2517 fprintf( stderr, " handle=%p", req->handle );
2520 static void dump_get_window_property_request( const struct get_window_property_request *req )
2522 fprintf( stderr, " window=%p,", req->window );
2523 fprintf( stderr, " atom=%04x,", req->atom );
2524 fprintf( stderr, " name=" );
2525 dump_varargs_unicode_str( cur_size );
2528 static void dump_get_window_property_reply( const struct get_window_property_reply *req )
2530 fprintf( stderr, " handle=%p", req->handle );
2533 static void dump_get_window_properties_request( const struct get_window_properties_request *req )
2535 fprintf( stderr, " window=%p", req->window );
2538 static void dump_get_window_properties_reply( const struct get_window_properties_reply *req )
2540 fprintf( stderr, " total=%d,", req->total );
2541 fprintf( stderr, " props=" );
2542 dump_varargs_properties( cur_size );
2545 static void dump_create_winstation_request( const struct create_winstation_request *req )
2547 fprintf( stderr, " flags=%08x,", req->flags );
2548 fprintf( stderr, " access=%08x,", req->access );
2549 fprintf( stderr, " inherit=%d,", req->inherit );
2550 fprintf( stderr, " name=" );
2551 dump_varargs_unicode_str( cur_size );
2554 static void dump_create_winstation_reply( const struct create_winstation_reply *req )
2556 fprintf( stderr, " handle=%p", req->handle );
2559 static void dump_open_winstation_request( const struct open_winstation_request *req )
2561 fprintf( stderr, " access=%08x,", req->access );
2562 fprintf( stderr, " inherit=%d,", req->inherit );
2563 fprintf( stderr, " name=" );
2564 dump_varargs_unicode_str( cur_size );
2567 static void dump_open_winstation_reply( const struct open_winstation_reply *req )
2569 fprintf( stderr, " handle=%p", req->handle );
2572 static void dump_close_winstation_request( const struct close_winstation_request *req )
2574 fprintf( stderr, " handle=%p", req->handle );
2577 static void dump_get_process_winstation_request( const struct get_process_winstation_request *req )
2581 static void dump_get_process_winstation_reply( const struct get_process_winstation_reply *req )
2583 fprintf( stderr, " handle=%p", req->handle );
2586 static void dump_set_process_winstation_request( const struct set_process_winstation_request *req )
2588 fprintf( stderr, " handle=%p", req->handle );
2591 static void dump_create_desktop_request( const struct create_desktop_request *req )
2593 fprintf( stderr, " flags=%08x,", req->flags );
2594 fprintf( stderr, " access=%08x,", req->access );
2595 fprintf( stderr, " inherit=%d,", req->inherit );
2596 fprintf( stderr, " name=" );
2597 dump_varargs_unicode_str( cur_size );
2600 static void dump_create_desktop_reply( const struct create_desktop_reply *req )
2602 fprintf( stderr, " handle=%p", req->handle );
2605 static void dump_open_desktop_request( const struct open_desktop_request *req )
2607 fprintf( stderr, " flags=%08x,", req->flags );
2608 fprintf( stderr, " access=%08x,", req->access );
2609 fprintf( stderr, " inherit=%d,", req->inherit );
2610 fprintf( stderr, " name=" );
2611 dump_varargs_unicode_str( cur_size );
2614 static void dump_open_desktop_reply( const struct open_desktop_reply *req )
2616 fprintf( stderr, " handle=%p", req->handle );
2619 static void dump_close_desktop_request( const struct close_desktop_request *req )
2621 fprintf( stderr, " handle=%p", req->handle );
2624 static void dump_get_thread_desktop_request( const struct get_thread_desktop_request *req )
2626 fprintf( stderr, " tid=%04x", req->tid );
2629 static void dump_get_thread_desktop_reply( const struct get_thread_desktop_reply *req )
2631 fprintf( stderr, " handle=%p", req->handle );
2634 static void dump_set_thread_desktop_request( const struct set_thread_desktop_request *req )
2636 fprintf( stderr, " handle=%p", req->handle );
2639 static void dump_set_user_object_info_request( const struct set_user_object_info_request *req )
2641 fprintf( stderr, " handle=%p,", req->handle );
2642 fprintf( stderr, " flags=%08x,", req->flags );
2643 fprintf( stderr, " obj_flags=%08x", req->obj_flags );
2646 static void dump_set_user_object_info_reply( const struct set_user_object_info_reply *req )
2648 fprintf( stderr, " is_desktop=%d,", req->is_desktop );
2649 fprintf( stderr, " old_obj_flags=%08x,", req->old_obj_flags );
2650 fprintf( stderr, " name=" );
2651 dump_varargs_unicode_str( cur_size );
2654 static void dump_attach_thread_input_request( const struct attach_thread_input_request *req )
2656 fprintf( stderr, " tid_from=%04x,", req->tid_from );
2657 fprintf( stderr, " tid_to=%04x,", req->tid_to );
2658 fprintf( stderr, " attach=%d", req->attach );
2661 static void dump_get_thread_input_request( const struct get_thread_input_request *req )
2663 fprintf( stderr, " tid=%04x", req->tid );
2666 static void dump_get_thread_input_reply( const struct get_thread_input_reply *req )
2668 fprintf( stderr, " focus=%p,", req->focus );
2669 fprintf( stderr, " capture=%p,", req->capture );
2670 fprintf( stderr, " active=%p,", req->active );
2671 fprintf( stderr, " foreground=%p,", req->foreground );
2672 fprintf( stderr, " menu_owner=%p,", req->menu_owner );
2673 fprintf( stderr, " move_size=%p,", req->move_size );
2674 fprintf( stderr, " caret=%p,", req->caret );
2675 fprintf( stderr, " rect=" );
2676 dump_rectangle( &req->rect );
2679 static void dump_get_last_input_time_request( const struct get_last_input_time_request *req )
2683 static void dump_get_last_input_time_reply( const struct get_last_input_time_reply *req )
2685 fprintf( stderr, " time=%08x", req->time );
2688 static void dump_get_key_state_request( const struct get_key_state_request *req )
2690 fprintf( stderr, " tid=%04x,", req->tid );
2691 fprintf( stderr, " key=%d", req->key );
2694 static void dump_get_key_state_reply( const struct get_key_state_reply *req )
2696 fprintf( stderr, " state=%02x,", req->state );
2697 fprintf( stderr, " keystate=" );
2698 dump_varargs_bytes( cur_size );
2701 static void dump_set_key_state_request( const struct set_key_state_request *req )
2703 fprintf( stderr, " tid=%04x,", req->tid );
2704 fprintf( stderr, " keystate=" );
2705 dump_varargs_bytes( cur_size );
2708 static void dump_set_foreground_window_request( const struct set_foreground_window_request *req )
2710 fprintf( stderr, " handle=%p", req->handle );
2713 static void dump_set_foreground_window_reply( const struct set_foreground_window_reply *req )
2715 fprintf( stderr, " previous=%p,", req->previous );
2716 fprintf( stderr, " send_msg_old=%d,", req->send_msg_old );
2717 fprintf( stderr, " send_msg_new=%d", req->send_msg_new );
2720 static void dump_set_focus_window_request( const struct set_focus_window_request *req )
2722 fprintf( stderr, " handle=%p", req->handle );
2725 static void dump_set_focus_window_reply( const struct set_focus_window_reply *req )
2727 fprintf( stderr, " previous=%p", req->previous );
2730 static void dump_set_active_window_request( const struct set_active_window_request *req )
2732 fprintf( stderr, " handle=%p", req->handle );
2735 static void dump_set_active_window_reply( const struct set_active_window_reply *req )
2737 fprintf( stderr, " previous=%p", req->previous );
2740 static void dump_set_capture_window_request( const struct set_capture_window_request *req )
2742 fprintf( stderr, " handle=%p,", req->handle );
2743 fprintf( stderr, " flags=%08x", req->flags );
2746 static void dump_set_capture_window_reply( const struct set_capture_window_reply *req )
2748 fprintf( stderr, " previous=%p,", req->previous );
2749 fprintf( stderr, " full_handle=%p", req->full_handle );
2752 static void dump_set_caret_window_request( const struct set_caret_window_request *req )
2754 fprintf( stderr, " handle=%p,", req->handle );
2755 fprintf( stderr, " width=%d,", req->width );
2756 fprintf( stderr, " height=%d", req->height );
2759 static void dump_set_caret_window_reply( const struct set_caret_window_reply *req )
2761 fprintf( stderr, " previous=%p,", req->previous );
2762 fprintf( stderr, " old_rect=" );
2763 dump_rectangle( &req->old_rect );
2764 fprintf( stderr, "," );
2765 fprintf( stderr, " old_hide=%d,", req->old_hide );
2766 fprintf( stderr, " old_state=%d", req->old_state );
2769 static void dump_set_caret_info_request( const struct set_caret_info_request *req )
2771 fprintf( stderr, " flags=%08x,", req->flags );
2772 fprintf( stderr, " handle=%p,", req->handle );
2773 fprintf( stderr, " x=%d,", req->x );
2774 fprintf( stderr, " y=%d,", req->y );
2775 fprintf( stderr, " hide=%d,", req->hide );
2776 fprintf( stderr, " state=%d", req->state );
2779 static void dump_set_caret_info_reply( const struct set_caret_info_reply *req )
2781 fprintf( stderr, " full_handle=%p,", req->full_handle );
2782 fprintf( stderr, " old_rect=" );
2783 dump_rectangle( &req->old_rect );
2784 fprintf( stderr, "," );
2785 fprintf( stderr, " old_hide=%d,", req->old_hide );
2786 fprintf( stderr, " old_state=%d", req->old_state );
2789 static void dump_set_hook_request( const struct set_hook_request *req )
2791 fprintf( stderr, " id=%d,", req->id );
2792 fprintf( stderr, " pid=%04x,", req->pid );
2793 fprintf( stderr, " tid=%04x,", req->tid );
2794 fprintf( stderr, " event_min=%d,", req->event_min );
2795 fprintf( stderr, " event_max=%d,", req->event_max );
2796 fprintf( stderr, " flags=%d,", req->flags );
2797 fprintf( stderr, " proc=%p,", req->proc );
2798 fprintf( stderr, " unicode=%d,", req->unicode );
2799 fprintf( stderr, " module=" );
2800 dump_varargs_unicode_str( cur_size );
2803 static void dump_set_hook_reply( const struct set_hook_reply *req )
2805 fprintf( stderr, " handle=%p,", req->handle );
2806 fprintf( stderr, " active_hooks=%08x", req->active_hooks );
2809 static void dump_remove_hook_request( const struct remove_hook_request *req )
2811 fprintf( stderr, " handle=%p,", req->handle );
2812 fprintf( stderr, " id=%d,", req->id );
2813 fprintf( stderr, " proc=%p", req->proc );
2816 static void dump_remove_hook_reply( const struct remove_hook_reply *req )
2818 fprintf( stderr, " active_hooks=%08x", req->active_hooks );
2821 static void dump_start_hook_chain_request( const struct start_hook_chain_request *req )
2823 fprintf( stderr, " id=%d,", req->id );
2824 fprintf( stderr, " event=%d,", req->event );
2825 fprintf( stderr, " window=%p,", req->window );
2826 fprintf( stderr, " object_id=%d,", req->object_id );
2827 fprintf( stderr, " child_id=%d", req->child_id );
2830 static void dump_start_hook_chain_reply( const struct start_hook_chain_reply *req )
2832 fprintf( stderr, " handle=%p,", req->handle );
2833 fprintf( stderr, " pid=%04x,", req->pid );
2834 fprintf( stderr, " tid=%04x,", req->tid );
2835 fprintf( stderr, " proc=%p,", req->proc );
2836 fprintf( stderr, " unicode=%d,", req->unicode );
2837 fprintf( stderr, " active_hooks=%08x,", req->active_hooks );
2838 fprintf( stderr, " module=" );
2839 dump_varargs_unicode_str( cur_size );
2842 static void dump_finish_hook_chain_request( const struct finish_hook_chain_request *req )
2844 fprintf( stderr, " id=%d", req->id );
2847 static void dump_get_next_hook_request( const struct get_next_hook_request *req )
2849 fprintf( stderr, " handle=%p,", req->handle );
2850 fprintf( stderr, " event=%d,", req->event );
2851 fprintf( stderr, " window=%p,", req->window );
2852 fprintf( stderr, " object_id=%d,", req->object_id );
2853 fprintf( stderr, " child_id=%d", req->child_id );
2856 static void dump_get_next_hook_reply( const struct get_next_hook_reply *req )
2858 fprintf( stderr, " next=%p,", req->next );
2859 fprintf( stderr, " id=%d,", req->id );
2860 fprintf( stderr, " pid=%04x,", req->pid );
2861 fprintf( stderr, " tid=%04x,", req->tid );
2862 fprintf( stderr, " proc=%p,", req->proc );
2863 fprintf( stderr, " prev_unicode=%d,", req->prev_unicode );
2864 fprintf( stderr, " next_unicode=%d,", req->next_unicode );
2865 fprintf( stderr, " module=" );
2866 dump_varargs_unicode_str( cur_size );
2869 static void dump_create_class_request( const struct create_class_request *req )
2871 fprintf( stderr, " local=%d,", req->local );
2872 fprintf( stderr, " atom=%04x,", req->atom );
2873 fprintf( stderr, " style=%08x,", req->style );
2874 fprintf( stderr, " instance=%p,", req->instance );
2875 fprintf( stderr, " extra=%d,", req->extra );
2876 fprintf( stderr, " win_extra=%d,", req->win_extra );
2877 fprintf( stderr, " client_ptr=%p", req->client_ptr );
2880 static void dump_destroy_class_request( const struct destroy_class_request *req )
2882 fprintf( stderr, " atom=%04x,", req->atom );
2883 fprintf( stderr, " instance=%p", req->instance );
2886 static void dump_destroy_class_reply( const struct destroy_class_reply *req )
2888 fprintf( stderr, " client_ptr=%p", req->client_ptr );
2891 static void dump_set_class_info_request( const struct set_class_info_request *req )
2893 fprintf( stderr, " window=%p,", req->window );
2894 fprintf( stderr, " flags=%08x,", req->flags );
2895 fprintf( stderr, " atom=%04x,", req->atom );
2896 fprintf( stderr, " style=%08x,", req->style );
2897 fprintf( stderr, " win_extra=%d,", req->win_extra );
2898 fprintf( stderr, " instance=%p,", req->instance );
2899 fprintf( stderr, " extra_offset=%d,", req->extra_offset );
2900 fprintf( stderr, " extra_size=%d,", req->extra_size );
2901 fprintf( stderr, " extra_value=%08x", req->extra_value );
2904 static void dump_set_class_info_reply( const struct set_class_info_reply *req )
2906 fprintf( stderr, " old_atom=%04x,", req->old_atom );
2907 fprintf( stderr, " old_style=%08x,", req->old_style );
2908 fprintf( stderr, " old_extra=%d,", req->old_extra );
2909 fprintf( stderr, " old_win_extra=%d,", req->old_win_extra );
2910 fprintf( stderr, " old_instance=%p,", req->old_instance );
2911 fprintf( stderr, " old_extra_value=%08x", req->old_extra_value );
2914 static void dump_set_clipboard_info_request( const struct set_clipboard_info_request *req )
2916 fprintf( stderr, " flags=%08x,", req->flags );
2917 fprintf( stderr, " clipboard=%p,", req->clipboard );
2918 fprintf( stderr, " owner=%p,", req->owner );
2919 fprintf( stderr, " viewer=%p,", req->viewer );
2920 fprintf( stderr, " seqno=%08x", req->seqno );
2923 static void dump_set_clipboard_info_reply( const struct set_clipboard_info_reply *req )
2925 fprintf( stderr, " flags=%08x,", req->flags );
2926 fprintf( stderr, " old_clipboard=%p,", req->old_clipboard );
2927 fprintf( stderr, " old_owner=%p,", req->old_owner );
2928 fprintf( stderr, " old_viewer=%p,", req->old_viewer );
2929 fprintf( stderr, " seqno=%08x", req->seqno );
2932 static void dump_open_token_request( const struct open_token_request *req )
2934 fprintf( stderr, " handle=%p,", req->handle );
2935 fprintf( stderr, " flags=%08x", req->flags );
2938 static void dump_open_token_reply( const struct open_token_reply *req )
2940 fprintf( stderr, " token=%p", req->token );
2943 static void dump_set_global_windows_request( const struct set_global_windows_request *req )
2945 fprintf( stderr, " flags=%08x,", req->flags );
2946 fprintf( stderr, " shell_window=%p,", req->shell_window );
2947 fprintf( stderr, " shell_listview=%p,", req->shell_listview );
2948 fprintf( stderr, " progman_window=%p,", req->progman_window );
2949 fprintf( stderr, " taskman_window=%p", req->taskman_window );
2952 static void dump_set_global_windows_reply( const struct set_global_windows_reply *req )
2954 fprintf( stderr, " old_shell_window=%p,", req->old_shell_window );
2955 fprintf( stderr, " old_shell_listview=%p,", req->old_shell_listview );
2956 fprintf( stderr, " old_progman_window=%p,", req->old_progman_window );
2957 fprintf( stderr, " old_taskman_window=%p", req->old_taskman_window );
2960 static void dump_adjust_token_privileges_request( const struct adjust_token_privileges_request *req )
2962 fprintf( stderr, " handle=%p,", req->handle );
2963 fprintf( stderr, " disable_all=%d,", req->disable_all );
2964 fprintf( stderr, " get_modified_state=%d,", req->get_modified_state );
2965 fprintf( stderr, " privileges=" );
2966 dump_varargs_LUID_AND_ATTRIBUTES( cur_size );
2969 static void dump_adjust_token_privileges_reply( const struct adjust_token_privileges_reply *req )
2971 fprintf( stderr, " len=%08x,", req->len );
2972 fprintf( stderr, " privileges=" );
2973 dump_varargs_LUID_AND_ATTRIBUTES( cur_size );
2976 static void dump_get_token_privileges_request( const struct get_token_privileges_request *req )
2978 fprintf( stderr, " handle=%p", req->handle );
2981 static void dump_get_token_privileges_reply( const struct get_token_privileges_reply *req )
2983 fprintf( stderr, " len=%08x,", req->len );
2984 fprintf( stderr, " privileges=" );
2985 dump_varargs_LUID_AND_ATTRIBUTES( cur_size );
2988 static void dump_check_token_privileges_request( const struct check_token_privileges_request *req )
2990 fprintf( stderr, " handle=%p,", req->handle );
2991 fprintf( stderr, " all_required=%d,", req->all_required );
2992 fprintf( stderr, " privileges=" );
2993 dump_varargs_LUID_AND_ATTRIBUTES( cur_size );
2996 static void dump_check_token_privileges_reply( const struct check_token_privileges_reply *req )
2998 fprintf( stderr, " has_privileges=%d,", req->has_privileges );
2999 fprintf( stderr, " privileges=" );
3000 dump_varargs_LUID_AND_ATTRIBUTES( cur_size );
3003 static void dump_duplicate_token_request( const struct duplicate_token_request *req )
3005 fprintf( stderr, " handle=%p,", req->handle );
3006 fprintf( stderr, " access=%08x,", req->access );
3007 fprintf( stderr, " inherit=%d,", req->inherit );
3008 fprintf( stderr, " primary=%d,", req->primary );
3009 fprintf( stderr, " impersonation_level=%d", req->impersonation_level );
3012 static void dump_duplicate_token_reply( const struct duplicate_token_reply *req )
3014 fprintf( stderr, " new_handle=%p", req->new_handle );
3017 static void dump_access_check_request( const struct access_check_request *req )
3019 fprintf( stderr, " handle=%p,", req->handle );
3020 fprintf( stderr, " desired_access=%08x,", req->desired_access );
3021 fprintf( stderr, " mapping_read=%08x,", req->mapping_read );
3022 fprintf( stderr, " mapping_write=%08x,", req->mapping_write );
3023 fprintf( stderr, " mapping_execute=%08x,", req->mapping_execute );
3024 fprintf( stderr, " mapping_all=%08x,", req->mapping_all );
3025 fprintf( stderr, " sd=" );
3026 dump_varargs_security_descriptor( cur_size );
3029 static void dump_access_check_reply( const struct access_check_reply *req )
3031 fprintf( stderr, " access_granted=%08x,", req->access_granted );
3032 fprintf( stderr, " access_status=%08x,", req->access_status );
3033 fprintf( stderr, " privileges_len=%08x,", req->privileges_len );
3034 fprintf( stderr, " privileges=" );
3035 dump_varargs_LUID_AND_ATTRIBUTES( cur_size );
3038 static void dump_get_token_user_request( const struct get_token_user_request *req )
3040 fprintf( stderr, " handle=%p", req->handle );
3043 static void dump_get_token_user_reply( const struct get_token_user_reply *req )
3045 fprintf( stderr, " user_len=%d,", req->user_len );
3046 fprintf( stderr, " user=" );
3047 dump_varargs_SID( cur_size );
3050 static void dump_create_mailslot_request( const struct create_mailslot_request *req )
3052 fprintf( stderr, " access=%08x,", req->access );
3053 fprintf( stderr, " attributes=%08x,", req->attributes );
3054 fprintf( stderr, " max_msgsize=%08x,", req->max_msgsize );
3055 fprintf( stderr, " read_timeout=%08x,", req->read_timeout );
3056 fprintf( stderr, " name=" );
3057 dump_varargs_unicode_str( cur_size );
3060 static void dump_create_mailslot_reply( const struct create_mailslot_reply *req )
3062 fprintf( stderr, " handle=%p", req->handle );
3065 static void dump_open_mailslot_request( const struct open_mailslot_request *req )
3067 fprintf( stderr, " access=%08x,", req->access );
3068 fprintf( stderr, " attributes=%08x,", req->attributes );
3069 fprintf( stderr, " sharing=%08x,", req->sharing );
3070 fprintf( stderr, " name=" );
3071 dump_varargs_unicode_str( cur_size );
3074 static void dump_open_mailslot_reply( const struct open_mailslot_reply *req )
3076 fprintf( stderr, " handle=%p", req->handle );
3079 static void dump_set_mailslot_info_request( const struct set_mailslot_info_request *req )
3081 fprintf( stderr, " handle=%p,", req->handle );
3082 fprintf( stderr, " flags=%08x,", req->flags );
3083 fprintf( stderr, " read_timeout=%08x", req->read_timeout );
3086 static void dump_set_mailslot_info_reply( const struct set_mailslot_info_reply *req )
3088 fprintf( stderr, " max_msgsize=%08x,", req->max_msgsize );
3089 fprintf( stderr, " read_timeout=%08x,", req->read_timeout );
3090 fprintf( stderr, " msg_count=%08x,", req->msg_count );
3091 fprintf( stderr, " next_msgsize=%08x", req->next_msgsize );
3094 static const dump_func req_dumpers[REQ_NB_REQUESTS] = {
3095 (dump_func)dump_new_process_request,
3096 (dump_func)dump_get_new_process_info_request,
3097 (dump_func)dump_new_thread_request,
3098 (dump_func)dump_get_startup_info_request,
3099 (dump_func)dump_init_process_done_request,
3100 (dump_func)dump_init_thread_request,
3101 (dump_func)dump_terminate_process_request,
3102 (dump_func)dump_terminate_thread_request,
3103 (dump_func)dump_get_process_info_request,
3104 (dump_func)dump_set_process_info_request,
3105 (dump_func)dump_get_thread_info_request,
3106 (dump_func)dump_set_thread_info_request,
3107 (dump_func)dump_get_dll_info_request,
3108 (dump_func)dump_suspend_thread_request,
3109 (dump_func)dump_resume_thread_request,
3110 (dump_func)dump_load_dll_request,
3111 (dump_func)dump_unload_dll_request,
3112 (dump_func)dump_queue_apc_request,
3113 (dump_func)dump_get_apc_request,
3114 (dump_func)dump_close_handle_request,
3115 (dump_func)dump_set_handle_info_request,
3116 (dump_func)dump_dup_handle_request,
3117 (dump_func)dump_open_process_request,
3118 (dump_func)dump_open_thread_request,
3119 (dump_func)dump_select_request,
3120 (dump_func)dump_create_event_request,
3121 (dump_func)dump_event_op_request,
3122 (dump_func)dump_open_event_request,
3123 (dump_func)dump_create_mutex_request,
3124 (dump_func)dump_release_mutex_request,
3125 (dump_func)dump_open_mutex_request,
3126 (dump_func)dump_create_semaphore_request,
3127 (dump_func)dump_release_semaphore_request,
3128 (dump_func)dump_open_semaphore_request,
3129 (dump_func)dump_create_file_request,
3130 (dump_func)dump_alloc_file_handle_request,
3131 (dump_func)dump_get_handle_fd_request,
3132 (dump_func)dump_set_handle_fd_request,
3133 (dump_func)dump_flush_file_request,
3134 (dump_func)dump_lock_file_request,
3135 (dump_func)dump_unlock_file_request,
3136 (dump_func)dump_unmount_device_request,
3137 (dump_func)dump_create_socket_request,
3138 (dump_func)dump_accept_socket_request,
3139 (dump_func)dump_set_socket_event_request,
3140 (dump_func)dump_get_socket_event_request,
3141 (dump_func)dump_enable_socket_event_request,
3142 (dump_func)dump_set_socket_deferred_request,
3143 (dump_func)dump_alloc_console_request,
3144 (dump_func)dump_free_console_request,
3145 (dump_func)dump_get_console_renderer_events_request,
3146 (dump_func)dump_open_console_request,
3147 (dump_func)dump_get_console_wait_event_request,
3148 (dump_func)dump_get_console_mode_request,
3149 (dump_func)dump_set_console_mode_request,
3150 (dump_func)dump_set_console_input_info_request,
3151 (dump_func)dump_get_console_input_info_request,
3152 (dump_func)dump_append_console_input_history_request,
3153 (dump_func)dump_get_console_input_history_request,
3154 (dump_func)dump_create_console_output_request,
3155 (dump_func)dump_set_console_output_info_request,
3156 (dump_func)dump_get_console_output_info_request,
3157 (dump_func)dump_write_console_input_request,
3158 (dump_func)dump_read_console_input_request,
3159 (dump_func)dump_write_console_output_request,
3160 (dump_func)dump_fill_console_output_request,
3161 (dump_func)dump_read_console_output_request,
3162 (dump_func)dump_move_console_output_request,
3163 (dump_func)dump_send_console_signal_request,
3164 (dump_func)dump_create_change_notification_request,
3165 (dump_func)dump_next_change_notification_request,
3166 (dump_func)dump_create_mapping_request,
3167 (dump_func)dump_open_mapping_request,
3168 (dump_func)dump_get_mapping_info_request,
3169 (dump_func)dump_create_snapshot_request,
3170 (dump_func)dump_next_process_request,
3171 (dump_func)dump_next_thread_request,
3172 (dump_func)dump_next_module_request,
3173 (dump_func)dump_wait_debug_event_request,
3174 (dump_func)dump_queue_exception_event_request,
3175 (dump_func)dump_get_exception_status_request,
3176 (dump_func)dump_output_debug_string_request,
3177 (dump_func)dump_continue_debug_event_request,
3178 (dump_func)dump_debug_process_request,
3179 (dump_func)dump_debug_break_request,
3180 (dump_func)dump_set_debugger_kill_on_exit_request,
3181 (dump_func)dump_read_process_memory_request,
3182 (dump_func)dump_write_process_memory_request,
3183 (dump_func)dump_create_key_request,
3184 (dump_func)dump_open_key_request,
3185 (dump_func)dump_delete_key_request,
3186 (dump_func)dump_flush_key_request,
3187 (dump_func)dump_enum_key_request,
3188 (dump_func)dump_set_key_value_request,
3189 (dump_func)dump_get_key_value_request,
3190 (dump_func)dump_enum_key_value_request,
3191 (dump_func)dump_delete_key_value_request,
3192 (dump_func)dump_load_registry_request,
3193 (dump_func)dump_unload_registry_request,
3194 (dump_func)dump_save_registry_request,
3195 (dump_func)dump_set_registry_notification_request,
3196 (dump_func)dump_create_timer_request,
3197 (dump_func)dump_open_timer_request,
3198 (dump_func)dump_set_timer_request,
3199 (dump_func)dump_cancel_timer_request,
3200 (dump_func)dump_get_timer_info_request,
3201 (dump_func)dump_get_thread_context_request,
3202 (dump_func)dump_set_thread_context_request,
3203 (dump_func)dump_get_selector_entry_request,
3204 (dump_func)dump_add_atom_request,
3205 (dump_func)dump_delete_atom_request,
3206 (dump_func)dump_find_atom_request,
3207 (dump_func)dump_get_atom_information_request,
3208 (dump_func)dump_set_atom_information_request,
3209 (dump_func)dump_empty_atom_table_request,
3210 (dump_func)dump_init_atom_table_request,
3211 (dump_func)dump_get_msg_queue_request,
3212 (dump_func)dump_set_queue_mask_request,
3213 (dump_func)dump_get_queue_status_request,
3214 (dump_func)dump_wait_input_idle_request,
3215 (dump_func)dump_send_message_request,
3216 (dump_func)dump_get_message_request,
3217 (dump_func)dump_reply_message_request,
3218 (dump_func)dump_accept_hardware_message_request,
3219 (dump_func)dump_get_message_reply_request,
3220 (dump_func)dump_set_win_timer_request,
3221 (dump_func)dump_kill_win_timer_request,
3222 (dump_func)dump_get_serial_info_request,
3223 (dump_func)dump_set_serial_info_request,
3224 (dump_func)dump_register_async_request,
3225 (dump_func)dump_cancel_async_request,
3226 (dump_func)dump_create_named_pipe_request,
3227 (dump_func)dump_open_named_pipe_request,
3228 (dump_func)dump_connect_named_pipe_request,
3229 (dump_func)dump_wait_named_pipe_request,
3230 (dump_func)dump_disconnect_named_pipe_request,
3231 (dump_func)dump_get_named_pipe_info_request,
3232 (dump_func)dump_create_window_request,
3233 (dump_func)dump_destroy_window_request,
3234 (dump_func)dump_get_desktop_window_request,
3235 (dump_func)dump_set_window_owner_request,
3236 (dump_func)dump_get_window_info_request,
3237 (dump_func)dump_set_window_info_request,
3238 (dump_func)dump_set_parent_request,
3239 (dump_func)dump_get_window_parents_request,
3240 (dump_func)dump_get_window_children_request,
3241 (dump_func)dump_get_window_children_from_point_request,
3242 (dump_func)dump_get_window_tree_request,
3243 (dump_func)dump_set_window_pos_request,
3244 (dump_func)dump_get_window_rectangles_request,
3245 (dump_func)dump_get_window_text_request,
3246 (dump_func)dump_set_window_text_request,
3247 (dump_func)dump_get_windows_offset_request,
3248 (dump_func)dump_get_visible_region_request,
3249 (dump_func)dump_get_window_region_request,
3250 (dump_func)dump_set_window_region_request,
3251 (dump_func)dump_get_update_region_request,
3252 (dump_func)dump_update_window_zorder_request,
3253 (dump_func)dump_redraw_window_request,
3254 (dump_func)dump_set_window_property_request,
3255 (dump_func)dump_remove_window_property_request,
3256 (dump_func)dump_get_window_property_request,
3257 (dump_func)dump_get_window_properties_request,
3258 (dump_func)dump_create_winstation_request,
3259 (dump_func)dump_open_winstation_request,
3260 (dump_func)dump_close_winstation_request,
3261 (dump_func)dump_get_process_winstation_request,
3262 (dump_func)dump_set_process_winstation_request,
3263 (dump_func)dump_create_desktop_request,
3264 (dump_func)dump_open_desktop_request,
3265 (dump_func)dump_close_desktop_request,
3266 (dump_func)dump_get_thread_desktop_request,
3267 (dump_func)dump_set_thread_desktop_request,
3268 (dump_func)dump_set_user_object_info_request,
3269 (dump_func)dump_attach_thread_input_request,
3270 (dump_func)dump_get_thread_input_request,
3271 (dump_func)dump_get_last_input_time_request,
3272 (dump_func)dump_get_key_state_request,
3273 (dump_func)dump_set_key_state_request,
3274 (dump_func)dump_set_foreground_window_request,
3275 (dump_func)dump_set_focus_window_request,
3276 (dump_func)dump_set_active_window_request,
3277 (dump_func)dump_set_capture_window_request,
3278 (dump_func)dump_set_caret_window_request,
3279 (dump_func)dump_set_caret_info_request,
3280 (dump_func)dump_set_hook_request,
3281 (dump_func)dump_remove_hook_request,
3282 (dump_func)dump_start_hook_chain_request,
3283 (dump_func)dump_finish_hook_chain_request,
3284 (dump_func)dump_get_next_hook_request,
3285 (dump_func)dump_create_class_request,
3286 (dump_func)dump_destroy_class_request,
3287 (dump_func)dump_set_class_info_request,
3288 (dump_func)dump_set_clipboard_info_request,
3289 (dump_func)dump_open_token_request,
3290 (dump_func)dump_set_global_windows_request,
3291 (dump_func)dump_adjust_token_privileges_request,
3292 (dump_func)dump_get_token_privileges_request,
3293 (dump_func)dump_check_token_privileges_request,
3294 (dump_func)dump_duplicate_token_request,
3295 (dump_func)dump_access_check_request,
3296 (dump_func)dump_get_token_user_request,
3297 (dump_func)dump_create_mailslot_request,
3298 (dump_func)dump_open_mailslot_request,
3299 (dump_func)dump_set_mailslot_info_request,
3302 static const dump_func reply_dumpers[REQ_NB_REQUESTS] = {
3303 (dump_func)dump_new_process_reply,
3304 (dump_func)dump_get_new_process_info_reply,
3305 (dump_func)dump_new_thread_reply,
3306 (dump_func)dump_get_startup_info_reply,
3307 (dump_func)0,
3308 (dump_func)dump_init_thread_reply,
3309 (dump_func)dump_terminate_process_reply,
3310 (dump_func)dump_terminate_thread_reply,
3311 (dump_func)dump_get_process_info_reply,
3312 (dump_func)0,
3313 (dump_func)dump_get_thread_info_reply,
3314 (dump_func)0,
3315 (dump_func)dump_get_dll_info_reply,
3316 (dump_func)dump_suspend_thread_reply,
3317 (dump_func)dump_resume_thread_reply,
3318 (dump_func)0,
3319 (dump_func)0,
3320 (dump_func)0,
3321 (dump_func)dump_get_apc_reply,
3322 (dump_func)dump_close_handle_reply,
3323 (dump_func)dump_set_handle_info_reply,
3324 (dump_func)dump_dup_handle_reply,
3325 (dump_func)dump_open_process_reply,
3326 (dump_func)dump_open_thread_reply,
3327 (dump_func)0,
3328 (dump_func)dump_create_event_reply,
3329 (dump_func)0,
3330 (dump_func)dump_open_event_reply,
3331 (dump_func)dump_create_mutex_reply,
3332 (dump_func)dump_release_mutex_reply,
3333 (dump_func)dump_open_mutex_reply,
3334 (dump_func)dump_create_semaphore_reply,
3335 (dump_func)dump_release_semaphore_reply,
3336 (dump_func)dump_open_semaphore_reply,
3337 (dump_func)dump_create_file_reply,
3338 (dump_func)dump_alloc_file_handle_reply,
3339 (dump_func)dump_get_handle_fd_reply,
3340 (dump_func)dump_set_handle_fd_reply,
3341 (dump_func)dump_flush_file_reply,
3342 (dump_func)dump_lock_file_reply,
3343 (dump_func)0,
3344 (dump_func)0,
3345 (dump_func)dump_create_socket_reply,
3346 (dump_func)dump_accept_socket_reply,
3347 (dump_func)0,
3348 (dump_func)dump_get_socket_event_reply,
3349 (dump_func)0,
3350 (dump_func)0,
3351 (dump_func)dump_alloc_console_reply,
3352 (dump_func)0,
3353 (dump_func)dump_get_console_renderer_events_reply,
3354 (dump_func)dump_open_console_reply,
3355 (dump_func)dump_get_console_wait_event_reply,
3356 (dump_func)dump_get_console_mode_reply,
3357 (dump_func)0,
3358 (dump_func)0,
3359 (dump_func)dump_get_console_input_info_reply,
3360 (dump_func)0,
3361 (dump_func)dump_get_console_input_history_reply,
3362 (dump_func)dump_create_console_output_reply,
3363 (dump_func)0,
3364 (dump_func)dump_get_console_output_info_reply,
3365 (dump_func)dump_write_console_input_reply,
3366 (dump_func)dump_read_console_input_reply,
3367 (dump_func)dump_write_console_output_reply,
3368 (dump_func)dump_fill_console_output_reply,
3369 (dump_func)dump_read_console_output_reply,
3370 (dump_func)0,
3371 (dump_func)0,
3372 (dump_func)dump_create_change_notification_reply,
3373 (dump_func)0,
3374 (dump_func)dump_create_mapping_reply,
3375 (dump_func)dump_open_mapping_reply,
3376 (dump_func)dump_get_mapping_info_reply,
3377 (dump_func)dump_create_snapshot_reply,
3378 (dump_func)dump_next_process_reply,
3379 (dump_func)dump_next_thread_reply,
3380 (dump_func)dump_next_module_reply,
3381 (dump_func)dump_wait_debug_event_reply,
3382 (dump_func)dump_queue_exception_event_reply,
3383 (dump_func)dump_get_exception_status_reply,
3384 (dump_func)0,
3385 (dump_func)0,
3386 (dump_func)0,
3387 (dump_func)dump_debug_break_reply,
3388 (dump_func)0,
3389 (dump_func)dump_read_process_memory_reply,
3390 (dump_func)0,
3391 (dump_func)dump_create_key_reply,
3392 (dump_func)dump_open_key_reply,
3393 (dump_func)0,
3394 (dump_func)0,
3395 (dump_func)dump_enum_key_reply,
3396 (dump_func)0,
3397 (dump_func)dump_get_key_value_reply,
3398 (dump_func)dump_enum_key_value_reply,
3399 (dump_func)0,
3400 (dump_func)0,
3401 (dump_func)0,
3402 (dump_func)0,
3403 (dump_func)0,
3404 (dump_func)dump_create_timer_reply,
3405 (dump_func)dump_open_timer_reply,
3406 (dump_func)dump_set_timer_reply,
3407 (dump_func)dump_cancel_timer_reply,
3408 (dump_func)dump_get_timer_info_reply,
3409 (dump_func)dump_get_thread_context_reply,
3410 (dump_func)0,
3411 (dump_func)dump_get_selector_entry_reply,
3412 (dump_func)dump_add_atom_reply,
3413 (dump_func)0,
3414 (dump_func)dump_find_atom_reply,
3415 (dump_func)dump_get_atom_information_reply,
3416 (dump_func)0,
3417 (dump_func)0,
3418 (dump_func)dump_init_atom_table_reply,
3419 (dump_func)dump_get_msg_queue_reply,
3420 (dump_func)dump_set_queue_mask_reply,
3421 (dump_func)dump_get_queue_status_reply,
3422 (dump_func)dump_wait_input_idle_reply,
3423 (dump_func)0,
3424 (dump_func)dump_get_message_reply,
3425 (dump_func)0,
3426 (dump_func)0,
3427 (dump_func)dump_get_message_reply_reply,
3428 (dump_func)dump_set_win_timer_reply,
3429 (dump_func)0,
3430 (dump_func)dump_get_serial_info_reply,
3431 (dump_func)0,
3432 (dump_func)0,
3433 (dump_func)0,
3434 (dump_func)dump_create_named_pipe_reply,
3435 (dump_func)dump_open_named_pipe_reply,
3436 (dump_func)0,
3437 (dump_func)0,
3438 (dump_func)dump_disconnect_named_pipe_reply,
3439 (dump_func)dump_get_named_pipe_info_reply,
3440 (dump_func)dump_create_window_reply,
3441 (dump_func)0,
3442 (dump_func)dump_get_desktop_window_reply,
3443 (dump_func)dump_set_window_owner_reply,
3444 (dump_func)dump_get_window_info_reply,
3445 (dump_func)dump_set_window_info_reply,
3446 (dump_func)dump_set_parent_reply,
3447 (dump_func)dump_get_window_parents_reply,
3448 (dump_func)dump_get_window_children_reply,
3449 (dump_func)dump_get_window_children_from_point_reply,
3450 (dump_func)dump_get_window_tree_reply,
3451 (dump_func)dump_set_window_pos_reply,
3452 (dump_func)dump_get_window_rectangles_reply,
3453 (dump_func)dump_get_window_text_reply,
3454 (dump_func)0,
3455 (dump_func)dump_get_windows_offset_reply,
3456 (dump_func)dump_get_visible_region_reply,
3457 (dump_func)dump_get_window_region_reply,
3458 (dump_func)0,
3459 (dump_func)dump_get_update_region_reply,
3460 (dump_func)0,
3461 (dump_func)0,
3462 (dump_func)0,
3463 (dump_func)dump_remove_window_property_reply,
3464 (dump_func)dump_get_window_property_reply,
3465 (dump_func)dump_get_window_properties_reply,
3466 (dump_func)dump_create_winstation_reply,
3467 (dump_func)dump_open_winstation_reply,
3468 (dump_func)0,
3469 (dump_func)dump_get_process_winstation_reply,
3470 (dump_func)0,
3471 (dump_func)dump_create_desktop_reply,
3472 (dump_func)dump_open_desktop_reply,
3473 (dump_func)0,
3474 (dump_func)dump_get_thread_desktop_reply,
3475 (dump_func)0,
3476 (dump_func)dump_set_user_object_info_reply,
3477 (dump_func)0,
3478 (dump_func)dump_get_thread_input_reply,
3479 (dump_func)dump_get_last_input_time_reply,
3480 (dump_func)dump_get_key_state_reply,
3481 (dump_func)0,
3482 (dump_func)dump_set_foreground_window_reply,
3483 (dump_func)dump_set_focus_window_reply,
3484 (dump_func)dump_set_active_window_reply,
3485 (dump_func)dump_set_capture_window_reply,
3486 (dump_func)dump_set_caret_window_reply,
3487 (dump_func)dump_set_caret_info_reply,
3488 (dump_func)dump_set_hook_reply,
3489 (dump_func)dump_remove_hook_reply,
3490 (dump_func)dump_start_hook_chain_reply,
3491 (dump_func)0,
3492 (dump_func)dump_get_next_hook_reply,
3493 (dump_func)0,
3494 (dump_func)dump_destroy_class_reply,
3495 (dump_func)dump_set_class_info_reply,
3496 (dump_func)dump_set_clipboard_info_reply,
3497 (dump_func)dump_open_token_reply,
3498 (dump_func)dump_set_global_windows_reply,
3499 (dump_func)dump_adjust_token_privileges_reply,
3500 (dump_func)dump_get_token_privileges_reply,
3501 (dump_func)dump_check_token_privileges_reply,
3502 (dump_func)dump_duplicate_token_reply,
3503 (dump_func)dump_access_check_reply,
3504 (dump_func)dump_get_token_user_reply,
3505 (dump_func)dump_create_mailslot_reply,
3506 (dump_func)dump_open_mailslot_reply,
3507 (dump_func)dump_set_mailslot_info_reply,
3510 static const char * const req_names[REQ_NB_REQUESTS] = {
3511 "new_process",
3512 "get_new_process_info",
3513 "new_thread",
3514 "get_startup_info",
3515 "init_process_done",
3516 "init_thread",
3517 "terminate_process",
3518 "terminate_thread",
3519 "get_process_info",
3520 "set_process_info",
3521 "get_thread_info",
3522 "set_thread_info",
3523 "get_dll_info",
3524 "suspend_thread",
3525 "resume_thread",
3526 "load_dll",
3527 "unload_dll",
3528 "queue_apc",
3529 "get_apc",
3530 "close_handle",
3531 "set_handle_info",
3532 "dup_handle",
3533 "open_process",
3534 "open_thread",
3535 "select",
3536 "create_event",
3537 "event_op",
3538 "open_event",
3539 "create_mutex",
3540 "release_mutex",
3541 "open_mutex",
3542 "create_semaphore",
3543 "release_semaphore",
3544 "open_semaphore",
3545 "create_file",
3546 "alloc_file_handle",
3547 "get_handle_fd",
3548 "set_handle_fd",
3549 "flush_file",
3550 "lock_file",
3551 "unlock_file",
3552 "unmount_device",
3553 "create_socket",
3554 "accept_socket",
3555 "set_socket_event",
3556 "get_socket_event",
3557 "enable_socket_event",
3558 "set_socket_deferred",
3559 "alloc_console",
3560 "free_console",
3561 "get_console_renderer_events",
3562 "open_console",
3563 "get_console_wait_event",
3564 "get_console_mode",
3565 "set_console_mode",
3566 "set_console_input_info",
3567 "get_console_input_info",
3568 "append_console_input_history",
3569 "get_console_input_history",
3570 "create_console_output",
3571 "set_console_output_info",
3572 "get_console_output_info",
3573 "write_console_input",
3574 "read_console_input",
3575 "write_console_output",
3576 "fill_console_output",
3577 "read_console_output",
3578 "move_console_output",
3579 "send_console_signal",
3580 "create_change_notification",
3581 "next_change_notification",
3582 "create_mapping",
3583 "open_mapping",
3584 "get_mapping_info",
3585 "create_snapshot",
3586 "next_process",
3587 "next_thread",
3588 "next_module",
3589 "wait_debug_event",
3590 "queue_exception_event",
3591 "get_exception_status",
3592 "output_debug_string",
3593 "continue_debug_event",
3594 "debug_process",
3595 "debug_break",
3596 "set_debugger_kill_on_exit",
3597 "read_process_memory",
3598 "write_process_memory",
3599 "create_key",
3600 "open_key",
3601 "delete_key",
3602 "flush_key",
3603 "enum_key",
3604 "set_key_value",
3605 "get_key_value",
3606 "enum_key_value",
3607 "delete_key_value",
3608 "load_registry",
3609 "unload_registry",
3610 "save_registry",
3611 "set_registry_notification",
3612 "create_timer",
3613 "open_timer",
3614 "set_timer",
3615 "cancel_timer",
3616 "get_timer_info",
3617 "get_thread_context",
3618 "set_thread_context",
3619 "get_selector_entry",
3620 "add_atom",
3621 "delete_atom",
3622 "find_atom",
3623 "get_atom_information",
3624 "set_atom_information",
3625 "empty_atom_table",
3626 "init_atom_table",
3627 "get_msg_queue",
3628 "set_queue_mask",
3629 "get_queue_status",
3630 "wait_input_idle",
3631 "send_message",
3632 "get_message",
3633 "reply_message",
3634 "accept_hardware_message",
3635 "get_message_reply",
3636 "set_win_timer",
3637 "kill_win_timer",
3638 "get_serial_info",
3639 "set_serial_info",
3640 "register_async",
3641 "cancel_async",
3642 "create_named_pipe",
3643 "open_named_pipe",
3644 "connect_named_pipe",
3645 "wait_named_pipe",
3646 "disconnect_named_pipe",
3647 "get_named_pipe_info",
3648 "create_window",
3649 "destroy_window",
3650 "get_desktop_window",
3651 "set_window_owner",
3652 "get_window_info",
3653 "set_window_info",
3654 "set_parent",
3655 "get_window_parents",
3656 "get_window_children",
3657 "get_window_children_from_point",
3658 "get_window_tree",
3659 "set_window_pos",
3660 "get_window_rectangles",
3661 "get_window_text",
3662 "set_window_text",
3663 "get_windows_offset",
3664 "get_visible_region",
3665 "get_window_region",
3666 "set_window_region",
3667 "get_update_region",
3668 "update_window_zorder",
3669 "redraw_window",
3670 "set_window_property",
3671 "remove_window_property",
3672 "get_window_property",
3673 "get_window_properties",
3674 "create_winstation",
3675 "open_winstation",
3676 "close_winstation",
3677 "get_process_winstation",
3678 "set_process_winstation",
3679 "create_desktop",
3680 "open_desktop",
3681 "close_desktop",
3682 "get_thread_desktop",
3683 "set_thread_desktop",
3684 "set_user_object_info",
3685 "attach_thread_input",
3686 "get_thread_input",
3687 "get_last_input_time",
3688 "get_key_state",
3689 "set_key_state",
3690 "set_foreground_window",
3691 "set_focus_window",
3692 "set_active_window",
3693 "set_capture_window",
3694 "set_caret_window",
3695 "set_caret_info",
3696 "set_hook",
3697 "remove_hook",
3698 "start_hook_chain",
3699 "finish_hook_chain",
3700 "get_next_hook",
3701 "create_class",
3702 "destroy_class",
3703 "set_class_info",
3704 "set_clipboard_info",
3705 "open_token",
3706 "set_global_windows",
3707 "adjust_token_privileges",
3708 "get_token_privileges",
3709 "check_token_privileges",
3710 "duplicate_token",
3711 "access_check",
3712 "get_token_user",
3713 "create_mailslot",
3714 "open_mailslot",
3715 "set_mailslot_info",
3718 static const struct
3720 const char *name;
3721 unsigned int value;
3722 } status_names[] =
3724 { "ACCESS_DENIED", STATUS_ACCESS_DENIED },
3725 { "ACCESS_VIOLATION", STATUS_ACCESS_VIOLATION },
3726 { "ALIAS_EXISTS", STATUS_ALIAS_EXISTS },
3727 { "BUFFER_OVERFLOW", STATUS_BUFFER_OVERFLOW },
3728 { "BUFFER_TOO_SMALL", STATUS_BUFFER_TOO_SMALL },
3729 { "CHILD_MUST_BE_VOLATILE", STATUS_CHILD_MUST_BE_VOLATILE },
3730 { "DEVICE_BUSY", STATUS_DEVICE_BUSY },
3731 { "DIRECTORY_NOT_EMPTY", STATUS_DIRECTORY_NOT_EMPTY },
3732 { "DISK_FULL", STATUS_DISK_FULL },
3733 { "DLL_NOT_FOUND", STATUS_DLL_NOT_FOUND },
3734 { "ERROR_CLASS_ALREADY_EXISTS", 0xc0010000 | ERROR_CLASS_ALREADY_EXISTS },
3735 { "ERROR_CLASS_DOES_NOT_EXIST", 0xc0010000 | ERROR_CLASS_DOES_NOT_EXIST },
3736 { "ERROR_CLASS_HAS_WINDOWS", 0xc0010000 | ERROR_CLASS_HAS_WINDOWS },
3737 { "ERROR_CLIPBOARD_NOT_OPEN", 0xc0010000 | ERROR_CLIPBOARD_NOT_OPEN },
3738 { "ERROR_INVALID_INDEX", 0xc0010000 | ERROR_INVALID_INDEX },
3739 { "ERROR_SEEK", 0xc0010000 | ERROR_SEEK },
3740 { "FILE_INVALID", STATUS_FILE_INVALID },
3741 { "FILE_IS_A_DIRECTORY", STATUS_FILE_IS_A_DIRECTORY },
3742 { "FILE_LOCK_CONFLICT", STATUS_FILE_LOCK_CONFLICT },
3743 { "HANDLE_NOT_CLOSABLE", STATUS_HANDLE_NOT_CLOSABLE },
3744 { "INSTANCE_NOT_AVAILABLE", STATUS_INSTANCE_NOT_AVAILABLE },
3745 { "INVALID_CID", STATUS_INVALID_CID },
3746 { "INVALID_FILE_FOR_SECTION", STATUS_INVALID_FILE_FOR_SECTION },
3747 { "INVALID_HANDLE", STATUS_INVALID_HANDLE },
3748 { "INVALID_PARAMETER", STATUS_INVALID_PARAMETER },
3749 { "IO_TIMEOUT", STATUS_IO_TIMEOUT },
3750 { "KEY_DELETED", STATUS_KEY_DELETED },
3751 { "MEDIA_WRITE_PROTECTED", STATUS_MEDIA_WRITE_PROTECTED },
3752 { "MUTANT_NOT_OWNED", STATUS_MUTANT_NOT_OWNED },
3753 { "NOT_ALL_ASSIGNED", STATUS_NOT_ALL_ASSIGNED },
3754 { "NOT_A_DIRECTORY", STATUS_NOT_A_DIRECTORY },
3755 { "NOT_IMPLEMENTED", STATUS_NOT_IMPLEMENTED },
3756 { "NOT_REGISTRY_FILE", STATUS_NOT_REGISTRY_FILE },
3757 { "NO_DATA_DETECTED", STATUS_NO_DATA_DETECTED },
3758 { "NO_IMPERSONATION_TOKEN", STATUS_NO_IMPERSONATION_TOKEN },
3759 { "NO_MEMORY", STATUS_NO_MEMORY },
3760 { "NO_MORE_ENTRIES", STATUS_NO_MORE_ENTRIES },
3761 { "NO_MORE_FILES", STATUS_NO_MORE_FILES },
3762 { "NO_SUCH_DEVICE", STATUS_NO_SUCH_DEVICE },
3763 { "NO_SUCH_FILE", STATUS_NO_SUCH_FILE },
3764 { "NO_TOKEN", STATUS_NO_TOKEN },
3765 { "OBJECT_NAME_COLLISION", STATUS_OBJECT_NAME_COLLISION },
3766 { "OBJECT_NAME_INVALID", STATUS_OBJECT_NAME_INVALID },
3767 { "OBJECT_NAME_NOT_FOUND", STATUS_OBJECT_NAME_NOT_FOUND },
3768 { "OBJECT_PATH_INVALID", STATUS_OBJECT_PATH_INVALID },
3769 { "OBJECT_TYPE_MISMATCH", STATUS_OBJECT_TYPE_MISMATCH },
3770 { "PENDING", STATUS_PENDING },
3771 { "PIPE_BUSY", STATUS_PIPE_BUSY },
3772 { "PIPE_CONNECTED", STATUS_PIPE_CONNECTED },
3773 { "PIPE_DISCONNECTED", STATUS_PIPE_DISCONNECTED },
3774 { "PIPE_LISTENING", STATUS_PIPE_LISTENING },
3775 { "PIPE_NOT_AVAILABLE", STATUS_PIPE_NOT_AVAILABLE },
3776 { "PRIVILEGE_NOT_HELD", STATUS_PRIVILEGE_NOT_HELD },
3777 { "SECTION_TOO_BIG", STATUS_SECTION_TOO_BIG },
3778 { "SEMAPHORE_LIMIT_EXCEEDED", STATUS_SEMAPHORE_LIMIT_EXCEEDED },
3779 { "SHARING_VIOLATION", STATUS_SHARING_VIOLATION },
3780 { "SUSPEND_COUNT_EXCEEDED", STATUS_SUSPEND_COUNT_EXCEEDED },
3781 { "TIMEOUT", STATUS_TIMEOUT },
3782 { "UNSUCCESSFUL", STATUS_UNSUCCESSFUL },
3783 { "VOLUME_DISMOUNTED", STATUS_VOLUME_DISMOUNTED },
3784 { "WAS_LOCKED", STATUS_WAS_LOCKED },
3785 { NULL, 0 }
3788 /* ### make_requests end ### */
3789 /* Everything above this line is generated automatically by tools/make_requests */
3791 static const char *get_status_name( unsigned int status )
3793 int i;
3794 static char buffer[10];
3796 if (status)
3798 for (i = 0; status_names[i].name; i++)
3799 if (status_names[i].value == status) return status_names[i].name;
3801 sprintf( buffer, "%x", status );
3802 return buffer;
3805 void trace_request(void)
3807 enum request req = current->req.request_header.req;
3808 if (req < REQ_NB_REQUESTS)
3810 fprintf( stderr, "%04x: %s(", current->id, req_names[req] );
3811 if (req_dumpers[req])
3813 cur_pos = 0;
3814 cur_data = get_req_data();
3815 cur_size = get_req_data_size();
3816 req_dumpers[req]( &current->req );
3818 fprintf( stderr, " )\n" );
3820 else fprintf( stderr, "%04x: %d(?)\n", current->id, req );
3823 void trace_reply( enum request req, const union generic_reply *reply )
3825 if (req < REQ_NB_REQUESTS)
3827 fprintf( stderr, "%04x: %s() = %s",
3828 current->id, req_names[req], get_status_name(current->error) );
3829 if (reply_dumpers[req])
3831 fprintf( stderr, " {" );
3832 cur_pos = 0;
3833 cur_data = current->reply_data;
3834 cur_size = reply->reply_header.reply_size;
3835 reply_dumpers[req]( reply );
3836 fprintf( stderr, " }" );
3838 fputc( '\n', stderr );
3840 else fprintf( stderr, "%04x: %d() = %s\n",
3841 current->id, req, get_status_name(current->error) );