user: ChangeDisplaySettings virtual desktop mode handling fix.
[wine/dibdrv.git] / server / trace.c
blobdb93e82c761534ef5e9bdb887d1e8a2d01e3a0c3
1 /*
2 * Server request tracing
4 * Copyright (C) 1999 Alexandre Julliard
6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Lesser General Public
8 * License as published by the Free Software Foundation; either
9 * version 2.1 of the License, or (at your option) any later version.
11 * This library is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 * Lesser General Public License for more details.
16 * You should have received a copy of the GNU Lesser General Public
17 * License along with this library; if not, write to the Free Software
18 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
21 #include "config.h"
22 #include "wine/port.h"
24 #include <ctype.h>
25 #include <stdarg.h>
26 #include <stdio.h>
27 #include <sys/types.h>
29 #ifdef HAVE_SYS_UIO_H
30 #include <sys/uio.h>
31 #endif
33 #include "ntstatus.h"
34 #define WIN32_NO_STATUS
35 #include "windef.h"
36 #include "winbase.h"
37 #include "wincon.h"
38 #include "winternl.h"
39 #include "file.h"
40 #include "request.h"
41 #include "unicode.h"
43 static const void *cur_data;
44 static data_size_t cur_size;
46 /* utility functions */
48 inline static void remove_data( data_size_t size )
50 cur_data = (const char *)cur_data + size;
51 cur_size -= size;
54 static void dump_uints( const int *ptr, int len )
56 fputc( '{', stderr );
57 while (len > 0)
59 fprintf( stderr, "%08x", *ptr++ );
60 if (--len) fputc( ',', stderr );
62 fputc( '}', stderr );
65 static void dump_abs_time( const abs_time_t *time )
67 int secs, usecs;
69 if (!time->sec && !time->usec)
71 fprintf( stderr, "0" );
72 return;
74 secs = time->sec - current_time.tv_sec;
75 if ((usecs = time->usec - current_time.tv_usec) < 0)
77 usecs += 1000000;
78 secs--;
80 if (secs > 0 || (secs == 0 && usecs >= 0))
81 fprintf( stderr, "%d.%06d (+%d.%06d)", time->sec, time->usec, secs, usecs );
82 else
83 fprintf( stderr, "%d.%06d (-%d.%06d)", time->sec, time->usec, abs(secs+1), 1000000-usecs );
86 static void dump_rectangle( const rectangle_t *rect )
88 fprintf( stderr, "{%d,%d;%d,%d}",
89 rect->left, rect->top, rect->right, rect->bottom );
92 static void dump_char_info( const char_info_t *info )
94 fprintf( stderr, "{'" );
95 dump_strW( &info->ch, 1, stderr, "\'\'" );
96 fprintf( stderr, "',%04x}", info->attr );
99 static void dump_context( const CONTEXT *context )
101 #ifdef __i386__
102 fprintf( stderr, "{flags=%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( data_size_t size )
133 const int *data = cur_data;
134 data_size_t len = size / sizeof(*data);
136 fputc( '{', stderr );
137 while (len > 0)
139 fprintf( stderr, "%d", *data++ );
140 if (--len) fputc( ',', stderr );
142 fputc( '}', stderr );
143 remove_data( size );
146 static void dump_varargs_handles( data_size_t size )
148 const obj_handle_t *data = cur_data;
149 data_size_t len = size / sizeof(*data);
151 fputc( '{', stderr );
152 while (len > 0)
154 fprintf( stderr, "%p", *data++ );
155 if (--len) fputc( ',', stderr );
157 fputc( '}', stderr );
158 remove_data( size );
161 static void dump_varargs_user_handles( data_size_t size )
163 const user_handle_t *data = cur_data;
164 data_size_t len = size / sizeof(*data);
166 fputc( '{', stderr );
167 while (len > 0)
169 fprintf( stderr, "%p", *data++ );
170 if (--len) fputc( ',', stderr );
172 fputc( '}', stderr );
173 remove_data( size );
176 static void dump_varargs_bytes( data_size_t size )
178 const unsigned char *data = cur_data;
179 data_size_t len = size;
181 fputc( '{', stderr );
182 while (len > 0)
184 fprintf( stderr, "%02x", *data++ );
185 if (--len) fputc( ',', stderr );
187 fputc( '}', stderr );
188 remove_data( size );
191 static void dump_varargs_string( data_size_t size )
193 fprintf( stderr, "\"%.*s\"", (int)size, (const char *)cur_data );
194 remove_data( size );
197 static void dump_varargs_unicode_str( data_size_t size )
199 fprintf( stderr, "L\"" );
200 dump_strW( cur_data, size / sizeof(WCHAR), stderr, "\"\"" );
201 fputc( '\"', stderr );
202 remove_data( size );
205 static void dump_varargs_context( data_size_t size )
207 if (!size)
209 fprintf( stderr, "{}" );
210 return;
212 dump_context( cur_data );
213 remove_data( size );
216 static void dump_varargs_exc_event( data_size_t size )
218 const CONTEXT *ptr = cur_data;
220 if (!size)
222 fprintf( stderr, "{}" );
223 return;
225 fprintf( stderr, "{context=" );
226 dump_context( ptr );
227 fprintf( stderr, ",rec=" );
228 dump_exc_record( (const EXCEPTION_RECORD *)(ptr + 1) );
229 fputc( '}', stderr );
230 remove_data( size );
233 static void dump_varargs_debug_event( data_size_t size )
235 const debug_event_t *event = cur_data;
237 if (!size)
239 fprintf( stderr, "{}" );
240 return;
242 switch(event->code)
244 case EXCEPTION_DEBUG_EVENT:
245 fprintf( stderr, "{exception," );
246 dump_exc_record( &event->info.exception.record );
247 fprintf( stderr, ",first=%d}", event->info.exception.first );
248 break;
249 case CREATE_THREAD_DEBUG_EVENT:
250 fprintf( stderr, "{create_thread,thread=%p,teb=%p,start=%p}",
251 event->info.create_thread.handle, event->info.create_thread.teb,
252 event->info.create_thread.start );
253 break;
254 case CREATE_PROCESS_DEBUG_EVENT:
255 fprintf( stderr, "{create_process,file=%p,process=%p,thread=%p,base=%p,offset=%d,"
256 "size=%d,teb=%p,start=%p,name=%p,unicode=%d}",
257 event->info.create_process.file, event->info.create_process.process,
258 event->info.create_process.thread, event->info.create_process.base,
259 event->info.create_process.dbg_offset, event->info.create_process.dbg_size,
260 event->info.create_process.teb, event->info.create_process.start,
261 event->info.create_process.name, event->info.create_process.unicode );
262 break;
263 case EXIT_THREAD_DEBUG_EVENT:
264 fprintf( stderr, "{exit_thread,code=%d}", event->info.exit.exit_code );
265 break;
266 case EXIT_PROCESS_DEBUG_EVENT:
267 fprintf( stderr, "{exit_process,code=%d}", event->info.exit.exit_code );
268 break;
269 case LOAD_DLL_DEBUG_EVENT:
270 fprintf( stderr, "{load_dll,file=%p,base=%p,offset=%d,size=%d,name=%p,unicode=%d}",
271 event->info.load_dll.handle, event->info.load_dll.base,
272 event->info.load_dll.dbg_offset, event->info.load_dll.dbg_size,
273 event->info.load_dll.name, event->info.load_dll.unicode );
274 break;
275 case UNLOAD_DLL_DEBUG_EVENT:
276 fprintf( stderr, "{unload_dll,base=%p}", event->info.unload_dll.base );
277 break;
278 case OUTPUT_DEBUG_STRING_EVENT:
279 fprintf( stderr, "{output_string,data=%p,unicode=%d,len=%d}",
280 event->info.output_string.string, event->info.output_string.unicode,
281 event->info.output_string.length );
282 break;
283 case RIP_EVENT:
284 fprintf( stderr, "{rip,err=%d,type=%d}",
285 event->info.rip_info.error, event->info.rip_info.type );
286 break;
287 case 0: /* zero is the code returned on timeouts */
288 fprintf( stderr, "{}" );
289 break;
290 default:
291 fprintf( stderr, "{code=??? (%d)}", event->code );
292 break;
294 remove_data( size );
297 /* dump a unicode string contained in a buffer; helper for dump_varargs_startup_info */
298 static void dump_inline_unicode_string( const UNICODE_STRING *str, const void *data, data_size_t size )
300 size_t length = str->Length;
301 size_t offset = (size_t)str->Buffer;
303 if (offset >= size) return;
304 if (offset + length > size) length = size - offset;
305 dump_strW( (const WCHAR *)data + offset/sizeof(WCHAR), length/sizeof(WCHAR), stderr, "\"\"" );
308 static void dump_varargs_startup_info( data_size_t size )
310 const RTL_USER_PROCESS_PARAMETERS *ptr = cur_data;
311 RTL_USER_PROCESS_PARAMETERS params;
313 if (size < sizeof(params.Size))
315 fprintf( stderr, "{}" );
316 return;
318 if (size > ptr->Size) size = ptr->Size;
319 memset( &params, 0, sizeof(params) );
320 memcpy( &params, ptr, min( size, sizeof(params) ));
322 fprintf( stderr, "{AllocationSize=%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( data_size_t size )
363 const INPUT_RECORD *rec = cur_data;
364 data_size_t len = size / sizeof(*rec);
366 fputc( '{', stderr );
367 while (len > 0)
369 fprintf( stderr, "{%04x,...}", rec->EventType );
370 rec++;
371 if (--len) fputc( ',', stderr );
373 fputc( '}', stderr );
374 remove_data( size );
377 static void dump_varargs_rectangles( data_size_t size )
379 const rectangle_t *rect = cur_data;
380 data_size_t len = size / sizeof(*rect);
382 fputc( '{', stderr );
383 while (len > 0)
385 dump_rectangle( rect++ );
386 if (--len) fputc( ',', stderr );
388 fputc( '}', stderr );
389 remove_data( size );
392 static void dump_varargs_properties( data_size_t size )
394 const property_data_t *prop = cur_data;
395 data_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( data_size_t size )
411 const LUID_AND_ATTRIBUTES *lat = cur_data;
412 data_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, data_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( data_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, data_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 data_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, data_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( data_size_t size )
556 const struct security_descriptor *sd = cur_data;
557 dump_inline_security_descriptor( sd, size );
558 remove_data( size );
561 static void dump_varargs_token_groups( data_size_t size )
563 const struct token_groups *tg = cur_data;
564 fputc( '{', stderr );
565 if (size >= sizeof(struct token_groups))
567 size_t offset = sizeof(*tg);
568 fprintf( stderr, "count=%08x,", tg->count );
569 if (tg->count * sizeof(unsigned int) <= size)
571 unsigned int i;
572 const unsigned int *attr = (const unsigned int *)(tg + 1);
574 offset += tg->count * sizeof(unsigned int);
576 fputc( '[', stderr );
577 for (i = 0; i < tg->count; i++)
579 const SID *sid = (const SID *)((const char *)cur_data + offset);
580 if (i != 0)
581 fputc( ',', stderr );
582 fputc( '{', stderr );
583 fprintf( stderr, "attributes=%08x", attr[i] );
584 fprintf( stderr, ",sid=" );
585 dump_inline_sid( sid, size - offset );
586 if ((offset + FIELD_OFFSET(SID, SubAuthority[0]) > size) ||
587 (offset + FIELD_OFFSET(SID, SubAuthority[sid->SubAuthorityCount]) > size))
588 break;
589 offset += FIELD_OFFSET(SID, SubAuthority[sid->SubAuthorityCount]);
590 fputc( '}', stderr );
592 fputc( ']', stderr );
595 fputc( '}', stderr );
598 typedef void (*dump_func)( const void *req );
600 /* Everything below this line is generated automatically by tools/make_requests */
601 /* ### make_requests begin ### */
603 static void dump_new_process_request( const struct new_process_request *req )
605 fprintf( stderr, " inherit_all=%d,", req->inherit_all );
606 fprintf( stderr, " create_flags=%08x,", req->create_flags );
607 fprintf( stderr, " socket_fd=%d,", req->socket_fd );
608 fprintf( stderr, " exe_file=%p,", req->exe_file );
609 fprintf( stderr, " hstdin=%p,", req->hstdin );
610 fprintf( stderr, " hstdout=%p,", req->hstdout );
611 fprintf( stderr, " hstderr=%p,", req->hstderr );
612 fprintf( stderr, " process_access=%08x,", req->process_access );
613 fprintf( stderr, " process_attr=%08x,", req->process_attr );
614 fprintf( stderr, " thread_access=%08x,", req->thread_access );
615 fprintf( stderr, " thread_attr=%08x,", req->thread_attr );
616 fprintf( stderr, " info=" );
617 dump_varargs_startup_info( cur_size );
618 fputc( ',', stderr );
619 fprintf( stderr, " env=" );
620 dump_varargs_unicode_str( cur_size );
623 static void dump_new_process_reply( const struct new_process_reply *req )
625 fprintf( stderr, " info=%p,", req->info );
626 fprintf( stderr, " pid=%04x,", req->pid );
627 fprintf( stderr, " phandle=%p,", req->phandle );
628 fprintf( stderr, " tid=%04x,", req->tid );
629 fprintf( stderr, " thandle=%p", req->thandle );
632 static void dump_get_new_process_info_request( const struct get_new_process_info_request *req )
634 fprintf( stderr, " info=%p", req->info );
637 static void dump_get_new_process_info_reply( const struct get_new_process_info_reply *req )
639 fprintf( stderr, " success=%d,", req->success );
640 fprintf( stderr, " exit_code=%d", req->exit_code );
643 static void dump_new_thread_request( const struct new_thread_request *req )
645 fprintf( stderr, " access=%08x,", req->access );
646 fprintf( stderr, " attributes=%08x,", req->attributes );
647 fprintf( stderr, " suspend=%d,", req->suspend );
648 fprintf( stderr, " request_fd=%d", req->request_fd );
651 static void dump_new_thread_reply( const struct new_thread_reply *req )
653 fprintf( stderr, " tid=%04x,", req->tid );
654 fprintf( stderr, " handle=%p", req->handle );
657 static void dump_get_startup_info_request( const struct get_startup_info_request *req )
661 static void dump_get_startup_info_reply( const struct get_startup_info_reply *req )
663 fprintf( stderr, " exe_file=%p,", req->exe_file );
664 fprintf( stderr, " hstdin=%p,", req->hstdin );
665 fprintf( stderr, " hstdout=%p,", req->hstdout );
666 fprintf( stderr, " hstderr=%p,", req->hstderr );
667 fprintf( stderr, " info=" );
668 dump_varargs_startup_info( cur_size );
669 fputc( ',', stderr );
670 fprintf( stderr, " env=" );
671 dump_varargs_unicode_str( cur_size );
674 static void dump_init_process_done_request( const struct init_process_done_request *req )
676 fprintf( stderr, " module=%p,", req->module );
677 fprintf( stderr, " entry=%p,", req->entry );
678 fprintf( stderr, " gui=%d", req->gui );
681 static void dump_init_thread_request( const struct init_thread_request *req )
683 fprintf( stderr, " unix_pid=%d,", req->unix_pid );
684 fprintf( stderr, " unix_tid=%d,", req->unix_tid );
685 fprintf( stderr, " teb=%p,", req->teb );
686 fprintf( stderr, " peb=%p,", req->peb );
687 fprintf( stderr, " entry=%p,", req->entry );
688 fprintf( stderr, " ldt_copy=%p,", req->ldt_copy );
689 fprintf( stderr, " reply_fd=%d,", req->reply_fd );
690 fprintf( stderr, " wait_fd=%d,", req->wait_fd );
691 fprintf( stderr, " debug_level=%d", req->debug_level );
694 static void dump_init_thread_reply( const struct init_thread_reply *req )
696 fprintf( stderr, " pid=%04x,", req->pid );
697 fprintf( stderr, " tid=%04x,", req->tid );
698 fprintf( stderr, " info_size=%u,", req->info_size );
699 fprintf( stderr, " server_start=" );
700 dump_abs_time( &req->server_start );
701 fprintf( stderr, "," );
702 fprintf( stderr, " version=%d", req->version );
705 static void dump_terminate_process_request( const struct terminate_process_request *req )
707 fprintf( stderr, " handle=%p,", req->handle );
708 fprintf( stderr, " exit_code=%d", req->exit_code );
711 static void dump_terminate_process_reply( const struct terminate_process_reply *req )
713 fprintf( stderr, " self=%d", req->self );
716 static void dump_terminate_thread_request( const struct terminate_thread_request *req )
718 fprintf( stderr, " handle=%p,", req->handle );
719 fprintf( stderr, " exit_code=%d", req->exit_code );
722 static void dump_terminate_thread_reply( const struct terminate_thread_reply *req )
724 fprintf( stderr, " self=%d,", req->self );
725 fprintf( stderr, " last=%d", req->last );
728 static void dump_get_process_info_request( const struct get_process_info_request *req )
730 fprintf( stderr, " handle=%p", req->handle );
733 static void dump_get_process_info_reply( const struct get_process_info_reply *req )
735 fprintf( stderr, " pid=%04x,", req->pid );
736 fprintf( stderr, " ppid=%04x,", req->ppid );
737 fprintf( stderr, " exit_code=%d,", req->exit_code );
738 fprintf( stderr, " priority=%d,", req->priority );
739 fprintf( stderr, " affinity=%d,", req->affinity );
740 fprintf( stderr, " peb=%p,", req->peb );
741 fprintf( stderr, " start_time=" );
742 dump_abs_time( &req->start_time );
743 fprintf( stderr, "," );
744 fprintf( stderr, " end_time=" );
745 dump_abs_time( &req->end_time );
748 static void dump_set_process_info_request( const struct set_process_info_request *req )
750 fprintf( stderr, " handle=%p,", req->handle );
751 fprintf( stderr, " mask=%d,", req->mask );
752 fprintf( stderr, " priority=%d,", req->priority );
753 fprintf( stderr, " affinity=%d", req->affinity );
756 static void dump_get_thread_info_request( const struct get_thread_info_request *req )
758 fprintf( stderr, " handle=%p,", req->handle );
759 fprintf( stderr, " tid_in=%04x", req->tid_in );
762 static void dump_get_thread_info_reply( const struct get_thread_info_reply *req )
764 fprintf( stderr, " pid=%04x,", req->pid );
765 fprintf( stderr, " tid=%04x,", req->tid );
766 fprintf( stderr, " teb=%p,", req->teb );
767 fprintf( stderr, " exit_code=%d,", req->exit_code );
768 fprintf( stderr, " priority=%d,", req->priority );
769 fprintf( stderr, " affinity=%d,", req->affinity );
770 fprintf( stderr, " creation_time=" );
771 dump_abs_time( &req->creation_time );
772 fprintf( stderr, "," );
773 fprintf( stderr, " exit_time=" );
774 dump_abs_time( &req->exit_time );
777 static void dump_set_thread_info_request( const struct set_thread_info_request *req )
779 fprintf( stderr, " handle=%p,", req->handle );
780 fprintf( stderr, " mask=%d,", req->mask );
781 fprintf( stderr, " priority=%d,", req->priority );
782 fprintf( stderr, " affinity=%d,", req->affinity );
783 fprintf( stderr, " token=%p", req->token );
786 static void dump_get_dll_info_request( const struct get_dll_info_request *req )
788 fprintf( stderr, " handle=%p,", req->handle );
789 fprintf( stderr, " base_address=%p", req->base_address );
792 static void dump_get_dll_info_reply( const struct get_dll_info_reply *req )
794 fprintf( stderr, " size=%lu,", (unsigned long)req->size );
795 fprintf( stderr, " entry_point=%p,", req->entry_point );
796 fprintf( stderr, " filename=" );
797 dump_varargs_unicode_str( cur_size );
800 static void dump_suspend_thread_request( const struct suspend_thread_request *req )
802 fprintf( stderr, " handle=%p", req->handle );
805 static void dump_suspend_thread_reply( const struct suspend_thread_reply *req )
807 fprintf( stderr, " count=%d", req->count );
810 static void dump_resume_thread_request( const struct resume_thread_request *req )
812 fprintf( stderr, " handle=%p", req->handle );
815 static void dump_resume_thread_reply( const struct resume_thread_reply *req )
817 fprintf( stderr, " count=%d", req->count );
820 static void dump_load_dll_request( const struct load_dll_request *req )
822 fprintf( stderr, " handle=%p,", req->handle );
823 fprintf( stderr, " base=%p,", req->base );
824 fprintf( stderr, " size=%lu,", (unsigned long)req->size );
825 fprintf( stderr, " dbg_offset=%d,", req->dbg_offset );
826 fprintf( stderr, " dbg_size=%d,", req->dbg_size );
827 fprintf( stderr, " name=%p,", req->name );
828 fprintf( stderr, " filename=" );
829 dump_varargs_unicode_str( cur_size );
832 static void dump_unload_dll_request( const struct unload_dll_request *req )
834 fprintf( stderr, " base=%p", req->base );
837 static void dump_queue_apc_request( const struct queue_apc_request *req )
839 fprintf( stderr, " handle=%p,", req->handle );
840 fprintf( stderr, " user=%d,", req->user );
841 fprintf( stderr, " func=%p,", req->func );
842 fprintf( stderr, " arg1=%p,", req->arg1 );
843 fprintf( stderr, " arg2=%p,", req->arg2 );
844 fprintf( stderr, " arg3=%p", req->arg3 );
847 static void dump_get_apc_request( const struct get_apc_request *req )
849 fprintf( stderr, " alertable=%d", req->alertable );
852 static void dump_get_apc_reply( const struct get_apc_reply *req )
854 fprintf( stderr, " func=%p,", req->func );
855 fprintf( stderr, " type=%d,", req->type );
856 fprintf( stderr, " arg1=%p,", req->arg1 );
857 fprintf( stderr, " arg2=%p,", req->arg2 );
858 fprintf( stderr, " arg3=%p", req->arg3 );
861 static void dump_close_handle_request( const struct close_handle_request *req )
863 fprintf( stderr, " handle=%p", req->handle );
866 static void dump_close_handle_reply( const struct close_handle_reply *req )
868 fprintf( stderr, " fd=%d", req->fd );
871 static void dump_set_handle_info_request( const struct set_handle_info_request *req )
873 fprintf( stderr, " handle=%p,", req->handle );
874 fprintf( stderr, " flags=%d,", req->flags );
875 fprintf( stderr, " mask=%d", req->mask );
878 static void dump_set_handle_info_reply( const struct set_handle_info_reply *req )
880 fprintf( stderr, " old_flags=%d", req->old_flags );
883 static void dump_dup_handle_request( const struct dup_handle_request *req )
885 fprintf( stderr, " src_process=%p,", req->src_process );
886 fprintf( stderr, " src_handle=%p,", req->src_handle );
887 fprintf( stderr, " dst_process=%p,", req->dst_process );
888 fprintf( stderr, " access=%08x,", req->access );
889 fprintf( stderr, " attributes=%08x,", req->attributes );
890 fprintf( stderr, " options=%08x", req->options );
893 static void dump_dup_handle_reply( const struct dup_handle_reply *req )
895 fprintf( stderr, " handle=%p,", req->handle );
896 fprintf( stderr, " fd=%d", req->fd );
899 static void dump_open_process_request( const struct open_process_request *req )
901 fprintf( stderr, " pid=%04x,", req->pid );
902 fprintf( stderr, " access=%08x,", req->access );
903 fprintf( stderr, " attributes=%08x", req->attributes );
906 static void dump_open_process_reply( const struct open_process_reply *req )
908 fprintf( stderr, " handle=%p", req->handle );
911 static void dump_open_thread_request( const struct open_thread_request *req )
913 fprintf( stderr, " tid=%04x,", req->tid );
914 fprintf( stderr, " access=%08x,", req->access );
915 fprintf( stderr, " attributes=%08x", req->attributes );
918 static void dump_open_thread_reply( const struct open_thread_reply *req )
920 fprintf( stderr, " handle=%p", req->handle );
923 static void dump_select_request( const struct select_request *req )
925 fprintf( stderr, " flags=%d,", req->flags );
926 fprintf( stderr, " cookie=%p,", req->cookie );
927 fprintf( stderr, " signal=%p,", req->signal );
928 fprintf( stderr, " timeout=" );
929 dump_abs_time( &req->timeout );
930 fprintf( stderr, "," );
931 fprintf( stderr, " handles=" );
932 dump_varargs_handles( cur_size );
935 static void dump_create_event_request( const struct create_event_request *req )
937 fprintf( stderr, " access=%08x,", req->access );
938 fprintf( stderr, " attributes=%08x,", req->attributes );
939 fprintf( stderr, " rootdir=%p,", req->rootdir );
940 fprintf( stderr, " manual_reset=%d,", req->manual_reset );
941 fprintf( stderr, " initial_state=%d,", req->initial_state );
942 fprintf( stderr, " name=" );
943 dump_varargs_unicode_str( cur_size );
946 static void dump_create_event_reply( const struct create_event_reply *req )
948 fprintf( stderr, " handle=%p", req->handle );
951 static void dump_event_op_request( const struct event_op_request *req )
953 fprintf( stderr, " handle=%p,", req->handle );
954 fprintf( stderr, " op=%d", req->op );
957 static void dump_open_event_request( const struct open_event_request *req )
959 fprintf( stderr, " access=%08x,", req->access );
960 fprintf( stderr, " attributes=%08x,", req->attributes );
961 fprintf( stderr, " rootdir=%p,", req->rootdir );
962 fprintf( stderr, " name=" );
963 dump_varargs_unicode_str( cur_size );
966 static void dump_open_event_reply( const struct open_event_reply *req )
968 fprintf( stderr, " handle=%p", req->handle );
971 static void dump_create_mutex_request( const struct create_mutex_request *req )
973 fprintf( stderr, " access=%08x,", req->access );
974 fprintf( stderr, " attributes=%08x,", req->attributes );
975 fprintf( stderr, " rootdir=%p,", req->rootdir );
976 fprintf( stderr, " owned=%d,", req->owned );
977 fprintf( stderr, " name=" );
978 dump_varargs_unicode_str( cur_size );
981 static void dump_create_mutex_reply( const struct create_mutex_reply *req )
983 fprintf( stderr, " handle=%p", req->handle );
986 static void dump_release_mutex_request( const struct release_mutex_request *req )
988 fprintf( stderr, " handle=%p", req->handle );
991 static void dump_release_mutex_reply( const struct release_mutex_reply *req )
993 fprintf( stderr, " prev_count=%08x", req->prev_count );
996 static void dump_open_mutex_request( const struct open_mutex_request *req )
998 fprintf( stderr, " access=%08x,", req->access );
999 fprintf( stderr, " attributes=%08x,", req->attributes );
1000 fprintf( stderr, " rootdir=%p,", req->rootdir );
1001 fprintf( stderr, " name=" );
1002 dump_varargs_unicode_str( cur_size );
1005 static void dump_open_mutex_reply( const struct open_mutex_reply *req )
1007 fprintf( stderr, " handle=%p", req->handle );
1010 static void dump_create_semaphore_request( const struct create_semaphore_request *req )
1012 fprintf( stderr, " access=%08x,", req->access );
1013 fprintf( stderr, " attributes=%08x,", req->attributes );
1014 fprintf( stderr, " rootdir=%p,", req->rootdir );
1015 fprintf( stderr, " initial=%08x,", req->initial );
1016 fprintf( stderr, " max=%08x,", req->max );
1017 fprintf( stderr, " name=" );
1018 dump_varargs_unicode_str( cur_size );
1021 static void dump_create_semaphore_reply( const struct create_semaphore_reply *req )
1023 fprintf( stderr, " handle=%p", req->handle );
1026 static void dump_release_semaphore_request( const struct release_semaphore_request *req )
1028 fprintf( stderr, " handle=%p,", req->handle );
1029 fprintf( stderr, " count=%08x", req->count );
1032 static void dump_release_semaphore_reply( const struct release_semaphore_reply *req )
1034 fprintf( stderr, " prev_count=%08x", req->prev_count );
1037 static void dump_open_semaphore_request( const struct open_semaphore_request *req )
1039 fprintf( stderr, " access=%08x,", req->access );
1040 fprintf( stderr, " attributes=%08x,", req->attributes );
1041 fprintf( stderr, " rootdir=%p,", req->rootdir );
1042 fprintf( stderr, " name=" );
1043 dump_varargs_unicode_str( cur_size );
1046 static void dump_open_semaphore_reply( const struct open_semaphore_reply *req )
1048 fprintf( stderr, " handle=%p", req->handle );
1051 static void dump_create_file_request( const struct create_file_request *req )
1053 fprintf( stderr, " access=%08x,", req->access );
1054 fprintf( stderr, " attributes=%08x,", req->attributes );
1055 fprintf( stderr, " sharing=%08x,", req->sharing );
1056 fprintf( stderr, " create=%d,", req->create );
1057 fprintf( stderr, " options=%08x,", req->options );
1058 fprintf( stderr, " attrs=%08x,", req->attrs );
1059 fprintf( stderr, " filename=" );
1060 dump_varargs_string( cur_size );
1063 static void dump_create_file_reply( const struct create_file_reply *req )
1065 fprintf( stderr, " handle=%p", req->handle );
1068 static void dump_open_file_object_request( const struct open_file_object_request *req )
1070 fprintf( stderr, " access=%08x,", req->access );
1071 fprintf( stderr, " attributes=%08x,", req->attributes );
1072 fprintf( stderr, " rootdir=%p,", req->rootdir );
1073 fprintf( stderr, " sharing=%08x,", req->sharing );
1074 fprintf( stderr, " filename=" );
1075 dump_varargs_unicode_str( cur_size );
1078 static void dump_open_file_object_reply( const struct open_file_object_reply *req )
1080 fprintf( stderr, " handle=%p", req->handle );
1083 static void dump_alloc_file_handle_request( const struct alloc_file_handle_request *req )
1085 fprintf( stderr, " access=%08x,", req->access );
1086 fprintf( stderr, " attributes=%08x,", req->attributes );
1087 fprintf( stderr, " fd=%d", req->fd );
1090 static void dump_alloc_file_handle_reply( const struct alloc_file_handle_reply *req )
1092 fprintf( stderr, " handle=%p", req->handle );
1095 static void dump_get_handle_fd_request( const struct get_handle_fd_request *req )
1097 fprintf( stderr, " handle=%p,", req->handle );
1098 fprintf( stderr, " access=%08x", req->access );
1101 static void dump_get_handle_fd_reply( const struct get_handle_fd_reply *req )
1103 fprintf( stderr, " fd=%d,", req->fd );
1104 fprintf( stderr, " removable=%d,", req->removable );
1105 fprintf( stderr, " flags=%d", req->flags );
1108 static void dump_set_handle_fd_request( const struct set_handle_fd_request *req )
1110 fprintf( stderr, " handle=%p,", req->handle );
1111 fprintf( stderr, " fd=%d,", req->fd );
1112 fprintf( stderr, " removable=%d", req->removable );
1115 static void dump_set_handle_fd_reply( const struct set_handle_fd_reply *req )
1117 fprintf( stderr, " cur_fd=%d", req->cur_fd );
1120 static void dump_flush_file_request( const struct flush_file_request *req )
1122 fprintf( stderr, " handle=%p", req->handle );
1125 static void dump_flush_file_reply( const struct flush_file_reply *req )
1127 fprintf( stderr, " event=%p", req->event );
1130 static void dump_lock_file_request( const struct lock_file_request *req )
1132 fprintf( stderr, " handle=%p,", req->handle );
1133 fprintf( stderr, " offset_low=%08x,", req->offset_low );
1134 fprintf( stderr, " offset_high=%08x,", req->offset_high );
1135 fprintf( stderr, " count_low=%08x,", req->count_low );
1136 fprintf( stderr, " count_high=%08x,", req->count_high );
1137 fprintf( stderr, " shared=%d,", req->shared );
1138 fprintf( stderr, " wait=%d", req->wait );
1141 static void dump_lock_file_reply( const struct lock_file_reply *req )
1143 fprintf( stderr, " handle=%p,", req->handle );
1144 fprintf( stderr, " overlapped=%d", req->overlapped );
1147 static void dump_unlock_file_request( const struct unlock_file_request *req )
1149 fprintf( stderr, " handle=%p,", req->handle );
1150 fprintf( stderr, " offset_low=%08x,", req->offset_low );
1151 fprintf( stderr, " offset_high=%08x,", req->offset_high );
1152 fprintf( stderr, " count_low=%08x,", req->count_low );
1153 fprintf( stderr, " count_high=%08x", req->count_high );
1156 static void dump_unmount_device_request( const struct unmount_device_request *req )
1158 fprintf( stderr, " handle=%p", req->handle );
1161 static void dump_create_socket_request( const struct create_socket_request *req )
1163 fprintf( stderr, " access=%08x,", req->access );
1164 fprintf( stderr, " attributes=%08x,", req->attributes );
1165 fprintf( stderr, " family=%d,", req->family );
1166 fprintf( stderr, " type=%d,", req->type );
1167 fprintf( stderr, " protocol=%d,", req->protocol );
1168 fprintf( stderr, " flags=%08x", req->flags );
1171 static void dump_create_socket_reply( const struct create_socket_reply *req )
1173 fprintf( stderr, " handle=%p", req->handle );
1176 static void dump_accept_socket_request( const struct accept_socket_request *req )
1178 fprintf( stderr, " lhandle=%p,", req->lhandle );
1179 fprintf( stderr, " access=%08x,", req->access );
1180 fprintf( stderr, " attributes=%08x", req->attributes );
1183 static void dump_accept_socket_reply( const struct accept_socket_reply *req )
1185 fprintf( stderr, " handle=%p", req->handle );
1188 static void dump_set_socket_event_request( const struct set_socket_event_request *req )
1190 fprintf( stderr, " handle=%p,", req->handle );
1191 fprintf( stderr, " mask=%08x,", req->mask );
1192 fprintf( stderr, " event=%p,", req->event );
1193 fprintf( stderr, " window=%p,", req->window );
1194 fprintf( stderr, " msg=%08x", req->msg );
1197 static void dump_get_socket_event_request( const struct get_socket_event_request *req )
1199 fprintf( stderr, " handle=%p,", req->handle );
1200 fprintf( stderr, " service=%d,", req->service );
1201 fprintf( stderr, " c_event=%p", req->c_event );
1204 static void dump_get_socket_event_reply( const struct get_socket_event_reply *req )
1206 fprintf( stderr, " mask=%08x,", req->mask );
1207 fprintf( stderr, " pmask=%08x,", req->pmask );
1208 fprintf( stderr, " state=%08x,", req->state );
1209 fprintf( stderr, " errors=" );
1210 dump_varargs_ints( cur_size );
1213 static void dump_enable_socket_event_request( const struct enable_socket_event_request *req )
1215 fprintf( stderr, " handle=%p,", req->handle );
1216 fprintf( stderr, " mask=%08x,", req->mask );
1217 fprintf( stderr, " sstate=%08x,", req->sstate );
1218 fprintf( stderr, " cstate=%08x", req->cstate );
1221 static void dump_set_socket_deferred_request( const struct set_socket_deferred_request *req )
1223 fprintf( stderr, " handle=%p,", req->handle );
1224 fprintf( stderr, " deferred=%p", req->deferred );
1227 static void dump_alloc_console_request( const struct alloc_console_request *req )
1229 fprintf( stderr, " access=%08x,", req->access );
1230 fprintf( stderr, " attributes=%08x,", req->attributes );
1231 fprintf( stderr, " pid=%04x", req->pid );
1234 static void dump_alloc_console_reply( const struct alloc_console_reply *req )
1236 fprintf( stderr, " handle_in=%p,", req->handle_in );
1237 fprintf( stderr, " event=%p", req->event );
1240 static void dump_free_console_request( const struct free_console_request *req )
1244 static void dump_get_console_renderer_events_request( const struct get_console_renderer_events_request *req )
1246 fprintf( stderr, " handle=%p", req->handle );
1249 static void dump_get_console_renderer_events_reply( const struct get_console_renderer_events_reply *req )
1251 fprintf( stderr, " data=" );
1252 dump_varargs_bytes( cur_size );
1255 static void dump_open_console_request( const struct open_console_request *req )
1257 fprintf( stderr, " from=%p,", req->from );
1258 fprintf( stderr, " access=%08x,", req->access );
1259 fprintf( stderr, " attributes=%08x,", req->attributes );
1260 fprintf( stderr, " share=%d", req->share );
1263 static void dump_open_console_reply( const struct open_console_reply *req )
1265 fprintf( stderr, " handle=%p", req->handle );
1268 static void dump_get_console_wait_event_request( const struct get_console_wait_event_request *req )
1272 static void dump_get_console_wait_event_reply( const struct get_console_wait_event_reply *req )
1274 fprintf( stderr, " handle=%p", req->handle );
1277 static void dump_get_console_mode_request( const struct get_console_mode_request *req )
1279 fprintf( stderr, " handle=%p", req->handle );
1282 static void dump_get_console_mode_reply( const struct get_console_mode_reply *req )
1284 fprintf( stderr, " mode=%d", req->mode );
1287 static void dump_set_console_mode_request( const struct set_console_mode_request *req )
1289 fprintf( stderr, " handle=%p,", req->handle );
1290 fprintf( stderr, " mode=%d", req->mode );
1293 static void dump_set_console_input_info_request( const struct set_console_input_info_request *req )
1295 fprintf( stderr, " handle=%p,", req->handle );
1296 fprintf( stderr, " mask=%d,", req->mask );
1297 fprintf( stderr, " active_sb=%p,", req->active_sb );
1298 fprintf( stderr, " history_mode=%d,", req->history_mode );
1299 fprintf( stderr, " history_size=%d,", req->history_size );
1300 fprintf( stderr, " edition_mode=%d,", req->edition_mode );
1301 fprintf( stderr, " title=" );
1302 dump_varargs_unicode_str( cur_size );
1305 static void dump_get_console_input_info_request( const struct get_console_input_info_request *req )
1307 fprintf( stderr, " handle=%p", req->handle );
1310 static void dump_get_console_input_info_reply( const struct get_console_input_info_reply *req )
1312 fprintf( stderr, " history_mode=%d,", req->history_mode );
1313 fprintf( stderr, " history_size=%d,", req->history_size );
1314 fprintf( stderr, " history_index=%d,", req->history_index );
1315 fprintf( stderr, " edition_mode=%d,", req->edition_mode );
1316 fprintf( stderr, " title=" );
1317 dump_varargs_unicode_str( cur_size );
1320 static void dump_append_console_input_history_request( const struct append_console_input_history_request *req )
1322 fprintf( stderr, " handle=%p,", req->handle );
1323 fprintf( stderr, " line=" );
1324 dump_varargs_unicode_str( cur_size );
1327 static void dump_get_console_input_history_request( const struct get_console_input_history_request *req )
1329 fprintf( stderr, " handle=%p,", req->handle );
1330 fprintf( stderr, " index=%d", req->index );
1333 static void dump_get_console_input_history_reply( const struct get_console_input_history_reply *req )
1335 fprintf( stderr, " total=%d,", req->total );
1336 fprintf( stderr, " line=" );
1337 dump_varargs_unicode_str( cur_size );
1340 static void dump_create_console_output_request( const struct create_console_output_request *req )
1342 fprintf( stderr, " handle_in=%p,", req->handle_in );
1343 fprintf( stderr, " access=%08x,", req->access );
1344 fprintf( stderr, " attributes=%08x,", req->attributes );
1345 fprintf( stderr, " share=%08x", req->share );
1348 static void dump_create_console_output_reply( const struct create_console_output_reply *req )
1350 fprintf( stderr, " handle_out=%p", req->handle_out );
1353 static void dump_set_console_output_info_request( const struct set_console_output_info_request *req )
1355 fprintf( stderr, " handle=%p,", req->handle );
1356 fprintf( stderr, " mask=%d,", req->mask );
1357 fprintf( stderr, " cursor_size=%d,", req->cursor_size );
1358 fprintf( stderr, " cursor_visible=%d,", req->cursor_visible );
1359 fprintf( stderr, " cursor_x=%d,", req->cursor_x );
1360 fprintf( stderr, " cursor_y=%d,", req->cursor_y );
1361 fprintf( stderr, " width=%d,", req->width );
1362 fprintf( stderr, " height=%d,", req->height );
1363 fprintf( stderr, " attr=%d,", req->attr );
1364 fprintf( stderr, " win_left=%d,", req->win_left );
1365 fprintf( stderr, " win_top=%d,", req->win_top );
1366 fprintf( stderr, " win_right=%d,", req->win_right );
1367 fprintf( stderr, " win_bottom=%d,", req->win_bottom );
1368 fprintf( stderr, " max_width=%d,", req->max_width );
1369 fprintf( stderr, " max_height=%d", req->max_height );
1372 static void dump_get_console_output_info_request( const struct get_console_output_info_request *req )
1374 fprintf( stderr, " handle=%p", req->handle );
1377 static void dump_get_console_output_info_reply( const struct get_console_output_info_reply *req )
1379 fprintf( stderr, " cursor_size=%d,", req->cursor_size );
1380 fprintf( stderr, " cursor_visible=%d,", req->cursor_visible );
1381 fprintf( stderr, " cursor_x=%d,", req->cursor_x );
1382 fprintf( stderr, " cursor_y=%d,", req->cursor_y );
1383 fprintf( stderr, " width=%d,", req->width );
1384 fprintf( stderr, " height=%d,", req->height );
1385 fprintf( stderr, " attr=%d,", req->attr );
1386 fprintf( stderr, " win_left=%d,", req->win_left );
1387 fprintf( stderr, " win_top=%d,", req->win_top );
1388 fprintf( stderr, " win_right=%d,", req->win_right );
1389 fprintf( stderr, " win_bottom=%d,", req->win_bottom );
1390 fprintf( stderr, " max_width=%d,", req->max_width );
1391 fprintf( stderr, " max_height=%d", req->max_height );
1394 static void dump_write_console_input_request( const struct write_console_input_request *req )
1396 fprintf( stderr, " handle=%p,", req->handle );
1397 fprintf( stderr, " rec=" );
1398 dump_varargs_input_records( cur_size );
1401 static void dump_write_console_input_reply( const struct write_console_input_reply *req )
1403 fprintf( stderr, " written=%d", req->written );
1406 static void dump_read_console_input_request( const struct read_console_input_request *req )
1408 fprintf( stderr, " handle=%p,", req->handle );
1409 fprintf( stderr, " flush=%d", req->flush );
1412 static void dump_read_console_input_reply( const struct read_console_input_reply *req )
1414 fprintf( stderr, " read=%d,", req->read );
1415 fprintf( stderr, " rec=" );
1416 dump_varargs_input_records( cur_size );
1419 static void dump_write_console_output_request( const struct write_console_output_request *req )
1421 fprintf( stderr, " handle=%p,", req->handle );
1422 fprintf( stderr, " x=%d,", req->x );
1423 fprintf( stderr, " y=%d,", req->y );
1424 fprintf( stderr, " mode=%d,", req->mode );
1425 fprintf( stderr, " wrap=%d,", req->wrap );
1426 fprintf( stderr, " data=" );
1427 dump_varargs_bytes( cur_size );
1430 static void dump_write_console_output_reply( const struct write_console_output_reply *req )
1432 fprintf( stderr, " written=%d,", req->written );
1433 fprintf( stderr, " width=%d,", req->width );
1434 fprintf( stderr, " height=%d", req->height );
1437 static void dump_fill_console_output_request( const struct fill_console_output_request *req )
1439 fprintf( stderr, " handle=%p,", req->handle );
1440 fprintf( stderr, " x=%d,", req->x );
1441 fprintf( stderr, " y=%d,", req->y );
1442 fprintf( stderr, " mode=%d,", req->mode );
1443 fprintf( stderr, " count=%d,", req->count );
1444 fprintf( stderr, " wrap=%d,", req->wrap );
1445 fprintf( stderr, " data=" );
1446 dump_char_info( &req->data );
1449 static void dump_fill_console_output_reply( const struct fill_console_output_reply *req )
1451 fprintf( stderr, " written=%d", req->written );
1454 static void dump_read_console_output_request( const struct read_console_output_request *req )
1456 fprintf( stderr, " handle=%p,", req->handle );
1457 fprintf( stderr, " x=%d,", req->x );
1458 fprintf( stderr, " y=%d,", req->y );
1459 fprintf( stderr, " mode=%d,", req->mode );
1460 fprintf( stderr, " wrap=%d", req->wrap );
1463 static void dump_read_console_output_reply( const struct read_console_output_reply *req )
1465 fprintf( stderr, " width=%d,", req->width );
1466 fprintf( stderr, " height=%d,", req->height );
1467 fprintf( stderr, " data=" );
1468 dump_varargs_bytes( cur_size );
1471 static void dump_move_console_output_request( const struct move_console_output_request *req )
1473 fprintf( stderr, " handle=%p,", req->handle );
1474 fprintf( stderr, " x_src=%d,", req->x_src );
1475 fprintf( stderr, " y_src=%d,", req->y_src );
1476 fprintf( stderr, " x_dst=%d,", req->x_dst );
1477 fprintf( stderr, " y_dst=%d,", req->y_dst );
1478 fprintf( stderr, " w=%d,", req->w );
1479 fprintf( stderr, " h=%d", req->h );
1482 static void dump_send_console_signal_request( const struct send_console_signal_request *req )
1484 fprintf( stderr, " signal=%d,", req->signal );
1485 fprintf( stderr, " group_id=%04x", req->group_id );
1488 static void dump_read_directory_changes_request( const struct read_directory_changes_request *req )
1490 fprintf( stderr, " handle=%p,", req->handle );
1491 fprintf( stderr, " event=%p,", req->event );
1492 fprintf( stderr, " filter=%08x,", req->filter );
1493 fprintf( stderr, " subtree=%d,", req->subtree );
1494 fprintf( stderr, " want_data=%d,", req->want_data );
1495 fprintf( stderr, " io_apc=%p,", req->io_apc );
1496 fprintf( stderr, " io_sb=%p,", req->io_sb );
1497 fprintf( stderr, " io_user=%p", req->io_user );
1500 static void dump_read_change_request( const struct read_change_request *req )
1502 fprintf( stderr, " handle=%p", req->handle );
1505 static void dump_read_change_reply( const struct read_change_reply *req )
1507 fprintf( stderr, " action=%d,", req->action );
1508 fprintf( stderr, " name=" );
1509 dump_varargs_string( cur_size );
1512 static void dump_create_mapping_request( const struct create_mapping_request *req )
1514 fprintf( stderr, " access=%08x,", req->access );
1515 fprintf( stderr, " attributes=%08x,", req->attributes );
1516 fprintf( stderr, " rootdir=%p,", req->rootdir );
1517 fprintf( stderr, " size_high=%d,", req->size_high );
1518 fprintf( stderr, " size_low=%d,", req->size_low );
1519 fprintf( stderr, " protect=%d,", req->protect );
1520 fprintf( stderr, " file_handle=%p,", req->file_handle );
1521 fprintf( stderr, " name=" );
1522 dump_varargs_unicode_str( cur_size );
1525 static void dump_create_mapping_reply( const struct create_mapping_reply *req )
1527 fprintf( stderr, " handle=%p", req->handle );
1530 static void dump_open_mapping_request( const struct open_mapping_request *req )
1532 fprintf( stderr, " access=%08x,", req->access );
1533 fprintf( stderr, " attributes=%08x,", req->attributes );
1534 fprintf( stderr, " rootdir=%p,", req->rootdir );
1535 fprintf( stderr, " name=" );
1536 dump_varargs_unicode_str( cur_size );
1539 static void dump_open_mapping_reply( const struct open_mapping_reply *req )
1541 fprintf( stderr, " handle=%p", req->handle );
1544 static void dump_get_mapping_info_request( const struct get_mapping_info_request *req )
1546 fprintf( stderr, " handle=%p", req->handle );
1549 static void dump_get_mapping_info_reply( const struct get_mapping_info_reply *req )
1551 fprintf( stderr, " size_high=%d,", req->size_high );
1552 fprintf( stderr, " size_low=%d,", req->size_low );
1553 fprintf( stderr, " protect=%d,", req->protect );
1554 fprintf( stderr, " header_size=%d,", req->header_size );
1555 fprintf( stderr, " base=%p,", req->base );
1556 fprintf( stderr, " shared_file=%p,", req->shared_file );
1557 fprintf( stderr, " shared_size=%d", req->shared_size );
1560 static void dump_create_snapshot_request( const struct create_snapshot_request *req )
1562 fprintf( stderr, " attributes=%08x,", req->attributes );
1563 fprintf( stderr, " flags=%d,", req->flags );
1564 fprintf( stderr, " pid=%04x", req->pid );
1567 static void dump_create_snapshot_reply( const struct create_snapshot_reply *req )
1569 fprintf( stderr, " handle=%p", req->handle );
1572 static void dump_next_process_request( const struct next_process_request *req )
1574 fprintf( stderr, " handle=%p,", req->handle );
1575 fprintf( stderr, " reset=%d", req->reset );
1578 static void dump_next_process_reply( const struct next_process_reply *req )
1580 fprintf( stderr, " count=%d,", req->count );
1581 fprintf( stderr, " pid=%04x,", req->pid );
1582 fprintf( stderr, " ppid=%04x,", req->ppid );
1583 fprintf( stderr, " heap=%p,", req->heap );
1584 fprintf( stderr, " module=%p,", req->module );
1585 fprintf( stderr, " threads=%d,", req->threads );
1586 fprintf( stderr, " priority=%d,", req->priority );
1587 fprintf( stderr, " handles=%d,", req->handles );
1588 fprintf( stderr, " filename=" );
1589 dump_varargs_unicode_str( cur_size );
1592 static void dump_next_thread_request( const struct next_thread_request *req )
1594 fprintf( stderr, " handle=%p,", req->handle );
1595 fprintf( stderr, " reset=%d", req->reset );
1598 static void dump_next_thread_reply( const struct next_thread_reply *req )
1600 fprintf( stderr, " count=%d,", req->count );
1601 fprintf( stderr, " pid=%04x,", req->pid );
1602 fprintf( stderr, " tid=%04x,", req->tid );
1603 fprintf( stderr, " base_pri=%d,", req->base_pri );
1604 fprintf( stderr, " delta_pri=%d", req->delta_pri );
1607 static void dump_next_module_request( const struct next_module_request *req )
1609 fprintf( stderr, " handle=%p,", req->handle );
1610 fprintf( stderr, " reset=%d", req->reset );
1613 static void dump_next_module_reply( const struct next_module_reply *req )
1615 fprintf( stderr, " pid=%04x,", req->pid );
1616 fprintf( stderr, " base=%p,", req->base );
1617 fprintf( stderr, " size=%lu,", (unsigned long)req->size );
1618 fprintf( stderr, " filename=" );
1619 dump_varargs_unicode_str( cur_size );
1622 static void dump_wait_debug_event_request( const struct wait_debug_event_request *req )
1624 fprintf( stderr, " get_handle=%d", req->get_handle );
1627 static void dump_wait_debug_event_reply( const struct wait_debug_event_reply *req )
1629 fprintf( stderr, " pid=%04x,", req->pid );
1630 fprintf( stderr, " tid=%04x,", req->tid );
1631 fprintf( stderr, " wait=%p,", req->wait );
1632 fprintf( stderr, " event=" );
1633 dump_varargs_debug_event( cur_size );
1636 static void dump_queue_exception_event_request( const struct queue_exception_event_request *req )
1638 fprintf( stderr, " first=%d,", req->first );
1639 fprintf( stderr, " record=" );
1640 dump_varargs_exc_event( cur_size );
1643 static void dump_queue_exception_event_reply( const struct queue_exception_event_reply *req )
1645 fprintf( stderr, " handle=%p", req->handle );
1648 static void dump_get_exception_status_request( const struct get_exception_status_request *req )
1650 fprintf( stderr, " handle=%p", req->handle );
1653 static void dump_get_exception_status_reply( const struct get_exception_status_reply *req )
1655 fprintf( stderr, " context=" );
1656 dump_varargs_context( cur_size );
1659 static void dump_output_debug_string_request( const struct output_debug_string_request *req )
1661 fprintf( stderr, " string=%p,", req->string );
1662 fprintf( stderr, " unicode=%d,", req->unicode );
1663 fprintf( stderr, " length=%d", req->length );
1666 static void dump_continue_debug_event_request( const struct continue_debug_event_request *req )
1668 fprintf( stderr, " pid=%04x,", req->pid );
1669 fprintf( stderr, " tid=%04x,", req->tid );
1670 fprintf( stderr, " status=%d", req->status );
1673 static void dump_debug_process_request( const struct debug_process_request *req )
1675 fprintf( stderr, " pid=%04x,", req->pid );
1676 fprintf( stderr, " attach=%d", req->attach );
1679 static void dump_debug_break_request( const struct debug_break_request *req )
1681 fprintf( stderr, " handle=%p", req->handle );
1684 static void dump_debug_break_reply( const struct debug_break_reply *req )
1686 fprintf( stderr, " self=%d", req->self );
1689 static void dump_set_debugger_kill_on_exit_request( const struct set_debugger_kill_on_exit_request *req )
1691 fprintf( stderr, " kill_on_exit=%d", req->kill_on_exit );
1694 static void dump_read_process_memory_request( const struct read_process_memory_request *req )
1696 fprintf( stderr, " handle=%p,", req->handle );
1697 fprintf( stderr, " addr=%p", req->addr );
1700 static void dump_read_process_memory_reply( const struct read_process_memory_reply *req )
1702 fprintf( stderr, " data=" );
1703 dump_varargs_bytes( cur_size );
1706 static void dump_write_process_memory_request( const struct write_process_memory_request *req )
1708 fprintf( stderr, " handle=%p,", req->handle );
1709 fprintf( stderr, " addr=%p,", req->addr );
1710 fprintf( stderr, " data=" );
1711 dump_varargs_bytes( cur_size );
1714 static void dump_create_key_request( const struct create_key_request *req )
1716 fprintf( stderr, " parent=%p,", req->parent );
1717 fprintf( stderr, " access=%08x,", req->access );
1718 fprintf( stderr, " attributes=%08x,", req->attributes );
1719 fprintf( stderr, " options=%08x,", req->options );
1720 fprintf( stderr, " modif=%ld,", (long)req->modif );
1721 fprintf( stderr, " namelen=%u,", req->namelen );
1722 fprintf( stderr, " name=" );
1723 dump_varargs_unicode_str( min(cur_size,req->namelen) );
1724 fputc( ',', stderr );
1725 fprintf( stderr, " class=" );
1726 dump_varargs_unicode_str( cur_size );
1729 static void dump_create_key_reply( const struct create_key_reply *req )
1731 fprintf( stderr, " hkey=%p,", req->hkey );
1732 fprintf( stderr, " created=%d", req->created );
1735 static void dump_open_key_request( const struct open_key_request *req )
1737 fprintf( stderr, " parent=%p,", req->parent );
1738 fprintf( stderr, " access=%08x,", req->access );
1739 fprintf( stderr, " attributes=%08x,", req->attributes );
1740 fprintf( stderr, " name=" );
1741 dump_varargs_unicode_str( cur_size );
1744 static void dump_open_key_reply( const struct open_key_reply *req )
1746 fprintf( stderr, " hkey=%p", req->hkey );
1749 static void dump_delete_key_request( const struct delete_key_request *req )
1751 fprintf( stderr, " hkey=%p", req->hkey );
1754 static void dump_flush_key_request( const struct flush_key_request *req )
1756 fprintf( stderr, " hkey=%p", req->hkey );
1759 static void dump_enum_key_request( const struct enum_key_request *req )
1761 fprintf( stderr, " hkey=%p,", req->hkey );
1762 fprintf( stderr, " index=%d,", req->index );
1763 fprintf( stderr, " info_class=%d", req->info_class );
1766 static void dump_enum_key_reply( const struct enum_key_reply *req )
1768 fprintf( stderr, " subkeys=%d,", req->subkeys );
1769 fprintf( stderr, " max_subkey=%d,", req->max_subkey );
1770 fprintf( stderr, " max_class=%d,", req->max_class );
1771 fprintf( stderr, " values=%d,", req->values );
1772 fprintf( stderr, " max_value=%d,", req->max_value );
1773 fprintf( stderr, " max_data=%d,", req->max_data );
1774 fprintf( stderr, " modif=%ld,", (long)req->modif );
1775 fprintf( stderr, " total=%u,", req->total );
1776 fprintf( stderr, " namelen=%u,", req->namelen );
1777 fprintf( stderr, " name=" );
1778 dump_varargs_unicode_str( min(cur_size,req->namelen) );
1779 fputc( ',', stderr );
1780 fprintf( stderr, " class=" );
1781 dump_varargs_unicode_str( cur_size );
1784 static void dump_set_key_value_request( const struct set_key_value_request *req )
1786 fprintf( stderr, " hkey=%p,", req->hkey );
1787 fprintf( stderr, " type=%d,", req->type );
1788 fprintf( stderr, " namelen=%u,", req->namelen );
1789 fprintf( stderr, " name=" );
1790 dump_varargs_unicode_str( min(cur_size,req->namelen) );
1791 fputc( ',', stderr );
1792 fprintf( stderr, " data=" );
1793 dump_varargs_bytes( cur_size );
1796 static void dump_get_key_value_request( const struct get_key_value_request *req )
1798 fprintf( stderr, " hkey=%p,", req->hkey );
1799 fprintf( stderr, " name=" );
1800 dump_varargs_unicode_str( cur_size );
1803 static void dump_get_key_value_reply( const struct get_key_value_reply *req )
1805 fprintf( stderr, " type=%d,", req->type );
1806 fprintf( stderr, " total=%u,", req->total );
1807 fprintf( stderr, " data=" );
1808 dump_varargs_bytes( cur_size );
1811 static void dump_enum_key_value_request( const struct enum_key_value_request *req )
1813 fprintf( stderr, " hkey=%p,", req->hkey );
1814 fprintf( stderr, " index=%d,", req->index );
1815 fprintf( stderr, " info_class=%d", req->info_class );
1818 static void dump_enum_key_value_reply( const struct enum_key_value_reply *req )
1820 fprintf( stderr, " type=%d,", req->type );
1821 fprintf( stderr, " total=%u,", req->total );
1822 fprintf( stderr, " namelen=%u,", req->namelen );
1823 fprintf( stderr, " name=" );
1824 dump_varargs_unicode_str( min(cur_size,req->namelen) );
1825 fputc( ',', stderr );
1826 fprintf( stderr, " data=" );
1827 dump_varargs_bytes( cur_size );
1830 static void dump_delete_key_value_request( const struct delete_key_value_request *req )
1832 fprintf( stderr, " hkey=%p,", req->hkey );
1833 fprintf( stderr, " name=" );
1834 dump_varargs_unicode_str( cur_size );
1837 static void dump_load_registry_request( const struct load_registry_request *req )
1839 fprintf( stderr, " hkey=%p,", req->hkey );
1840 fprintf( stderr, " file=%p,", req->file );
1841 fprintf( stderr, " name=" );
1842 dump_varargs_unicode_str( cur_size );
1845 static void dump_unload_registry_request( const struct unload_registry_request *req )
1847 fprintf( stderr, " hkey=%p", req->hkey );
1850 static void dump_save_registry_request( const struct save_registry_request *req )
1852 fprintf( stderr, " hkey=%p,", req->hkey );
1853 fprintf( stderr, " file=%p", req->file );
1856 static void dump_set_registry_notification_request( const struct set_registry_notification_request *req )
1858 fprintf( stderr, " hkey=%p,", req->hkey );
1859 fprintf( stderr, " event=%p,", req->event );
1860 fprintf( stderr, " subtree=%d,", req->subtree );
1861 fprintf( stderr, " filter=%08x", req->filter );
1864 static void dump_create_timer_request( const struct create_timer_request *req )
1866 fprintf( stderr, " access=%08x,", req->access );
1867 fprintf( stderr, " attributes=%08x,", req->attributes );
1868 fprintf( stderr, " rootdir=%p,", req->rootdir );
1869 fprintf( stderr, " manual=%d,", req->manual );
1870 fprintf( stderr, " name=" );
1871 dump_varargs_unicode_str( cur_size );
1874 static void dump_create_timer_reply( const struct create_timer_reply *req )
1876 fprintf( stderr, " handle=%p", req->handle );
1879 static void dump_open_timer_request( const struct open_timer_request *req )
1881 fprintf( stderr, " access=%08x,", req->access );
1882 fprintf( stderr, " attributes=%08x,", req->attributes );
1883 fprintf( stderr, " rootdir=%p,", req->rootdir );
1884 fprintf( stderr, " name=" );
1885 dump_varargs_unicode_str( cur_size );
1888 static void dump_open_timer_reply( const struct open_timer_reply *req )
1890 fprintf( stderr, " handle=%p", req->handle );
1893 static void dump_set_timer_request( const struct set_timer_request *req )
1895 fprintf( stderr, " handle=%p,", req->handle );
1896 fprintf( stderr, " expire=" );
1897 dump_abs_time( &req->expire );
1898 fprintf( stderr, "," );
1899 fprintf( stderr, " period=%d,", req->period );
1900 fprintf( stderr, " callback=%p,", req->callback );
1901 fprintf( stderr, " arg=%p", req->arg );
1904 static void dump_set_timer_reply( const struct set_timer_reply *req )
1906 fprintf( stderr, " signaled=%d", req->signaled );
1909 static void dump_cancel_timer_request( const struct cancel_timer_request *req )
1911 fprintf( stderr, " handle=%p", req->handle );
1914 static void dump_cancel_timer_reply( const struct cancel_timer_reply *req )
1916 fprintf( stderr, " signaled=%d", req->signaled );
1919 static void dump_get_timer_info_request( const struct get_timer_info_request *req )
1921 fprintf( stderr, " handle=%p", req->handle );
1924 static void dump_get_timer_info_reply( const struct get_timer_info_reply *req )
1926 fprintf( stderr, " when=" );
1927 dump_abs_time( &req->when );
1928 fprintf( stderr, "," );
1929 fprintf( stderr, " signaled=%d", req->signaled );
1932 static void dump_get_thread_context_request( const struct get_thread_context_request *req )
1934 fprintf( stderr, " handle=%p,", req->handle );
1935 fprintf( stderr, " flags=%08x,", req->flags );
1936 fprintf( stderr, " suspend=%d", req->suspend );
1939 static void dump_get_thread_context_reply( const struct get_thread_context_reply *req )
1941 fprintf( stderr, " self=%d,", req->self );
1942 fprintf( stderr, " context=" );
1943 dump_varargs_context( cur_size );
1946 static void dump_set_thread_context_request( const struct set_thread_context_request *req )
1948 fprintf( stderr, " handle=%p,", req->handle );
1949 fprintf( stderr, " flags=%08x,", req->flags );
1950 fprintf( stderr, " suspend=%d,", req->suspend );
1951 fprintf( stderr, " context=" );
1952 dump_varargs_context( cur_size );
1955 static void dump_set_thread_context_reply( const struct set_thread_context_reply *req )
1957 fprintf( stderr, " self=%d", req->self );
1960 static void dump_get_selector_entry_request( const struct get_selector_entry_request *req )
1962 fprintf( stderr, " handle=%p,", req->handle );
1963 fprintf( stderr, " entry=%d", req->entry );
1966 static void dump_get_selector_entry_reply( const struct get_selector_entry_reply *req )
1968 fprintf( stderr, " base=%08x,", req->base );
1969 fprintf( stderr, " limit=%08x,", req->limit );
1970 fprintf( stderr, " flags=%02x", req->flags );
1973 static void dump_add_atom_request( const struct add_atom_request *req )
1975 fprintf( stderr, " table=%p,", req->table );
1976 fprintf( stderr, " name=" );
1977 dump_varargs_unicode_str( cur_size );
1980 static void dump_add_atom_reply( const struct add_atom_reply *req )
1982 fprintf( stderr, " atom=%04x", req->atom );
1985 static void dump_delete_atom_request( const struct delete_atom_request *req )
1987 fprintf( stderr, " table=%p,", req->table );
1988 fprintf( stderr, " atom=%04x", req->atom );
1991 static void dump_find_atom_request( const struct find_atom_request *req )
1993 fprintf( stderr, " table=%p,", req->table );
1994 fprintf( stderr, " name=" );
1995 dump_varargs_unicode_str( cur_size );
1998 static void dump_find_atom_reply( const struct find_atom_reply *req )
2000 fprintf( stderr, " atom=%04x", req->atom );
2003 static void dump_get_atom_information_request( const struct get_atom_information_request *req )
2005 fprintf( stderr, " table=%p,", req->table );
2006 fprintf( stderr, " atom=%04x", req->atom );
2009 static void dump_get_atom_information_reply( const struct get_atom_information_reply *req )
2011 fprintf( stderr, " count=%d,", req->count );
2012 fprintf( stderr, " pinned=%d,", req->pinned );
2013 fprintf( stderr, " total=%u,", req->total );
2014 fprintf( stderr, " name=" );
2015 dump_varargs_unicode_str( cur_size );
2018 static void dump_set_atom_information_request( const struct set_atom_information_request *req )
2020 fprintf( stderr, " table=%p,", req->table );
2021 fprintf( stderr, " atom=%04x,", req->atom );
2022 fprintf( stderr, " pinned=%d", req->pinned );
2025 static void dump_empty_atom_table_request( const struct empty_atom_table_request *req )
2027 fprintf( stderr, " table=%p,", req->table );
2028 fprintf( stderr, " if_pinned=%d", req->if_pinned );
2031 static void dump_init_atom_table_request( const struct init_atom_table_request *req )
2033 fprintf( stderr, " entries=%d", req->entries );
2036 static void dump_init_atom_table_reply( const struct init_atom_table_reply *req )
2038 fprintf( stderr, " table=%p", req->table );
2041 static void dump_get_msg_queue_request( const struct get_msg_queue_request *req )
2045 static void dump_get_msg_queue_reply( const struct get_msg_queue_reply *req )
2047 fprintf( stderr, " handle=%p", req->handle );
2050 static void dump_set_queue_mask_request( const struct set_queue_mask_request *req )
2052 fprintf( stderr, " wake_mask=%08x,", req->wake_mask );
2053 fprintf( stderr, " changed_mask=%08x,", req->changed_mask );
2054 fprintf( stderr, " skip_wait=%d", req->skip_wait );
2057 static void dump_set_queue_mask_reply( const struct set_queue_mask_reply *req )
2059 fprintf( stderr, " wake_bits=%08x,", req->wake_bits );
2060 fprintf( stderr, " changed_bits=%08x", req->changed_bits );
2063 static void dump_get_queue_status_request( const struct get_queue_status_request *req )
2065 fprintf( stderr, " clear=%d", req->clear );
2068 static void dump_get_queue_status_reply( const struct get_queue_status_reply *req )
2070 fprintf( stderr, " wake_bits=%08x,", req->wake_bits );
2071 fprintf( stderr, " changed_bits=%08x", req->changed_bits );
2074 static void dump_get_process_idle_event_request( const struct get_process_idle_event_request *req )
2076 fprintf( stderr, " handle=%p", req->handle );
2079 static void dump_get_process_idle_event_reply( const struct get_process_idle_event_reply *req )
2081 fprintf( stderr, " event=%p", req->event );
2084 static void dump_send_message_request( const struct send_message_request *req )
2086 fprintf( stderr, " id=%04x,", req->id );
2087 fprintf( stderr, " type=%d,", req->type );
2088 fprintf( stderr, " flags=%d,", req->flags );
2089 fprintf( stderr, " win=%p,", req->win );
2090 fprintf( stderr, " msg=%08x,", req->msg );
2091 fprintf( stderr, " wparam=%lx,", req->wparam );
2092 fprintf( stderr, " lparam=%lx,", req->lparam );
2093 fprintf( stderr, " info=%lx,", req->info );
2094 fprintf( stderr, " timeout=%d,", req->timeout );
2095 fprintf( stderr, " callback=%p,", req->callback );
2096 fprintf( stderr, " data=" );
2097 dump_varargs_bytes( cur_size );
2100 static void dump_post_quit_message_request( const struct post_quit_message_request *req )
2102 fprintf( stderr, " exit_code=%d", req->exit_code );
2105 static void dump_send_hardware_message_request( const struct send_hardware_message_request *req )
2107 fprintf( stderr, " id=%04x,", req->id );
2108 fprintf( stderr, " win=%p,", req->win );
2109 fprintf( stderr, " msg=%08x,", req->msg );
2110 fprintf( stderr, " wparam=%lx,", req->wparam );
2111 fprintf( stderr, " lparam=%lx,", req->lparam );
2112 fprintf( stderr, " info=%lx,", req->info );
2113 fprintf( stderr, " x=%d,", req->x );
2114 fprintf( stderr, " y=%d,", req->y );
2115 fprintf( stderr, " time=%08x", req->time );
2118 static void dump_get_message_request( const struct get_message_request *req )
2120 fprintf( stderr, " flags=%d,", req->flags );
2121 fprintf( stderr, " get_win=%p,", req->get_win );
2122 fprintf( stderr, " get_first=%08x,", req->get_first );
2123 fprintf( stderr, " get_last=%08x,", req->get_last );
2124 fprintf( stderr, " hw_id=%08x", req->hw_id );
2127 static void dump_get_message_reply( const struct get_message_reply *req )
2129 fprintf( stderr, " type=%d,", req->type );
2130 fprintf( stderr, " win=%p,", req->win );
2131 fprintf( stderr, " msg=%08x,", req->msg );
2132 fprintf( stderr, " wparam=%lx,", req->wparam );
2133 fprintf( stderr, " lparam=%lx,", req->lparam );
2134 fprintf( stderr, " info=%lx,", req->info );
2135 fprintf( stderr, " x=%d,", req->x );
2136 fprintf( stderr, " y=%d,", req->y );
2137 fprintf( stderr, " hook=%p,", req->hook );
2138 fprintf( stderr, " hook_proc=%p,", req->hook_proc );
2139 fprintf( stderr, " time=%08x,", req->time );
2140 fprintf( stderr, " hw_id=%08x,", req->hw_id );
2141 fprintf( stderr, " active_hooks=%08x,", req->active_hooks );
2142 fprintf( stderr, " total=%u,", req->total );
2143 fprintf( stderr, " data=" );
2144 dump_varargs_bytes( cur_size );
2147 static void dump_reply_message_request( const struct reply_message_request *req )
2149 fprintf( stderr, " result=%08x,", req->result );
2150 fprintf( stderr, " remove=%d,", req->remove );
2151 fprintf( stderr, " data=" );
2152 dump_varargs_bytes( cur_size );
2155 static void dump_accept_hardware_message_request( const struct accept_hardware_message_request *req )
2157 fprintf( stderr, " hw_id=%08x,", req->hw_id );
2158 fprintf( stderr, " remove=%d,", req->remove );
2159 fprintf( stderr, " new_win=%p", req->new_win );
2162 static void dump_get_message_reply_request( const struct get_message_reply_request *req )
2164 fprintf( stderr, " cancel=%d", req->cancel );
2167 static void dump_get_message_reply_reply( const struct get_message_reply_reply *req )
2169 fprintf( stderr, " result=%08x,", req->result );
2170 fprintf( stderr, " data=" );
2171 dump_varargs_bytes( cur_size );
2174 static void dump_set_win_timer_request( const struct set_win_timer_request *req )
2176 fprintf( stderr, " win=%p,", req->win );
2177 fprintf( stderr, " msg=%08x,", req->msg );
2178 fprintf( stderr, " id=%08x,", req->id );
2179 fprintf( stderr, " rate=%08x,", req->rate );
2180 fprintf( stderr, " lparam=%lx", req->lparam );
2183 static void dump_set_win_timer_reply( const struct set_win_timer_reply *req )
2185 fprintf( stderr, " id=%08x", req->id );
2188 static void dump_kill_win_timer_request( const struct kill_win_timer_request *req )
2190 fprintf( stderr, " win=%p,", req->win );
2191 fprintf( stderr, " msg=%08x,", req->msg );
2192 fprintf( stderr, " id=%08x", req->id );
2195 static void dump_get_serial_info_request( const struct get_serial_info_request *req )
2197 fprintf( stderr, " handle=%p", req->handle );
2200 static void dump_get_serial_info_reply( const struct get_serial_info_reply *req )
2202 fprintf( stderr, " readinterval=%08x,", req->readinterval );
2203 fprintf( stderr, " readconst=%08x,", req->readconst );
2204 fprintf( stderr, " readmult=%08x,", req->readmult );
2205 fprintf( stderr, " writeconst=%08x,", req->writeconst );
2206 fprintf( stderr, " writemult=%08x,", req->writemult );
2207 fprintf( stderr, " eventmask=%08x", req->eventmask );
2210 static void dump_set_serial_info_request( const struct set_serial_info_request *req )
2212 fprintf( stderr, " handle=%p,", req->handle );
2213 fprintf( stderr, " flags=%d,", req->flags );
2214 fprintf( stderr, " readinterval=%08x,", req->readinterval );
2215 fprintf( stderr, " readconst=%08x,", req->readconst );
2216 fprintf( stderr, " readmult=%08x,", req->readmult );
2217 fprintf( stderr, " writeconst=%08x,", req->writeconst );
2218 fprintf( stderr, " writemult=%08x,", req->writemult );
2219 fprintf( stderr, " eventmask=%08x", req->eventmask );
2222 static void dump_register_async_request( const struct register_async_request *req )
2224 fprintf( stderr, " handle=%p,", req->handle );
2225 fprintf( stderr, " type=%d,", req->type );
2226 fprintf( stderr, " io_apc=%p,", req->io_apc );
2227 fprintf( stderr, " io_sb=%p,", req->io_sb );
2228 fprintf( stderr, " io_user=%p,", req->io_user );
2229 fprintf( stderr, " count=%d", req->count );
2232 static void dump_cancel_async_request( const struct cancel_async_request *req )
2234 fprintf( stderr, " handle=%p", req->handle );
2237 static void dump_create_named_pipe_request( const struct create_named_pipe_request *req )
2239 fprintf( stderr, " access=%08x,", req->access );
2240 fprintf( stderr, " attributes=%08x,", req->attributes );
2241 fprintf( stderr, " rootdir=%p,", req->rootdir );
2242 fprintf( stderr, " options=%08x,", req->options );
2243 fprintf( stderr, " flags=%08x,", req->flags );
2244 fprintf( stderr, " maxinstances=%08x,", req->maxinstances );
2245 fprintf( stderr, " outsize=%08x,", req->outsize );
2246 fprintf( stderr, " insize=%08x,", req->insize );
2247 fprintf( stderr, " timeout=%08x,", req->timeout );
2248 fprintf( stderr, " name=" );
2249 dump_varargs_unicode_str( cur_size );
2252 static void dump_create_named_pipe_reply( const struct create_named_pipe_reply *req )
2254 fprintf( stderr, " handle=%p", req->handle );
2257 static void dump_open_named_pipe_request( const struct open_named_pipe_request *req )
2259 fprintf( stderr, " access=%08x,", req->access );
2260 fprintf( stderr, " attributes=%08x,", req->attributes );
2261 fprintf( stderr, " rootdir=%p,", req->rootdir );
2262 fprintf( stderr, " flags=%08x,", req->flags );
2263 fprintf( stderr, " name=" );
2264 dump_varargs_unicode_str( cur_size );
2267 static void dump_open_named_pipe_reply( const struct open_named_pipe_reply *req )
2269 fprintf( stderr, " handle=%p", req->handle );
2272 static void dump_connect_named_pipe_request( const struct connect_named_pipe_request *req )
2274 fprintf( stderr, " handle=%p,", req->handle );
2275 fprintf( stderr, " event=%p,", req->event );
2276 fprintf( stderr, " func=%p", req->func );
2279 static void dump_wait_named_pipe_request( const struct wait_named_pipe_request *req )
2281 fprintf( stderr, " handle=%p,", req->handle );
2282 fprintf( stderr, " timeout=%08x,", req->timeout );
2283 fprintf( stderr, " event=%p,", req->event );
2284 fprintf( stderr, " func=%p,", req->func );
2285 fprintf( stderr, " name=" );
2286 dump_varargs_unicode_str( cur_size );
2289 static void dump_disconnect_named_pipe_request( const struct disconnect_named_pipe_request *req )
2291 fprintf( stderr, " handle=%p", req->handle );
2294 static void dump_disconnect_named_pipe_reply( const struct disconnect_named_pipe_reply *req )
2296 fprintf( stderr, " fd=%d", req->fd );
2299 static void dump_get_named_pipe_info_request( const struct get_named_pipe_info_request *req )
2301 fprintf( stderr, " handle=%p", req->handle );
2304 static void dump_get_named_pipe_info_reply( const struct get_named_pipe_info_reply *req )
2306 fprintf( stderr, " flags=%08x,", req->flags );
2307 fprintf( stderr, " maxinstances=%08x,", req->maxinstances );
2308 fprintf( stderr, " instances=%08x,", req->instances );
2309 fprintf( stderr, " outsize=%08x,", req->outsize );
2310 fprintf( stderr, " insize=%08x", req->insize );
2313 static void dump_create_window_request( const struct create_window_request *req )
2315 fprintf( stderr, " parent=%p,", req->parent );
2316 fprintf( stderr, " owner=%p,", req->owner );
2317 fprintf( stderr, " atom=%04x,", req->atom );
2318 fprintf( stderr, " instance=%p", req->instance );
2321 static void dump_create_window_reply( const struct create_window_reply *req )
2323 fprintf( stderr, " handle=%p,", req->handle );
2324 fprintf( stderr, " parent=%p,", req->parent );
2325 fprintf( stderr, " owner=%p,", req->owner );
2326 fprintf( stderr, " extra=%d,", req->extra );
2327 fprintf( stderr, " class_ptr=%p", req->class_ptr );
2330 static void dump_destroy_window_request( const struct destroy_window_request *req )
2332 fprintf( stderr, " handle=%p", req->handle );
2335 static void dump_get_desktop_window_request( const struct get_desktop_window_request *req )
2337 fprintf( stderr, " force=%d", req->force );
2340 static void dump_get_desktop_window_reply( const struct get_desktop_window_reply *req )
2342 fprintf( stderr, " handle=%p", req->handle );
2345 static void dump_set_window_owner_request( const struct set_window_owner_request *req )
2347 fprintf( stderr, " handle=%p,", req->handle );
2348 fprintf( stderr, " owner=%p", req->owner );
2351 static void dump_set_window_owner_reply( const struct set_window_owner_reply *req )
2353 fprintf( stderr, " full_owner=%p,", req->full_owner );
2354 fprintf( stderr, " prev_owner=%p", req->prev_owner );
2357 static void dump_get_window_info_request( const struct get_window_info_request *req )
2359 fprintf( stderr, " handle=%p", req->handle );
2362 static void dump_get_window_info_reply( const struct get_window_info_reply *req )
2364 fprintf( stderr, " full_handle=%p,", req->full_handle );
2365 fprintf( stderr, " last_active=%p,", req->last_active );
2366 fprintf( stderr, " pid=%04x,", req->pid );
2367 fprintf( stderr, " tid=%04x,", req->tid );
2368 fprintf( stderr, " atom=%04x,", req->atom );
2369 fprintf( stderr, " is_unicode=%d", req->is_unicode );
2372 static void dump_set_window_info_request( const struct set_window_info_request *req )
2374 fprintf( stderr, " handle=%p,", req->handle );
2375 fprintf( stderr, " flags=%08x,", req->flags );
2376 fprintf( stderr, " style=%08x,", req->style );
2377 fprintf( stderr, " ex_style=%08x,", req->ex_style );
2378 fprintf( stderr, " id=%08x,", req->id );
2379 fprintf( stderr, " instance=%p,", req->instance );
2380 fprintf( stderr, " is_unicode=%d,", req->is_unicode );
2381 fprintf( stderr, " user_data=%p,", req->user_data );
2382 fprintf( stderr, " extra_offset=%d,", req->extra_offset );
2383 fprintf( stderr, " extra_size=%u,", req->extra_size );
2384 fprintf( stderr, " extra_value=%lx", req->extra_value );
2387 static void dump_set_window_info_reply( const struct set_window_info_reply *req )
2389 fprintf( stderr, " old_style=%08x,", req->old_style );
2390 fprintf( stderr, " old_ex_style=%08x,", req->old_ex_style );
2391 fprintf( stderr, " old_id=%08x,", req->old_id );
2392 fprintf( stderr, " old_instance=%p,", req->old_instance );
2393 fprintf( stderr, " old_user_data=%p,", req->old_user_data );
2394 fprintf( stderr, " old_extra_value=%lx", req->old_extra_value );
2397 static void dump_set_parent_request( const struct set_parent_request *req )
2399 fprintf( stderr, " handle=%p,", req->handle );
2400 fprintf( stderr, " parent=%p", req->parent );
2403 static void dump_set_parent_reply( const struct set_parent_reply *req )
2405 fprintf( stderr, " old_parent=%p,", req->old_parent );
2406 fprintf( stderr, " full_parent=%p", req->full_parent );
2409 static void dump_get_window_parents_request( const struct get_window_parents_request *req )
2411 fprintf( stderr, " handle=%p", req->handle );
2414 static void dump_get_window_parents_reply( const struct get_window_parents_reply *req )
2416 fprintf( stderr, " count=%d,", req->count );
2417 fprintf( stderr, " parents=" );
2418 dump_varargs_user_handles( cur_size );
2421 static void dump_get_window_children_request( const struct get_window_children_request *req )
2423 fprintf( stderr, " parent=%p,", req->parent );
2424 fprintf( stderr, " atom=%04x,", req->atom );
2425 fprintf( stderr, " tid=%04x", req->tid );
2428 static void dump_get_window_children_reply( const struct get_window_children_reply *req )
2430 fprintf( stderr, " count=%d,", req->count );
2431 fprintf( stderr, " children=" );
2432 dump_varargs_user_handles( cur_size );
2435 static void dump_get_window_children_from_point_request( const struct get_window_children_from_point_request *req )
2437 fprintf( stderr, " parent=%p,", req->parent );
2438 fprintf( stderr, " x=%d,", req->x );
2439 fprintf( stderr, " y=%d", req->y );
2442 static void dump_get_window_children_from_point_reply( const struct get_window_children_from_point_reply *req )
2444 fprintf( stderr, " count=%d,", req->count );
2445 fprintf( stderr, " children=" );
2446 dump_varargs_user_handles( cur_size );
2449 static void dump_get_window_tree_request( const struct get_window_tree_request *req )
2451 fprintf( stderr, " handle=%p", req->handle );
2454 static void dump_get_window_tree_reply( const struct get_window_tree_reply *req )
2456 fprintf( stderr, " parent=%p,", req->parent );
2457 fprintf( stderr, " owner=%p,", req->owner );
2458 fprintf( stderr, " next_sibling=%p,", req->next_sibling );
2459 fprintf( stderr, " prev_sibling=%p,", req->prev_sibling );
2460 fprintf( stderr, " first_sibling=%p,", req->first_sibling );
2461 fprintf( stderr, " last_sibling=%p,", req->last_sibling );
2462 fprintf( stderr, " first_child=%p,", req->first_child );
2463 fprintf( stderr, " last_child=%p", req->last_child );
2466 static void dump_set_window_pos_request( const struct set_window_pos_request *req )
2468 fprintf( stderr, " handle=%p,", req->handle );
2469 fprintf( stderr, " previous=%p,", req->previous );
2470 fprintf( stderr, " flags=%08x,", req->flags );
2471 fprintf( stderr, " window=" );
2472 dump_rectangle( &req->window );
2473 fprintf( stderr, "," );
2474 fprintf( stderr, " client=" );
2475 dump_rectangle( &req->client );
2476 fprintf( stderr, "," );
2477 fprintf( stderr, " valid=" );
2478 dump_varargs_rectangles( cur_size );
2481 static void dump_set_window_pos_reply( const struct set_window_pos_reply *req )
2483 fprintf( stderr, " new_style=%08x", req->new_style );
2486 static void dump_get_window_rectangles_request( const struct get_window_rectangles_request *req )
2488 fprintf( stderr, " handle=%p", req->handle );
2491 static void dump_get_window_rectangles_reply( const struct get_window_rectangles_reply *req )
2493 fprintf( stderr, " window=" );
2494 dump_rectangle( &req->window );
2495 fprintf( stderr, "," );
2496 fprintf( stderr, " visible=" );
2497 dump_rectangle( &req->visible );
2498 fprintf( stderr, "," );
2499 fprintf( stderr, " client=" );
2500 dump_rectangle( &req->client );
2503 static void dump_get_window_text_request( const struct get_window_text_request *req )
2505 fprintf( stderr, " handle=%p", req->handle );
2508 static void dump_get_window_text_reply( const struct get_window_text_reply *req )
2510 fprintf( stderr, " text=" );
2511 dump_varargs_unicode_str( cur_size );
2514 static void dump_set_window_text_request( const struct set_window_text_request *req )
2516 fprintf( stderr, " handle=%p,", req->handle );
2517 fprintf( stderr, " text=" );
2518 dump_varargs_unicode_str( cur_size );
2521 static void dump_get_windows_offset_request( const struct get_windows_offset_request *req )
2523 fprintf( stderr, " from=%p,", req->from );
2524 fprintf( stderr, " to=%p", req->to );
2527 static void dump_get_windows_offset_reply( const struct get_windows_offset_reply *req )
2529 fprintf( stderr, " x=%d,", req->x );
2530 fprintf( stderr, " y=%d", req->y );
2533 static void dump_get_visible_region_request( const struct get_visible_region_request *req )
2535 fprintf( stderr, " window=%p,", req->window );
2536 fprintf( stderr, " flags=%08x", req->flags );
2539 static void dump_get_visible_region_reply( const struct get_visible_region_reply *req )
2541 fprintf( stderr, " top_win=%p,", req->top_win );
2542 fprintf( stderr, " top_org_x=%d,", req->top_org_x );
2543 fprintf( stderr, " top_org_y=%d,", req->top_org_y );
2544 fprintf( stderr, " win_org_x=%d,", req->win_org_x );
2545 fprintf( stderr, " win_org_y=%d,", req->win_org_y );
2546 fprintf( stderr, " total_size=%u,", req->total_size );
2547 fprintf( stderr, " region=" );
2548 dump_varargs_rectangles( cur_size );
2551 static void dump_get_window_region_request( const struct get_window_region_request *req )
2553 fprintf( stderr, " window=%p", req->window );
2556 static void dump_get_window_region_reply( const struct get_window_region_reply *req )
2558 fprintf( stderr, " total_size=%u,", req->total_size );
2559 fprintf( stderr, " region=" );
2560 dump_varargs_rectangles( cur_size );
2563 static void dump_set_window_region_request( const struct set_window_region_request *req )
2565 fprintf( stderr, " window=%p,", req->window );
2566 fprintf( stderr, " region=" );
2567 dump_varargs_rectangles( cur_size );
2570 static void dump_get_update_region_request( const struct get_update_region_request *req )
2572 fprintf( stderr, " window=%p,", req->window );
2573 fprintf( stderr, " from_child=%p,", req->from_child );
2574 fprintf( stderr, " flags=%08x", req->flags );
2577 static void dump_get_update_region_reply( const struct get_update_region_reply *req )
2579 fprintf( stderr, " child=%p,", req->child );
2580 fprintf( stderr, " flags=%08x,", req->flags );
2581 fprintf( stderr, " total_size=%u,", req->total_size );
2582 fprintf( stderr, " region=" );
2583 dump_varargs_rectangles( cur_size );
2586 static void dump_update_window_zorder_request( const struct update_window_zorder_request *req )
2588 fprintf( stderr, " window=%p,", req->window );
2589 fprintf( stderr, " rect=" );
2590 dump_rectangle( &req->rect );
2593 static void dump_redraw_window_request( const struct redraw_window_request *req )
2595 fprintf( stderr, " window=%p,", req->window );
2596 fprintf( stderr, " flags=%08x,", req->flags );
2597 fprintf( stderr, " region=" );
2598 dump_varargs_rectangles( cur_size );
2601 static void dump_set_window_property_request( const struct set_window_property_request *req )
2603 fprintf( stderr, " window=%p,", req->window );
2604 fprintf( stderr, " atom=%04x,", req->atom );
2605 fprintf( stderr, " handle=%p,", req->handle );
2606 fprintf( stderr, " name=" );
2607 dump_varargs_unicode_str( cur_size );
2610 static void dump_remove_window_property_request( const struct remove_window_property_request *req )
2612 fprintf( stderr, " window=%p,", req->window );
2613 fprintf( stderr, " atom=%04x,", req->atom );
2614 fprintf( stderr, " name=" );
2615 dump_varargs_unicode_str( cur_size );
2618 static void dump_remove_window_property_reply( const struct remove_window_property_reply *req )
2620 fprintf( stderr, " handle=%p", req->handle );
2623 static void dump_get_window_property_request( const struct get_window_property_request *req )
2625 fprintf( stderr, " window=%p,", req->window );
2626 fprintf( stderr, " atom=%04x,", req->atom );
2627 fprintf( stderr, " name=" );
2628 dump_varargs_unicode_str( cur_size );
2631 static void dump_get_window_property_reply( const struct get_window_property_reply *req )
2633 fprintf( stderr, " handle=%p", req->handle );
2636 static void dump_get_window_properties_request( const struct get_window_properties_request *req )
2638 fprintf( stderr, " window=%p", req->window );
2641 static void dump_get_window_properties_reply( const struct get_window_properties_reply *req )
2643 fprintf( stderr, " total=%d,", req->total );
2644 fprintf( stderr, " props=" );
2645 dump_varargs_properties( cur_size );
2648 static void dump_create_winstation_request( const struct create_winstation_request *req )
2650 fprintf( stderr, " flags=%08x,", req->flags );
2651 fprintf( stderr, " access=%08x,", req->access );
2652 fprintf( stderr, " attributes=%08x,", req->attributes );
2653 fprintf( stderr, " name=" );
2654 dump_varargs_unicode_str( cur_size );
2657 static void dump_create_winstation_reply( const struct create_winstation_reply *req )
2659 fprintf( stderr, " handle=%p", req->handle );
2662 static void dump_open_winstation_request( const struct open_winstation_request *req )
2664 fprintf( stderr, " access=%08x,", req->access );
2665 fprintf( stderr, " attributes=%08x,", req->attributes );
2666 fprintf( stderr, " name=" );
2667 dump_varargs_unicode_str( cur_size );
2670 static void dump_open_winstation_reply( const struct open_winstation_reply *req )
2672 fprintf( stderr, " handle=%p", req->handle );
2675 static void dump_close_winstation_request( const struct close_winstation_request *req )
2677 fprintf( stderr, " handle=%p", req->handle );
2680 static void dump_get_process_winstation_request( const struct get_process_winstation_request *req )
2684 static void dump_get_process_winstation_reply( const struct get_process_winstation_reply *req )
2686 fprintf( stderr, " handle=%p", req->handle );
2689 static void dump_set_process_winstation_request( const struct set_process_winstation_request *req )
2691 fprintf( stderr, " handle=%p", req->handle );
2694 static void dump_create_desktop_request( const struct create_desktop_request *req )
2696 fprintf( stderr, " flags=%08x,", req->flags );
2697 fprintf( stderr, " access=%08x,", req->access );
2698 fprintf( stderr, " attributes=%08x,", req->attributes );
2699 fprintf( stderr, " name=" );
2700 dump_varargs_unicode_str( cur_size );
2703 static void dump_create_desktop_reply( const struct create_desktop_reply *req )
2705 fprintf( stderr, " handle=%p", req->handle );
2708 static void dump_open_desktop_request( const struct open_desktop_request *req )
2710 fprintf( stderr, " flags=%08x,", req->flags );
2711 fprintf( stderr, " access=%08x,", req->access );
2712 fprintf( stderr, " attributes=%08x,", req->attributes );
2713 fprintf( stderr, " name=" );
2714 dump_varargs_unicode_str( cur_size );
2717 static void dump_open_desktop_reply( const struct open_desktop_reply *req )
2719 fprintf( stderr, " handle=%p", req->handle );
2722 static void dump_close_desktop_request( const struct close_desktop_request *req )
2724 fprintf( stderr, " handle=%p", req->handle );
2727 static void dump_get_thread_desktop_request( const struct get_thread_desktop_request *req )
2729 fprintf( stderr, " tid=%04x", req->tid );
2732 static void dump_get_thread_desktop_reply( const struct get_thread_desktop_reply *req )
2734 fprintf( stderr, " handle=%p", req->handle );
2737 static void dump_set_thread_desktop_request( const struct set_thread_desktop_request *req )
2739 fprintf( stderr, " handle=%p", req->handle );
2742 static void dump_set_user_object_info_request( const struct set_user_object_info_request *req )
2744 fprintf( stderr, " handle=%p,", req->handle );
2745 fprintf( stderr, " flags=%08x,", req->flags );
2746 fprintf( stderr, " obj_flags=%08x", req->obj_flags );
2749 static void dump_set_user_object_info_reply( const struct set_user_object_info_reply *req )
2751 fprintf( stderr, " is_desktop=%d,", req->is_desktop );
2752 fprintf( stderr, " old_obj_flags=%08x,", req->old_obj_flags );
2753 fprintf( stderr, " name=" );
2754 dump_varargs_unicode_str( cur_size );
2757 static void dump_attach_thread_input_request( const struct attach_thread_input_request *req )
2759 fprintf( stderr, " tid_from=%04x,", req->tid_from );
2760 fprintf( stderr, " tid_to=%04x,", req->tid_to );
2761 fprintf( stderr, " attach=%d", req->attach );
2764 static void dump_get_thread_input_request( const struct get_thread_input_request *req )
2766 fprintf( stderr, " tid=%04x", req->tid );
2769 static void dump_get_thread_input_reply( const struct get_thread_input_reply *req )
2771 fprintf( stderr, " focus=%p,", req->focus );
2772 fprintf( stderr, " capture=%p,", req->capture );
2773 fprintf( stderr, " active=%p,", req->active );
2774 fprintf( stderr, " foreground=%p,", req->foreground );
2775 fprintf( stderr, " menu_owner=%p,", req->menu_owner );
2776 fprintf( stderr, " move_size=%p,", req->move_size );
2777 fprintf( stderr, " caret=%p,", req->caret );
2778 fprintf( stderr, " rect=" );
2779 dump_rectangle( &req->rect );
2782 static void dump_get_last_input_time_request( const struct get_last_input_time_request *req )
2786 static void dump_get_last_input_time_reply( const struct get_last_input_time_reply *req )
2788 fprintf( stderr, " time=%08x", req->time );
2791 static void dump_get_key_state_request( const struct get_key_state_request *req )
2793 fprintf( stderr, " tid=%04x,", req->tid );
2794 fprintf( stderr, " key=%d", req->key );
2797 static void dump_get_key_state_reply( const struct get_key_state_reply *req )
2799 fprintf( stderr, " state=%02x,", req->state );
2800 fprintf( stderr, " keystate=" );
2801 dump_varargs_bytes( cur_size );
2804 static void dump_set_key_state_request( const struct set_key_state_request *req )
2806 fprintf( stderr, " tid=%04x,", req->tid );
2807 fprintf( stderr, " keystate=" );
2808 dump_varargs_bytes( cur_size );
2811 static void dump_set_foreground_window_request( const struct set_foreground_window_request *req )
2813 fprintf( stderr, " handle=%p", req->handle );
2816 static void dump_set_foreground_window_reply( const struct set_foreground_window_reply *req )
2818 fprintf( stderr, " previous=%p,", req->previous );
2819 fprintf( stderr, " send_msg_old=%d,", req->send_msg_old );
2820 fprintf( stderr, " send_msg_new=%d", req->send_msg_new );
2823 static void dump_set_focus_window_request( const struct set_focus_window_request *req )
2825 fprintf( stderr, " handle=%p", req->handle );
2828 static void dump_set_focus_window_reply( const struct set_focus_window_reply *req )
2830 fprintf( stderr, " previous=%p", req->previous );
2833 static void dump_set_active_window_request( const struct set_active_window_request *req )
2835 fprintf( stderr, " handle=%p", req->handle );
2838 static void dump_set_active_window_reply( const struct set_active_window_reply *req )
2840 fprintf( stderr, " previous=%p", req->previous );
2843 static void dump_set_capture_window_request( const struct set_capture_window_request *req )
2845 fprintf( stderr, " handle=%p,", req->handle );
2846 fprintf( stderr, " flags=%08x", req->flags );
2849 static void dump_set_capture_window_reply( const struct set_capture_window_reply *req )
2851 fprintf( stderr, " previous=%p,", req->previous );
2852 fprintf( stderr, " full_handle=%p", req->full_handle );
2855 static void dump_set_caret_window_request( const struct set_caret_window_request *req )
2857 fprintf( stderr, " handle=%p,", req->handle );
2858 fprintf( stderr, " width=%d,", req->width );
2859 fprintf( stderr, " height=%d", req->height );
2862 static void dump_set_caret_window_reply( const struct set_caret_window_reply *req )
2864 fprintf( stderr, " previous=%p,", req->previous );
2865 fprintf( stderr, " old_rect=" );
2866 dump_rectangle( &req->old_rect );
2867 fprintf( stderr, "," );
2868 fprintf( stderr, " old_hide=%d,", req->old_hide );
2869 fprintf( stderr, " old_state=%d", req->old_state );
2872 static void dump_set_caret_info_request( const struct set_caret_info_request *req )
2874 fprintf( stderr, " flags=%08x,", req->flags );
2875 fprintf( stderr, " handle=%p,", req->handle );
2876 fprintf( stderr, " x=%d,", req->x );
2877 fprintf( stderr, " y=%d,", req->y );
2878 fprintf( stderr, " hide=%d,", req->hide );
2879 fprintf( stderr, " state=%d", req->state );
2882 static void dump_set_caret_info_reply( const struct set_caret_info_reply *req )
2884 fprintf( stderr, " full_handle=%p,", req->full_handle );
2885 fprintf( stderr, " old_rect=" );
2886 dump_rectangle( &req->old_rect );
2887 fprintf( stderr, "," );
2888 fprintf( stderr, " old_hide=%d,", req->old_hide );
2889 fprintf( stderr, " old_state=%d", req->old_state );
2892 static void dump_set_hook_request( const struct set_hook_request *req )
2894 fprintf( stderr, " id=%d,", req->id );
2895 fprintf( stderr, " pid=%04x,", req->pid );
2896 fprintf( stderr, " tid=%04x,", req->tid );
2897 fprintf( stderr, " event_min=%d,", req->event_min );
2898 fprintf( stderr, " event_max=%d,", req->event_max );
2899 fprintf( stderr, " flags=%d,", req->flags );
2900 fprintf( stderr, " proc=%p,", req->proc );
2901 fprintf( stderr, " unicode=%d,", req->unicode );
2902 fprintf( stderr, " module=" );
2903 dump_varargs_unicode_str( cur_size );
2906 static void dump_set_hook_reply( const struct set_hook_reply *req )
2908 fprintf( stderr, " handle=%p,", req->handle );
2909 fprintf( stderr, " active_hooks=%08x", req->active_hooks );
2912 static void dump_remove_hook_request( const struct remove_hook_request *req )
2914 fprintf( stderr, " handle=%p,", req->handle );
2915 fprintf( stderr, " id=%d,", req->id );
2916 fprintf( stderr, " proc=%p", req->proc );
2919 static void dump_remove_hook_reply( const struct remove_hook_reply *req )
2921 fprintf( stderr, " active_hooks=%08x", req->active_hooks );
2924 static void dump_start_hook_chain_request( const struct start_hook_chain_request *req )
2926 fprintf( stderr, " id=%d,", req->id );
2927 fprintf( stderr, " event=%d,", req->event );
2928 fprintf( stderr, " window=%p,", req->window );
2929 fprintf( stderr, " object_id=%d,", req->object_id );
2930 fprintf( stderr, " child_id=%d", req->child_id );
2933 static void dump_start_hook_chain_reply( const struct start_hook_chain_reply *req )
2935 fprintf( stderr, " handle=%p,", req->handle );
2936 fprintf( stderr, " pid=%04x,", req->pid );
2937 fprintf( stderr, " tid=%04x,", req->tid );
2938 fprintf( stderr, " proc=%p,", req->proc );
2939 fprintf( stderr, " unicode=%d,", req->unicode );
2940 fprintf( stderr, " active_hooks=%08x,", req->active_hooks );
2941 fprintf( stderr, " module=" );
2942 dump_varargs_unicode_str( cur_size );
2945 static void dump_finish_hook_chain_request( const struct finish_hook_chain_request *req )
2947 fprintf( stderr, " id=%d", req->id );
2950 static void dump_get_next_hook_request( const struct get_next_hook_request *req )
2952 fprintf( stderr, " handle=%p,", req->handle );
2953 fprintf( stderr, " event=%d,", req->event );
2954 fprintf( stderr, " window=%p,", req->window );
2955 fprintf( stderr, " object_id=%d,", req->object_id );
2956 fprintf( stderr, " child_id=%d", req->child_id );
2959 static void dump_get_next_hook_reply( const struct get_next_hook_reply *req )
2961 fprintf( stderr, " next=%p,", req->next );
2962 fprintf( stderr, " id=%d,", req->id );
2963 fprintf( stderr, " pid=%04x,", req->pid );
2964 fprintf( stderr, " tid=%04x,", req->tid );
2965 fprintf( stderr, " proc=%p,", req->proc );
2966 fprintf( stderr, " prev_unicode=%d,", req->prev_unicode );
2967 fprintf( stderr, " next_unicode=%d,", req->next_unicode );
2968 fprintf( stderr, " module=" );
2969 dump_varargs_unicode_str( cur_size );
2972 static void dump_create_class_request( const struct create_class_request *req )
2974 fprintf( stderr, " local=%d,", req->local );
2975 fprintf( stderr, " atom=%04x,", req->atom );
2976 fprintf( stderr, " style=%08x,", req->style );
2977 fprintf( stderr, " instance=%p,", req->instance );
2978 fprintf( stderr, " extra=%d,", req->extra );
2979 fprintf( stderr, " win_extra=%d,", req->win_extra );
2980 fprintf( stderr, " client_ptr=%p", req->client_ptr );
2983 static void dump_destroy_class_request( const struct destroy_class_request *req )
2985 fprintf( stderr, " atom=%04x,", req->atom );
2986 fprintf( stderr, " instance=%p", req->instance );
2989 static void dump_destroy_class_reply( const struct destroy_class_reply *req )
2991 fprintf( stderr, " client_ptr=%p", req->client_ptr );
2994 static void dump_set_class_info_request( const struct set_class_info_request *req )
2996 fprintf( stderr, " window=%p,", req->window );
2997 fprintf( stderr, " flags=%08x,", req->flags );
2998 fprintf( stderr, " atom=%04x,", req->atom );
2999 fprintf( stderr, " style=%08x,", req->style );
3000 fprintf( stderr, " win_extra=%d,", req->win_extra );
3001 fprintf( stderr, " instance=%p,", req->instance );
3002 fprintf( stderr, " extra_offset=%d,", req->extra_offset );
3003 fprintf( stderr, " extra_size=%u,", req->extra_size );
3004 fprintf( stderr, " extra_value=%lx", req->extra_value );
3007 static void dump_set_class_info_reply( const struct set_class_info_reply *req )
3009 fprintf( stderr, " old_atom=%04x,", req->old_atom );
3010 fprintf( stderr, " old_style=%08x,", req->old_style );
3011 fprintf( stderr, " old_extra=%d,", req->old_extra );
3012 fprintf( stderr, " old_win_extra=%d,", req->old_win_extra );
3013 fprintf( stderr, " old_instance=%p,", req->old_instance );
3014 fprintf( stderr, " old_extra_value=%lx", req->old_extra_value );
3017 static void dump_set_clipboard_info_request( const struct set_clipboard_info_request *req )
3019 fprintf( stderr, " flags=%08x,", req->flags );
3020 fprintf( stderr, " clipboard=%p,", req->clipboard );
3021 fprintf( stderr, " owner=%p,", req->owner );
3022 fprintf( stderr, " viewer=%p,", req->viewer );
3023 fprintf( stderr, " seqno=%08x", req->seqno );
3026 static void dump_set_clipboard_info_reply( const struct set_clipboard_info_reply *req )
3028 fprintf( stderr, " flags=%08x,", req->flags );
3029 fprintf( stderr, " old_clipboard=%p,", req->old_clipboard );
3030 fprintf( stderr, " old_owner=%p,", req->old_owner );
3031 fprintf( stderr, " old_viewer=%p,", req->old_viewer );
3032 fprintf( stderr, " seqno=%08x", req->seqno );
3035 static void dump_open_token_request( const struct open_token_request *req )
3037 fprintf( stderr, " handle=%p,", req->handle );
3038 fprintf( stderr, " access=%08x,", req->access );
3039 fprintf( stderr, " attributes=%08x,", req->attributes );
3040 fprintf( stderr, " flags=%08x", req->flags );
3043 static void dump_open_token_reply( const struct open_token_reply *req )
3045 fprintf( stderr, " token=%p", req->token );
3048 static void dump_set_global_windows_request( const struct set_global_windows_request *req )
3050 fprintf( stderr, " flags=%08x,", req->flags );
3051 fprintf( stderr, " shell_window=%p,", req->shell_window );
3052 fprintf( stderr, " shell_listview=%p,", req->shell_listview );
3053 fprintf( stderr, " progman_window=%p,", req->progman_window );
3054 fprintf( stderr, " taskman_window=%p", req->taskman_window );
3057 static void dump_set_global_windows_reply( const struct set_global_windows_reply *req )
3059 fprintf( stderr, " old_shell_window=%p,", req->old_shell_window );
3060 fprintf( stderr, " old_shell_listview=%p,", req->old_shell_listview );
3061 fprintf( stderr, " old_progman_window=%p,", req->old_progman_window );
3062 fprintf( stderr, " old_taskman_window=%p", req->old_taskman_window );
3065 static void dump_adjust_token_privileges_request( const struct adjust_token_privileges_request *req )
3067 fprintf( stderr, " handle=%p,", req->handle );
3068 fprintf( stderr, " disable_all=%d,", req->disable_all );
3069 fprintf( stderr, " get_modified_state=%d,", req->get_modified_state );
3070 fprintf( stderr, " privileges=" );
3071 dump_varargs_LUID_AND_ATTRIBUTES( cur_size );
3074 static void dump_adjust_token_privileges_reply( const struct adjust_token_privileges_reply *req )
3076 fprintf( stderr, " len=%08x,", req->len );
3077 fprintf( stderr, " privileges=" );
3078 dump_varargs_LUID_AND_ATTRIBUTES( cur_size );
3081 static void dump_get_token_privileges_request( const struct get_token_privileges_request *req )
3083 fprintf( stderr, " handle=%p", req->handle );
3086 static void dump_get_token_privileges_reply( const struct get_token_privileges_reply *req )
3088 fprintf( stderr, " len=%08x,", req->len );
3089 fprintf( stderr, " privileges=" );
3090 dump_varargs_LUID_AND_ATTRIBUTES( cur_size );
3093 static void dump_check_token_privileges_request( const struct check_token_privileges_request *req )
3095 fprintf( stderr, " handle=%p,", req->handle );
3096 fprintf( stderr, " all_required=%d,", req->all_required );
3097 fprintf( stderr, " privileges=" );
3098 dump_varargs_LUID_AND_ATTRIBUTES( cur_size );
3101 static void dump_check_token_privileges_reply( const struct check_token_privileges_reply *req )
3103 fprintf( stderr, " has_privileges=%d,", req->has_privileges );
3104 fprintf( stderr, " privileges=" );
3105 dump_varargs_LUID_AND_ATTRIBUTES( cur_size );
3108 static void dump_duplicate_token_request( const struct duplicate_token_request *req )
3110 fprintf( stderr, " handle=%p,", req->handle );
3111 fprintf( stderr, " access=%08x,", req->access );
3112 fprintf( stderr, " attributes=%08x,", req->attributes );
3113 fprintf( stderr, " primary=%d,", req->primary );
3114 fprintf( stderr, " impersonation_level=%d", req->impersonation_level );
3117 static void dump_duplicate_token_reply( const struct duplicate_token_reply *req )
3119 fprintf( stderr, " new_handle=%p", req->new_handle );
3122 static void dump_access_check_request( const struct access_check_request *req )
3124 fprintf( stderr, " handle=%p,", req->handle );
3125 fprintf( stderr, " desired_access=%08x,", req->desired_access );
3126 fprintf( stderr, " mapping_read=%08x,", req->mapping_read );
3127 fprintf( stderr, " mapping_write=%08x,", req->mapping_write );
3128 fprintf( stderr, " mapping_execute=%08x,", req->mapping_execute );
3129 fprintf( stderr, " mapping_all=%08x,", req->mapping_all );
3130 fprintf( stderr, " sd=" );
3131 dump_varargs_security_descriptor( cur_size );
3134 static void dump_access_check_reply( const struct access_check_reply *req )
3136 fprintf( stderr, " access_granted=%08x,", req->access_granted );
3137 fprintf( stderr, " access_status=%08x,", req->access_status );
3138 fprintf( stderr, " privileges_len=%08x,", req->privileges_len );
3139 fprintf( stderr, " privileges=" );
3140 dump_varargs_LUID_AND_ATTRIBUTES( cur_size );
3143 static void dump_get_token_user_request( const struct get_token_user_request *req )
3145 fprintf( stderr, " handle=%p", req->handle );
3148 static void dump_get_token_user_reply( const struct get_token_user_reply *req )
3150 fprintf( stderr, " user_len=%u,", req->user_len );
3151 fprintf( stderr, " user=" );
3152 dump_varargs_SID( cur_size );
3155 static void dump_get_token_groups_request( const struct get_token_groups_request *req )
3157 fprintf( stderr, " handle=%p", req->handle );
3160 static void dump_get_token_groups_reply( const struct get_token_groups_reply *req )
3162 fprintf( stderr, " user_len=%u,", req->user_len );
3163 fprintf( stderr, " user=" );
3164 dump_varargs_token_groups( cur_size );
3167 static void dump_create_mailslot_request( const struct create_mailslot_request *req )
3169 fprintf( stderr, " access=%08x,", req->access );
3170 fprintf( stderr, " attributes=%08x,", req->attributes );
3171 fprintf( stderr, " rootdir=%p,", req->rootdir );
3172 fprintf( stderr, " max_msgsize=%08x,", req->max_msgsize );
3173 fprintf( stderr, " read_timeout=%d,", req->read_timeout );
3174 fprintf( stderr, " name=" );
3175 dump_varargs_unicode_str( cur_size );
3178 static void dump_create_mailslot_reply( const struct create_mailslot_reply *req )
3180 fprintf( stderr, " handle=%p", req->handle );
3183 static void dump_open_mailslot_request( const struct open_mailslot_request *req )
3185 fprintf( stderr, " access=%08x,", req->access );
3186 fprintf( stderr, " attributes=%08x,", req->attributes );
3187 fprintf( stderr, " rootdir=%p,", req->rootdir );
3188 fprintf( stderr, " sharing=%08x,", req->sharing );
3189 fprintf( stderr, " name=" );
3190 dump_varargs_unicode_str( cur_size );
3193 static void dump_open_mailslot_reply( const struct open_mailslot_reply *req )
3195 fprintf( stderr, " handle=%p", req->handle );
3198 static void dump_set_mailslot_info_request( const struct set_mailslot_info_request *req )
3200 fprintf( stderr, " handle=%p,", req->handle );
3201 fprintf( stderr, " flags=%08x,", req->flags );
3202 fprintf( stderr, " read_timeout=%d", req->read_timeout );
3205 static void dump_set_mailslot_info_reply( const struct set_mailslot_info_reply *req )
3207 fprintf( stderr, " max_msgsize=%08x,", req->max_msgsize );
3208 fprintf( stderr, " read_timeout=%d,", req->read_timeout );
3209 fprintf( stderr, " msg_count=%08x,", req->msg_count );
3210 fprintf( stderr, " next_msgsize=%08x", req->next_msgsize );
3213 static void dump_create_directory_request( const struct create_directory_request *req )
3215 fprintf( stderr, " access=%08x,", req->access );
3216 fprintf( stderr, " attributes=%08x,", req->attributes );
3217 fprintf( stderr, " rootdir=%p,", req->rootdir );
3218 fprintf( stderr, " directory_name=" );
3219 dump_varargs_unicode_str( cur_size );
3222 static void dump_create_directory_reply( const struct create_directory_reply *req )
3224 fprintf( stderr, " handle=%p", req->handle );
3227 static void dump_open_directory_request( const struct open_directory_request *req )
3229 fprintf( stderr, " access=%08x,", req->access );
3230 fprintf( stderr, " attributes=%08x,", req->attributes );
3231 fprintf( stderr, " rootdir=%p,", req->rootdir );
3232 fprintf( stderr, " directory_name=" );
3233 dump_varargs_unicode_str( cur_size );
3236 static void dump_open_directory_reply( const struct open_directory_reply *req )
3238 fprintf( stderr, " handle=%p", req->handle );
3241 static void dump_create_symlink_request( const struct create_symlink_request *req )
3243 fprintf( stderr, " access=%08x,", req->access );
3244 fprintf( stderr, " attributes=%08x,", req->attributes );
3245 fprintf( stderr, " rootdir=%p,", req->rootdir );
3246 fprintf( stderr, " name_len=%u,", req->name_len );
3247 fprintf( stderr, " name=" );
3248 dump_varargs_unicode_str( min(cur_size,req->name_len) );
3249 fputc( ',', stderr );
3250 fprintf( stderr, " target_name=" );
3251 dump_varargs_unicode_str( cur_size );
3254 static void dump_create_symlink_reply( const struct create_symlink_reply *req )
3256 fprintf( stderr, " handle=%p", req->handle );
3259 static void dump_open_symlink_request( const struct open_symlink_request *req )
3261 fprintf( stderr, " access=%08x,", req->access );
3262 fprintf( stderr, " attributes=%08x,", req->attributes );
3263 fprintf( stderr, " rootdir=%p,", req->rootdir );
3264 fprintf( stderr, " name=" );
3265 dump_varargs_unicode_str( cur_size );
3268 static void dump_open_symlink_reply( const struct open_symlink_reply *req )
3270 fprintf( stderr, " handle=%p", req->handle );
3273 static void dump_query_symlink_request( const struct query_symlink_request *req )
3275 fprintf( stderr, " handle=%p", req->handle );
3278 static void dump_query_symlink_reply( const struct query_symlink_reply *req )
3280 fprintf( stderr, " target_name=" );
3281 dump_varargs_unicode_str( cur_size );
3284 static const dump_func req_dumpers[REQ_NB_REQUESTS] = {
3285 (dump_func)dump_new_process_request,
3286 (dump_func)dump_get_new_process_info_request,
3287 (dump_func)dump_new_thread_request,
3288 (dump_func)dump_get_startup_info_request,
3289 (dump_func)dump_init_process_done_request,
3290 (dump_func)dump_init_thread_request,
3291 (dump_func)dump_terminate_process_request,
3292 (dump_func)dump_terminate_thread_request,
3293 (dump_func)dump_get_process_info_request,
3294 (dump_func)dump_set_process_info_request,
3295 (dump_func)dump_get_thread_info_request,
3296 (dump_func)dump_set_thread_info_request,
3297 (dump_func)dump_get_dll_info_request,
3298 (dump_func)dump_suspend_thread_request,
3299 (dump_func)dump_resume_thread_request,
3300 (dump_func)dump_load_dll_request,
3301 (dump_func)dump_unload_dll_request,
3302 (dump_func)dump_queue_apc_request,
3303 (dump_func)dump_get_apc_request,
3304 (dump_func)dump_close_handle_request,
3305 (dump_func)dump_set_handle_info_request,
3306 (dump_func)dump_dup_handle_request,
3307 (dump_func)dump_open_process_request,
3308 (dump_func)dump_open_thread_request,
3309 (dump_func)dump_select_request,
3310 (dump_func)dump_create_event_request,
3311 (dump_func)dump_event_op_request,
3312 (dump_func)dump_open_event_request,
3313 (dump_func)dump_create_mutex_request,
3314 (dump_func)dump_release_mutex_request,
3315 (dump_func)dump_open_mutex_request,
3316 (dump_func)dump_create_semaphore_request,
3317 (dump_func)dump_release_semaphore_request,
3318 (dump_func)dump_open_semaphore_request,
3319 (dump_func)dump_create_file_request,
3320 (dump_func)dump_open_file_object_request,
3321 (dump_func)dump_alloc_file_handle_request,
3322 (dump_func)dump_get_handle_fd_request,
3323 (dump_func)dump_set_handle_fd_request,
3324 (dump_func)dump_flush_file_request,
3325 (dump_func)dump_lock_file_request,
3326 (dump_func)dump_unlock_file_request,
3327 (dump_func)dump_unmount_device_request,
3328 (dump_func)dump_create_socket_request,
3329 (dump_func)dump_accept_socket_request,
3330 (dump_func)dump_set_socket_event_request,
3331 (dump_func)dump_get_socket_event_request,
3332 (dump_func)dump_enable_socket_event_request,
3333 (dump_func)dump_set_socket_deferred_request,
3334 (dump_func)dump_alloc_console_request,
3335 (dump_func)dump_free_console_request,
3336 (dump_func)dump_get_console_renderer_events_request,
3337 (dump_func)dump_open_console_request,
3338 (dump_func)dump_get_console_wait_event_request,
3339 (dump_func)dump_get_console_mode_request,
3340 (dump_func)dump_set_console_mode_request,
3341 (dump_func)dump_set_console_input_info_request,
3342 (dump_func)dump_get_console_input_info_request,
3343 (dump_func)dump_append_console_input_history_request,
3344 (dump_func)dump_get_console_input_history_request,
3345 (dump_func)dump_create_console_output_request,
3346 (dump_func)dump_set_console_output_info_request,
3347 (dump_func)dump_get_console_output_info_request,
3348 (dump_func)dump_write_console_input_request,
3349 (dump_func)dump_read_console_input_request,
3350 (dump_func)dump_write_console_output_request,
3351 (dump_func)dump_fill_console_output_request,
3352 (dump_func)dump_read_console_output_request,
3353 (dump_func)dump_move_console_output_request,
3354 (dump_func)dump_send_console_signal_request,
3355 (dump_func)dump_read_directory_changes_request,
3356 (dump_func)dump_read_change_request,
3357 (dump_func)dump_create_mapping_request,
3358 (dump_func)dump_open_mapping_request,
3359 (dump_func)dump_get_mapping_info_request,
3360 (dump_func)dump_create_snapshot_request,
3361 (dump_func)dump_next_process_request,
3362 (dump_func)dump_next_thread_request,
3363 (dump_func)dump_next_module_request,
3364 (dump_func)dump_wait_debug_event_request,
3365 (dump_func)dump_queue_exception_event_request,
3366 (dump_func)dump_get_exception_status_request,
3367 (dump_func)dump_output_debug_string_request,
3368 (dump_func)dump_continue_debug_event_request,
3369 (dump_func)dump_debug_process_request,
3370 (dump_func)dump_debug_break_request,
3371 (dump_func)dump_set_debugger_kill_on_exit_request,
3372 (dump_func)dump_read_process_memory_request,
3373 (dump_func)dump_write_process_memory_request,
3374 (dump_func)dump_create_key_request,
3375 (dump_func)dump_open_key_request,
3376 (dump_func)dump_delete_key_request,
3377 (dump_func)dump_flush_key_request,
3378 (dump_func)dump_enum_key_request,
3379 (dump_func)dump_set_key_value_request,
3380 (dump_func)dump_get_key_value_request,
3381 (dump_func)dump_enum_key_value_request,
3382 (dump_func)dump_delete_key_value_request,
3383 (dump_func)dump_load_registry_request,
3384 (dump_func)dump_unload_registry_request,
3385 (dump_func)dump_save_registry_request,
3386 (dump_func)dump_set_registry_notification_request,
3387 (dump_func)dump_create_timer_request,
3388 (dump_func)dump_open_timer_request,
3389 (dump_func)dump_set_timer_request,
3390 (dump_func)dump_cancel_timer_request,
3391 (dump_func)dump_get_timer_info_request,
3392 (dump_func)dump_get_thread_context_request,
3393 (dump_func)dump_set_thread_context_request,
3394 (dump_func)dump_get_selector_entry_request,
3395 (dump_func)dump_add_atom_request,
3396 (dump_func)dump_delete_atom_request,
3397 (dump_func)dump_find_atom_request,
3398 (dump_func)dump_get_atom_information_request,
3399 (dump_func)dump_set_atom_information_request,
3400 (dump_func)dump_empty_atom_table_request,
3401 (dump_func)dump_init_atom_table_request,
3402 (dump_func)dump_get_msg_queue_request,
3403 (dump_func)dump_set_queue_mask_request,
3404 (dump_func)dump_get_queue_status_request,
3405 (dump_func)dump_get_process_idle_event_request,
3406 (dump_func)dump_send_message_request,
3407 (dump_func)dump_post_quit_message_request,
3408 (dump_func)dump_send_hardware_message_request,
3409 (dump_func)dump_get_message_request,
3410 (dump_func)dump_reply_message_request,
3411 (dump_func)dump_accept_hardware_message_request,
3412 (dump_func)dump_get_message_reply_request,
3413 (dump_func)dump_set_win_timer_request,
3414 (dump_func)dump_kill_win_timer_request,
3415 (dump_func)dump_get_serial_info_request,
3416 (dump_func)dump_set_serial_info_request,
3417 (dump_func)dump_register_async_request,
3418 (dump_func)dump_cancel_async_request,
3419 (dump_func)dump_create_named_pipe_request,
3420 (dump_func)dump_open_named_pipe_request,
3421 (dump_func)dump_connect_named_pipe_request,
3422 (dump_func)dump_wait_named_pipe_request,
3423 (dump_func)dump_disconnect_named_pipe_request,
3424 (dump_func)dump_get_named_pipe_info_request,
3425 (dump_func)dump_create_window_request,
3426 (dump_func)dump_destroy_window_request,
3427 (dump_func)dump_get_desktop_window_request,
3428 (dump_func)dump_set_window_owner_request,
3429 (dump_func)dump_get_window_info_request,
3430 (dump_func)dump_set_window_info_request,
3431 (dump_func)dump_set_parent_request,
3432 (dump_func)dump_get_window_parents_request,
3433 (dump_func)dump_get_window_children_request,
3434 (dump_func)dump_get_window_children_from_point_request,
3435 (dump_func)dump_get_window_tree_request,
3436 (dump_func)dump_set_window_pos_request,
3437 (dump_func)dump_get_window_rectangles_request,
3438 (dump_func)dump_get_window_text_request,
3439 (dump_func)dump_set_window_text_request,
3440 (dump_func)dump_get_windows_offset_request,
3441 (dump_func)dump_get_visible_region_request,
3442 (dump_func)dump_get_window_region_request,
3443 (dump_func)dump_set_window_region_request,
3444 (dump_func)dump_get_update_region_request,
3445 (dump_func)dump_update_window_zorder_request,
3446 (dump_func)dump_redraw_window_request,
3447 (dump_func)dump_set_window_property_request,
3448 (dump_func)dump_remove_window_property_request,
3449 (dump_func)dump_get_window_property_request,
3450 (dump_func)dump_get_window_properties_request,
3451 (dump_func)dump_create_winstation_request,
3452 (dump_func)dump_open_winstation_request,
3453 (dump_func)dump_close_winstation_request,
3454 (dump_func)dump_get_process_winstation_request,
3455 (dump_func)dump_set_process_winstation_request,
3456 (dump_func)dump_create_desktop_request,
3457 (dump_func)dump_open_desktop_request,
3458 (dump_func)dump_close_desktop_request,
3459 (dump_func)dump_get_thread_desktop_request,
3460 (dump_func)dump_set_thread_desktop_request,
3461 (dump_func)dump_set_user_object_info_request,
3462 (dump_func)dump_attach_thread_input_request,
3463 (dump_func)dump_get_thread_input_request,
3464 (dump_func)dump_get_last_input_time_request,
3465 (dump_func)dump_get_key_state_request,
3466 (dump_func)dump_set_key_state_request,
3467 (dump_func)dump_set_foreground_window_request,
3468 (dump_func)dump_set_focus_window_request,
3469 (dump_func)dump_set_active_window_request,
3470 (dump_func)dump_set_capture_window_request,
3471 (dump_func)dump_set_caret_window_request,
3472 (dump_func)dump_set_caret_info_request,
3473 (dump_func)dump_set_hook_request,
3474 (dump_func)dump_remove_hook_request,
3475 (dump_func)dump_start_hook_chain_request,
3476 (dump_func)dump_finish_hook_chain_request,
3477 (dump_func)dump_get_next_hook_request,
3478 (dump_func)dump_create_class_request,
3479 (dump_func)dump_destroy_class_request,
3480 (dump_func)dump_set_class_info_request,
3481 (dump_func)dump_set_clipboard_info_request,
3482 (dump_func)dump_open_token_request,
3483 (dump_func)dump_set_global_windows_request,
3484 (dump_func)dump_adjust_token_privileges_request,
3485 (dump_func)dump_get_token_privileges_request,
3486 (dump_func)dump_check_token_privileges_request,
3487 (dump_func)dump_duplicate_token_request,
3488 (dump_func)dump_access_check_request,
3489 (dump_func)dump_get_token_user_request,
3490 (dump_func)dump_get_token_groups_request,
3491 (dump_func)dump_create_mailslot_request,
3492 (dump_func)dump_open_mailslot_request,
3493 (dump_func)dump_set_mailslot_info_request,
3494 (dump_func)dump_create_directory_request,
3495 (dump_func)dump_open_directory_request,
3496 (dump_func)dump_create_symlink_request,
3497 (dump_func)dump_open_symlink_request,
3498 (dump_func)dump_query_symlink_request,
3501 static const dump_func reply_dumpers[REQ_NB_REQUESTS] = {
3502 (dump_func)dump_new_process_reply,
3503 (dump_func)dump_get_new_process_info_reply,
3504 (dump_func)dump_new_thread_reply,
3505 (dump_func)dump_get_startup_info_reply,
3506 (dump_func)0,
3507 (dump_func)dump_init_thread_reply,
3508 (dump_func)dump_terminate_process_reply,
3509 (dump_func)dump_terminate_thread_reply,
3510 (dump_func)dump_get_process_info_reply,
3511 (dump_func)0,
3512 (dump_func)dump_get_thread_info_reply,
3513 (dump_func)0,
3514 (dump_func)dump_get_dll_info_reply,
3515 (dump_func)dump_suspend_thread_reply,
3516 (dump_func)dump_resume_thread_reply,
3517 (dump_func)0,
3518 (dump_func)0,
3519 (dump_func)0,
3520 (dump_func)dump_get_apc_reply,
3521 (dump_func)dump_close_handle_reply,
3522 (dump_func)dump_set_handle_info_reply,
3523 (dump_func)dump_dup_handle_reply,
3524 (dump_func)dump_open_process_reply,
3525 (dump_func)dump_open_thread_reply,
3526 (dump_func)0,
3527 (dump_func)dump_create_event_reply,
3528 (dump_func)0,
3529 (dump_func)dump_open_event_reply,
3530 (dump_func)dump_create_mutex_reply,
3531 (dump_func)dump_release_mutex_reply,
3532 (dump_func)dump_open_mutex_reply,
3533 (dump_func)dump_create_semaphore_reply,
3534 (dump_func)dump_release_semaphore_reply,
3535 (dump_func)dump_open_semaphore_reply,
3536 (dump_func)dump_create_file_reply,
3537 (dump_func)dump_open_file_object_reply,
3538 (dump_func)dump_alloc_file_handle_reply,
3539 (dump_func)dump_get_handle_fd_reply,
3540 (dump_func)dump_set_handle_fd_reply,
3541 (dump_func)dump_flush_file_reply,
3542 (dump_func)dump_lock_file_reply,
3543 (dump_func)0,
3544 (dump_func)0,
3545 (dump_func)dump_create_socket_reply,
3546 (dump_func)dump_accept_socket_reply,
3547 (dump_func)0,
3548 (dump_func)dump_get_socket_event_reply,
3549 (dump_func)0,
3550 (dump_func)0,
3551 (dump_func)dump_alloc_console_reply,
3552 (dump_func)0,
3553 (dump_func)dump_get_console_renderer_events_reply,
3554 (dump_func)dump_open_console_reply,
3555 (dump_func)dump_get_console_wait_event_reply,
3556 (dump_func)dump_get_console_mode_reply,
3557 (dump_func)0,
3558 (dump_func)0,
3559 (dump_func)dump_get_console_input_info_reply,
3560 (dump_func)0,
3561 (dump_func)dump_get_console_input_history_reply,
3562 (dump_func)dump_create_console_output_reply,
3563 (dump_func)0,
3564 (dump_func)dump_get_console_output_info_reply,
3565 (dump_func)dump_write_console_input_reply,
3566 (dump_func)dump_read_console_input_reply,
3567 (dump_func)dump_write_console_output_reply,
3568 (dump_func)dump_fill_console_output_reply,
3569 (dump_func)dump_read_console_output_reply,
3570 (dump_func)0,
3571 (dump_func)0,
3572 (dump_func)0,
3573 (dump_func)dump_read_change_reply,
3574 (dump_func)dump_create_mapping_reply,
3575 (dump_func)dump_open_mapping_reply,
3576 (dump_func)dump_get_mapping_info_reply,
3577 (dump_func)dump_create_snapshot_reply,
3578 (dump_func)dump_next_process_reply,
3579 (dump_func)dump_next_thread_reply,
3580 (dump_func)dump_next_module_reply,
3581 (dump_func)dump_wait_debug_event_reply,
3582 (dump_func)dump_queue_exception_event_reply,
3583 (dump_func)dump_get_exception_status_reply,
3584 (dump_func)0,
3585 (dump_func)0,
3586 (dump_func)0,
3587 (dump_func)dump_debug_break_reply,
3588 (dump_func)0,
3589 (dump_func)dump_read_process_memory_reply,
3590 (dump_func)0,
3591 (dump_func)dump_create_key_reply,
3592 (dump_func)dump_open_key_reply,
3593 (dump_func)0,
3594 (dump_func)0,
3595 (dump_func)dump_enum_key_reply,
3596 (dump_func)0,
3597 (dump_func)dump_get_key_value_reply,
3598 (dump_func)dump_enum_key_value_reply,
3599 (dump_func)0,
3600 (dump_func)0,
3601 (dump_func)0,
3602 (dump_func)0,
3603 (dump_func)0,
3604 (dump_func)dump_create_timer_reply,
3605 (dump_func)dump_open_timer_reply,
3606 (dump_func)dump_set_timer_reply,
3607 (dump_func)dump_cancel_timer_reply,
3608 (dump_func)dump_get_timer_info_reply,
3609 (dump_func)dump_get_thread_context_reply,
3610 (dump_func)dump_set_thread_context_reply,
3611 (dump_func)dump_get_selector_entry_reply,
3612 (dump_func)dump_add_atom_reply,
3613 (dump_func)0,
3614 (dump_func)dump_find_atom_reply,
3615 (dump_func)dump_get_atom_information_reply,
3616 (dump_func)0,
3617 (dump_func)0,
3618 (dump_func)dump_init_atom_table_reply,
3619 (dump_func)dump_get_msg_queue_reply,
3620 (dump_func)dump_set_queue_mask_reply,
3621 (dump_func)dump_get_queue_status_reply,
3622 (dump_func)dump_get_process_idle_event_reply,
3623 (dump_func)0,
3624 (dump_func)0,
3625 (dump_func)0,
3626 (dump_func)dump_get_message_reply,
3627 (dump_func)0,
3628 (dump_func)0,
3629 (dump_func)dump_get_message_reply_reply,
3630 (dump_func)dump_set_win_timer_reply,
3631 (dump_func)0,
3632 (dump_func)dump_get_serial_info_reply,
3633 (dump_func)0,
3634 (dump_func)0,
3635 (dump_func)0,
3636 (dump_func)dump_create_named_pipe_reply,
3637 (dump_func)dump_open_named_pipe_reply,
3638 (dump_func)0,
3639 (dump_func)0,
3640 (dump_func)dump_disconnect_named_pipe_reply,
3641 (dump_func)dump_get_named_pipe_info_reply,
3642 (dump_func)dump_create_window_reply,
3643 (dump_func)0,
3644 (dump_func)dump_get_desktop_window_reply,
3645 (dump_func)dump_set_window_owner_reply,
3646 (dump_func)dump_get_window_info_reply,
3647 (dump_func)dump_set_window_info_reply,
3648 (dump_func)dump_set_parent_reply,
3649 (dump_func)dump_get_window_parents_reply,
3650 (dump_func)dump_get_window_children_reply,
3651 (dump_func)dump_get_window_children_from_point_reply,
3652 (dump_func)dump_get_window_tree_reply,
3653 (dump_func)dump_set_window_pos_reply,
3654 (dump_func)dump_get_window_rectangles_reply,
3655 (dump_func)dump_get_window_text_reply,
3656 (dump_func)0,
3657 (dump_func)dump_get_windows_offset_reply,
3658 (dump_func)dump_get_visible_region_reply,
3659 (dump_func)dump_get_window_region_reply,
3660 (dump_func)0,
3661 (dump_func)dump_get_update_region_reply,
3662 (dump_func)0,
3663 (dump_func)0,
3664 (dump_func)0,
3665 (dump_func)dump_remove_window_property_reply,
3666 (dump_func)dump_get_window_property_reply,
3667 (dump_func)dump_get_window_properties_reply,
3668 (dump_func)dump_create_winstation_reply,
3669 (dump_func)dump_open_winstation_reply,
3670 (dump_func)0,
3671 (dump_func)dump_get_process_winstation_reply,
3672 (dump_func)0,
3673 (dump_func)dump_create_desktop_reply,
3674 (dump_func)dump_open_desktop_reply,
3675 (dump_func)0,
3676 (dump_func)dump_get_thread_desktop_reply,
3677 (dump_func)0,
3678 (dump_func)dump_set_user_object_info_reply,
3679 (dump_func)0,
3680 (dump_func)dump_get_thread_input_reply,
3681 (dump_func)dump_get_last_input_time_reply,
3682 (dump_func)dump_get_key_state_reply,
3683 (dump_func)0,
3684 (dump_func)dump_set_foreground_window_reply,
3685 (dump_func)dump_set_focus_window_reply,
3686 (dump_func)dump_set_active_window_reply,
3687 (dump_func)dump_set_capture_window_reply,
3688 (dump_func)dump_set_caret_window_reply,
3689 (dump_func)dump_set_caret_info_reply,
3690 (dump_func)dump_set_hook_reply,
3691 (dump_func)dump_remove_hook_reply,
3692 (dump_func)dump_start_hook_chain_reply,
3693 (dump_func)0,
3694 (dump_func)dump_get_next_hook_reply,
3695 (dump_func)0,
3696 (dump_func)dump_destroy_class_reply,
3697 (dump_func)dump_set_class_info_reply,
3698 (dump_func)dump_set_clipboard_info_reply,
3699 (dump_func)dump_open_token_reply,
3700 (dump_func)dump_set_global_windows_reply,
3701 (dump_func)dump_adjust_token_privileges_reply,
3702 (dump_func)dump_get_token_privileges_reply,
3703 (dump_func)dump_check_token_privileges_reply,
3704 (dump_func)dump_duplicate_token_reply,
3705 (dump_func)dump_access_check_reply,
3706 (dump_func)dump_get_token_user_reply,
3707 (dump_func)dump_get_token_groups_reply,
3708 (dump_func)dump_create_mailslot_reply,
3709 (dump_func)dump_open_mailslot_reply,
3710 (dump_func)dump_set_mailslot_info_reply,
3711 (dump_func)dump_create_directory_reply,
3712 (dump_func)dump_open_directory_reply,
3713 (dump_func)dump_create_symlink_reply,
3714 (dump_func)dump_open_symlink_reply,
3715 (dump_func)dump_query_symlink_reply,
3718 static const char * const req_names[REQ_NB_REQUESTS] = {
3719 "new_process",
3720 "get_new_process_info",
3721 "new_thread",
3722 "get_startup_info",
3723 "init_process_done",
3724 "init_thread",
3725 "terminate_process",
3726 "terminate_thread",
3727 "get_process_info",
3728 "set_process_info",
3729 "get_thread_info",
3730 "set_thread_info",
3731 "get_dll_info",
3732 "suspend_thread",
3733 "resume_thread",
3734 "load_dll",
3735 "unload_dll",
3736 "queue_apc",
3737 "get_apc",
3738 "close_handle",
3739 "set_handle_info",
3740 "dup_handle",
3741 "open_process",
3742 "open_thread",
3743 "select",
3744 "create_event",
3745 "event_op",
3746 "open_event",
3747 "create_mutex",
3748 "release_mutex",
3749 "open_mutex",
3750 "create_semaphore",
3751 "release_semaphore",
3752 "open_semaphore",
3753 "create_file",
3754 "open_file_object",
3755 "alloc_file_handle",
3756 "get_handle_fd",
3757 "set_handle_fd",
3758 "flush_file",
3759 "lock_file",
3760 "unlock_file",
3761 "unmount_device",
3762 "create_socket",
3763 "accept_socket",
3764 "set_socket_event",
3765 "get_socket_event",
3766 "enable_socket_event",
3767 "set_socket_deferred",
3768 "alloc_console",
3769 "free_console",
3770 "get_console_renderer_events",
3771 "open_console",
3772 "get_console_wait_event",
3773 "get_console_mode",
3774 "set_console_mode",
3775 "set_console_input_info",
3776 "get_console_input_info",
3777 "append_console_input_history",
3778 "get_console_input_history",
3779 "create_console_output",
3780 "set_console_output_info",
3781 "get_console_output_info",
3782 "write_console_input",
3783 "read_console_input",
3784 "write_console_output",
3785 "fill_console_output",
3786 "read_console_output",
3787 "move_console_output",
3788 "send_console_signal",
3789 "read_directory_changes",
3790 "read_change",
3791 "create_mapping",
3792 "open_mapping",
3793 "get_mapping_info",
3794 "create_snapshot",
3795 "next_process",
3796 "next_thread",
3797 "next_module",
3798 "wait_debug_event",
3799 "queue_exception_event",
3800 "get_exception_status",
3801 "output_debug_string",
3802 "continue_debug_event",
3803 "debug_process",
3804 "debug_break",
3805 "set_debugger_kill_on_exit",
3806 "read_process_memory",
3807 "write_process_memory",
3808 "create_key",
3809 "open_key",
3810 "delete_key",
3811 "flush_key",
3812 "enum_key",
3813 "set_key_value",
3814 "get_key_value",
3815 "enum_key_value",
3816 "delete_key_value",
3817 "load_registry",
3818 "unload_registry",
3819 "save_registry",
3820 "set_registry_notification",
3821 "create_timer",
3822 "open_timer",
3823 "set_timer",
3824 "cancel_timer",
3825 "get_timer_info",
3826 "get_thread_context",
3827 "set_thread_context",
3828 "get_selector_entry",
3829 "add_atom",
3830 "delete_atom",
3831 "find_atom",
3832 "get_atom_information",
3833 "set_atom_information",
3834 "empty_atom_table",
3835 "init_atom_table",
3836 "get_msg_queue",
3837 "set_queue_mask",
3838 "get_queue_status",
3839 "get_process_idle_event",
3840 "send_message",
3841 "post_quit_message",
3842 "send_hardware_message",
3843 "get_message",
3844 "reply_message",
3845 "accept_hardware_message",
3846 "get_message_reply",
3847 "set_win_timer",
3848 "kill_win_timer",
3849 "get_serial_info",
3850 "set_serial_info",
3851 "register_async",
3852 "cancel_async",
3853 "create_named_pipe",
3854 "open_named_pipe",
3855 "connect_named_pipe",
3856 "wait_named_pipe",
3857 "disconnect_named_pipe",
3858 "get_named_pipe_info",
3859 "create_window",
3860 "destroy_window",
3861 "get_desktop_window",
3862 "set_window_owner",
3863 "get_window_info",
3864 "set_window_info",
3865 "set_parent",
3866 "get_window_parents",
3867 "get_window_children",
3868 "get_window_children_from_point",
3869 "get_window_tree",
3870 "set_window_pos",
3871 "get_window_rectangles",
3872 "get_window_text",
3873 "set_window_text",
3874 "get_windows_offset",
3875 "get_visible_region",
3876 "get_window_region",
3877 "set_window_region",
3878 "get_update_region",
3879 "update_window_zorder",
3880 "redraw_window",
3881 "set_window_property",
3882 "remove_window_property",
3883 "get_window_property",
3884 "get_window_properties",
3885 "create_winstation",
3886 "open_winstation",
3887 "close_winstation",
3888 "get_process_winstation",
3889 "set_process_winstation",
3890 "create_desktop",
3891 "open_desktop",
3892 "close_desktop",
3893 "get_thread_desktop",
3894 "set_thread_desktop",
3895 "set_user_object_info",
3896 "attach_thread_input",
3897 "get_thread_input",
3898 "get_last_input_time",
3899 "get_key_state",
3900 "set_key_state",
3901 "set_foreground_window",
3902 "set_focus_window",
3903 "set_active_window",
3904 "set_capture_window",
3905 "set_caret_window",
3906 "set_caret_info",
3907 "set_hook",
3908 "remove_hook",
3909 "start_hook_chain",
3910 "finish_hook_chain",
3911 "get_next_hook",
3912 "create_class",
3913 "destroy_class",
3914 "set_class_info",
3915 "set_clipboard_info",
3916 "open_token",
3917 "set_global_windows",
3918 "adjust_token_privileges",
3919 "get_token_privileges",
3920 "check_token_privileges",
3921 "duplicate_token",
3922 "access_check",
3923 "get_token_user",
3924 "get_token_groups",
3925 "create_mailslot",
3926 "open_mailslot",
3927 "set_mailslot_info",
3928 "create_directory",
3929 "open_directory",
3930 "create_symlink",
3931 "open_symlink",
3932 "query_symlink",
3935 static const struct
3937 const char *name;
3938 unsigned int value;
3939 } status_names[] =
3941 { "ACCESS_DENIED", STATUS_ACCESS_DENIED },
3942 { "ACCESS_VIOLATION", STATUS_ACCESS_VIOLATION },
3943 { "ALIAS_EXISTS", STATUS_ALIAS_EXISTS },
3944 { "BAD_DEVICE_TYPE", STATUS_BAD_DEVICE_TYPE },
3945 { "BUFFER_OVERFLOW", STATUS_BUFFER_OVERFLOW },
3946 { "BUFFER_TOO_SMALL", STATUS_BUFFER_TOO_SMALL },
3947 { "CHILD_MUST_BE_VOLATILE", STATUS_CHILD_MUST_BE_VOLATILE },
3948 { "DEVICE_BUSY", STATUS_DEVICE_BUSY },
3949 { "DIRECTORY_NOT_EMPTY", STATUS_DIRECTORY_NOT_EMPTY },
3950 { "DISK_FULL", STATUS_DISK_FULL },
3951 { "DLL_NOT_FOUND", STATUS_DLL_NOT_FOUND },
3952 { "ERROR_CLASS_ALREADY_EXISTS", 0xc0010000 | ERROR_CLASS_ALREADY_EXISTS },
3953 { "ERROR_CLASS_DOES_NOT_EXIST", 0xc0010000 | ERROR_CLASS_DOES_NOT_EXIST },
3954 { "ERROR_CLASS_HAS_WINDOWS", 0xc0010000 | ERROR_CLASS_HAS_WINDOWS },
3955 { "ERROR_CLIPBOARD_NOT_OPEN", 0xc0010000 | ERROR_CLIPBOARD_NOT_OPEN },
3956 { "ERROR_INVALID_INDEX", 0xc0010000 | ERROR_INVALID_INDEX },
3957 { "ERROR_INVALID_WINDOW_HANDLE", 0xc0010000 | ERROR_INVALID_WINDOW_HANDLE },
3958 { "ERROR_SEEK", 0xc0010000 | ERROR_SEEK },
3959 { "FILE_IS_A_DIRECTORY", STATUS_FILE_IS_A_DIRECTORY },
3960 { "FILE_LOCK_CONFLICT", STATUS_FILE_LOCK_CONFLICT },
3961 { "HANDLE_NOT_CLOSABLE", STATUS_HANDLE_NOT_CLOSABLE },
3962 { "INSTANCE_NOT_AVAILABLE", STATUS_INSTANCE_NOT_AVAILABLE },
3963 { "INVALID_CID", STATUS_INVALID_CID },
3964 { "INVALID_FILE_FOR_SECTION", STATUS_INVALID_FILE_FOR_SECTION },
3965 { "INVALID_HANDLE", STATUS_INVALID_HANDLE },
3966 { "INVALID_PARAMETER", STATUS_INVALID_PARAMETER },
3967 { "IO_TIMEOUT", STATUS_IO_TIMEOUT },
3968 { "KEY_DELETED", STATUS_KEY_DELETED },
3969 { "MAPPED_FILE_SIZE_ZERO", STATUS_MAPPED_FILE_SIZE_ZERO },
3970 { "MEDIA_WRITE_PROTECTED", STATUS_MEDIA_WRITE_PROTECTED },
3971 { "MUTANT_NOT_OWNED", STATUS_MUTANT_NOT_OWNED },
3972 { "NAME_TOO_LONG", STATUS_NAME_TOO_LONG },
3973 { "NOT_ALL_ASSIGNED", STATUS_NOT_ALL_ASSIGNED },
3974 { "NOT_A_DIRECTORY", STATUS_NOT_A_DIRECTORY },
3975 { "NOT_IMPLEMENTED", STATUS_NOT_IMPLEMENTED },
3976 { "NOT_REGISTRY_FILE", STATUS_NOT_REGISTRY_FILE },
3977 { "NO_DATA_DETECTED", STATUS_NO_DATA_DETECTED },
3978 { "NO_IMPERSONATION_TOKEN", STATUS_NO_IMPERSONATION_TOKEN },
3979 { "NO_MEMORY", STATUS_NO_MEMORY },
3980 { "NO_MORE_ENTRIES", STATUS_NO_MORE_ENTRIES },
3981 { "NO_MORE_FILES", STATUS_NO_MORE_FILES },
3982 { "NO_SUCH_DEVICE", STATUS_NO_SUCH_DEVICE },
3983 { "NO_SUCH_FILE", STATUS_NO_SUCH_FILE },
3984 { "NO_TOKEN", STATUS_NO_TOKEN },
3985 { "OBJECT_NAME_COLLISION", STATUS_OBJECT_NAME_COLLISION },
3986 { "OBJECT_NAME_EXISTS", STATUS_OBJECT_NAME_EXISTS },
3987 { "OBJECT_NAME_INVALID", STATUS_OBJECT_NAME_INVALID },
3988 { "OBJECT_NAME_NOT_FOUND", STATUS_OBJECT_NAME_NOT_FOUND },
3989 { "OBJECT_PATH_INVALID", STATUS_OBJECT_PATH_INVALID },
3990 { "OBJECT_PATH_NOT_FOUND", STATUS_OBJECT_PATH_NOT_FOUND },
3991 { "OBJECT_PATH_SYNTAX_BAD", STATUS_OBJECT_PATH_SYNTAX_BAD },
3992 { "OBJECT_TYPE_MISMATCH", STATUS_OBJECT_TYPE_MISMATCH },
3993 { "PENDING", STATUS_PENDING },
3994 { "PIPE_BUSY", STATUS_PIPE_BUSY },
3995 { "PIPE_CONNECTED", STATUS_PIPE_CONNECTED },
3996 { "PIPE_DISCONNECTED", STATUS_PIPE_DISCONNECTED },
3997 { "PIPE_LISTENING", STATUS_PIPE_LISTENING },
3998 { "PIPE_NOT_AVAILABLE", STATUS_PIPE_NOT_AVAILABLE },
3999 { "PRIVILEGE_NOT_HELD", STATUS_PRIVILEGE_NOT_HELD },
4000 { "SECTION_TOO_BIG", STATUS_SECTION_TOO_BIG },
4001 { "SEMAPHORE_LIMIT_EXCEEDED", STATUS_SEMAPHORE_LIMIT_EXCEEDED },
4002 { "SHARING_VIOLATION", STATUS_SHARING_VIOLATION },
4003 { "SUSPEND_COUNT_EXCEEDED", STATUS_SUSPEND_COUNT_EXCEEDED },
4004 { "TIMEOUT", STATUS_TIMEOUT },
4005 { "TOO_MANY_OPENED_FILES", STATUS_TOO_MANY_OPENED_FILES },
4006 { "UNSUCCESSFUL", STATUS_UNSUCCESSFUL },
4007 { "VOLUME_DISMOUNTED", STATUS_VOLUME_DISMOUNTED },
4008 { "WAS_LOCKED", STATUS_WAS_LOCKED },
4009 { NULL, 0 }
4012 /* ### make_requests end ### */
4013 /* Everything above this line is generated automatically by tools/make_requests */
4015 static const char *get_status_name( unsigned int status )
4017 int i;
4018 static char buffer[10];
4020 if (status)
4022 for (i = 0; status_names[i].name; i++)
4023 if (status_names[i].value == status) return status_names[i].name;
4025 sprintf( buffer, "%x", status );
4026 return buffer;
4029 void trace_request(void)
4031 enum request req = current->req.request_header.req;
4032 if (req < REQ_NB_REQUESTS)
4034 fprintf( stderr, "%04x: %s(", current->id, req_names[req] );
4035 if (req_dumpers[req])
4037 cur_data = get_req_data();
4038 cur_size = get_req_data_size();
4039 req_dumpers[req]( &current->req );
4041 fprintf( stderr, " )\n" );
4043 else fprintf( stderr, "%04x: %d(?)\n", current->id, req );
4046 void trace_reply( enum request req, const union generic_reply *reply )
4048 if (req < REQ_NB_REQUESTS)
4050 fprintf( stderr, "%04x: %s() = %s",
4051 current->id, req_names[req], get_status_name(current->error) );
4052 if (reply_dumpers[req])
4054 fprintf( stderr, " {" );
4055 cur_data = current->reply_data;
4056 cur_size = reply->reply_header.reply_size;
4057 reply_dumpers[req]( reply );
4058 fprintf( stderr, " }" );
4060 fputc( '\n', stderr );
4062 else fprintf( stderr, "%04x: %d() = %s\n",
4063 current->id, req, get_status_name(current->error) );