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
22 #include "wine/port.h"
27 #include <sys/types.h>
34 #define WIN32_NO_STATUS
43 static const void *cur_data;
44 static data_size_t cur_size;
46 static const char *get_status_name( unsigned int status );
48 /* utility functions */
50 inline static void remove_data( data_size_t size )
52 cur_data = (const char *)cur_data + size;
56 static void dump_uints( const int *ptr, int len )
61 fprintf( stderr, "%08x", *ptr++ );
62 if (--len) fputc( ',', stderr );
67 static void dump_abs_time( const abs_time_t *time )
71 if (!time->sec && !time->usec)
73 fprintf( stderr, "0" );
76 secs = time->sec - current_time.tv_sec;
77 if ((usecs = time->usec - current_time.tv_usec) < 0)
82 if (secs > 0 || (secs == 0 && usecs >= 0))
83 fprintf( stderr, "%d.%06d (+%d.%06d)", time->sec, time->usec, secs, usecs );
85 fprintf( stderr, "%d.%06d (-%d.%06d)", time->sec, time->usec, abs(secs+1), 1000000-usecs );
88 static void dump_rectangle( const rectangle_t *rect )
90 fprintf( stderr, "{%d,%d;%d,%d}",
91 rect->left, rect->top, rect->right, rect->bottom );
94 static void dump_char_info( const char_info_t *info )
96 fprintf( stderr, "{'" );
97 dump_strW( &info->ch, 1, stderr, "\'\'" );
98 fprintf( stderr, "',%04x}", info->attr );
101 static void dump_apc_call( const apc_call_t *call )
103 fputc( '{', stderr );
107 fprintf( stderr, "APC_NONE" );
110 fprintf( stderr, "APC_USER,args={%lx,%lx,%lx}",
111 call->user.args[0], call->user.args[1], call->user.args[2] );
114 fprintf( stderr, "APC_TIMER,time=" );
115 dump_abs_time( &call->timer.time );
116 fprintf( stderr, ",arg=%p", call->timer.arg );
119 fprintf( stderr, "APC_ASYNC_IO,user=%p,sb=%p,status=%s",
120 call->async_io.user, call->async_io.sb, get_status_name(call->async_io.status) );
123 fprintf( stderr, "type=%u", call->type );
126 fputc( '}', stderr );
129 static void dump_context( const CONTEXT *context )
132 fprintf( stderr, "{flags=%08x,eax=%08x,ebx=%08x,ecx=%08x,edx=%08x,esi=%08x,edi=%08x,"
133 "ebp=%08x,eip=%08x,esp=%08x,eflags=%08x,cs=%04x,ds=%04x,es=%04x,"
134 "fs=%04x,gs=%04x,dr0=%08x,dr1=%08x,dr2=%08x,dr3=%08x,dr6=%08x,dr7=%08x,",
135 context->ContextFlags, context->Eax, context->Ebx, context->Ecx, context->Edx,
136 context->Esi, context->Edi, context->Ebp, context->Eip, context->Esp, context->EFlags,
137 context->SegCs, context->SegDs, context->SegEs, context->SegFs, context->SegGs,
138 context->Dr0, context->Dr1, context->Dr2, context->Dr3, context->Dr6, context->Dr7 );
139 fprintf( stderr, "float=" );
140 dump_uints( (const int *)&context->FloatSave, sizeof(context->FloatSave) / sizeof(int) );
141 fprintf( stderr, "}" );
143 dump_uints( (const int *)context, sizeof(*context) / sizeof(int) );
147 static void dump_exc_record( const EXCEPTION_RECORD *rec )
150 fprintf( stderr, "{code=%x,flags=%x,rec=%p,addr=%p,params={",
151 rec->ExceptionCode, rec->ExceptionFlags, rec->ExceptionRecord,
152 rec->ExceptionAddress );
153 for (i = 0; i < min(rec->NumberParameters,EXCEPTION_MAXIMUM_PARAMETERS); i++)
155 if (i) fputc( ',', stderr );
156 fprintf( stderr, "%lx", rec->ExceptionInformation[i] );
158 fputc( '}', stderr );
161 static void dump_varargs_ints( data_size_t size )
163 const int *data = cur_data;
164 data_size_t len = size / sizeof(*data);
166 fputc( '{', stderr );
169 fprintf( stderr, "%d", *data++ );
170 if (--len) fputc( ',', stderr );
172 fputc( '}', stderr );
176 static void dump_varargs_handles( data_size_t size )
178 const obj_handle_t *data = cur_data;
179 data_size_t len = size / sizeof(*data);
181 fputc( '{', stderr );
184 fprintf( stderr, "%p", *data++ );
185 if (--len) fputc( ',', stderr );
187 fputc( '}', stderr );
191 static void dump_varargs_user_handles( data_size_t size )
193 const user_handle_t *data = cur_data;
194 data_size_t len = size / sizeof(*data);
196 fputc( '{', stderr );
199 fprintf( stderr, "%p", *data++ );
200 if (--len) fputc( ',', stderr );
202 fputc( '}', stderr );
206 static void dump_varargs_bytes( data_size_t size )
208 const unsigned char *data = cur_data;
209 data_size_t len = size;
211 fputc( '{', stderr );
214 fprintf( stderr, "%02x", *data++ );
215 if (--len) fputc( ',', stderr );
217 fputc( '}', stderr );
221 static void dump_varargs_string( data_size_t size )
223 fprintf( stderr, "\"%.*s\"", (int)size, (const char *)cur_data );
227 static void dump_varargs_unicode_str( data_size_t size )
229 fprintf( stderr, "L\"" );
230 dump_strW( cur_data, size / sizeof(WCHAR), stderr, "\"\"" );
231 fputc( '\"', stderr );
235 static void dump_varargs_context( data_size_t size )
239 fprintf( stderr, "{}" );
242 dump_context( cur_data );
246 static void dump_varargs_exc_event( data_size_t size )
248 const CONTEXT *ptr = cur_data;
252 fprintf( stderr, "{}" );
255 fprintf( stderr, "{context=" );
257 fprintf( stderr, ",rec=" );
258 dump_exc_record( (const EXCEPTION_RECORD *)(ptr + 1) );
259 fputc( '}', stderr );
263 static void dump_varargs_debug_event( data_size_t size )
265 const debug_event_t *event = cur_data;
269 fprintf( stderr, "{}" );
274 case EXCEPTION_DEBUG_EVENT:
275 fprintf( stderr, "{exception," );
276 dump_exc_record( &event->info.exception.record );
277 fprintf( stderr, ",first=%d}", event->info.exception.first );
279 case CREATE_THREAD_DEBUG_EVENT:
280 fprintf( stderr, "{create_thread,thread=%p,teb=%p,start=%p}",
281 event->info.create_thread.handle, event->info.create_thread.teb,
282 event->info.create_thread.start );
284 case CREATE_PROCESS_DEBUG_EVENT:
285 fprintf( stderr, "{create_process,file=%p,process=%p,thread=%p,base=%p,offset=%d,"
286 "size=%d,teb=%p,start=%p,name=%p,unicode=%d}",
287 event->info.create_process.file, event->info.create_process.process,
288 event->info.create_process.thread, event->info.create_process.base,
289 event->info.create_process.dbg_offset, event->info.create_process.dbg_size,
290 event->info.create_process.teb, event->info.create_process.start,
291 event->info.create_process.name, event->info.create_process.unicode );
293 case EXIT_THREAD_DEBUG_EVENT:
294 fprintf( stderr, "{exit_thread,code=%d}", event->info.exit.exit_code );
296 case EXIT_PROCESS_DEBUG_EVENT:
297 fprintf( stderr, "{exit_process,code=%d}", event->info.exit.exit_code );
299 case LOAD_DLL_DEBUG_EVENT:
300 fprintf( stderr, "{load_dll,file=%p,base=%p,offset=%d,size=%d,name=%p,unicode=%d}",
301 event->info.load_dll.handle, event->info.load_dll.base,
302 event->info.load_dll.dbg_offset, event->info.load_dll.dbg_size,
303 event->info.load_dll.name, event->info.load_dll.unicode );
305 case UNLOAD_DLL_DEBUG_EVENT:
306 fprintf( stderr, "{unload_dll,base=%p}", event->info.unload_dll.base );
308 case OUTPUT_DEBUG_STRING_EVENT:
309 fprintf( stderr, "{output_string,data=%p,unicode=%d,len=%d}",
310 event->info.output_string.string, event->info.output_string.unicode,
311 event->info.output_string.length );
314 fprintf( stderr, "{rip,err=%d,type=%d}",
315 event->info.rip_info.error, event->info.rip_info.type );
317 case 0: /* zero is the code returned on timeouts */
318 fprintf( stderr, "{}" );
321 fprintf( stderr, "{code=??? (%d)}", event->code );
327 /* dump a unicode string contained in a buffer; helper for dump_varargs_startup_info */
328 static void dump_inline_unicode_string( const UNICODE_STRING *str, const void *data, data_size_t size )
330 size_t length = str->Length;
331 size_t offset = (size_t)str->Buffer;
333 if (offset >= size) return;
334 if (offset + length > size) length = size - offset;
335 dump_strW( (const WCHAR *)data + offset/sizeof(WCHAR), length/sizeof(WCHAR), stderr, "\"\"" );
338 static void dump_varargs_startup_info( data_size_t size )
340 const RTL_USER_PROCESS_PARAMETERS *ptr = cur_data;
341 RTL_USER_PROCESS_PARAMETERS params;
343 if (size < sizeof(params.Size))
345 fprintf( stderr, "{}" );
348 if (size > ptr->Size) size = ptr->Size;
349 memset( ¶ms, 0, sizeof(params) );
350 memcpy( ¶ms, ptr, min( size, sizeof(params) ));
352 fprintf( stderr, "{AllocationSize=%x,", params.AllocationSize );
353 fprintf( stderr, "Size=%x,", params.Size );
354 fprintf( stderr, "Flags=%x,", params.Flags );
355 fprintf( stderr, "DebugFlags=%x,", params.DebugFlags );
356 fprintf( stderr, "ConsoleHandle=%p,", params.ConsoleHandle );
357 fprintf( stderr, "ConsoleFlags=%x,", params.ConsoleFlags );
358 fprintf( stderr, "hStdInput=%p,", params.hStdInput );
359 fprintf( stderr, "hStdOutput=%p,", params.hStdOutput );
360 fprintf( stderr, "hStdError=%p,", params.hStdError );
361 fprintf( stderr, "CurrentDirectory.Handle=%p,", params.CurrentDirectory.Handle );
362 fprintf( stderr, "dwX=%d,", params.dwX );
363 fprintf( stderr, "dwY=%d,", params.dwY );
364 fprintf( stderr, "dwXSize=%d,", params.dwXSize );
365 fprintf( stderr, "dwYSize=%d,", params.dwYSize );
366 fprintf( stderr, "dwXCountChars=%d,", params.dwXCountChars );
367 fprintf( stderr, "dwYCountChars=%d,", params.dwYCountChars );
368 fprintf( stderr, "dwFillAttribute=%x,", params.dwFillAttribute );
369 fprintf( stderr, "dwFlags=%x,", params.dwFlags );
370 fprintf( stderr, "wShowWindow=%x,", params.wShowWindow );
371 fprintf( stderr, "CurrentDirectory.DosPath=L\"" );
372 dump_inline_unicode_string( ¶ms.CurrentDirectory.DosPath, cur_data, size );
373 fprintf( stderr, "\",DllPath=L\"" );
374 dump_inline_unicode_string( ¶ms.DllPath, cur_data, size );
375 fprintf( stderr, "\",ImagePathName=L\"" );
376 dump_inline_unicode_string( ¶ms.ImagePathName, cur_data, size );
377 fprintf( stderr, "\",CommandLine=L\"" );
378 dump_inline_unicode_string( ¶ms.CommandLine, cur_data, size );
379 fprintf( stderr, "\",WindowTitle=L\"" );
380 dump_inline_unicode_string( ¶ms.WindowTitle, cur_data, size );
381 fprintf( stderr, "\",Desktop=L\"" );
382 dump_inline_unicode_string( ¶ms.Desktop, cur_data, size );
383 fprintf( stderr, "\",ShellInfo=L\"" );
384 dump_inline_unicode_string( ¶ms.ShellInfo, cur_data, size );
385 fprintf( stderr, "\",RuntimeInfo=L\"" );
386 dump_inline_unicode_string( ¶ms.RuntimeInfo, cur_data, size );
387 fprintf( stderr, "\"}" );
391 static void dump_varargs_input_records( data_size_t size )
393 const INPUT_RECORD *rec = cur_data;
394 data_size_t len = size / sizeof(*rec);
396 fputc( '{', stderr );
399 fprintf( stderr, "{%04x,...}", rec->EventType );
401 if (--len) fputc( ',', stderr );
403 fputc( '}', stderr );
407 static void dump_varargs_rectangles( data_size_t size )
409 const rectangle_t *rect = cur_data;
410 data_size_t len = size / sizeof(*rect);
412 fputc( '{', stderr );
415 dump_rectangle( rect++ );
416 if (--len) fputc( ',', stderr );
418 fputc( '}', stderr );
422 static void dump_varargs_message_data( data_size_t size )
424 /* FIXME: dump the structured data */
425 dump_varargs_bytes( size );
428 static void dump_varargs_properties( data_size_t size )
430 const property_data_t *prop = cur_data;
431 data_size_t len = size / sizeof(*prop);
433 fputc( '{', stderr );
436 fprintf( stderr, "{atom=%04x,str=%d,handle=%p}",
437 prop->atom, prop->string, prop->handle );
439 if (--len) fputc( ',', stderr );
441 fputc( '}', stderr );
445 static void dump_varargs_LUID_AND_ATTRIBUTES( data_size_t size )
447 const LUID_AND_ATTRIBUTES *lat = cur_data;
448 data_size_t len = size / sizeof(*lat);
450 fputc( '{', stderr );
453 fprintf( stderr, "{luid=%08x%08x,attr=%x}",
454 lat->Luid.HighPart, lat->Luid.LowPart, lat->Attributes );
456 if (--len) fputc( ',', stderr );
458 fputc( '}', stderr );
462 static void dump_inline_sid( const SID *sid, data_size_t size )
467 if ((FIELD_OFFSET(SID, SubAuthority[0]) > size) ||
468 (FIELD_OFFSET(SID, SubAuthority[sid->SubAuthorityCount]) > size))
470 fprintf( stderr, "<invalid sid>" );
474 fputc( '{', stderr );
475 fprintf( stderr, "S-%u-%u", sid->Revision, MAKELONG(
476 MAKEWORD( sid->IdentifierAuthority.Value[5],
477 sid->IdentifierAuthority.Value[4] ),
478 MAKEWORD( sid->IdentifierAuthority.Value[3],
479 sid->IdentifierAuthority.Value[2] ) ) );
480 for (i = 0; i < sid->SubAuthorityCount; i++)
481 fprintf( stderr, "-%u", sid->SubAuthority[i] );
482 fputc( '}', stderr );
485 static void dump_varargs_SID( data_size_t size )
487 const SID *sid = cur_data;
488 dump_inline_sid( sid, size );
492 static void dump_inline_acl( const ACL *acl, data_size_t size )
494 const ACE_HEADER *ace;
496 fputc( '{', stderr );
500 if (size < sizeof(ACL))
502 fprintf( stderr, "<invalid acl>}\n" );
506 ace = (const ACE_HEADER *)(acl + 1);
507 for (i = 0; i < acl->AceCount; i++)
509 const SID *sid = NULL;
510 data_size_t sid_size = 0;
512 if (size < sizeof(ACE_HEADER))
514 if (size < ace->AceSize)
516 size -= ace->AceSize;
517 if (i != 0) fputc( ',', stderr );
518 fprintf( stderr, "{AceType=" );
519 switch (ace->AceType)
521 case ACCESS_DENIED_ACE_TYPE:
522 sid = (const SID *)&((const ACCESS_DENIED_ACE *)ace)->SidStart;
523 sid_size = ace->AceSize - FIELD_OFFSET(ACCESS_DENIED_ACE, SidStart);
524 fprintf( stderr, "ACCESS_DENIED_ACE_TYPE,Mask=%x",
525 ((const ACCESS_DENIED_ACE *)ace)->Mask );
527 case ACCESS_ALLOWED_ACE_TYPE:
528 sid = (const SID *)&((const ACCESS_ALLOWED_ACE *)ace)->SidStart;
529 sid_size = ace->AceSize - FIELD_OFFSET(ACCESS_ALLOWED_ACE, SidStart);
530 fprintf( stderr, "ACCESS_ALLOWED_ACE_TYPE,Mask=%x",
531 ((const ACCESS_ALLOWED_ACE *)ace)->Mask );
533 case SYSTEM_AUDIT_ACE_TYPE:
534 sid = (const SID *)&((const SYSTEM_AUDIT_ACE *)ace)->SidStart;
535 sid_size = ace->AceSize - FIELD_OFFSET(SYSTEM_AUDIT_ACE, SidStart);
536 fprintf( stderr, "SYSTEM_AUDIT_ACE_TYPE,Mask=%x",
537 ((const SYSTEM_AUDIT_ACE *)ace)->Mask );
539 case SYSTEM_ALARM_ACE_TYPE:
540 sid = (const SID *)&((const SYSTEM_ALARM_ACE *)ace)->SidStart;
541 sid_size = ace->AceSize - FIELD_OFFSET(SYSTEM_ALARM_ACE, SidStart);
542 fprintf( stderr, "SYSTEM_ALARM_ACE_TYPE,Mask=%x",
543 ((const SYSTEM_ALARM_ACE *)ace)->Mask );
546 fprintf( stderr, "unknown<%d>", ace->AceType );
549 fprintf( stderr, ",AceFlags=%x,Sid=", ace->AceFlags );
551 dump_inline_sid( sid, sid_size );
552 ace = (const ACE_HEADER *)((const char *)ace + ace->AceSize);
553 fputc( '}', stderr );
556 fputc( '}', stderr );
559 static void dump_inline_security_descriptor( const struct security_descriptor *sd, data_size_t size )
561 fputc( '{', stderr );
562 if (size >= sizeof(struct security_descriptor))
564 size_t offset = sizeof(struct security_descriptor);
565 fprintf( stderr, "control=%08x", sd->control );
566 fprintf( stderr, ",owner=" );
567 if ((sd->owner_len > FIELD_OFFSET(SID, SubAuthority[255])) || (offset + sd->owner_len > size))
569 dump_inline_sid( (const SID *)((const char *)sd + offset), sd->owner_len );
570 offset += sd->owner_len;
571 fprintf( stderr, ",group=" );
572 if ((sd->group_len > FIELD_OFFSET(SID, SubAuthority[255])) || (offset + sd->group_len > size))
574 dump_inline_sid( (const SID *)((const char *)sd + offset), sd->group_len );
575 offset += sd->group_len;
576 fprintf( stderr, ",sacl=" );
577 if ((sd->sacl_len >= MAX_ACL_LEN) || (offset + sd->sacl_len > size))
579 dump_inline_acl( (const ACL *)((const char *)sd + offset), sd->sacl_len );
580 offset += sd->sacl_len;
581 fprintf( stderr, ",dacl=" );
582 if ((sd->dacl_len >= MAX_ACL_LEN) || (offset + sd->dacl_len > size))
584 dump_inline_acl( (const ACL *)((const char *)sd + offset), sd->dacl_len );
585 offset += sd->dacl_len;
587 fputc( '}', stderr );
590 static void dump_varargs_security_descriptor( data_size_t size )
592 const struct security_descriptor *sd = cur_data;
593 dump_inline_security_descriptor( sd, size );
597 static void dump_varargs_token_groups( data_size_t size )
599 const struct token_groups *tg = cur_data;
600 fputc( '{', stderr );
601 if (size >= sizeof(struct token_groups))
603 size_t offset = sizeof(*tg);
604 fprintf( stderr, "count=%08x,", tg->count );
605 if (tg->count * sizeof(unsigned int) <= size)
608 const unsigned int *attr = (const unsigned int *)(tg + 1);
610 offset += tg->count * sizeof(unsigned int);
612 fputc( '[', stderr );
613 for (i = 0; i < tg->count; i++)
615 const SID *sid = (const SID *)((const char *)cur_data + offset);
617 fputc( ',', stderr );
618 fputc( '{', stderr );
619 fprintf( stderr, "attributes=%08x", attr[i] );
620 fprintf( stderr, ",sid=" );
621 dump_inline_sid( sid, size - offset );
622 if ((offset + FIELD_OFFSET(SID, SubAuthority[0]) > size) ||
623 (offset + FIELD_OFFSET(SID, SubAuthority[sid->SubAuthorityCount]) > size))
625 offset += FIELD_OFFSET(SID, SubAuthority[sid->SubAuthorityCount]);
626 fputc( '}', stderr );
628 fputc( ']', stderr );
631 fputc( '}', stderr );
634 typedef void (*dump_func)( const void *req );
636 /* Everything below this line is generated automatically by tools/make_requests */
637 /* ### make_requests begin ### */
639 static void dump_new_process_request( const struct new_process_request *req )
641 fprintf( stderr, " inherit_all=%d,", req->inherit_all );
642 fprintf( stderr, " create_flags=%08x,", req->create_flags );
643 fprintf( stderr, " socket_fd=%d,", req->socket_fd );
644 fprintf( stderr, " exe_file=%p,", req->exe_file );
645 fprintf( stderr, " hstdin=%p,", req->hstdin );
646 fprintf( stderr, " hstdout=%p,", req->hstdout );
647 fprintf( stderr, " hstderr=%p,", req->hstderr );
648 fprintf( stderr, " process_access=%08x,", req->process_access );
649 fprintf( stderr, " process_attr=%08x,", req->process_attr );
650 fprintf( stderr, " thread_access=%08x,", req->thread_access );
651 fprintf( stderr, " thread_attr=%08x,", req->thread_attr );
652 fprintf( stderr, " info=" );
653 dump_varargs_startup_info( cur_size );
654 fputc( ',', stderr );
655 fprintf( stderr, " env=" );
656 dump_varargs_unicode_str( cur_size );
659 static void dump_new_process_reply( const struct new_process_reply *req )
661 fprintf( stderr, " info=%p,", req->info );
662 fprintf( stderr, " pid=%04x,", req->pid );
663 fprintf( stderr, " phandle=%p,", req->phandle );
664 fprintf( stderr, " tid=%04x,", req->tid );
665 fprintf( stderr, " thandle=%p", req->thandle );
668 static void dump_get_new_process_info_request( const struct get_new_process_info_request *req )
670 fprintf( stderr, " info=%p", req->info );
673 static void dump_get_new_process_info_reply( const struct get_new_process_info_reply *req )
675 fprintf( stderr, " success=%d,", req->success );
676 fprintf( stderr, " exit_code=%d", req->exit_code );
679 static void dump_new_thread_request( const struct new_thread_request *req )
681 fprintf( stderr, " access=%08x,", req->access );
682 fprintf( stderr, " attributes=%08x,", req->attributes );
683 fprintf( stderr, " suspend=%d,", req->suspend );
684 fprintf( stderr, " request_fd=%d", req->request_fd );
687 static void dump_new_thread_reply( const struct new_thread_reply *req )
689 fprintf( stderr, " tid=%04x,", req->tid );
690 fprintf( stderr, " handle=%p", req->handle );
693 static void dump_get_startup_info_request( const struct get_startup_info_request *req )
697 static void dump_get_startup_info_reply( const struct get_startup_info_reply *req )
699 fprintf( stderr, " exe_file=%p,", req->exe_file );
700 fprintf( stderr, " hstdin=%p,", req->hstdin );
701 fprintf( stderr, " hstdout=%p,", req->hstdout );
702 fprintf( stderr, " hstderr=%p,", req->hstderr );
703 fprintf( stderr, " info=" );
704 dump_varargs_startup_info( cur_size );
705 fputc( ',', stderr );
706 fprintf( stderr, " env=" );
707 dump_varargs_unicode_str( cur_size );
710 static void dump_init_process_done_request( const struct init_process_done_request *req )
712 fprintf( stderr, " module=%p,", req->module );
713 fprintf( stderr, " entry=%p,", req->entry );
714 fprintf( stderr, " gui=%d", req->gui );
717 static void dump_init_thread_request( const struct init_thread_request *req )
719 fprintf( stderr, " unix_pid=%d,", req->unix_pid );
720 fprintf( stderr, " unix_tid=%d,", req->unix_tid );
721 fprintf( stderr, " debug_level=%d,", req->debug_level );
722 fprintf( stderr, " teb=%p,", req->teb );
723 fprintf( stderr, " peb=%p,", req->peb );
724 fprintf( stderr, " entry=%p,", req->entry );
725 fprintf( stderr, " ldt_copy=%p,", req->ldt_copy );
726 fprintf( stderr, " reply_fd=%d,", req->reply_fd );
727 fprintf( stderr, " wait_fd=%d", req->wait_fd );
730 static void dump_init_thread_reply( const struct init_thread_reply *req )
732 fprintf( stderr, " pid=%04x,", req->pid );
733 fprintf( stderr, " tid=%04x,", req->tid );
734 fprintf( stderr, " info_size=%u,", req->info_size );
735 fprintf( stderr, " server_start=" );
736 dump_abs_time( &req->server_start );
737 fprintf( stderr, "," );
738 fprintf( stderr, " version=%d", req->version );
741 static void dump_terminate_process_request( const struct terminate_process_request *req )
743 fprintf( stderr, " handle=%p,", req->handle );
744 fprintf( stderr, " exit_code=%d", req->exit_code );
747 static void dump_terminate_process_reply( const struct terminate_process_reply *req )
749 fprintf( stderr, " self=%d", req->self );
752 static void dump_terminate_thread_request( const struct terminate_thread_request *req )
754 fprintf( stderr, " handle=%p,", req->handle );
755 fprintf( stderr, " exit_code=%d", req->exit_code );
758 static void dump_terminate_thread_reply( const struct terminate_thread_reply *req )
760 fprintf( stderr, " self=%d,", req->self );
761 fprintf( stderr, " last=%d", req->last );
764 static void dump_get_process_info_request( const struct get_process_info_request *req )
766 fprintf( stderr, " handle=%p", req->handle );
769 static void dump_get_process_info_reply( const struct get_process_info_reply *req )
771 fprintf( stderr, " pid=%04x,", req->pid );
772 fprintf( stderr, " ppid=%04x,", req->ppid );
773 fprintf( stderr, " exit_code=%d,", req->exit_code );
774 fprintf( stderr, " priority=%d,", req->priority );
775 fprintf( stderr, " affinity=%d,", req->affinity );
776 fprintf( stderr, " peb=%p,", req->peb );
777 fprintf( stderr, " start_time=" );
778 dump_abs_time( &req->start_time );
779 fprintf( stderr, "," );
780 fprintf( stderr, " end_time=" );
781 dump_abs_time( &req->end_time );
784 static void dump_set_process_info_request( const struct set_process_info_request *req )
786 fprintf( stderr, " handle=%p,", req->handle );
787 fprintf( stderr, " mask=%d,", req->mask );
788 fprintf( stderr, " priority=%d,", req->priority );
789 fprintf( stderr, " affinity=%d", req->affinity );
792 static void dump_get_thread_info_request( const struct get_thread_info_request *req )
794 fprintf( stderr, " handle=%p,", req->handle );
795 fprintf( stderr, " tid_in=%04x", req->tid_in );
798 static void dump_get_thread_info_reply( const struct get_thread_info_reply *req )
800 fprintf( stderr, " pid=%04x,", req->pid );
801 fprintf( stderr, " tid=%04x,", req->tid );
802 fprintf( stderr, " teb=%p,", req->teb );
803 fprintf( stderr, " exit_code=%d,", req->exit_code );
804 fprintf( stderr, " priority=%d,", req->priority );
805 fprintf( stderr, " affinity=%d,", req->affinity );
806 fprintf( stderr, " creation_time=" );
807 dump_abs_time( &req->creation_time );
808 fprintf( stderr, "," );
809 fprintf( stderr, " exit_time=" );
810 dump_abs_time( &req->exit_time );
811 fprintf( stderr, "," );
812 fprintf( stderr, " last=%d", req->last );
815 static void dump_set_thread_info_request( const struct set_thread_info_request *req )
817 fprintf( stderr, " handle=%p,", req->handle );
818 fprintf( stderr, " mask=%d,", req->mask );
819 fprintf( stderr, " priority=%d,", req->priority );
820 fprintf( stderr, " affinity=%d,", req->affinity );
821 fprintf( stderr, " token=%p", req->token );
824 static void dump_get_dll_info_request( const struct get_dll_info_request *req )
826 fprintf( stderr, " handle=%p,", req->handle );
827 fprintf( stderr, " base_address=%p", req->base_address );
830 static void dump_get_dll_info_reply( const struct get_dll_info_reply *req )
832 fprintf( stderr, " size=%lu,", (unsigned long)req->size );
833 fprintf( stderr, " entry_point=%p,", req->entry_point );
834 fprintf( stderr, " filename=" );
835 dump_varargs_unicode_str( cur_size );
838 static void dump_suspend_thread_request( const struct suspend_thread_request *req )
840 fprintf( stderr, " handle=%p", req->handle );
843 static void dump_suspend_thread_reply( const struct suspend_thread_reply *req )
845 fprintf( stderr, " count=%d", req->count );
848 static void dump_resume_thread_request( const struct resume_thread_request *req )
850 fprintf( stderr, " handle=%p", req->handle );
853 static void dump_resume_thread_reply( const struct resume_thread_reply *req )
855 fprintf( stderr, " count=%d", req->count );
858 static void dump_load_dll_request( const struct load_dll_request *req )
860 fprintf( stderr, " handle=%p,", req->handle );
861 fprintf( stderr, " base=%p,", req->base );
862 fprintf( stderr, " size=%lu,", (unsigned long)req->size );
863 fprintf( stderr, " dbg_offset=%d,", req->dbg_offset );
864 fprintf( stderr, " dbg_size=%d,", req->dbg_size );
865 fprintf( stderr, " name=%p,", req->name );
866 fprintf( stderr, " filename=" );
867 dump_varargs_unicode_str( cur_size );
870 static void dump_unload_dll_request( const struct unload_dll_request *req )
872 fprintf( stderr, " base=%p", req->base );
875 static void dump_queue_apc_request( const struct queue_apc_request *req )
877 fprintf( stderr, " handle=%p,", req->handle );
878 fprintf( stderr, " call=" );
879 dump_apc_call( &req->call );
882 static void dump_get_apc_request( const struct get_apc_request *req )
884 fprintf( stderr, " alertable=%d,", req->alertable );
885 fprintf( stderr, " prev=%p", req->prev );
888 static void dump_get_apc_reply( const struct get_apc_reply *req )
890 fprintf( stderr, " handle=%p,", req->handle );
891 fprintf( stderr, " call=" );
892 dump_apc_call( &req->call );
895 static void dump_close_handle_request( const struct close_handle_request *req )
897 fprintf( stderr, " handle=%p", req->handle );
900 static void dump_set_handle_info_request( const struct set_handle_info_request *req )
902 fprintf( stderr, " handle=%p,", req->handle );
903 fprintf( stderr, " flags=%d,", req->flags );
904 fprintf( stderr, " mask=%d", req->mask );
907 static void dump_set_handle_info_reply( const struct set_handle_info_reply *req )
909 fprintf( stderr, " old_flags=%d", req->old_flags );
912 static void dump_dup_handle_request( const struct dup_handle_request *req )
914 fprintf( stderr, " src_process=%p,", req->src_process );
915 fprintf( stderr, " src_handle=%p,", req->src_handle );
916 fprintf( stderr, " dst_process=%p,", req->dst_process );
917 fprintf( stderr, " access=%08x,", req->access );
918 fprintf( stderr, " attributes=%08x,", req->attributes );
919 fprintf( stderr, " options=%08x", req->options );
922 static void dump_dup_handle_reply( const struct dup_handle_reply *req )
924 fprintf( stderr, " handle=%p,", req->handle );
925 fprintf( stderr, " closed=%d", req->closed );
928 static void dump_open_process_request( const struct open_process_request *req )
930 fprintf( stderr, " pid=%04x,", req->pid );
931 fprintf( stderr, " access=%08x,", req->access );
932 fprintf( stderr, " attributes=%08x", req->attributes );
935 static void dump_open_process_reply( const struct open_process_reply *req )
937 fprintf( stderr, " handle=%p", req->handle );
940 static void dump_open_thread_request( const struct open_thread_request *req )
942 fprintf( stderr, " tid=%04x,", req->tid );
943 fprintf( stderr, " access=%08x,", req->access );
944 fprintf( stderr, " attributes=%08x", req->attributes );
947 static void dump_open_thread_reply( const struct open_thread_reply *req )
949 fprintf( stderr, " handle=%p", req->handle );
952 static void dump_select_request( const struct select_request *req )
954 fprintf( stderr, " flags=%d,", req->flags );
955 fprintf( stderr, " cookie=%p,", req->cookie );
956 fprintf( stderr, " signal=%p,", req->signal );
957 fprintf( stderr, " timeout=" );
958 dump_abs_time( &req->timeout );
959 fprintf( stderr, "," );
960 fprintf( stderr, " handles=" );
961 dump_varargs_handles( cur_size );
964 static void dump_create_event_request( const struct create_event_request *req )
966 fprintf( stderr, " access=%08x,", req->access );
967 fprintf( stderr, " attributes=%08x,", req->attributes );
968 fprintf( stderr, " rootdir=%p,", req->rootdir );
969 fprintf( stderr, " manual_reset=%d,", req->manual_reset );
970 fprintf( stderr, " initial_state=%d,", req->initial_state );
971 fprintf( stderr, " name=" );
972 dump_varargs_unicode_str( cur_size );
975 static void dump_create_event_reply( const struct create_event_reply *req )
977 fprintf( stderr, " handle=%p", req->handle );
980 static void dump_event_op_request( const struct event_op_request *req )
982 fprintf( stderr, " handle=%p,", req->handle );
983 fprintf( stderr, " op=%d", req->op );
986 static void dump_open_event_request( const struct open_event_request *req )
988 fprintf( stderr, " access=%08x,", req->access );
989 fprintf( stderr, " attributes=%08x,", req->attributes );
990 fprintf( stderr, " rootdir=%p,", req->rootdir );
991 fprintf( stderr, " name=" );
992 dump_varargs_unicode_str( cur_size );
995 static void dump_open_event_reply( const struct open_event_reply *req )
997 fprintf( stderr, " handle=%p", req->handle );
1000 static void dump_create_mutex_request( const struct create_mutex_request *req )
1002 fprintf( stderr, " access=%08x,", req->access );
1003 fprintf( stderr, " attributes=%08x,", req->attributes );
1004 fprintf( stderr, " rootdir=%p,", req->rootdir );
1005 fprintf( stderr, " owned=%d,", req->owned );
1006 fprintf( stderr, " name=" );
1007 dump_varargs_unicode_str( cur_size );
1010 static void dump_create_mutex_reply( const struct create_mutex_reply *req )
1012 fprintf( stderr, " handle=%p", req->handle );
1015 static void dump_release_mutex_request( const struct release_mutex_request *req )
1017 fprintf( stderr, " handle=%p", req->handle );
1020 static void dump_release_mutex_reply( const struct release_mutex_reply *req )
1022 fprintf( stderr, " prev_count=%08x", req->prev_count );
1025 static void dump_open_mutex_request( const struct open_mutex_request *req )
1027 fprintf( stderr, " access=%08x,", req->access );
1028 fprintf( stderr, " attributes=%08x,", req->attributes );
1029 fprintf( stderr, " rootdir=%p,", req->rootdir );
1030 fprintf( stderr, " name=" );
1031 dump_varargs_unicode_str( cur_size );
1034 static void dump_open_mutex_reply( const struct open_mutex_reply *req )
1036 fprintf( stderr, " handle=%p", req->handle );
1039 static void dump_create_semaphore_request( const struct create_semaphore_request *req )
1041 fprintf( stderr, " access=%08x,", req->access );
1042 fprintf( stderr, " attributes=%08x,", req->attributes );
1043 fprintf( stderr, " rootdir=%p,", req->rootdir );
1044 fprintf( stderr, " initial=%08x,", req->initial );
1045 fprintf( stderr, " max=%08x,", req->max );
1046 fprintf( stderr, " name=" );
1047 dump_varargs_unicode_str( cur_size );
1050 static void dump_create_semaphore_reply( const struct create_semaphore_reply *req )
1052 fprintf( stderr, " handle=%p", req->handle );
1055 static void dump_release_semaphore_request( const struct release_semaphore_request *req )
1057 fprintf( stderr, " handle=%p,", req->handle );
1058 fprintf( stderr, " count=%08x", req->count );
1061 static void dump_release_semaphore_reply( const struct release_semaphore_reply *req )
1063 fprintf( stderr, " prev_count=%08x", req->prev_count );
1066 static void dump_open_semaphore_request( const struct open_semaphore_request *req )
1068 fprintf( stderr, " access=%08x,", req->access );
1069 fprintf( stderr, " attributes=%08x,", req->attributes );
1070 fprintf( stderr, " rootdir=%p,", req->rootdir );
1071 fprintf( stderr, " name=" );
1072 dump_varargs_unicode_str( cur_size );
1075 static void dump_open_semaphore_reply( const struct open_semaphore_reply *req )
1077 fprintf( stderr, " handle=%p", req->handle );
1080 static void dump_create_file_request( const struct create_file_request *req )
1082 fprintf( stderr, " access=%08x,", req->access );
1083 fprintf( stderr, " attributes=%08x,", req->attributes );
1084 fprintf( stderr, " sharing=%08x,", req->sharing );
1085 fprintf( stderr, " create=%d,", req->create );
1086 fprintf( stderr, " options=%08x,", req->options );
1087 fprintf( stderr, " attrs=%08x,", req->attrs );
1088 fprintf( stderr, " filename=" );
1089 dump_varargs_string( cur_size );
1092 static void dump_create_file_reply( const struct create_file_reply *req )
1094 fprintf( stderr, " handle=%p", req->handle );
1097 static void dump_open_file_object_request( const struct open_file_object_request *req )
1099 fprintf( stderr, " access=%08x,", req->access );
1100 fprintf( stderr, " attributes=%08x,", req->attributes );
1101 fprintf( stderr, " rootdir=%p,", req->rootdir );
1102 fprintf( stderr, " sharing=%08x,", req->sharing );
1103 fprintf( stderr, " filename=" );
1104 dump_varargs_unicode_str( cur_size );
1107 static void dump_open_file_object_reply( const struct open_file_object_reply *req )
1109 fprintf( stderr, " handle=%p", req->handle );
1112 static void dump_alloc_file_handle_request( const struct alloc_file_handle_request *req )
1114 fprintf( stderr, " access=%08x,", req->access );
1115 fprintf( stderr, " attributes=%08x,", req->attributes );
1116 fprintf( stderr, " fd=%d", req->fd );
1119 static void dump_alloc_file_handle_reply( const struct alloc_file_handle_reply *req )
1121 fprintf( stderr, " handle=%p", req->handle );
1124 static void dump_get_handle_fd_request( const struct get_handle_fd_request *req )
1126 fprintf( stderr, " handle=%p,", req->handle );
1127 fprintf( stderr, " access=%08x,", req->access );
1128 fprintf( stderr, " cached=%d", req->cached );
1131 static void dump_get_handle_fd_reply( const struct get_handle_fd_reply *req )
1133 fprintf( stderr, " type=%d,", req->type );
1134 fprintf( stderr, " flags=%d", req->flags );
1137 static void dump_flush_file_request( const struct flush_file_request *req )
1139 fprintf( stderr, " handle=%p", req->handle );
1142 static void dump_flush_file_reply( const struct flush_file_reply *req )
1144 fprintf( stderr, " event=%p", req->event );
1147 static void dump_lock_file_request( const struct lock_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 );
1154 fprintf( stderr, " shared=%d,", req->shared );
1155 fprintf( stderr, " wait=%d", req->wait );
1158 static void dump_lock_file_reply( const struct lock_file_reply *req )
1160 fprintf( stderr, " handle=%p,", req->handle );
1161 fprintf( stderr, " overlapped=%d", req->overlapped );
1164 static void dump_unlock_file_request( const struct unlock_file_request *req )
1166 fprintf( stderr, " handle=%p,", req->handle );
1167 fprintf( stderr, " offset_low=%08x,", req->offset_low );
1168 fprintf( stderr, " offset_high=%08x,", req->offset_high );
1169 fprintf( stderr, " count_low=%08x,", req->count_low );
1170 fprintf( stderr, " count_high=%08x", req->count_high );
1173 static void dump_unmount_device_request( const struct unmount_device_request *req )
1175 fprintf( stderr, " handle=%p", req->handle );
1178 static void dump_create_socket_request( const struct create_socket_request *req )
1180 fprintf( stderr, " access=%08x,", req->access );
1181 fprintf( stderr, " attributes=%08x,", req->attributes );
1182 fprintf( stderr, " family=%d,", req->family );
1183 fprintf( stderr, " type=%d,", req->type );
1184 fprintf( stderr, " protocol=%d,", req->protocol );
1185 fprintf( stderr, " flags=%08x", req->flags );
1188 static void dump_create_socket_reply( const struct create_socket_reply *req )
1190 fprintf( stderr, " handle=%p", req->handle );
1193 static void dump_accept_socket_request( const struct accept_socket_request *req )
1195 fprintf( stderr, " lhandle=%p,", req->lhandle );
1196 fprintf( stderr, " access=%08x,", req->access );
1197 fprintf( stderr, " attributes=%08x", req->attributes );
1200 static void dump_accept_socket_reply( const struct accept_socket_reply *req )
1202 fprintf( stderr, " handle=%p", req->handle );
1205 static void dump_set_socket_event_request( const struct set_socket_event_request *req )
1207 fprintf( stderr, " handle=%p,", req->handle );
1208 fprintf( stderr, " mask=%08x,", req->mask );
1209 fprintf( stderr, " event=%p,", req->event );
1210 fprintf( stderr, " window=%p,", req->window );
1211 fprintf( stderr, " msg=%08x", req->msg );
1214 static void dump_get_socket_event_request( const struct get_socket_event_request *req )
1216 fprintf( stderr, " handle=%p,", req->handle );
1217 fprintf( stderr, " service=%d,", req->service );
1218 fprintf( stderr, " c_event=%p", req->c_event );
1221 static void dump_get_socket_event_reply( const struct get_socket_event_reply *req )
1223 fprintf( stderr, " mask=%08x,", req->mask );
1224 fprintf( stderr, " pmask=%08x,", req->pmask );
1225 fprintf( stderr, " state=%08x,", req->state );
1226 fprintf( stderr, " errors=" );
1227 dump_varargs_ints( cur_size );
1230 static void dump_enable_socket_event_request( const struct enable_socket_event_request *req )
1232 fprintf( stderr, " handle=%p,", req->handle );
1233 fprintf( stderr, " mask=%08x,", req->mask );
1234 fprintf( stderr, " sstate=%08x,", req->sstate );
1235 fprintf( stderr, " cstate=%08x", req->cstate );
1238 static void dump_set_socket_deferred_request( const struct set_socket_deferred_request *req )
1240 fprintf( stderr, " handle=%p,", req->handle );
1241 fprintf( stderr, " deferred=%p", req->deferred );
1244 static void dump_alloc_console_request( const struct alloc_console_request *req )
1246 fprintf( stderr, " access=%08x,", req->access );
1247 fprintf( stderr, " attributes=%08x,", req->attributes );
1248 fprintf( stderr, " pid=%04x", req->pid );
1251 static void dump_alloc_console_reply( const struct alloc_console_reply *req )
1253 fprintf( stderr, " handle_in=%p,", req->handle_in );
1254 fprintf( stderr, " event=%p", req->event );
1257 static void dump_free_console_request( const struct free_console_request *req )
1261 static void dump_get_console_renderer_events_request( const struct get_console_renderer_events_request *req )
1263 fprintf( stderr, " handle=%p", req->handle );
1266 static void dump_get_console_renderer_events_reply( const struct get_console_renderer_events_reply *req )
1268 fprintf( stderr, " data=" );
1269 dump_varargs_bytes( cur_size );
1272 static void dump_open_console_request( const struct open_console_request *req )
1274 fprintf( stderr, " from=%p,", req->from );
1275 fprintf( stderr, " access=%08x,", req->access );
1276 fprintf( stderr, " attributes=%08x,", req->attributes );
1277 fprintf( stderr, " share=%d", req->share );
1280 static void dump_open_console_reply( const struct open_console_reply *req )
1282 fprintf( stderr, " handle=%p", req->handle );
1285 static void dump_get_console_wait_event_request( const struct get_console_wait_event_request *req )
1289 static void dump_get_console_wait_event_reply( const struct get_console_wait_event_reply *req )
1291 fprintf( stderr, " handle=%p", req->handle );
1294 static void dump_get_console_mode_request( const struct get_console_mode_request *req )
1296 fprintf( stderr, " handle=%p", req->handle );
1299 static void dump_get_console_mode_reply( const struct get_console_mode_reply *req )
1301 fprintf( stderr, " mode=%d", req->mode );
1304 static void dump_set_console_mode_request( const struct set_console_mode_request *req )
1306 fprintf( stderr, " handle=%p,", req->handle );
1307 fprintf( stderr, " mode=%d", req->mode );
1310 static void dump_set_console_input_info_request( const struct set_console_input_info_request *req )
1312 fprintf( stderr, " handle=%p,", req->handle );
1313 fprintf( stderr, " mask=%d,", req->mask );
1314 fprintf( stderr, " active_sb=%p,", req->active_sb );
1315 fprintf( stderr, " history_mode=%d,", req->history_mode );
1316 fprintf( stderr, " history_size=%d,", req->history_size );
1317 fprintf( stderr, " edition_mode=%d,", req->edition_mode );
1318 fprintf( stderr, " title=" );
1319 dump_varargs_unicode_str( cur_size );
1322 static void dump_get_console_input_info_request( const struct get_console_input_info_request *req )
1324 fprintf( stderr, " handle=%p", req->handle );
1327 static void dump_get_console_input_info_reply( const struct get_console_input_info_reply *req )
1329 fprintf( stderr, " history_mode=%d,", req->history_mode );
1330 fprintf( stderr, " history_size=%d,", req->history_size );
1331 fprintf( stderr, " history_index=%d,", req->history_index );
1332 fprintf( stderr, " edition_mode=%d,", req->edition_mode );
1333 fprintf( stderr, " title=" );
1334 dump_varargs_unicode_str( cur_size );
1337 static void dump_append_console_input_history_request( const struct append_console_input_history_request *req )
1339 fprintf( stderr, " handle=%p,", req->handle );
1340 fprintf( stderr, " line=" );
1341 dump_varargs_unicode_str( cur_size );
1344 static void dump_get_console_input_history_request( const struct get_console_input_history_request *req )
1346 fprintf( stderr, " handle=%p,", req->handle );
1347 fprintf( stderr, " index=%d", req->index );
1350 static void dump_get_console_input_history_reply( const struct get_console_input_history_reply *req )
1352 fprintf( stderr, " total=%d,", req->total );
1353 fprintf( stderr, " line=" );
1354 dump_varargs_unicode_str( cur_size );
1357 static void dump_create_console_output_request( const struct create_console_output_request *req )
1359 fprintf( stderr, " handle_in=%p,", req->handle_in );
1360 fprintf( stderr, " access=%08x,", req->access );
1361 fprintf( stderr, " attributes=%08x,", req->attributes );
1362 fprintf( stderr, " share=%08x", req->share );
1365 static void dump_create_console_output_reply( const struct create_console_output_reply *req )
1367 fprintf( stderr, " handle_out=%p", req->handle_out );
1370 static void dump_set_console_output_info_request( const struct set_console_output_info_request *req )
1372 fprintf( stderr, " handle=%p,", req->handle );
1373 fprintf( stderr, " mask=%d,", req->mask );
1374 fprintf( stderr, " cursor_size=%d,", req->cursor_size );
1375 fprintf( stderr, " cursor_visible=%d,", req->cursor_visible );
1376 fprintf( stderr, " cursor_x=%d,", req->cursor_x );
1377 fprintf( stderr, " cursor_y=%d,", req->cursor_y );
1378 fprintf( stderr, " width=%d,", req->width );
1379 fprintf( stderr, " height=%d,", req->height );
1380 fprintf( stderr, " attr=%d,", req->attr );
1381 fprintf( stderr, " win_left=%d,", req->win_left );
1382 fprintf( stderr, " win_top=%d,", req->win_top );
1383 fprintf( stderr, " win_right=%d,", req->win_right );
1384 fprintf( stderr, " win_bottom=%d,", req->win_bottom );
1385 fprintf( stderr, " max_width=%d,", req->max_width );
1386 fprintf( stderr, " max_height=%d", req->max_height );
1389 static void dump_get_console_output_info_request( const struct get_console_output_info_request *req )
1391 fprintf( stderr, " handle=%p", req->handle );
1394 static void dump_get_console_output_info_reply( const struct get_console_output_info_reply *req )
1396 fprintf( stderr, " cursor_size=%d,", req->cursor_size );
1397 fprintf( stderr, " cursor_visible=%d,", req->cursor_visible );
1398 fprintf( stderr, " cursor_x=%d,", req->cursor_x );
1399 fprintf( stderr, " cursor_y=%d,", req->cursor_y );
1400 fprintf( stderr, " width=%d,", req->width );
1401 fprintf( stderr, " height=%d,", req->height );
1402 fprintf( stderr, " attr=%d,", req->attr );
1403 fprintf( stderr, " win_left=%d,", req->win_left );
1404 fprintf( stderr, " win_top=%d,", req->win_top );
1405 fprintf( stderr, " win_right=%d,", req->win_right );
1406 fprintf( stderr, " win_bottom=%d,", req->win_bottom );
1407 fprintf( stderr, " max_width=%d,", req->max_width );
1408 fprintf( stderr, " max_height=%d", req->max_height );
1411 static void dump_write_console_input_request( const struct write_console_input_request *req )
1413 fprintf( stderr, " handle=%p,", req->handle );
1414 fprintf( stderr, " rec=" );
1415 dump_varargs_input_records( cur_size );
1418 static void dump_write_console_input_reply( const struct write_console_input_reply *req )
1420 fprintf( stderr, " written=%d", req->written );
1423 static void dump_read_console_input_request( const struct read_console_input_request *req )
1425 fprintf( stderr, " handle=%p,", req->handle );
1426 fprintf( stderr, " flush=%d", req->flush );
1429 static void dump_read_console_input_reply( const struct read_console_input_reply *req )
1431 fprintf( stderr, " read=%d,", req->read );
1432 fprintf( stderr, " rec=" );
1433 dump_varargs_input_records( cur_size );
1436 static void dump_write_console_output_request( const struct write_console_output_request *req )
1438 fprintf( stderr, " handle=%p,", req->handle );
1439 fprintf( stderr, " x=%d,", req->x );
1440 fprintf( stderr, " y=%d,", req->y );
1441 fprintf( stderr, " mode=%d,", req->mode );
1442 fprintf( stderr, " wrap=%d,", req->wrap );
1443 fprintf( stderr, " data=" );
1444 dump_varargs_bytes( cur_size );
1447 static void dump_write_console_output_reply( const struct write_console_output_reply *req )
1449 fprintf( stderr, " written=%d,", req->written );
1450 fprintf( stderr, " width=%d,", req->width );
1451 fprintf( stderr, " height=%d", req->height );
1454 static void dump_fill_console_output_request( const struct fill_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, " count=%d,", req->count );
1461 fprintf( stderr, " wrap=%d,", req->wrap );
1462 fprintf( stderr, " data=" );
1463 dump_char_info( &req->data );
1466 static void dump_fill_console_output_reply( const struct fill_console_output_reply *req )
1468 fprintf( stderr, " written=%d", req->written );
1471 static void dump_read_console_output_request( const struct read_console_output_request *req )
1473 fprintf( stderr, " handle=%p,", req->handle );
1474 fprintf( stderr, " x=%d,", req->x );
1475 fprintf( stderr, " y=%d,", req->y );
1476 fprintf( stderr, " mode=%d,", req->mode );
1477 fprintf( stderr, " wrap=%d", req->wrap );
1480 static void dump_read_console_output_reply( const struct read_console_output_reply *req )
1482 fprintf( stderr, " width=%d,", req->width );
1483 fprintf( stderr, " height=%d,", req->height );
1484 fprintf( stderr, " data=" );
1485 dump_varargs_bytes( cur_size );
1488 static void dump_move_console_output_request( const struct move_console_output_request *req )
1490 fprintf( stderr, " handle=%p,", req->handle );
1491 fprintf( stderr, " x_src=%d,", req->x_src );
1492 fprintf( stderr, " y_src=%d,", req->y_src );
1493 fprintf( stderr, " x_dst=%d,", req->x_dst );
1494 fprintf( stderr, " y_dst=%d,", req->y_dst );
1495 fprintf( stderr, " w=%d,", req->w );
1496 fprintf( stderr, " h=%d", req->h );
1499 static void dump_send_console_signal_request( const struct send_console_signal_request *req )
1501 fprintf( stderr, " signal=%d,", req->signal );
1502 fprintf( stderr, " group_id=%04x", req->group_id );
1505 static void dump_read_directory_changes_request( const struct read_directory_changes_request *req )
1507 fprintf( stderr, " filter=%08x,", req->filter );
1508 fprintf( stderr, " handle=%p,", req->handle );
1509 fprintf( stderr, " event=%p,", req->event );
1510 fprintf( stderr, " subtree=%d,", req->subtree );
1511 fprintf( stderr, " want_data=%d,", req->want_data );
1512 fprintf( stderr, " io_apc=%p,", req->io_apc );
1513 fprintf( stderr, " io_sb=%p,", req->io_sb );
1514 fprintf( stderr, " io_user=%p", req->io_user );
1517 static void dump_read_change_request( const struct read_change_request *req )
1519 fprintf( stderr, " handle=%p", req->handle );
1522 static void dump_read_change_reply( const struct read_change_reply *req )
1524 fprintf( stderr, " action=%d,", req->action );
1525 fprintf( stderr, " name=" );
1526 dump_varargs_string( cur_size );
1529 static void dump_create_mapping_request( const struct create_mapping_request *req )
1531 fprintf( stderr, " access=%08x,", req->access );
1532 fprintf( stderr, " attributes=%08x,", req->attributes );
1533 fprintf( stderr, " rootdir=%p,", req->rootdir );
1534 fprintf( stderr, " size_high=%d,", req->size_high );
1535 fprintf( stderr, " size_low=%d,", req->size_low );
1536 fprintf( stderr, " protect=%d,", req->protect );
1537 fprintf( stderr, " file_handle=%p,", req->file_handle );
1538 fprintf( stderr, " name=" );
1539 dump_varargs_unicode_str( cur_size );
1542 static void dump_create_mapping_reply( const struct create_mapping_reply *req )
1544 fprintf( stderr, " handle=%p", req->handle );
1547 static void dump_open_mapping_request( const struct open_mapping_request *req )
1549 fprintf( stderr, " access=%08x,", req->access );
1550 fprintf( stderr, " attributes=%08x,", req->attributes );
1551 fprintf( stderr, " rootdir=%p,", req->rootdir );
1552 fprintf( stderr, " name=" );
1553 dump_varargs_unicode_str( cur_size );
1556 static void dump_open_mapping_reply( const struct open_mapping_reply *req )
1558 fprintf( stderr, " handle=%p", req->handle );
1561 static void dump_get_mapping_info_request( const struct get_mapping_info_request *req )
1563 fprintf( stderr, " handle=%p", req->handle );
1566 static void dump_get_mapping_info_reply( const struct get_mapping_info_reply *req )
1568 fprintf( stderr, " size_high=%d,", req->size_high );
1569 fprintf( stderr, " size_low=%d,", req->size_low );
1570 fprintf( stderr, " protect=%d,", req->protect );
1571 fprintf( stderr, " header_size=%d,", req->header_size );
1572 fprintf( stderr, " base=%p,", req->base );
1573 fprintf( stderr, " shared_file=%p,", req->shared_file );
1574 fprintf( stderr, " shared_size=%d", req->shared_size );
1577 static void dump_create_snapshot_request( const struct create_snapshot_request *req )
1579 fprintf( stderr, " attributes=%08x,", req->attributes );
1580 fprintf( stderr, " flags=%d,", req->flags );
1581 fprintf( stderr, " pid=%04x", req->pid );
1584 static void dump_create_snapshot_reply( const struct create_snapshot_reply *req )
1586 fprintf( stderr, " handle=%p", req->handle );
1589 static void dump_next_process_request( const struct next_process_request *req )
1591 fprintf( stderr, " handle=%p,", req->handle );
1592 fprintf( stderr, " reset=%d", req->reset );
1595 static void dump_next_process_reply( const struct next_process_reply *req )
1597 fprintf( stderr, " count=%d,", req->count );
1598 fprintf( stderr, " pid=%04x,", req->pid );
1599 fprintf( stderr, " ppid=%04x,", req->ppid );
1600 fprintf( stderr, " heap=%p,", req->heap );
1601 fprintf( stderr, " module=%p,", req->module );
1602 fprintf( stderr, " threads=%d,", req->threads );
1603 fprintf( stderr, " priority=%d,", req->priority );
1604 fprintf( stderr, " handles=%d,", req->handles );
1605 fprintf( stderr, " filename=" );
1606 dump_varargs_unicode_str( cur_size );
1609 static void dump_next_thread_request( const struct next_thread_request *req )
1611 fprintf( stderr, " handle=%p,", req->handle );
1612 fprintf( stderr, " reset=%d", req->reset );
1615 static void dump_next_thread_reply( const struct next_thread_reply *req )
1617 fprintf( stderr, " count=%d,", req->count );
1618 fprintf( stderr, " pid=%04x,", req->pid );
1619 fprintf( stderr, " tid=%04x,", req->tid );
1620 fprintf( stderr, " base_pri=%d,", req->base_pri );
1621 fprintf( stderr, " delta_pri=%d", req->delta_pri );
1624 static void dump_next_module_request( const struct next_module_request *req )
1626 fprintf( stderr, " handle=%p,", req->handle );
1627 fprintf( stderr, " reset=%d", req->reset );
1630 static void dump_next_module_reply( const struct next_module_reply *req )
1632 fprintf( stderr, " pid=%04x,", req->pid );
1633 fprintf( stderr, " base=%p,", req->base );
1634 fprintf( stderr, " size=%lu,", (unsigned long)req->size );
1635 fprintf( stderr, " filename=" );
1636 dump_varargs_unicode_str( cur_size );
1639 static void dump_wait_debug_event_request( const struct wait_debug_event_request *req )
1641 fprintf( stderr, " get_handle=%d", req->get_handle );
1644 static void dump_wait_debug_event_reply( const struct wait_debug_event_reply *req )
1646 fprintf( stderr, " pid=%04x,", req->pid );
1647 fprintf( stderr, " tid=%04x,", req->tid );
1648 fprintf( stderr, " wait=%p,", req->wait );
1649 fprintf( stderr, " event=" );
1650 dump_varargs_debug_event( cur_size );
1653 static void dump_queue_exception_event_request( const struct queue_exception_event_request *req )
1655 fprintf( stderr, " first=%d,", req->first );
1656 fprintf( stderr, " record=" );
1657 dump_varargs_exc_event( cur_size );
1660 static void dump_queue_exception_event_reply( const struct queue_exception_event_reply *req )
1662 fprintf( stderr, " handle=%p", req->handle );
1665 static void dump_get_exception_status_request( const struct get_exception_status_request *req )
1667 fprintf( stderr, " handle=%p", req->handle );
1670 static void dump_get_exception_status_reply( const struct get_exception_status_reply *req )
1672 fprintf( stderr, " context=" );
1673 dump_varargs_context( cur_size );
1676 static void dump_output_debug_string_request( const struct output_debug_string_request *req )
1678 fprintf( stderr, " string=%p,", req->string );
1679 fprintf( stderr, " unicode=%d,", req->unicode );
1680 fprintf( stderr, " length=%d", req->length );
1683 static void dump_continue_debug_event_request( const struct continue_debug_event_request *req )
1685 fprintf( stderr, " pid=%04x,", req->pid );
1686 fprintf( stderr, " tid=%04x,", req->tid );
1687 fprintf( stderr, " status=%d", req->status );
1690 static void dump_debug_process_request( const struct debug_process_request *req )
1692 fprintf( stderr, " pid=%04x,", req->pid );
1693 fprintf( stderr, " attach=%d", req->attach );
1696 static void dump_debug_break_request( const struct debug_break_request *req )
1698 fprintf( stderr, " handle=%p", req->handle );
1701 static void dump_debug_break_reply( const struct debug_break_reply *req )
1703 fprintf( stderr, " self=%d", req->self );
1706 static void dump_set_debugger_kill_on_exit_request( const struct set_debugger_kill_on_exit_request *req )
1708 fprintf( stderr, " kill_on_exit=%d", req->kill_on_exit );
1711 static void dump_read_process_memory_request( const struct read_process_memory_request *req )
1713 fprintf( stderr, " handle=%p,", req->handle );
1714 fprintf( stderr, " addr=%p", req->addr );
1717 static void dump_read_process_memory_reply( const struct read_process_memory_reply *req )
1719 fprintf( stderr, " data=" );
1720 dump_varargs_bytes( cur_size );
1723 static void dump_write_process_memory_request( const struct write_process_memory_request *req )
1725 fprintf( stderr, " handle=%p,", req->handle );
1726 fprintf( stderr, " addr=%p,", req->addr );
1727 fprintf( stderr, " data=" );
1728 dump_varargs_bytes( cur_size );
1731 static void dump_create_key_request( const struct create_key_request *req )
1733 fprintf( stderr, " parent=%p,", req->parent );
1734 fprintf( stderr, " access=%08x,", req->access );
1735 fprintf( stderr, " attributes=%08x,", req->attributes );
1736 fprintf( stderr, " options=%08x,", req->options );
1737 fprintf( stderr, " modif=%ld,", (long)req->modif );
1738 fprintf( stderr, " namelen=%u,", req->namelen );
1739 fprintf( stderr, " name=" );
1740 dump_varargs_unicode_str( min(cur_size,req->namelen) );
1741 fputc( ',', stderr );
1742 fprintf( stderr, " class=" );
1743 dump_varargs_unicode_str( cur_size );
1746 static void dump_create_key_reply( const struct create_key_reply *req )
1748 fprintf( stderr, " hkey=%p,", req->hkey );
1749 fprintf( stderr, " created=%d", req->created );
1752 static void dump_open_key_request( const struct open_key_request *req )
1754 fprintf( stderr, " parent=%p,", req->parent );
1755 fprintf( stderr, " access=%08x,", req->access );
1756 fprintf( stderr, " attributes=%08x,", req->attributes );
1757 fprintf( stderr, " name=" );
1758 dump_varargs_unicode_str( cur_size );
1761 static void dump_open_key_reply( const struct open_key_reply *req )
1763 fprintf( stderr, " hkey=%p", req->hkey );
1766 static void dump_delete_key_request( const struct delete_key_request *req )
1768 fprintf( stderr, " hkey=%p", req->hkey );
1771 static void dump_flush_key_request( const struct flush_key_request *req )
1773 fprintf( stderr, " hkey=%p", req->hkey );
1776 static void dump_enum_key_request( const struct enum_key_request *req )
1778 fprintf( stderr, " hkey=%p,", req->hkey );
1779 fprintf( stderr, " index=%d,", req->index );
1780 fprintf( stderr, " info_class=%d", req->info_class );
1783 static void dump_enum_key_reply( const struct enum_key_reply *req )
1785 fprintf( stderr, " subkeys=%d,", req->subkeys );
1786 fprintf( stderr, " max_subkey=%d,", req->max_subkey );
1787 fprintf( stderr, " max_class=%d,", req->max_class );
1788 fprintf( stderr, " values=%d,", req->values );
1789 fprintf( stderr, " max_value=%d,", req->max_value );
1790 fprintf( stderr, " max_data=%d,", req->max_data );
1791 fprintf( stderr, " modif=%ld,", (long)req->modif );
1792 fprintf( stderr, " total=%u,", req->total );
1793 fprintf( stderr, " namelen=%u,", req->namelen );
1794 fprintf( stderr, " name=" );
1795 dump_varargs_unicode_str( min(cur_size,req->namelen) );
1796 fputc( ',', stderr );
1797 fprintf( stderr, " class=" );
1798 dump_varargs_unicode_str( cur_size );
1801 static void dump_set_key_value_request( const struct set_key_value_request *req )
1803 fprintf( stderr, " hkey=%p,", req->hkey );
1804 fprintf( stderr, " type=%d,", req->type );
1805 fprintf( stderr, " namelen=%u,", req->namelen );
1806 fprintf( stderr, " name=" );
1807 dump_varargs_unicode_str( min(cur_size,req->namelen) );
1808 fputc( ',', stderr );
1809 fprintf( stderr, " data=" );
1810 dump_varargs_bytes( cur_size );
1813 static void dump_get_key_value_request( const struct get_key_value_request *req )
1815 fprintf( stderr, " hkey=%p,", req->hkey );
1816 fprintf( stderr, " name=" );
1817 dump_varargs_unicode_str( cur_size );
1820 static void dump_get_key_value_reply( const struct get_key_value_reply *req )
1822 fprintf( stderr, " type=%d,", req->type );
1823 fprintf( stderr, " total=%u,", req->total );
1824 fprintf( stderr, " data=" );
1825 dump_varargs_bytes( cur_size );
1828 static void dump_enum_key_value_request( const struct enum_key_value_request *req )
1830 fprintf( stderr, " hkey=%p,", req->hkey );
1831 fprintf( stderr, " index=%d,", req->index );
1832 fprintf( stderr, " info_class=%d", req->info_class );
1835 static void dump_enum_key_value_reply( const struct enum_key_value_reply *req )
1837 fprintf( stderr, " type=%d,", req->type );
1838 fprintf( stderr, " total=%u,", req->total );
1839 fprintf( stderr, " namelen=%u,", req->namelen );
1840 fprintf( stderr, " name=" );
1841 dump_varargs_unicode_str( min(cur_size,req->namelen) );
1842 fputc( ',', stderr );
1843 fprintf( stderr, " data=" );
1844 dump_varargs_bytes( cur_size );
1847 static void dump_delete_key_value_request( const struct delete_key_value_request *req )
1849 fprintf( stderr, " hkey=%p,", req->hkey );
1850 fprintf( stderr, " name=" );
1851 dump_varargs_unicode_str( cur_size );
1854 static void dump_load_registry_request( const struct load_registry_request *req )
1856 fprintf( stderr, " hkey=%p,", req->hkey );
1857 fprintf( stderr, " file=%p,", req->file );
1858 fprintf( stderr, " name=" );
1859 dump_varargs_unicode_str( cur_size );
1862 static void dump_unload_registry_request( const struct unload_registry_request *req )
1864 fprintf( stderr, " hkey=%p", req->hkey );
1867 static void dump_save_registry_request( const struct save_registry_request *req )
1869 fprintf( stderr, " hkey=%p,", req->hkey );
1870 fprintf( stderr, " file=%p", req->file );
1873 static void dump_set_registry_notification_request( const struct set_registry_notification_request *req )
1875 fprintf( stderr, " hkey=%p,", req->hkey );
1876 fprintf( stderr, " event=%p,", req->event );
1877 fprintf( stderr, " subtree=%d,", req->subtree );
1878 fprintf( stderr, " filter=%08x", req->filter );
1881 static void dump_create_timer_request( const struct create_timer_request *req )
1883 fprintf( stderr, " access=%08x,", req->access );
1884 fprintf( stderr, " attributes=%08x,", req->attributes );
1885 fprintf( stderr, " rootdir=%p,", req->rootdir );
1886 fprintf( stderr, " manual=%d,", req->manual );
1887 fprintf( stderr, " name=" );
1888 dump_varargs_unicode_str( cur_size );
1891 static void dump_create_timer_reply( const struct create_timer_reply *req )
1893 fprintf( stderr, " handle=%p", req->handle );
1896 static void dump_open_timer_request( const struct open_timer_request *req )
1898 fprintf( stderr, " access=%08x,", req->access );
1899 fprintf( stderr, " attributes=%08x,", req->attributes );
1900 fprintf( stderr, " rootdir=%p,", req->rootdir );
1901 fprintf( stderr, " name=" );
1902 dump_varargs_unicode_str( cur_size );
1905 static void dump_open_timer_reply( const struct open_timer_reply *req )
1907 fprintf( stderr, " handle=%p", req->handle );
1910 static void dump_set_timer_request( const struct set_timer_request *req )
1912 fprintf( stderr, " handle=%p,", req->handle );
1913 fprintf( stderr, " expire=" );
1914 dump_abs_time( &req->expire );
1915 fprintf( stderr, "," );
1916 fprintf( stderr, " period=%d,", req->period );
1917 fprintf( stderr, " callback=%p,", req->callback );
1918 fprintf( stderr, " arg=%p", req->arg );
1921 static void dump_set_timer_reply( const struct set_timer_reply *req )
1923 fprintf( stderr, " signaled=%d", req->signaled );
1926 static void dump_cancel_timer_request( const struct cancel_timer_request *req )
1928 fprintf( stderr, " handle=%p", req->handle );
1931 static void dump_cancel_timer_reply( const struct cancel_timer_reply *req )
1933 fprintf( stderr, " signaled=%d", req->signaled );
1936 static void dump_get_timer_info_request( const struct get_timer_info_request *req )
1938 fprintf( stderr, " handle=%p", req->handle );
1941 static void dump_get_timer_info_reply( const struct get_timer_info_reply *req )
1943 fprintf( stderr, " when=" );
1944 dump_abs_time( &req->when );
1945 fprintf( stderr, "," );
1946 fprintf( stderr, " signaled=%d", req->signaled );
1949 static void dump_get_thread_context_request( const struct get_thread_context_request *req )
1951 fprintf( stderr, " handle=%p,", req->handle );
1952 fprintf( stderr, " flags=%08x,", req->flags );
1953 fprintf( stderr, " suspend=%d", req->suspend );
1956 static void dump_get_thread_context_reply( const struct get_thread_context_reply *req )
1958 fprintf( stderr, " self=%d,", req->self );
1959 fprintf( stderr, " context=" );
1960 dump_varargs_context( cur_size );
1963 static void dump_set_thread_context_request( const struct set_thread_context_request *req )
1965 fprintf( stderr, " handle=%p,", req->handle );
1966 fprintf( stderr, " flags=%08x,", req->flags );
1967 fprintf( stderr, " suspend=%d,", req->suspend );
1968 fprintf( stderr, " context=" );
1969 dump_varargs_context( cur_size );
1972 static void dump_set_thread_context_reply( const struct set_thread_context_reply *req )
1974 fprintf( stderr, " self=%d", req->self );
1977 static void dump_get_selector_entry_request( const struct get_selector_entry_request *req )
1979 fprintf( stderr, " handle=%p,", req->handle );
1980 fprintf( stderr, " entry=%d", req->entry );
1983 static void dump_get_selector_entry_reply( const struct get_selector_entry_reply *req )
1985 fprintf( stderr, " base=%08x,", req->base );
1986 fprintf( stderr, " limit=%08x,", req->limit );
1987 fprintf( stderr, " flags=%02x", req->flags );
1990 static void dump_add_atom_request( const struct add_atom_request *req )
1992 fprintf( stderr, " table=%p,", req->table );
1993 fprintf( stderr, " name=" );
1994 dump_varargs_unicode_str( cur_size );
1997 static void dump_add_atom_reply( const struct add_atom_reply *req )
1999 fprintf( stderr, " atom=%04x", req->atom );
2002 static void dump_delete_atom_request( const struct delete_atom_request *req )
2004 fprintf( stderr, " table=%p,", req->table );
2005 fprintf( stderr, " atom=%04x", req->atom );
2008 static void dump_find_atom_request( const struct find_atom_request *req )
2010 fprintf( stderr, " table=%p,", req->table );
2011 fprintf( stderr, " name=" );
2012 dump_varargs_unicode_str( cur_size );
2015 static void dump_find_atom_reply( const struct find_atom_reply *req )
2017 fprintf( stderr, " atom=%04x", req->atom );
2020 static void dump_get_atom_information_request( const struct get_atom_information_request *req )
2022 fprintf( stderr, " table=%p,", req->table );
2023 fprintf( stderr, " atom=%04x", req->atom );
2026 static void dump_get_atom_information_reply( const struct get_atom_information_reply *req )
2028 fprintf( stderr, " count=%d,", req->count );
2029 fprintf( stderr, " pinned=%d,", req->pinned );
2030 fprintf( stderr, " total=%u,", req->total );
2031 fprintf( stderr, " name=" );
2032 dump_varargs_unicode_str( cur_size );
2035 static void dump_set_atom_information_request( const struct set_atom_information_request *req )
2037 fprintf( stderr, " table=%p,", req->table );
2038 fprintf( stderr, " atom=%04x,", req->atom );
2039 fprintf( stderr, " pinned=%d", req->pinned );
2042 static void dump_empty_atom_table_request( const struct empty_atom_table_request *req )
2044 fprintf( stderr, " table=%p,", req->table );
2045 fprintf( stderr, " if_pinned=%d", req->if_pinned );
2048 static void dump_init_atom_table_request( const struct init_atom_table_request *req )
2050 fprintf( stderr, " entries=%d", req->entries );
2053 static void dump_init_atom_table_reply( const struct init_atom_table_reply *req )
2055 fprintf( stderr, " table=%p", req->table );
2058 static void dump_get_msg_queue_request( const struct get_msg_queue_request *req )
2062 static void dump_get_msg_queue_reply( const struct get_msg_queue_reply *req )
2064 fprintf( stderr, " handle=%p", req->handle );
2067 static void dump_set_queue_mask_request( const struct set_queue_mask_request *req )
2069 fprintf( stderr, " wake_mask=%08x,", req->wake_mask );
2070 fprintf( stderr, " changed_mask=%08x,", req->changed_mask );
2071 fprintf( stderr, " skip_wait=%d", req->skip_wait );
2074 static void dump_set_queue_mask_reply( const struct set_queue_mask_reply *req )
2076 fprintf( stderr, " wake_bits=%08x,", req->wake_bits );
2077 fprintf( stderr, " changed_bits=%08x", req->changed_bits );
2080 static void dump_get_queue_status_request( const struct get_queue_status_request *req )
2082 fprintf( stderr, " clear=%d", req->clear );
2085 static void dump_get_queue_status_reply( const struct get_queue_status_reply *req )
2087 fprintf( stderr, " wake_bits=%08x,", req->wake_bits );
2088 fprintf( stderr, " changed_bits=%08x", req->changed_bits );
2091 static void dump_get_process_idle_event_request( const struct get_process_idle_event_request *req )
2093 fprintf( stderr, " handle=%p", req->handle );
2096 static void dump_get_process_idle_event_reply( const struct get_process_idle_event_reply *req )
2098 fprintf( stderr, " event=%p", req->event );
2101 static void dump_send_message_request( const struct send_message_request *req )
2103 fprintf( stderr, " id=%04x,", req->id );
2104 fprintf( stderr, " type=%d,", req->type );
2105 fprintf( stderr, " flags=%d,", req->flags );
2106 fprintf( stderr, " win=%p,", req->win );
2107 fprintf( stderr, " msg=%08x,", req->msg );
2108 fprintf( stderr, " wparam=%lx,", req->wparam );
2109 fprintf( stderr, " lparam=%lx,", req->lparam );
2110 fprintf( stderr, " timeout=%d,", req->timeout );
2111 fprintf( stderr, " data=" );
2112 dump_varargs_message_data( cur_size );
2115 static void dump_post_quit_message_request( const struct post_quit_message_request *req )
2117 fprintf( stderr, " exit_code=%d", req->exit_code );
2120 static void dump_send_hardware_message_request( const struct send_hardware_message_request *req )
2122 fprintf( stderr, " id=%04x,", req->id );
2123 fprintf( stderr, " win=%p,", req->win );
2124 fprintf( stderr, " msg=%08x,", req->msg );
2125 fprintf( stderr, " time=%08x,", req->time );
2126 fprintf( stderr, " wparam=%lx,", req->wparam );
2127 fprintf( stderr, " lparam=%lx,", req->lparam );
2128 fprintf( stderr, " info=%lx,", req->info );
2129 fprintf( stderr, " x=%d,", req->x );
2130 fprintf( stderr, " y=%d", req->y );
2133 static void dump_get_message_request( const struct get_message_request *req )
2135 fprintf( stderr, " flags=%d,", req->flags );
2136 fprintf( stderr, " get_win=%p,", req->get_win );
2137 fprintf( stderr, " get_first=%08x,", req->get_first );
2138 fprintf( stderr, " get_last=%08x,", req->get_last );
2139 fprintf( stderr, " hw_id=%08x", req->hw_id );
2142 static void dump_get_message_reply( const struct get_message_reply *req )
2144 fprintf( stderr, " win=%p,", req->win );
2145 fprintf( stderr, " type=%d,", req->type );
2146 fprintf( stderr, " msg=%08x,", req->msg );
2147 fprintf( stderr, " wparam=%lx,", req->wparam );
2148 fprintf( stderr, " lparam=%lx,", req->lparam );
2149 fprintf( stderr, " info=%lx,", req->info );
2150 fprintf( stderr, " x=%d,", req->x );
2151 fprintf( stderr, " y=%d,", req->y );
2152 fprintf( stderr, " time=%08x,", req->time );
2153 fprintf( stderr, " hw_id=%08x,", req->hw_id );
2154 fprintf( stderr, " active_hooks=%08x,", req->active_hooks );
2155 fprintf( stderr, " total=%u,", req->total );
2156 fprintf( stderr, " data=" );
2157 dump_varargs_message_data( cur_size );
2160 static void dump_reply_message_request( const struct reply_message_request *req )
2162 fprintf( stderr, " result=%08x,", req->result );
2163 fprintf( stderr, " remove=%d,", req->remove );
2164 fprintf( stderr, " data=" );
2165 dump_varargs_bytes( cur_size );
2168 static void dump_accept_hardware_message_request( const struct accept_hardware_message_request *req )
2170 fprintf( stderr, " hw_id=%08x,", req->hw_id );
2171 fprintf( stderr, " remove=%d,", req->remove );
2172 fprintf( stderr, " new_win=%p", req->new_win );
2175 static void dump_get_message_reply_request( const struct get_message_reply_request *req )
2177 fprintf( stderr, " cancel=%d", req->cancel );
2180 static void dump_get_message_reply_reply( const struct get_message_reply_reply *req )
2182 fprintf( stderr, " result=%08x,", req->result );
2183 fprintf( stderr, " data=" );
2184 dump_varargs_bytes( cur_size );
2187 static void dump_set_win_timer_request( const struct set_win_timer_request *req )
2189 fprintf( stderr, " win=%p,", req->win );
2190 fprintf( stderr, " msg=%08x,", req->msg );
2191 fprintf( stderr, " rate=%08x,", req->rate );
2192 fprintf( stderr, " id=%lx,", req->id );
2193 fprintf( stderr, " lparam=%lx", req->lparam );
2196 static void dump_set_win_timer_reply( const struct set_win_timer_reply *req )
2198 fprintf( stderr, " id=%lx", req->id );
2201 static void dump_kill_win_timer_request( const struct kill_win_timer_request *req )
2203 fprintf( stderr, " win=%p,", req->win );
2204 fprintf( stderr, " msg=%08x,", req->msg );
2205 fprintf( stderr, " id=%lx", req->id );
2208 static void dump_get_serial_info_request( const struct get_serial_info_request *req )
2210 fprintf( stderr, " handle=%p", req->handle );
2213 static void dump_get_serial_info_reply( const struct get_serial_info_reply *req )
2215 fprintf( stderr, " readinterval=%08x,", req->readinterval );
2216 fprintf( stderr, " readconst=%08x,", req->readconst );
2217 fprintf( stderr, " readmult=%08x,", req->readmult );
2218 fprintf( stderr, " writeconst=%08x,", req->writeconst );
2219 fprintf( stderr, " writemult=%08x,", req->writemult );
2220 fprintf( stderr, " eventmask=%08x", req->eventmask );
2223 static void dump_set_serial_info_request( const struct set_serial_info_request *req )
2225 fprintf( stderr, " handle=%p,", req->handle );
2226 fprintf( stderr, " flags=%d,", req->flags );
2227 fprintf( stderr, " readinterval=%08x,", req->readinterval );
2228 fprintf( stderr, " readconst=%08x,", req->readconst );
2229 fprintf( stderr, " readmult=%08x,", req->readmult );
2230 fprintf( stderr, " writeconst=%08x,", req->writeconst );
2231 fprintf( stderr, " writemult=%08x,", req->writemult );
2232 fprintf( stderr, " eventmask=%08x", req->eventmask );
2235 static void dump_register_async_request( const struct register_async_request *req )
2237 fprintf( stderr, " handle=%p,", req->handle );
2238 fprintf( stderr, " type=%d,", req->type );
2239 fprintf( stderr, " io_apc=%p,", req->io_apc );
2240 fprintf( stderr, " io_sb=%p,", req->io_sb );
2241 fprintf( stderr, " io_user=%p,", req->io_user );
2242 fprintf( stderr, " count=%d", req->count );
2245 static void dump_cancel_async_request( const struct cancel_async_request *req )
2247 fprintf( stderr, " handle=%p", req->handle );
2250 static void dump_create_named_pipe_request( const struct create_named_pipe_request *req )
2252 fprintf( stderr, " access=%08x,", req->access );
2253 fprintf( stderr, " attributes=%08x,", req->attributes );
2254 fprintf( stderr, " rootdir=%p,", req->rootdir );
2255 fprintf( stderr, " options=%08x,", req->options );
2256 fprintf( stderr, " flags=%08x,", req->flags );
2257 fprintf( stderr, " maxinstances=%08x,", req->maxinstances );
2258 fprintf( stderr, " outsize=%08x,", req->outsize );
2259 fprintf( stderr, " insize=%08x,", req->insize );
2260 fprintf( stderr, " timeout=%08x,", req->timeout );
2261 fprintf( stderr, " name=" );
2262 dump_varargs_unicode_str( cur_size );
2265 static void dump_create_named_pipe_reply( const struct create_named_pipe_reply *req )
2267 fprintf( stderr, " handle=%p", req->handle );
2270 static void dump_open_named_pipe_request( const struct open_named_pipe_request *req )
2272 fprintf( stderr, " access=%08x,", req->access );
2273 fprintf( stderr, " attributes=%08x,", req->attributes );
2274 fprintf( stderr, " rootdir=%p,", req->rootdir );
2275 fprintf( stderr, " flags=%08x,", req->flags );
2276 fprintf( stderr, " name=" );
2277 dump_varargs_unicode_str( cur_size );
2280 static void dump_open_named_pipe_reply( const struct open_named_pipe_reply *req )
2282 fprintf( stderr, " handle=%p", req->handle );
2285 static void dump_connect_named_pipe_request( const struct connect_named_pipe_request *req )
2287 fprintf( stderr, " handle=%p,", req->handle );
2288 fprintf( stderr, " event=%p,", req->event );
2289 fprintf( stderr, " func=%p", req->func );
2292 static void dump_wait_named_pipe_request( const struct wait_named_pipe_request *req )
2294 fprintf( stderr, " handle=%p,", req->handle );
2295 fprintf( stderr, " timeout=%08x,", req->timeout );
2296 fprintf( stderr, " event=%p,", req->event );
2297 fprintf( stderr, " func=%p,", req->func );
2298 fprintf( stderr, " name=" );
2299 dump_varargs_unicode_str( cur_size );
2302 static void dump_disconnect_named_pipe_request( const struct disconnect_named_pipe_request *req )
2304 fprintf( stderr, " handle=%p", req->handle );
2307 static void dump_get_named_pipe_info_request( const struct get_named_pipe_info_request *req )
2309 fprintf( stderr, " handle=%p", req->handle );
2312 static void dump_get_named_pipe_info_reply( const struct get_named_pipe_info_reply *req )
2314 fprintf( stderr, " flags=%08x,", req->flags );
2315 fprintf( stderr, " maxinstances=%08x,", req->maxinstances );
2316 fprintf( stderr, " instances=%08x,", req->instances );
2317 fprintf( stderr, " outsize=%08x,", req->outsize );
2318 fprintf( stderr, " insize=%08x", req->insize );
2321 static void dump_create_window_request( const struct create_window_request *req )
2323 fprintf( stderr, " parent=%p,", req->parent );
2324 fprintf( stderr, " owner=%p,", req->owner );
2325 fprintf( stderr, " atom=%04x,", req->atom );
2326 fprintf( stderr, " instance=%p", req->instance );
2329 static void dump_create_window_reply( const struct create_window_reply *req )
2331 fprintf( stderr, " handle=%p,", req->handle );
2332 fprintf( stderr, " parent=%p,", req->parent );
2333 fprintf( stderr, " owner=%p,", req->owner );
2334 fprintf( stderr, " extra=%d,", req->extra );
2335 fprintf( stderr, " class_ptr=%p", req->class_ptr );
2338 static void dump_destroy_window_request( const struct destroy_window_request *req )
2340 fprintf( stderr, " handle=%p", req->handle );
2343 static void dump_get_desktop_window_request( const struct get_desktop_window_request *req )
2345 fprintf( stderr, " force=%d", req->force );
2348 static void dump_get_desktop_window_reply( const struct get_desktop_window_reply *req )
2350 fprintf( stderr, " handle=%p", req->handle );
2353 static void dump_set_window_owner_request( const struct set_window_owner_request *req )
2355 fprintf( stderr, " handle=%p,", req->handle );
2356 fprintf( stderr, " owner=%p", req->owner );
2359 static void dump_set_window_owner_reply( const struct set_window_owner_reply *req )
2361 fprintf( stderr, " full_owner=%p,", req->full_owner );
2362 fprintf( stderr, " prev_owner=%p", req->prev_owner );
2365 static void dump_get_window_info_request( const struct get_window_info_request *req )
2367 fprintf( stderr, " handle=%p", req->handle );
2370 static void dump_get_window_info_reply( const struct get_window_info_reply *req )
2372 fprintf( stderr, " full_handle=%p,", req->full_handle );
2373 fprintf( stderr, " last_active=%p,", req->last_active );
2374 fprintf( stderr, " pid=%04x,", req->pid );
2375 fprintf( stderr, " tid=%04x,", req->tid );
2376 fprintf( stderr, " atom=%04x,", req->atom );
2377 fprintf( stderr, " is_unicode=%d", req->is_unicode );
2380 static void dump_set_window_info_request( const struct set_window_info_request *req )
2382 fprintf( stderr, " flags=%08x,", req->flags );
2383 fprintf( stderr, " handle=%p,", req->handle );
2384 fprintf( stderr, " style=%08x,", req->style );
2385 fprintf( stderr, " ex_style=%08x,", req->ex_style );
2386 fprintf( stderr, " id=%08x,", req->id );
2387 fprintf( stderr, " is_unicode=%d,", req->is_unicode );
2388 fprintf( stderr, " instance=%p,", req->instance );
2389 fprintf( stderr, " user_data=%lx,", req->user_data );
2390 fprintf( stderr, " extra_offset=%d,", req->extra_offset );
2391 fprintf( stderr, " extra_size=%u,", req->extra_size );
2392 fprintf( stderr, " extra_value=%lx", req->extra_value );
2395 static void dump_set_window_info_reply( const struct set_window_info_reply *req )
2397 fprintf( stderr, " old_style=%08x,", req->old_style );
2398 fprintf( stderr, " old_ex_style=%08x,", req->old_ex_style );
2399 fprintf( stderr, " old_id=%08x,", req->old_id );
2400 fprintf( stderr, " old_instance=%p,", req->old_instance );
2401 fprintf( stderr, " old_user_data=%lx,", req->old_user_data );
2402 fprintf( stderr, " old_extra_value=%lx", req->old_extra_value );
2405 static void dump_set_parent_request( const struct set_parent_request *req )
2407 fprintf( stderr, " handle=%p,", req->handle );
2408 fprintf( stderr, " parent=%p", req->parent );
2411 static void dump_set_parent_reply( const struct set_parent_reply *req )
2413 fprintf( stderr, " old_parent=%p,", req->old_parent );
2414 fprintf( stderr, " full_parent=%p", req->full_parent );
2417 static void dump_get_window_parents_request( const struct get_window_parents_request *req )
2419 fprintf( stderr, " handle=%p", req->handle );
2422 static void dump_get_window_parents_reply( const struct get_window_parents_reply *req )
2424 fprintf( stderr, " count=%d,", req->count );
2425 fprintf( stderr, " parents=" );
2426 dump_varargs_user_handles( cur_size );
2429 static void dump_get_window_children_request( const struct get_window_children_request *req )
2431 fprintf( stderr, " parent=%p,", req->parent );
2432 fprintf( stderr, " atom=%04x,", req->atom );
2433 fprintf( stderr, " tid=%04x", req->tid );
2436 static void dump_get_window_children_reply( const struct get_window_children_reply *req )
2438 fprintf( stderr, " count=%d,", req->count );
2439 fprintf( stderr, " children=" );
2440 dump_varargs_user_handles( cur_size );
2443 static void dump_get_window_children_from_point_request( const struct get_window_children_from_point_request *req )
2445 fprintf( stderr, " parent=%p,", req->parent );
2446 fprintf( stderr, " x=%d,", req->x );
2447 fprintf( stderr, " y=%d", req->y );
2450 static void dump_get_window_children_from_point_reply( const struct get_window_children_from_point_reply *req )
2452 fprintf( stderr, " count=%d,", req->count );
2453 fprintf( stderr, " children=" );
2454 dump_varargs_user_handles( cur_size );
2457 static void dump_get_window_tree_request( const struct get_window_tree_request *req )
2459 fprintf( stderr, " handle=%p", req->handle );
2462 static void dump_get_window_tree_reply( const struct get_window_tree_reply *req )
2464 fprintf( stderr, " parent=%p,", req->parent );
2465 fprintf( stderr, " owner=%p,", req->owner );
2466 fprintf( stderr, " next_sibling=%p,", req->next_sibling );
2467 fprintf( stderr, " prev_sibling=%p,", req->prev_sibling );
2468 fprintf( stderr, " first_sibling=%p,", req->first_sibling );
2469 fprintf( stderr, " last_sibling=%p,", req->last_sibling );
2470 fprintf( stderr, " first_child=%p,", req->first_child );
2471 fprintf( stderr, " last_child=%p", req->last_child );
2474 static void dump_set_window_pos_request( const struct set_window_pos_request *req )
2476 fprintf( stderr, " flags=%08x,", req->flags );
2477 fprintf( stderr, " handle=%p,", req->handle );
2478 fprintf( stderr, " previous=%p,", req->previous );
2479 fprintf( stderr, " window=" );
2480 dump_rectangle( &req->window );
2481 fprintf( stderr, "," );
2482 fprintf( stderr, " client=" );
2483 dump_rectangle( &req->client );
2484 fprintf( stderr, "," );
2485 fprintf( stderr, " valid=" );
2486 dump_varargs_rectangles( cur_size );
2489 static void dump_set_window_pos_reply( const struct set_window_pos_reply *req )
2491 fprintf( stderr, " new_style=%08x", req->new_style );
2494 static void dump_get_window_rectangles_request( const struct get_window_rectangles_request *req )
2496 fprintf( stderr, " handle=%p", req->handle );
2499 static void dump_get_window_rectangles_reply( const struct get_window_rectangles_reply *req )
2501 fprintf( stderr, " window=" );
2502 dump_rectangle( &req->window );
2503 fprintf( stderr, "," );
2504 fprintf( stderr, " visible=" );
2505 dump_rectangle( &req->visible );
2506 fprintf( stderr, "," );
2507 fprintf( stderr, " client=" );
2508 dump_rectangle( &req->client );
2511 static void dump_get_window_text_request( const struct get_window_text_request *req )
2513 fprintf( stderr, " handle=%p", req->handle );
2516 static void dump_get_window_text_reply( const struct get_window_text_reply *req )
2518 fprintf( stderr, " text=" );
2519 dump_varargs_unicode_str( cur_size );
2522 static void dump_set_window_text_request( const struct set_window_text_request *req )
2524 fprintf( stderr, " handle=%p,", req->handle );
2525 fprintf( stderr, " text=" );
2526 dump_varargs_unicode_str( cur_size );
2529 static void dump_get_windows_offset_request( const struct get_windows_offset_request *req )
2531 fprintf( stderr, " from=%p,", req->from );
2532 fprintf( stderr, " to=%p", req->to );
2535 static void dump_get_windows_offset_reply( const struct get_windows_offset_reply *req )
2537 fprintf( stderr, " x=%d,", req->x );
2538 fprintf( stderr, " y=%d", req->y );
2541 static void dump_get_visible_region_request( const struct get_visible_region_request *req )
2543 fprintf( stderr, " window=%p,", req->window );
2544 fprintf( stderr, " flags=%08x", req->flags );
2547 static void dump_get_visible_region_reply( const struct get_visible_region_reply *req )
2549 fprintf( stderr, " top_win=%p,", req->top_win );
2550 fprintf( stderr, " top_rect=" );
2551 dump_rectangle( &req->top_rect );
2552 fprintf( stderr, "," );
2553 fprintf( stderr, " win_rect=" );
2554 dump_rectangle( &req->win_rect );
2555 fprintf( stderr, "," );
2556 fprintf( stderr, " total_size=%u,", req->total_size );
2557 fprintf( stderr, " region=" );
2558 dump_varargs_rectangles( cur_size );
2561 static void dump_get_window_region_request( const struct get_window_region_request *req )
2563 fprintf( stderr, " window=%p", req->window );
2566 static void dump_get_window_region_reply( const struct get_window_region_reply *req )
2568 fprintf( stderr, " total_size=%u,", req->total_size );
2569 fprintf( stderr, " region=" );
2570 dump_varargs_rectangles( cur_size );
2573 static void dump_set_window_region_request( const struct set_window_region_request *req )
2575 fprintf( stderr, " window=%p,", req->window );
2576 fprintf( stderr, " region=" );
2577 dump_varargs_rectangles( cur_size );
2580 static void dump_get_update_region_request( const struct get_update_region_request *req )
2582 fprintf( stderr, " window=%p,", req->window );
2583 fprintf( stderr, " from_child=%p,", req->from_child );
2584 fprintf( stderr, " flags=%08x", req->flags );
2587 static void dump_get_update_region_reply( const struct get_update_region_reply *req )
2589 fprintf( stderr, " child=%p,", req->child );
2590 fprintf( stderr, " flags=%08x,", req->flags );
2591 fprintf( stderr, " total_size=%u,", req->total_size );
2592 fprintf( stderr, " region=" );
2593 dump_varargs_rectangles( cur_size );
2596 static void dump_update_window_zorder_request( const struct update_window_zorder_request *req )
2598 fprintf( stderr, " window=%p,", req->window );
2599 fprintf( stderr, " rect=" );
2600 dump_rectangle( &req->rect );
2603 static void dump_redraw_window_request( const struct redraw_window_request *req )
2605 fprintf( stderr, " window=%p,", req->window );
2606 fprintf( stderr, " flags=%08x,", req->flags );
2607 fprintf( stderr, " region=" );
2608 dump_varargs_rectangles( cur_size );
2611 static void dump_set_window_property_request( const struct set_window_property_request *req )
2613 fprintf( stderr, " window=%p,", req->window );
2614 fprintf( stderr, " atom=%04x,", req->atom );
2615 fprintf( stderr, " handle=%p,", req->handle );
2616 fprintf( stderr, " name=" );
2617 dump_varargs_unicode_str( cur_size );
2620 static void dump_remove_window_property_request( const struct remove_window_property_request *req )
2622 fprintf( stderr, " window=%p,", req->window );
2623 fprintf( stderr, " atom=%04x,", req->atom );
2624 fprintf( stderr, " name=" );
2625 dump_varargs_unicode_str( cur_size );
2628 static void dump_remove_window_property_reply( const struct remove_window_property_reply *req )
2630 fprintf( stderr, " handle=%p", req->handle );
2633 static void dump_get_window_property_request( const struct get_window_property_request *req )
2635 fprintf( stderr, " window=%p,", req->window );
2636 fprintf( stderr, " atom=%04x,", req->atom );
2637 fprintf( stderr, " name=" );
2638 dump_varargs_unicode_str( cur_size );
2641 static void dump_get_window_property_reply( const struct get_window_property_reply *req )
2643 fprintf( stderr, " handle=%p", req->handle );
2646 static void dump_get_window_properties_request( const struct get_window_properties_request *req )
2648 fprintf( stderr, " window=%p", req->window );
2651 static void dump_get_window_properties_reply( const struct get_window_properties_reply *req )
2653 fprintf( stderr, " total=%d,", req->total );
2654 fprintf( stderr, " props=" );
2655 dump_varargs_properties( cur_size );
2658 static void dump_create_winstation_request( const struct create_winstation_request *req )
2660 fprintf( stderr, " flags=%08x,", req->flags );
2661 fprintf( stderr, " access=%08x,", req->access );
2662 fprintf( stderr, " attributes=%08x,", req->attributes );
2663 fprintf( stderr, " name=" );
2664 dump_varargs_unicode_str( cur_size );
2667 static void dump_create_winstation_reply( const struct create_winstation_reply *req )
2669 fprintf( stderr, " handle=%p", req->handle );
2672 static void dump_open_winstation_request( const struct open_winstation_request *req )
2674 fprintf( stderr, " access=%08x,", req->access );
2675 fprintf( stderr, " attributes=%08x,", req->attributes );
2676 fprintf( stderr, " name=" );
2677 dump_varargs_unicode_str( cur_size );
2680 static void dump_open_winstation_reply( const struct open_winstation_reply *req )
2682 fprintf( stderr, " handle=%p", req->handle );
2685 static void dump_close_winstation_request( const struct close_winstation_request *req )
2687 fprintf( stderr, " handle=%p", req->handle );
2690 static void dump_get_process_winstation_request( const struct get_process_winstation_request *req )
2694 static void dump_get_process_winstation_reply( const struct get_process_winstation_reply *req )
2696 fprintf( stderr, " handle=%p", req->handle );
2699 static void dump_set_process_winstation_request( const struct set_process_winstation_request *req )
2701 fprintf( stderr, " handle=%p", req->handle );
2704 static void dump_create_desktop_request( const struct create_desktop_request *req )
2706 fprintf( stderr, " flags=%08x,", req->flags );
2707 fprintf( stderr, " access=%08x,", req->access );
2708 fprintf( stderr, " attributes=%08x,", req->attributes );
2709 fprintf( stderr, " name=" );
2710 dump_varargs_unicode_str( cur_size );
2713 static void dump_create_desktop_reply( const struct create_desktop_reply *req )
2715 fprintf( stderr, " handle=%p", req->handle );
2718 static void dump_open_desktop_request( const struct open_desktop_request *req )
2720 fprintf( stderr, " flags=%08x,", req->flags );
2721 fprintf( stderr, " access=%08x,", req->access );
2722 fprintf( stderr, " attributes=%08x,", req->attributes );
2723 fprintf( stderr, " name=" );
2724 dump_varargs_unicode_str( cur_size );
2727 static void dump_open_desktop_reply( const struct open_desktop_reply *req )
2729 fprintf( stderr, " handle=%p", req->handle );
2732 static void dump_close_desktop_request( const struct close_desktop_request *req )
2734 fprintf( stderr, " handle=%p", req->handle );
2737 static void dump_get_thread_desktop_request( const struct get_thread_desktop_request *req )
2739 fprintf( stderr, " tid=%04x", req->tid );
2742 static void dump_get_thread_desktop_reply( const struct get_thread_desktop_reply *req )
2744 fprintf( stderr, " handle=%p", req->handle );
2747 static void dump_set_thread_desktop_request( const struct set_thread_desktop_request *req )
2749 fprintf( stderr, " handle=%p", req->handle );
2752 static void dump_set_user_object_info_request( const struct set_user_object_info_request *req )
2754 fprintf( stderr, " handle=%p,", req->handle );
2755 fprintf( stderr, " flags=%08x,", req->flags );
2756 fprintf( stderr, " obj_flags=%08x", req->obj_flags );
2759 static void dump_set_user_object_info_reply( const struct set_user_object_info_reply *req )
2761 fprintf( stderr, " is_desktop=%d,", req->is_desktop );
2762 fprintf( stderr, " old_obj_flags=%08x,", req->old_obj_flags );
2763 fprintf( stderr, " name=" );
2764 dump_varargs_unicode_str( cur_size );
2767 static void dump_attach_thread_input_request( const struct attach_thread_input_request *req )
2769 fprintf( stderr, " tid_from=%04x,", req->tid_from );
2770 fprintf( stderr, " tid_to=%04x,", req->tid_to );
2771 fprintf( stderr, " attach=%d", req->attach );
2774 static void dump_get_thread_input_request( const struct get_thread_input_request *req )
2776 fprintf( stderr, " tid=%04x", req->tid );
2779 static void dump_get_thread_input_reply( const struct get_thread_input_reply *req )
2781 fprintf( stderr, " focus=%p,", req->focus );
2782 fprintf( stderr, " capture=%p,", req->capture );
2783 fprintf( stderr, " active=%p,", req->active );
2784 fprintf( stderr, " foreground=%p,", req->foreground );
2785 fprintf( stderr, " menu_owner=%p,", req->menu_owner );
2786 fprintf( stderr, " move_size=%p,", req->move_size );
2787 fprintf( stderr, " caret=%p,", req->caret );
2788 fprintf( stderr, " rect=" );
2789 dump_rectangle( &req->rect );
2792 static void dump_get_last_input_time_request( const struct get_last_input_time_request *req )
2796 static void dump_get_last_input_time_reply( const struct get_last_input_time_reply *req )
2798 fprintf( stderr, " time=%08x", req->time );
2801 static void dump_get_key_state_request( const struct get_key_state_request *req )
2803 fprintf( stderr, " tid=%04x,", req->tid );
2804 fprintf( stderr, " key=%d", req->key );
2807 static void dump_get_key_state_reply( const struct get_key_state_reply *req )
2809 fprintf( stderr, " state=%02x,", req->state );
2810 fprintf( stderr, " keystate=" );
2811 dump_varargs_bytes( cur_size );
2814 static void dump_set_key_state_request( const struct set_key_state_request *req )
2816 fprintf( stderr, " tid=%04x,", req->tid );
2817 fprintf( stderr, " keystate=" );
2818 dump_varargs_bytes( cur_size );
2821 static void dump_set_foreground_window_request( const struct set_foreground_window_request *req )
2823 fprintf( stderr, " handle=%p", req->handle );
2826 static void dump_set_foreground_window_reply( const struct set_foreground_window_reply *req )
2828 fprintf( stderr, " previous=%p,", req->previous );
2829 fprintf( stderr, " send_msg_old=%d,", req->send_msg_old );
2830 fprintf( stderr, " send_msg_new=%d", req->send_msg_new );
2833 static void dump_set_focus_window_request( const struct set_focus_window_request *req )
2835 fprintf( stderr, " handle=%p", req->handle );
2838 static void dump_set_focus_window_reply( const struct set_focus_window_reply *req )
2840 fprintf( stderr, " previous=%p", req->previous );
2843 static void dump_set_active_window_request( const struct set_active_window_request *req )
2845 fprintf( stderr, " handle=%p", req->handle );
2848 static void dump_set_active_window_reply( const struct set_active_window_reply *req )
2850 fprintf( stderr, " previous=%p", req->previous );
2853 static void dump_set_capture_window_request( const struct set_capture_window_request *req )
2855 fprintf( stderr, " handle=%p,", req->handle );
2856 fprintf( stderr, " flags=%08x", req->flags );
2859 static void dump_set_capture_window_reply( const struct set_capture_window_reply *req )
2861 fprintf( stderr, " previous=%p,", req->previous );
2862 fprintf( stderr, " full_handle=%p", req->full_handle );
2865 static void dump_set_caret_window_request( const struct set_caret_window_request *req )
2867 fprintf( stderr, " handle=%p,", req->handle );
2868 fprintf( stderr, " width=%d,", req->width );
2869 fprintf( stderr, " height=%d", req->height );
2872 static void dump_set_caret_window_reply( const struct set_caret_window_reply *req )
2874 fprintf( stderr, " previous=%p,", req->previous );
2875 fprintf( stderr, " old_rect=" );
2876 dump_rectangle( &req->old_rect );
2877 fprintf( stderr, "," );
2878 fprintf( stderr, " old_hide=%d,", req->old_hide );
2879 fprintf( stderr, " old_state=%d", req->old_state );
2882 static void dump_set_caret_info_request( const struct set_caret_info_request *req )
2884 fprintf( stderr, " flags=%08x,", req->flags );
2885 fprintf( stderr, " handle=%p,", req->handle );
2886 fprintf( stderr, " x=%d,", req->x );
2887 fprintf( stderr, " y=%d,", req->y );
2888 fprintf( stderr, " hide=%d,", req->hide );
2889 fprintf( stderr, " state=%d", req->state );
2892 static void dump_set_caret_info_reply( const struct set_caret_info_reply *req )
2894 fprintf( stderr, " full_handle=%p,", req->full_handle );
2895 fprintf( stderr, " old_rect=" );
2896 dump_rectangle( &req->old_rect );
2897 fprintf( stderr, "," );
2898 fprintf( stderr, " old_hide=%d,", req->old_hide );
2899 fprintf( stderr, " old_state=%d", req->old_state );
2902 static void dump_set_hook_request( const struct set_hook_request *req )
2904 fprintf( stderr, " id=%d,", req->id );
2905 fprintf( stderr, " pid=%04x,", req->pid );
2906 fprintf( stderr, " tid=%04x,", req->tid );
2907 fprintf( stderr, " event_min=%d,", req->event_min );
2908 fprintf( stderr, " event_max=%d,", req->event_max );
2909 fprintf( stderr, " flags=%d,", req->flags );
2910 fprintf( stderr, " proc=%p,", req->proc );
2911 fprintf( stderr, " unicode=%d,", req->unicode );
2912 fprintf( stderr, " module=" );
2913 dump_varargs_unicode_str( cur_size );
2916 static void dump_set_hook_reply( const struct set_hook_reply *req )
2918 fprintf( stderr, " handle=%p,", req->handle );
2919 fprintf( stderr, " active_hooks=%08x", req->active_hooks );
2922 static void dump_remove_hook_request( const struct remove_hook_request *req )
2924 fprintf( stderr, " handle=%p,", req->handle );
2925 fprintf( stderr, " id=%d,", req->id );
2926 fprintf( stderr, " proc=%p", req->proc );
2929 static void dump_remove_hook_reply( const struct remove_hook_reply *req )
2931 fprintf( stderr, " active_hooks=%08x", req->active_hooks );
2934 static void dump_start_hook_chain_request( const struct start_hook_chain_request *req )
2936 fprintf( stderr, " id=%d,", req->id );
2937 fprintf( stderr, " event=%d,", req->event );
2938 fprintf( stderr, " window=%p,", req->window );
2939 fprintf( stderr, " object_id=%d,", req->object_id );
2940 fprintf( stderr, " child_id=%d", req->child_id );
2943 static void dump_start_hook_chain_reply( const struct start_hook_chain_reply *req )
2945 fprintf( stderr, " handle=%p,", req->handle );
2946 fprintf( stderr, " pid=%04x,", req->pid );
2947 fprintf( stderr, " tid=%04x,", req->tid );
2948 fprintf( stderr, " proc=%p,", req->proc );
2949 fprintf( stderr, " unicode=%d,", req->unicode );
2950 fprintf( stderr, " active_hooks=%08x,", req->active_hooks );
2951 fprintf( stderr, " module=" );
2952 dump_varargs_unicode_str( cur_size );
2955 static void dump_finish_hook_chain_request( const struct finish_hook_chain_request *req )
2957 fprintf( stderr, " id=%d", req->id );
2960 static void dump_get_hook_info_request( const struct get_hook_info_request *req )
2962 fprintf( stderr, " handle=%p,", req->handle );
2963 fprintf( stderr, " get_next=%d,", req->get_next );
2964 fprintf( stderr, " event=%d,", req->event );
2965 fprintf( stderr, " window=%p,", req->window );
2966 fprintf( stderr, " object_id=%d,", req->object_id );
2967 fprintf( stderr, " child_id=%d", req->child_id );
2970 static void dump_get_hook_info_reply( const struct get_hook_info_reply *req )
2972 fprintf( stderr, " handle=%p,", req->handle );
2973 fprintf( stderr, " id=%d,", req->id );
2974 fprintf( stderr, " pid=%04x,", req->pid );
2975 fprintf( stderr, " tid=%04x,", req->tid );
2976 fprintf( stderr, " proc=%p,", req->proc );
2977 fprintf( stderr, " unicode=%d,", req->unicode );
2978 fprintf( stderr, " module=" );
2979 dump_varargs_unicode_str( cur_size );
2982 static void dump_create_class_request( const struct create_class_request *req )
2984 fprintf( stderr, " local=%d,", req->local );
2985 fprintf( stderr, " atom=%04x,", req->atom );
2986 fprintf( stderr, " style=%08x,", req->style );
2987 fprintf( stderr, " instance=%p,", req->instance );
2988 fprintf( stderr, " extra=%d,", req->extra );
2989 fprintf( stderr, " win_extra=%d,", req->win_extra );
2990 fprintf( stderr, " client_ptr=%p", req->client_ptr );
2993 static void dump_destroy_class_request( const struct destroy_class_request *req )
2995 fprintf( stderr, " atom=%04x,", req->atom );
2996 fprintf( stderr, " instance=%p", req->instance );
2999 static void dump_destroy_class_reply( const struct destroy_class_reply *req )
3001 fprintf( stderr, " client_ptr=%p", req->client_ptr );
3004 static void dump_set_class_info_request( const struct set_class_info_request *req )
3006 fprintf( stderr, " window=%p,", req->window );
3007 fprintf( stderr, " flags=%08x,", req->flags );
3008 fprintf( stderr, " atom=%04x,", req->atom );
3009 fprintf( stderr, " style=%08x,", req->style );
3010 fprintf( stderr, " win_extra=%d,", req->win_extra );
3011 fprintf( stderr, " instance=%p,", req->instance );
3012 fprintf( stderr, " extra_offset=%d,", req->extra_offset );
3013 fprintf( stderr, " extra_size=%u,", req->extra_size );
3014 fprintf( stderr, " extra_value=%lx", req->extra_value );
3017 static void dump_set_class_info_reply( const struct set_class_info_reply *req )
3019 fprintf( stderr, " old_atom=%04x,", req->old_atom );
3020 fprintf( stderr, " old_style=%08x,", req->old_style );
3021 fprintf( stderr, " old_extra=%d,", req->old_extra );
3022 fprintf( stderr, " old_win_extra=%d,", req->old_win_extra );
3023 fprintf( stderr, " old_instance=%p,", req->old_instance );
3024 fprintf( stderr, " old_extra_value=%lx", req->old_extra_value );
3027 static void dump_set_clipboard_info_request( const struct set_clipboard_info_request *req )
3029 fprintf( stderr, " flags=%08x,", req->flags );
3030 fprintf( stderr, " clipboard=%p,", req->clipboard );
3031 fprintf( stderr, " owner=%p,", req->owner );
3032 fprintf( stderr, " viewer=%p,", req->viewer );
3033 fprintf( stderr, " seqno=%08x", req->seqno );
3036 static void dump_set_clipboard_info_reply( const struct set_clipboard_info_reply *req )
3038 fprintf( stderr, " flags=%08x,", req->flags );
3039 fprintf( stderr, " old_clipboard=%p,", req->old_clipboard );
3040 fprintf( stderr, " old_owner=%p,", req->old_owner );
3041 fprintf( stderr, " old_viewer=%p,", req->old_viewer );
3042 fprintf( stderr, " seqno=%08x", req->seqno );
3045 static void dump_open_token_request( const struct open_token_request *req )
3047 fprintf( stderr, " handle=%p,", req->handle );
3048 fprintf( stderr, " access=%08x,", req->access );
3049 fprintf( stderr, " attributes=%08x,", req->attributes );
3050 fprintf( stderr, " flags=%08x", req->flags );
3053 static void dump_open_token_reply( const struct open_token_reply *req )
3055 fprintf( stderr, " token=%p", req->token );
3058 static void dump_set_global_windows_request( const struct set_global_windows_request *req )
3060 fprintf( stderr, " flags=%08x,", req->flags );
3061 fprintf( stderr, " shell_window=%p,", req->shell_window );
3062 fprintf( stderr, " shell_listview=%p,", req->shell_listview );
3063 fprintf( stderr, " progman_window=%p,", req->progman_window );
3064 fprintf( stderr, " taskman_window=%p", req->taskman_window );
3067 static void dump_set_global_windows_reply( const struct set_global_windows_reply *req )
3069 fprintf( stderr, " old_shell_window=%p,", req->old_shell_window );
3070 fprintf( stderr, " old_shell_listview=%p,", req->old_shell_listview );
3071 fprintf( stderr, " old_progman_window=%p,", req->old_progman_window );
3072 fprintf( stderr, " old_taskman_window=%p", req->old_taskman_window );
3075 static void dump_adjust_token_privileges_request( const struct adjust_token_privileges_request *req )
3077 fprintf( stderr, " handle=%p,", req->handle );
3078 fprintf( stderr, " disable_all=%d,", req->disable_all );
3079 fprintf( stderr, " get_modified_state=%d,", req->get_modified_state );
3080 fprintf( stderr, " privileges=" );
3081 dump_varargs_LUID_AND_ATTRIBUTES( cur_size );
3084 static void dump_adjust_token_privileges_reply( const struct adjust_token_privileges_reply *req )
3086 fprintf( stderr, " len=%08x,", req->len );
3087 fprintf( stderr, " privileges=" );
3088 dump_varargs_LUID_AND_ATTRIBUTES( cur_size );
3091 static void dump_get_token_privileges_request( const struct get_token_privileges_request *req )
3093 fprintf( stderr, " handle=%p", req->handle );
3096 static void dump_get_token_privileges_reply( const struct get_token_privileges_reply *req )
3098 fprintf( stderr, " len=%08x,", req->len );
3099 fprintf( stderr, " privileges=" );
3100 dump_varargs_LUID_AND_ATTRIBUTES( cur_size );
3103 static void dump_check_token_privileges_request( const struct check_token_privileges_request *req )
3105 fprintf( stderr, " handle=%p,", req->handle );
3106 fprintf( stderr, " all_required=%d,", req->all_required );
3107 fprintf( stderr, " privileges=" );
3108 dump_varargs_LUID_AND_ATTRIBUTES( cur_size );
3111 static void dump_check_token_privileges_reply( const struct check_token_privileges_reply *req )
3113 fprintf( stderr, " has_privileges=%d,", req->has_privileges );
3114 fprintf( stderr, " privileges=" );
3115 dump_varargs_LUID_AND_ATTRIBUTES( cur_size );
3118 static void dump_duplicate_token_request( const struct duplicate_token_request *req )
3120 fprintf( stderr, " handle=%p,", req->handle );
3121 fprintf( stderr, " access=%08x,", req->access );
3122 fprintf( stderr, " attributes=%08x,", req->attributes );
3123 fprintf( stderr, " primary=%d,", req->primary );
3124 fprintf( stderr, " impersonation_level=%d", req->impersonation_level );
3127 static void dump_duplicate_token_reply( const struct duplicate_token_reply *req )
3129 fprintf( stderr, " new_handle=%p", req->new_handle );
3132 static void dump_access_check_request( const struct access_check_request *req )
3134 fprintf( stderr, " handle=%p,", req->handle );
3135 fprintf( stderr, " desired_access=%08x,", req->desired_access );
3136 fprintf( stderr, " mapping_read=%08x,", req->mapping_read );
3137 fprintf( stderr, " mapping_write=%08x,", req->mapping_write );
3138 fprintf( stderr, " mapping_execute=%08x,", req->mapping_execute );
3139 fprintf( stderr, " mapping_all=%08x,", req->mapping_all );
3140 fprintf( stderr, " sd=" );
3141 dump_varargs_security_descriptor( cur_size );
3144 static void dump_access_check_reply( const struct access_check_reply *req )
3146 fprintf( stderr, " access_granted=%08x,", req->access_granted );
3147 fprintf( stderr, " access_status=%08x,", req->access_status );
3148 fprintf( stderr, " privileges_len=%08x,", req->privileges_len );
3149 fprintf( stderr, " privileges=" );
3150 dump_varargs_LUID_AND_ATTRIBUTES( cur_size );
3153 static void dump_get_token_user_request( const struct get_token_user_request *req )
3155 fprintf( stderr, " handle=%p", req->handle );
3158 static void dump_get_token_user_reply( const struct get_token_user_reply *req )
3160 fprintf( stderr, " user_len=%u,", req->user_len );
3161 fprintf( stderr, " user=" );
3162 dump_varargs_SID( cur_size );
3165 static void dump_get_token_groups_request( const struct get_token_groups_request *req )
3167 fprintf( stderr, " handle=%p", req->handle );
3170 static void dump_get_token_groups_reply( const struct get_token_groups_reply *req )
3172 fprintf( stderr, " user_len=%u,", req->user_len );
3173 fprintf( stderr, " user=" );
3174 dump_varargs_token_groups( cur_size );
3177 static void dump_create_mailslot_request( const struct create_mailslot_request *req )
3179 fprintf( stderr, " access=%08x,", req->access );
3180 fprintf( stderr, " attributes=%08x,", req->attributes );
3181 fprintf( stderr, " rootdir=%p,", req->rootdir );
3182 fprintf( stderr, " max_msgsize=%08x,", req->max_msgsize );
3183 fprintf( stderr, " read_timeout=%d,", req->read_timeout );
3184 fprintf( stderr, " name=" );
3185 dump_varargs_unicode_str( cur_size );
3188 static void dump_create_mailslot_reply( const struct create_mailslot_reply *req )
3190 fprintf( stderr, " handle=%p", req->handle );
3193 static void dump_open_mailslot_request( const struct open_mailslot_request *req )
3195 fprintf( stderr, " access=%08x,", req->access );
3196 fprintf( stderr, " attributes=%08x,", req->attributes );
3197 fprintf( stderr, " rootdir=%p,", req->rootdir );
3198 fprintf( stderr, " sharing=%08x,", req->sharing );
3199 fprintf( stderr, " name=" );
3200 dump_varargs_unicode_str( cur_size );
3203 static void dump_open_mailslot_reply( const struct open_mailslot_reply *req )
3205 fprintf( stderr, " handle=%p", req->handle );
3208 static void dump_set_mailslot_info_request( const struct set_mailslot_info_request *req )
3210 fprintf( stderr, " handle=%p,", req->handle );
3211 fprintf( stderr, " flags=%08x,", req->flags );
3212 fprintf( stderr, " read_timeout=%d", req->read_timeout );
3215 static void dump_set_mailslot_info_reply( const struct set_mailslot_info_reply *req )
3217 fprintf( stderr, " max_msgsize=%08x,", req->max_msgsize );
3218 fprintf( stderr, " read_timeout=%d", req->read_timeout );
3221 static void dump_create_directory_request( const struct create_directory_request *req )
3223 fprintf( stderr, " access=%08x,", req->access );
3224 fprintf( stderr, " attributes=%08x,", req->attributes );
3225 fprintf( stderr, " rootdir=%p,", req->rootdir );
3226 fprintf( stderr, " directory_name=" );
3227 dump_varargs_unicode_str( cur_size );
3230 static void dump_create_directory_reply( const struct create_directory_reply *req )
3232 fprintf( stderr, " handle=%p", req->handle );
3235 static void dump_open_directory_request( const struct open_directory_request *req )
3237 fprintf( stderr, " access=%08x,", req->access );
3238 fprintf( stderr, " attributes=%08x,", req->attributes );
3239 fprintf( stderr, " rootdir=%p,", req->rootdir );
3240 fprintf( stderr, " directory_name=" );
3241 dump_varargs_unicode_str( cur_size );
3244 static void dump_open_directory_reply( const struct open_directory_reply *req )
3246 fprintf( stderr, " handle=%p", req->handle );
3249 static void dump_create_symlink_request( const struct create_symlink_request *req )
3251 fprintf( stderr, " access=%08x,", req->access );
3252 fprintf( stderr, " attributes=%08x,", req->attributes );
3253 fprintf( stderr, " rootdir=%p,", req->rootdir );
3254 fprintf( stderr, " name_len=%u,", req->name_len );
3255 fprintf( stderr, " name=" );
3256 dump_varargs_unicode_str( min(cur_size,req->name_len) );
3257 fputc( ',', stderr );
3258 fprintf( stderr, " target_name=" );
3259 dump_varargs_unicode_str( cur_size );
3262 static void dump_create_symlink_reply( const struct create_symlink_reply *req )
3264 fprintf( stderr, " handle=%p", req->handle );
3267 static void dump_open_symlink_request( const struct open_symlink_request *req )
3269 fprintf( stderr, " access=%08x,", req->access );
3270 fprintf( stderr, " attributes=%08x,", req->attributes );
3271 fprintf( stderr, " rootdir=%p,", req->rootdir );
3272 fprintf( stderr, " name=" );
3273 dump_varargs_unicode_str( cur_size );
3276 static void dump_open_symlink_reply( const struct open_symlink_reply *req )
3278 fprintf( stderr, " handle=%p", req->handle );
3281 static void dump_query_symlink_request( const struct query_symlink_request *req )
3283 fprintf( stderr, " handle=%p", req->handle );
3286 static void dump_query_symlink_reply( const struct query_symlink_reply *req )
3288 fprintf( stderr, " target_name=" );
3289 dump_varargs_unicode_str( cur_size );
3292 static const dump_func req_dumpers[REQ_NB_REQUESTS] = {
3293 (dump_func)dump_new_process_request,
3294 (dump_func)dump_get_new_process_info_request,
3295 (dump_func)dump_new_thread_request,
3296 (dump_func)dump_get_startup_info_request,
3297 (dump_func)dump_init_process_done_request,
3298 (dump_func)dump_init_thread_request,
3299 (dump_func)dump_terminate_process_request,
3300 (dump_func)dump_terminate_thread_request,
3301 (dump_func)dump_get_process_info_request,
3302 (dump_func)dump_set_process_info_request,
3303 (dump_func)dump_get_thread_info_request,
3304 (dump_func)dump_set_thread_info_request,
3305 (dump_func)dump_get_dll_info_request,
3306 (dump_func)dump_suspend_thread_request,
3307 (dump_func)dump_resume_thread_request,
3308 (dump_func)dump_load_dll_request,
3309 (dump_func)dump_unload_dll_request,
3310 (dump_func)dump_queue_apc_request,
3311 (dump_func)dump_get_apc_request,
3312 (dump_func)dump_close_handle_request,
3313 (dump_func)dump_set_handle_info_request,
3314 (dump_func)dump_dup_handle_request,
3315 (dump_func)dump_open_process_request,
3316 (dump_func)dump_open_thread_request,
3317 (dump_func)dump_select_request,
3318 (dump_func)dump_create_event_request,
3319 (dump_func)dump_event_op_request,
3320 (dump_func)dump_open_event_request,
3321 (dump_func)dump_create_mutex_request,
3322 (dump_func)dump_release_mutex_request,
3323 (dump_func)dump_open_mutex_request,
3324 (dump_func)dump_create_semaphore_request,
3325 (dump_func)dump_release_semaphore_request,
3326 (dump_func)dump_open_semaphore_request,
3327 (dump_func)dump_create_file_request,
3328 (dump_func)dump_open_file_object_request,
3329 (dump_func)dump_alloc_file_handle_request,
3330 (dump_func)dump_get_handle_fd_request,
3331 (dump_func)dump_flush_file_request,
3332 (dump_func)dump_lock_file_request,
3333 (dump_func)dump_unlock_file_request,
3334 (dump_func)dump_unmount_device_request,
3335 (dump_func)dump_create_socket_request,
3336 (dump_func)dump_accept_socket_request,
3337 (dump_func)dump_set_socket_event_request,
3338 (dump_func)dump_get_socket_event_request,
3339 (dump_func)dump_enable_socket_event_request,
3340 (dump_func)dump_set_socket_deferred_request,
3341 (dump_func)dump_alloc_console_request,
3342 (dump_func)dump_free_console_request,
3343 (dump_func)dump_get_console_renderer_events_request,
3344 (dump_func)dump_open_console_request,
3345 (dump_func)dump_get_console_wait_event_request,
3346 (dump_func)dump_get_console_mode_request,
3347 (dump_func)dump_set_console_mode_request,
3348 (dump_func)dump_set_console_input_info_request,
3349 (dump_func)dump_get_console_input_info_request,
3350 (dump_func)dump_append_console_input_history_request,
3351 (dump_func)dump_get_console_input_history_request,
3352 (dump_func)dump_create_console_output_request,
3353 (dump_func)dump_set_console_output_info_request,
3354 (dump_func)dump_get_console_output_info_request,
3355 (dump_func)dump_write_console_input_request,
3356 (dump_func)dump_read_console_input_request,
3357 (dump_func)dump_write_console_output_request,
3358 (dump_func)dump_fill_console_output_request,
3359 (dump_func)dump_read_console_output_request,
3360 (dump_func)dump_move_console_output_request,
3361 (dump_func)dump_send_console_signal_request,
3362 (dump_func)dump_read_directory_changes_request,
3363 (dump_func)dump_read_change_request,
3364 (dump_func)dump_create_mapping_request,
3365 (dump_func)dump_open_mapping_request,
3366 (dump_func)dump_get_mapping_info_request,
3367 (dump_func)dump_create_snapshot_request,
3368 (dump_func)dump_next_process_request,
3369 (dump_func)dump_next_thread_request,
3370 (dump_func)dump_next_module_request,
3371 (dump_func)dump_wait_debug_event_request,
3372 (dump_func)dump_queue_exception_event_request,
3373 (dump_func)dump_get_exception_status_request,
3374 (dump_func)dump_output_debug_string_request,
3375 (dump_func)dump_continue_debug_event_request,
3376 (dump_func)dump_debug_process_request,
3377 (dump_func)dump_debug_break_request,
3378 (dump_func)dump_set_debugger_kill_on_exit_request,
3379 (dump_func)dump_read_process_memory_request,
3380 (dump_func)dump_write_process_memory_request,
3381 (dump_func)dump_create_key_request,
3382 (dump_func)dump_open_key_request,
3383 (dump_func)dump_delete_key_request,
3384 (dump_func)dump_flush_key_request,
3385 (dump_func)dump_enum_key_request,
3386 (dump_func)dump_set_key_value_request,
3387 (dump_func)dump_get_key_value_request,
3388 (dump_func)dump_enum_key_value_request,
3389 (dump_func)dump_delete_key_value_request,
3390 (dump_func)dump_load_registry_request,
3391 (dump_func)dump_unload_registry_request,
3392 (dump_func)dump_save_registry_request,
3393 (dump_func)dump_set_registry_notification_request,
3394 (dump_func)dump_create_timer_request,
3395 (dump_func)dump_open_timer_request,
3396 (dump_func)dump_set_timer_request,
3397 (dump_func)dump_cancel_timer_request,
3398 (dump_func)dump_get_timer_info_request,
3399 (dump_func)dump_get_thread_context_request,
3400 (dump_func)dump_set_thread_context_request,
3401 (dump_func)dump_get_selector_entry_request,
3402 (dump_func)dump_add_atom_request,
3403 (dump_func)dump_delete_atom_request,
3404 (dump_func)dump_find_atom_request,
3405 (dump_func)dump_get_atom_information_request,
3406 (dump_func)dump_set_atom_information_request,
3407 (dump_func)dump_empty_atom_table_request,
3408 (dump_func)dump_init_atom_table_request,
3409 (dump_func)dump_get_msg_queue_request,
3410 (dump_func)dump_set_queue_mask_request,
3411 (dump_func)dump_get_queue_status_request,
3412 (dump_func)dump_get_process_idle_event_request,
3413 (dump_func)dump_send_message_request,
3414 (dump_func)dump_post_quit_message_request,
3415 (dump_func)dump_send_hardware_message_request,
3416 (dump_func)dump_get_message_request,
3417 (dump_func)dump_reply_message_request,
3418 (dump_func)dump_accept_hardware_message_request,
3419 (dump_func)dump_get_message_reply_request,
3420 (dump_func)dump_set_win_timer_request,
3421 (dump_func)dump_kill_win_timer_request,
3422 (dump_func)dump_get_serial_info_request,
3423 (dump_func)dump_set_serial_info_request,
3424 (dump_func)dump_register_async_request,
3425 (dump_func)dump_cancel_async_request,
3426 (dump_func)dump_create_named_pipe_request,
3427 (dump_func)dump_open_named_pipe_request,
3428 (dump_func)dump_connect_named_pipe_request,
3429 (dump_func)dump_wait_named_pipe_request,
3430 (dump_func)dump_disconnect_named_pipe_request,
3431 (dump_func)dump_get_named_pipe_info_request,
3432 (dump_func)dump_create_window_request,
3433 (dump_func)dump_destroy_window_request,
3434 (dump_func)dump_get_desktop_window_request,
3435 (dump_func)dump_set_window_owner_request,
3436 (dump_func)dump_get_window_info_request,
3437 (dump_func)dump_set_window_info_request,
3438 (dump_func)dump_set_parent_request,
3439 (dump_func)dump_get_window_parents_request,
3440 (dump_func)dump_get_window_children_request,
3441 (dump_func)dump_get_window_children_from_point_request,
3442 (dump_func)dump_get_window_tree_request,
3443 (dump_func)dump_set_window_pos_request,
3444 (dump_func)dump_get_window_rectangles_request,
3445 (dump_func)dump_get_window_text_request,
3446 (dump_func)dump_set_window_text_request,
3447 (dump_func)dump_get_windows_offset_request,
3448 (dump_func)dump_get_visible_region_request,
3449 (dump_func)dump_get_window_region_request,
3450 (dump_func)dump_set_window_region_request,
3451 (dump_func)dump_get_update_region_request,
3452 (dump_func)dump_update_window_zorder_request,
3453 (dump_func)dump_redraw_window_request,
3454 (dump_func)dump_set_window_property_request,
3455 (dump_func)dump_remove_window_property_request,
3456 (dump_func)dump_get_window_property_request,
3457 (dump_func)dump_get_window_properties_request,
3458 (dump_func)dump_create_winstation_request,
3459 (dump_func)dump_open_winstation_request,
3460 (dump_func)dump_close_winstation_request,
3461 (dump_func)dump_get_process_winstation_request,
3462 (dump_func)dump_set_process_winstation_request,
3463 (dump_func)dump_create_desktop_request,
3464 (dump_func)dump_open_desktop_request,
3465 (dump_func)dump_close_desktop_request,
3466 (dump_func)dump_get_thread_desktop_request,
3467 (dump_func)dump_set_thread_desktop_request,
3468 (dump_func)dump_set_user_object_info_request,
3469 (dump_func)dump_attach_thread_input_request,
3470 (dump_func)dump_get_thread_input_request,
3471 (dump_func)dump_get_last_input_time_request,
3472 (dump_func)dump_get_key_state_request,
3473 (dump_func)dump_set_key_state_request,
3474 (dump_func)dump_set_foreground_window_request,
3475 (dump_func)dump_set_focus_window_request,
3476 (dump_func)dump_set_active_window_request,
3477 (dump_func)dump_set_capture_window_request,
3478 (dump_func)dump_set_caret_window_request,
3479 (dump_func)dump_set_caret_info_request,
3480 (dump_func)dump_set_hook_request,
3481 (dump_func)dump_remove_hook_request,
3482 (dump_func)dump_start_hook_chain_request,
3483 (dump_func)dump_finish_hook_chain_request,
3484 (dump_func)dump_get_hook_info_request,
3485 (dump_func)dump_create_class_request,
3486 (dump_func)dump_destroy_class_request,
3487 (dump_func)dump_set_class_info_request,
3488 (dump_func)dump_set_clipboard_info_request,
3489 (dump_func)dump_open_token_request,
3490 (dump_func)dump_set_global_windows_request,
3491 (dump_func)dump_adjust_token_privileges_request,
3492 (dump_func)dump_get_token_privileges_request,
3493 (dump_func)dump_check_token_privileges_request,
3494 (dump_func)dump_duplicate_token_request,
3495 (dump_func)dump_access_check_request,
3496 (dump_func)dump_get_token_user_request,
3497 (dump_func)dump_get_token_groups_request,
3498 (dump_func)dump_create_mailslot_request,
3499 (dump_func)dump_open_mailslot_request,
3500 (dump_func)dump_set_mailslot_info_request,
3501 (dump_func)dump_create_directory_request,
3502 (dump_func)dump_open_directory_request,
3503 (dump_func)dump_create_symlink_request,
3504 (dump_func)dump_open_symlink_request,
3505 (dump_func)dump_query_symlink_request,
3508 static const dump_func reply_dumpers[REQ_NB_REQUESTS] = {
3509 (dump_func)dump_new_process_reply,
3510 (dump_func)dump_get_new_process_info_reply,
3511 (dump_func)dump_new_thread_reply,
3512 (dump_func)dump_get_startup_info_reply,
3514 (dump_func)dump_init_thread_reply,
3515 (dump_func)dump_terminate_process_reply,
3516 (dump_func)dump_terminate_thread_reply,
3517 (dump_func)dump_get_process_info_reply,
3519 (dump_func)dump_get_thread_info_reply,
3521 (dump_func)dump_get_dll_info_reply,
3522 (dump_func)dump_suspend_thread_reply,
3523 (dump_func)dump_resume_thread_reply,
3527 (dump_func)dump_get_apc_reply,
3529 (dump_func)dump_set_handle_info_reply,
3530 (dump_func)dump_dup_handle_reply,
3531 (dump_func)dump_open_process_reply,
3532 (dump_func)dump_open_thread_reply,
3534 (dump_func)dump_create_event_reply,
3536 (dump_func)dump_open_event_reply,
3537 (dump_func)dump_create_mutex_reply,
3538 (dump_func)dump_release_mutex_reply,
3539 (dump_func)dump_open_mutex_reply,
3540 (dump_func)dump_create_semaphore_reply,
3541 (dump_func)dump_release_semaphore_reply,
3542 (dump_func)dump_open_semaphore_reply,
3543 (dump_func)dump_create_file_reply,
3544 (dump_func)dump_open_file_object_reply,
3545 (dump_func)dump_alloc_file_handle_reply,
3546 (dump_func)dump_get_handle_fd_reply,
3547 (dump_func)dump_flush_file_reply,
3548 (dump_func)dump_lock_file_reply,
3551 (dump_func)dump_create_socket_reply,
3552 (dump_func)dump_accept_socket_reply,
3554 (dump_func)dump_get_socket_event_reply,
3557 (dump_func)dump_alloc_console_reply,
3559 (dump_func)dump_get_console_renderer_events_reply,
3560 (dump_func)dump_open_console_reply,
3561 (dump_func)dump_get_console_wait_event_reply,
3562 (dump_func)dump_get_console_mode_reply,
3565 (dump_func)dump_get_console_input_info_reply,
3567 (dump_func)dump_get_console_input_history_reply,
3568 (dump_func)dump_create_console_output_reply,
3570 (dump_func)dump_get_console_output_info_reply,
3571 (dump_func)dump_write_console_input_reply,
3572 (dump_func)dump_read_console_input_reply,
3573 (dump_func)dump_write_console_output_reply,
3574 (dump_func)dump_fill_console_output_reply,
3575 (dump_func)dump_read_console_output_reply,
3579 (dump_func)dump_read_change_reply,
3580 (dump_func)dump_create_mapping_reply,
3581 (dump_func)dump_open_mapping_reply,
3582 (dump_func)dump_get_mapping_info_reply,
3583 (dump_func)dump_create_snapshot_reply,
3584 (dump_func)dump_next_process_reply,
3585 (dump_func)dump_next_thread_reply,
3586 (dump_func)dump_next_module_reply,
3587 (dump_func)dump_wait_debug_event_reply,
3588 (dump_func)dump_queue_exception_event_reply,
3589 (dump_func)dump_get_exception_status_reply,
3593 (dump_func)dump_debug_break_reply,
3595 (dump_func)dump_read_process_memory_reply,
3597 (dump_func)dump_create_key_reply,
3598 (dump_func)dump_open_key_reply,
3601 (dump_func)dump_enum_key_reply,
3603 (dump_func)dump_get_key_value_reply,
3604 (dump_func)dump_enum_key_value_reply,
3610 (dump_func)dump_create_timer_reply,
3611 (dump_func)dump_open_timer_reply,
3612 (dump_func)dump_set_timer_reply,
3613 (dump_func)dump_cancel_timer_reply,
3614 (dump_func)dump_get_timer_info_reply,
3615 (dump_func)dump_get_thread_context_reply,
3616 (dump_func)dump_set_thread_context_reply,
3617 (dump_func)dump_get_selector_entry_reply,
3618 (dump_func)dump_add_atom_reply,
3620 (dump_func)dump_find_atom_reply,
3621 (dump_func)dump_get_atom_information_reply,
3624 (dump_func)dump_init_atom_table_reply,
3625 (dump_func)dump_get_msg_queue_reply,
3626 (dump_func)dump_set_queue_mask_reply,
3627 (dump_func)dump_get_queue_status_reply,
3628 (dump_func)dump_get_process_idle_event_reply,
3632 (dump_func)dump_get_message_reply,
3635 (dump_func)dump_get_message_reply_reply,
3636 (dump_func)dump_set_win_timer_reply,
3638 (dump_func)dump_get_serial_info_reply,
3642 (dump_func)dump_create_named_pipe_reply,
3643 (dump_func)dump_open_named_pipe_reply,
3647 (dump_func)dump_get_named_pipe_info_reply,
3648 (dump_func)dump_create_window_reply,
3650 (dump_func)dump_get_desktop_window_reply,
3651 (dump_func)dump_set_window_owner_reply,
3652 (dump_func)dump_get_window_info_reply,
3653 (dump_func)dump_set_window_info_reply,
3654 (dump_func)dump_set_parent_reply,
3655 (dump_func)dump_get_window_parents_reply,
3656 (dump_func)dump_get_window_children_reply,
3657 (dump_func)dump_get_window_children_from_point_reply,
3658 (dump_func)dump_get_window_tree_reply,
3659 (dump_func)dump_set_window_pos_reply,
3660 (dump_func)dump_get_window_rectangles_reply,
3661 (dump_func)dump_get_window_text_reply,
3663 (dump_func)dump_get_windows_offset_reply,
3664 (dump_func)dump_get_visible_region_reply,
3665 (dump_func)dump_get_window_region_reply,
3667 (dump_func)dump_get_update_region_reply,
3671 (dump_func)dump_remove_window_property_reply,
3672 (dump_func)dump_get_window_property_reply,
3673 (dump_func)dump_get_window_properties_reply,
3674 (dump_func)dump_create_winstation_reply,
3675 (dump_func)dump_open_winstation_reply,
3677 (dump_func)dump_get_process_winstation_reply,
3679 (dump_func)dump_create_desktop_reply,
3680 (dump_func)dump_open_desktop_reply,
3682 (dump_func)dump_get_thread_desktop_reply,
3684 (dump_func)dump_set_user_object_info_reply,
3686 (dump_func)dump_get_thread_input_reply,
3687 (dump_func)dump_get_last_input_time_reply,
3688 (dump_func)dump_get_key_state_reply,
3690 (dump_func)dump_set_foreground_window_reply,
3691 (dump_func)dump_set_focus_window_reply,
3692 (dump_func)dump_set_active_window_reply,
3693 (dump_func)dump_set_capture_window_reply,
3694 (dump_func)dump_set_caret_window_reply,
3695 (dump_func)dump_set_caret_info_reply,
3696 (dump_func)dump_set_hook_reply,
3697 (dump_func)dump_remove_hook_reply,
3698 (dump_func)dump_start_hook_chain_reply,
3700 (dump_func)dump_get_hook_info_reply,
3702 (dump_func)dump_destroy_class_reply,
3703 (dump_func)dump_set_class_info_reply,
3704 (dump_func)dump_set_clipboard_info_reply,
3705 (dump_func)dump_open_token_reply,
3706 (dump_func)dump_set_global_windows_reply,
3707 (dump_func)dump_adjust_token_privileges_reply,
3708 (dump_func)dump_get_token_privileges_reply,
3709 (dump_func)dump_check_token_privileges_reply,
3710 (dump_func)dump_duplicate_token_reply,
3711 (dump_func)dump_access_check_reply,
3712 (dump_func)dump_get_token_user_reply,
3713 (dump_func)dump_get_token_groups_reply,
3714 (dump_func)dump_create_mailslot_reply,
3715 (dump_func)dump_open_mailslot_reply,
3716 (dump_func)dump_set_mailslot_info_reply,
3717 (dump_func)dump_create_directory_reply,
3718 (dump_func)dump_open_directory_reply,
3719 (dump_func)dump_create_symlink_reply,
3720 (dump_func)dump_open_symlink_reply,
3721 (dump_func)dump_query_symlink_reply,
3724 static const char * const req_names[REQ_NB_REQUESTS] = {
3726 "get_new_process_info",
3729 "init_process_done",
3731 "terminate_process",
3757 "release_semaphore",
3761 "alloc_file_handle",
3771 "enable_socket_event",
3772 "set_socket_deferred",
3775 "get_console_renderer_events",
3777 "get_console_wait_event",
3780 "set_console_input_info",
3781 "get_console_input_info",
3782 "append_console_input_history",
3783 "get_console_input_history",
3784 "create_console_output",
3785 "set_console_output_info",
3786 "get_console_output_info",
3787 "write_console_input",
3788 "read_console_input",
3789 "write_console_output",
3790 "fill_console_output",
3791 "read_console_output",
3792 "move_console_output",
3793 "send_console_signal",
3794 "read_directory_changes",
3804 "queue_exception_event",
3805 "get_exception_status",
3806 "output_debug_string",
3807 "continue_debug_event",
3810 "set_debugger_kill_on_exit",
3811 "read_process_memory",
3812 "write_process_memory",
3825 "set_registry_notification",
3831 "get_thread_context",
3832 "set_thread_context",
3833 "get_selector_entry",
3837 "get_atom_information",
3838 "set_atom_information",
3844 "get_process_idle_event",
3846 "post_quit_message",
3847 "send_hardware_message",
3850 "accept_hardware_message",
3851 "get_message_reply",
3858 "create_named_pipe",
3860 "connect_named_pipe",
3862 "disconnect_named_pipe",
3863 "get_named_pipe_info",
3866 "get_desktop_window",
3871 "get_window_parents",
3872 "get_window_children",
3873 "get_window_children_from_point",
3876 "get_window_rectangles",
3879 "get_windows_offset",
3880 "get_visible_region",
3881 "get_window_region",
3882 "set_window_region",
3883 "get_update_region",
3884 "update_window_zorder",
3886 "set_window_property",
3887 "remove_window_property",
3888 "get_window_property",
3889 "get_window_properties",
3890 "create_winstation",
3893 "get_process_winstation",
3894 "set_process_winstation",
3898 "get_thread_desktop",
3899 "set_thread_desktop",
3900 "set_user_object_info",
3901 "attach_thread_input",
3903 "get_last_input_time",
3906 "set_foreground_window",
3908 "set_active_window",
3909 "set_capture_window",
3915 "finish_hook_chain",
3920 "set_clipboard_info",
3922 "set_global_windows",
3923 "adjust_token_privileges",
3924 "get_token_privileges",
3925 "check_token_privileges",
3932 "set_mailslot_info",
3946 { "ACCESS_DENIED", STATUS_ACCESS_DENIED },
3947 { "ACCESS_VIOLATION", STATUS_ACCESS_VIOLATION },
3948 { "ALERTED", STATUS_ALERTED },
3949 { "ALIAS_EXISTS", STATUS_ALIAS_EXISTS },
3950 { "BAD_DEVICE_TYPE", STATUS_BAD_DEVICE_TYPE },
3951 { "BUFFER_OVERFLOW", STATUS_BUFFER_OVERFLOW },
3952 { "BUFFER_TOO_SMALL", STATUS_BUFFER_TOO_SMALL },
3953 { "CANCELLED", STATUS_CANCELLED },
3954 { "CHILD_MUST_BE_VOLATILE", STATUS_CHILD_MUST_BE_VOLATILE },
3955 { "DEVICE_BUSY", STATUS_DEVICE_BUSY },
3956 { "DIRECTORY_NOT_EMPTY", STATUS_DIRECTORY_NOT_EMPTY },
3957 { "DISK_FULL", STATUS_DISK_FULL },
3958 { "DLL_NOT_FOUND", STATUS_DLL_NOT_FOUND },
3959 { "ERROR_CLASS_ALREADY_EXISTS", 0xc0010000 | ERROR_CLASS_ALREADY_EXISTS },
3960 { "ERROR_CLASS_DOES_NOT_EXIST", 0xc0010000 | ERROR_CLASS_DOES_NOT_EXIST },
3961 { "ERROR_CLASS_HAS_WINDOWS", 0xc0010000 | ERROR_CLASS_HAS_WINDOWS },
3962 { "ERROR_CLIPBOARD_NOT_OPEN", 0xc0010000 | ERROR_CLIPBOARD_NOT_OPEN },
3963 { "ERROR_INVALID_INDEX", 0xc0010000 | ERROR_INVALID_INDEX },
3964 { "ERROR_INVALID_WINDOW_HANDLE", 0xc0010000 | ERROR_INVALID_WINDOW_HANDLE },
3965 { "FILE_IS_A_DIRECTORY", STATUS_FILE_IS_A_DIRECTORY },
3966 { "FILE_LOCK_CONFLICT", STATUS_FILE_LOCK_CONFLICT },
3967 { "HANDLES_CLOSED", STATUS_HANDLES_CLOSED },
3968 { "HANDLE_NOT_CLOSABLE", STATUS_HANDLE_NOT_CLOSABLE },
3969 { "INSTANCE_NOT_AVAILABLE", STATUS_INSTANCE_NOT_AVAILABLE },
3970 { "INVALID_CID", STATUS_INVALID_CID },
3971 { "INVALID_FILE_FOR_SECTION", STATUS_INVALID_FILE_FOR_SECTION },
3972 { "INVALID_HANDLE", STATUS_INVALID_HANDLE },
3973 { "INVALID_PARAMETER", STATUS_INVALID_PARAMETER },
3974 { "IO_TIMEOUT", STATUS_IO_TIMEOUT },
3975 { "KEY_DELETED", STATUS_KEY_DELETED },
3976 { "MAPPED_FILE_SIZE_ZERO", STATUS_MAPPED_FILE_SIZE_ZERO },
3977 { "MEDIA_WRITE_PROTECTED", STATUS_MEDIA_WRITE_PROTECTED },
3978 { "MUTANT_NOT_OWNED", STATUS_MUTANT_NOT_OWNED },
3979 { "NAME_TOO_LONG", STATUS_NAME_TOO_LONG },
3980 { "NOT_ALL_ASSIGNED", STATUS_NOT_ALL_ASSIGNED },
3981 { "NOT_A_DIRECTORY", STATUS_NOT_A_DIRECTORY },
3982 { "NOT_IMPLEMENTED", STATUS_NOT_IMPLEMENTED },
3983 { "NOT_REGISTRY_FILE", STATUS_NOT_REGISTRY_FILE },
3984 { "NO_DATA_DETECTED", STATUS_NO_DATA_DETECTED },
3985 { "NO_IMPERSONATION_TOKEN", STATUS_NO_IMPERSONATION_TOKEN },
3986 { "NO_MEMORY", STATUS_NO_MEMORY },
3987 { "NO_MORE_ENTRIES", STATUS_NO_MORE_ENTRIES },
3988 { "NO_MORE_FILES", STATUS_NO_MORE_FILES },
3989 { "NO_SUCH_DEVICE", STATUS_NO_SUCH_DEVICE },
3990 { "NO_SUCH_FILE", STATUS_NO_SUCH_FILE },
3991 { "NO_TOKEN", STATUS_NO_TOKEN },
3992 { "OBJECT_NAME_COLLISION", STATUS_OBJECT_NAME_COLLISION },
3993 { "OBJECT_NAME_EXISTS", STATUS_OBJECT_NAME_EXISTS },
3994 { "OBJECT_NAME_INVALID", STATUS_OBJECT_NAME_INVALID },
3995 { "OBJECT_NAME_NOT_FOUND", STATUS_OBJECT_NAME_NOT_FOUND },
3996 { "OBJECT_PATH_INVALID", STATUS_OBJECT_PATH_INVALID },
3997 { "OBJECT_PATH_NOT_FOUND", STATUS_OBJECT_PATH_NOT_FOUND },
3998 { "OBJECT_PATH_SYNTAX_BAD", STATUS_OBJECT_PATH_SYNTAX_BAD },
3999 { "OBJECT_TYPE_MISMATCH", STATUS_OBJECT_TYPE_MISMATCH },
4000 { "PENDING", STATUS_PENDING },
4001 { "PIPE_BUSY", STATUS_PIPE_BUSY },
4002 { "PIPE_CONNECTED", STATUS_PIPE_CONNECTED },
4003 { "PIPE_DISCONNECTED", STATUS_PIPE_DISCONNECTED },
4004 { "PIPE_LISTENING", STATUS_PIPE_LISTENING },
4005 { "PIPE_NOT_AVAILABLE", STATUS_PIPE_NOT_AVAILABLE },
4006 { "PRIVILEGE_NOT_HELD", STATUS_PRIVILEGE_NOT_HELD },
4007 { "SECTION_TOO_BIG", STATUS_SECTION_TOO_BIG },
4008 { "SEMAPHORE_LIMIT_EXCEEDED", STATUS_SEMAPHORE_LIMIT_EXCEEDED },
4009 { "SHARING_VIOLATION", STATUS_SHARING_VIOLATION },
4010 { "SUSPEND_COUNT_EXCEEDED", STATUS_SUSPEND_COUNT_EXCEEDED },
4011 { "TIMEOUT", STATUS_TIMEOUT },
4012 { "TOO_MANY_OPENED_FILES", STATUS_TOO_MANY_OPENED_FILES },
4013 { "UNSUCCESSFUL", STATUS_UNSUCCESSFUL },
4014 { "VOLUME_DISMOUNTED", STATUS_VOLUME_DISMOUNTED },
4015 { "WAS_LOCKED", STATUS_WAS_LOCKED },
4019 /* ### make_requests end ### */
4020 /* Everything above this line is generated automatically by tools/make_requests */
4022 static const char *get_status_name( unsigned int status )
4025 static char buffer[10];
4029 for (i = 0; status_names[i].name; i++)
4030 if (status_names[i].value == status) return status_names[i].name;
4032 sprintf( buffer, "%x", status );
4036 void trace_request(void)
4038 enum request req = current->req.request_header.req;
4039 if (req < REQ_NB_REQUESTS)
4041 fprintf( stderr, "%04x: %s(", current->id, req_names[req] );
4042 if (req_dumpers[req])
4044 cur_data = get_req_data();
4045 cur_size = get_req_data_size();
4046 req_dumpers[req]( ¤t->req );
4048 fprintf( stderr, " )\n" );
4050 else fprintf( stderr, "%04x: %d(?)\n", current->id, req );
4053 void trace_reply( enum request req, const union generic_reply *reply )
4055 if (req < REQ_NB_REQUESTS)
4057 fprintf( stderr, "%04x: %s() = %s",
4058 current->id, req_names[req], get_status_name(current->error) );
4059 if (reply_dumpers[req])
4061 fprintf( stderr, " {" );
4062 cur_data = current->reply_data;
4063 cur_size = reply->reply_header.reply_size;
4064 reply_dumpers[req]( reply );
4065 fprintf( stderr, " }" );
4067 fputc( '\n', stderr );
4069 else fprintf( stderr, "%04x: %d() = %s\n",
4070 current->id, req, get_status_name(current->error) );