diff --git a/dlls/advapi32/registry.c b/dlls/advapi32/registry.c index 557da9b6234..0bd64e438c8 100644 --- a/dlls/advapi32/registry.c +++ b/dlls/advapi32/registry.c @@ -21,7 +21,7 @@ #include "winerror.h" #include "wine/unicode.h" #include "heap.h" -#include "server.h" +#include "wine/server.h" #include "debugtools.h" DEFAULT_DEBUG_CHANNEL(reg); diff --git a/dlls/kernel/comm.c b/dlls/kernel/comm.c index 8415c829444..85016f2687e 100644 --- a/dlls/kernel/comm.c +++ b/dlls/kernel/comm.c @@ -65,7 +65,7 @@ #include "heap.h" #include "options.h" #include "wine/port.h" -#include "server.h" +#include "wine/server.h" #include "winerror.h" #include "services.h" #include "callback.h" diff --git a/dlls/kernel/debugger.c b/dlls/kernel/debugger.c index 88dff80e092..2f3e0b51e3a 100644 --- a/dlls/kernel/debugger.c +++ b/dlls/kernel/debugger.c @@ -9,7 +9,7 @@ #include "winerror.h" #include "wine/winbase16.h" -#include "server.h" +#include "wine/server.h" #include "stackframe.h" #include "debugtools.h" diff --git a/dlls/kernel/sync.c b/dlls/kernel/sync.c index a9878dc6c6a..60ced975e5b 100644 --- a/dlls/kernel/sync.c +++ b/dlls/kernel/sync.c @@ -8,7 +8,7 @@ #include "winerror.h" #include "winnls.h" #include "wine/unicode.h" -#include "server.h" +#include "wine/server.h" #include "debugtools.h" DEFAULT_DEBUG_CHANNEL(win32); diff --git a/dlls/kernel/toolhelp.c b/dlls/kernel/toolhelp.c index 9701bb93410..d2ef0a446bd 100644 --- a/dlls/kernel/toolhelp.c +++ b/dlls/kernel/toolhelp.c @@ -16,7 +16,7 @@ #include "tlhelp32.h" #include "toolhelp.h" #include "heap.h" -#include "server.h" +#include "wine/server.h" #include "debugtools.h" DEFAULT_DEBUG_CHANNEL(toolhelp); diff --git a/dlls/ntdll/exception.c b/dlls/ntdll/exception.c index 60dee651ed4..270b1cefb99 100644 --- a/dlls/ntdll/exception.c +++ b/dlls/ntdll/exception.c @@ -15,7 +15,7 @@ #include "wine/exception.h" #include "stackframe.h" #include "miscemu.h" -#include "server.h" +#include "wine/server.h" #include "debugtools.h" DEFAULT_DEBUG_CHANNEL(seh); diff --git a/dlls/ntdll/nt.c b/dlls/ntdll/nt.c index 2917d86fbfa..be0dcdbc789 100644 --- a/dlls/ntdll/nt.c +++ b/dlls/ntdll/nt.c @@ -15,7 +15,7 @@ #include "ntddk.h" #include "ntdll_misc.h" -#include "server.h" +#include "wine/server.h" DEFAULT_DEBUG_CHANNEL(ntdll); diff --git a/dlls/ntdll/om.c b/dlls/ntdll/om.c index 9ce92132efd..4dbc96409f7 100644 --- a/dlls/ntdll/om.c +++ b/dlls/ntdll/om.c @@ -9,7 +9,7 @@ #include "ntddk.h" #include "ntdll_misc.h" -#include "server.h" +#include "wine/server.h" DEFAULT_DEBUG_CHANNEL(ntdll); diff --git a/dlls/ntdll/reg.c b/dlls/ntdll/reg.c index 7f2c6739ad4..7bb303fbe2d 100644 --- a/dlls/ntdll/reg.c +++ b/dlls/ntdll/reg.c @@ -16,7 +16,7 @@ #include "winreg.h" #include "winerror.h" #include "wine/unicode.h" -#include "server.h" +#include "wine/server.h" #include "ntddk.h" #include "ntdll_misc.h" diff --git a/dlls/ntdll/sync.c b/dlls/ntdll/sync.c index df495e2cf46..4c3c83c4ed3 100644 --- a/dlls/ntdll/sync.c +++ b/dlls/ntdll/sync.c @@ -10,7 +10,7 @@ #include "winerror.h" #include "wine/unicode.h" -#include "server.h" +#include "wine/server.h" #include "ntddk.h" #include "ntdll_misc.h" diff --git a/dlls/winsock/socket.c b/dlls/winsock/socket.c index a3e347b0fa7..2248f626de2 100644 --- a/dlls/winsock/socket.c +++ b/dlls/winsock/socket.c @@ -96,7 +96,7 @@ #include "heap.h" #include "wine/port.h" #include "services.h" -#include "server.h" +#include "wine/server.h" #include "file.h" #include "debugtools.h" diff --git a/files/change.c b/files/change.c index 8d19da8eae9..774a3dee4c5 100644 --- a/files/change.c +++ b/files/change.c @@ -17,7 +17,7 @@ #include "winbase.h" #include "winerror.h" #include "heap.h" -#include "server.h" +#include "wine/server.h" #include "debugtools.h" DEFAULT_DEBUG_CHANNEL(file); diff --git a/files/dos_fs.c b/files/dos_fs.c index ee449fdf180..e73fddc1fa7 100644 --- a/files/dos_fs.c +++ b/files/dos_fs.c @@ -34,7 +34,7 @@ #include "msdos.h" #include "ntddk.h" #include "options.h" -#include "server.h" +#include "wine/server.h" #include "debugtools.h" diff --git a/files/file.c b/files/file.c index addc7bb1cbc..cf9c8f6e382 100644 --- a/files/file.c +++ b/files/file.c @@ -44,7 +44,7 @@ #include "wincon.h" #include "debugtools.h" -#include "server.h" +#include "wine/server.h" DEFAULT_DEBUG_CHANNEL(file); diff --git a/files/profile.c b/files/profile.c index 53900124c60..9aba24674cb 100644 --- a/files/profile.c +++ b/files/profile.c @@ -26,7 +26,7 @@ #include "heap.h" #include "debugtools.h" #include "options.h" -#include "server.h" +#include "wine/server.h" DEFAULT_DEBUG_CHANNEL(profile); diff --git a/graphics/x11drv/xfont.c b/graphics/x11drv/xfont.c index 1f086899512..5dc4bf289fd 100644 --- a/graphics/x11drv/xfont.c +++ b/graphics/x11drv/xfont.c @@ -31,7 +31,7 @@ #include "debugtools.h" #include "user.h" /* for TWEAK_WineLook (FIXME) */ #include "x11font.h" -#include "server.h" +#include "wine/server.h" DEFAULT_DEBUG_CHANNEL(font); diff --git a/include/server.h b/include/server.h deleted file mode 100644 index 6882959cc52..00000000000 --- a/include/server.h +++ /dev/null @@ -1,1877 +0,0 @@ -/* - * Wine server definitions - * - * Copyright (C) 1998 Alexandre Julliard - */ - -#ifndef __WINE_SERVER_H -#define __WINE_SERVER_H - -#include -#include -#include "winbase.h" - -/* Request structures */ - -/* Following are the definitions of all the client<->server */ -/* communication format; if you make any change in this file, */ -/* you must run tools/make_requests again. */ - - -/* These empty macros are used by tools/make_requests */ -/* to generate the request/reply tracing functions */ -#define IN /*nothing*/ -#define OUT /*nothing*/ -#define VARARG(name,func) /*nothing*/ - -struct request_header -{ - IN int req; /* request code */ - IN unsigned short var_offset; /* offset of the variable part of the request */ - IN unsigned short var_size; /* size of the variable part of the request */ - OUT unsigned int error; /* error result */ -}; -#define REQUEST_HEADER struct request_header header - - -/* placeholder structure for the maximum allowed request size */ -/* this is used to construct the generic_request union */ -struct request_max_size -{ - int pad[16]; /* the max request size is 16 ints */ -}; - -/* max size of the variable part of a request */ -#define REQUEST_MAX_VAR_SIZE 1024 - -typedef int handle_t; - -/* definitions of the event data depending on the event code */ -struct debug_event_exception -{ - EXCEPTION_RECORD record; /* exception record */ - int first; /* first chance exception? */ -}; -struct debug_event_create_thread -{ - handle_t handle; /* handle to the new thread */ - void *teb; /* thread teb (in debugged process address space) */ - void *start; /* thread startup routine */ -}; -struct debug_event_create_process -{ - handle_t file; /* handle to the process exe file */ - handle_t process; /* handle to the new process */ - handle_t thread; /* handle to the new thread */ - void *base; /* base of executable image */ - int dbg_offset; /* offset of debug info in file */ - int dbg_size; /* size of debug info */ - void *teb; /* thread teb (in debugged process address space) */ - void *start; /* thread startup routine */ - void *name; /* image name (optional) */ - int unicode; /* is it Unicode? */ -}; -struct debug_event_exit -{ - int exit_code; /* thread or process exit code */ -}; -struct debug_event_load_dll -{ - handle_t handle; /* file handle for the dll */ - void *base; /* base address of the dll */ - int dbg_offset; /* offset of debug info in file */ - int dbg_size; /* size of debug info */ - void *name; /* image name (optional) */ - int unicode; /* is it Unicode? */ -}; -struct debug_event_unload_dll -{ - void *base; /* base address of the dll */ -}; -struct debug_event_output_string -{ - void *string; /* string to display (in debugged process address space) */ - int unicode; /* is it Unicode? */ - int length; /* string length */ -}; -struct debug_event_rip_info -{ - int error; /* ??? */ - int type; /* ??? */ -}; -union debug_event_data -{ - struct debug_event_exception exception; - struct debug_event_create_thread create_thread; - struct debug_event_create_process create_process; - struct debug_event_exit exit; - struct debug_event_load_dll load_dll; - struct debug_event_unload_dll unload_dll; - struct debug_event_output_string output_string; - struct debug_event_rip_info rip_info; -}; - -/* debug event data */ -typedef struct -{ - int code; /* event code */ - union debug_event_data info; /* event information */ -} debug_event_t; - -/* structure used in sending an fd from client to server */ -struct send_fd -{ - void *tid; /* thread id */ - int fd; /* file descriptor on client-side */ -}; - -/* structure sent by the server on the wait fifo */ -struct wake_up_reply -{ - void *cookie; /* magic cookie that was passed in select_request */ - int signaled; /* wait result */ -}; - -/* Create a new process from the context of the parent */ -struct new_process_request -{ - REQUEST_HEADER; /* request header */ - IN int inherit_all; /* inherit all handles from parent */ - IN int create_flags; /* creation flags */ - IN int start_flags; /* flags from startup info */ - IN handle_t exe_file; /* file handle for main exe */ - IN handle_t hstdin; /* handle for stdin */ - IN handle_t hstdout; /* handle for stdout */ - IN handle_t hstderr; /* handle for stderr */ - IN int cmd_show; /* main window show mode */ - OUT handle_t info; /* new process info handle */ - IN VARARG(filename,string); /* file name of main exe */ -}; - - -/* Retrieve information about a newly started process */ -struct get_new_process_info_request -{ - REQUEST_HEADER; /* request header */ - IN handle_t info; /* info handle returned from new_process_request */ - IN int pinherit; /* process handle inherit flag */ - IN int tinherit; /* thread handle inherit flag */ - OUT void* pid; /* process id */ - OUT handle_t phandle; /* process handle (in the current process) */ - OUT void* tid; /* thread id */ - OUT handle_t thandle; /* thread handle (in the current process) */ - OUT handle_t event; /* event handle to signal startup */ -}; - - -/* Create a new thread from the context of the parent */ -struct new_thread_request -{ - REQUEST_HEADER; /* request header */ - IN int suspend; /* new thread should be suspended on creation */ - IN int inherit; /* inherit flag */ - IN int request_fd; /* fd for request pipe */ - OUT void* tid; /* thread id */ - OUT handle_t handle; /* thread handle (in the current process) */ -}; - - -/* Signal that we are finished booting on the client side */ -struct boot_done_request -{ - REQUEST_HEADER; /* request header */ - IN int debug_level; /* new debug level */ -}; - - -/* Initialize a process; called from the new process context */ -struct init_process_request -{ - REQUEST_HEADER; /* request header */ - IN void* ldt_copy; /* addr of LDT copy */ - IN int ppid; /* parent Unix pid */ - OUT int create_flags; /* creation flags */ - OUT int start_flags; /* flags from startup info */ - OUT unsigned int server_start; /* server start time (GetTickCount) */ - OUT handle_t exe_file; /* file handle for main exe */ - OUT handle_t hstdin; /* handle for stdin */ - OUT handle_t hstdout; /* handle for stdout */ - OUT handle_t hstderr; /* handle for stderr */ - OUT int cmd_show; /* main window show mode */ - OUT VARARG(filename,string); /* file name of main exe */ -}; - - -/* Signal the end of the process initialization */ -struct init_process_done_request -{ - REQUEST_HEADER; /* request header */ - IN void* module; /* main module base address */ - IN void* entry; /* process entry point */ - IN void* name; /* ptr to ptr to name (in process addr space) */ - IN handle_t exe_file; /* file handle for main exe */ - IN int gui; /* is it a GUI process? */ - OUT int debugged; /* being debugged? */ -}; - - -/* Initialize a thread; called from the child after fork()/clone() */ -struct init_thread_request -{ - REQUEST_HEADER; /* request header */ - IN int unix_pid; /* Unix pid of new thread */ - IN void* teb; /* TEB of new thread (in thread address space) */ - IN void* entry; /* thread entry point (in thread address space) */ - IN int reply_fd; /* fd for reply pipe */ - IN int wait_fd; /* fd for blocking calls pipe */ - OUT void* pid; /* process id of the new thread's process */ - OUT void* tid; /* thread id of the new thread */ - OUT int boot; /* is this the boot thread? */ - OUT int version; /* protocol version */ -}; - - -/* Set the shared buffer for a thread */ -struct set_thread_buffer_request -{ - REQUEST_HEADER; - IN int fd; /* fd to mmap as shared buffer */ - OUT unsigned int offset; /* offset of buffer in file */ - OUT unsigned int size; /* size of buffer */ -}; - - -/* Terminate a process */ -struct terminate_process_request -{ - REQUEST_HEADER; /* request header */ - IN handle_t handle; /* process handle to terminate */ - IN int exit_code; /* process exit code */ - OUT int self; /* suicide? */ -}; - - -/* Terminate a thread */ -struct terminate_thread_request -{ - REQUEST_HEADER; /* request header */ - IN handle_t handle; /* thread handle to terminate */ - IN int exit_code; /* thread exit code */ - OUT int self; /* suicide? */ - OUT int last; /* last thread in this process? */ -}; - - -/* Retrieve information about a process */ -struct get_process_info_request -{ - REQUEST_HEADER; /* request header */ - IN handle_t handle; /* process handle */ - OUT void* pid; /* server process id */ - OUT int debugged; /* debugged? */ - OUT int exit_code; /* process exit code */ - OUT int priority; /* priority class */ - OUT int process_affinity; /* process affinity mask */ - OUT int system_affinity; /* system affinity mask */ -}; - - -/* Set a process informations */ -struct set_process_info_request -{ - REQUEST_HEADER; /* request header */ - IN handle_t handle; /* process handle */ - IN int mask; /* setting mask (see below) */ - IN int priority; /* priority class */ - IN int affinity; /* affinity mask */ -}; -#define SET_PROCESS_INFO_PRIORITY 0x01 -#define SET_PROCESS_INFO_AFFINITY 0x02 - - -/* Retrieve information about a thread */ -struct get_thread_info_request -{ - REQUEST_HEADER; /* request header */ - IN handle_t handle; /* thread handle */ - IN void* tid_in; /* thread id (optional) */ - OUT void* tid; /* server thread id */ - OUT void* teb; /* thread teb pointer */ - OUT int exit_code; /* thread exit code */ - OUT int priority; /* thread priority level */ -}; - - -/* Set a thread informations */ -struct set_thread_info_request -{ - REQUEST_HEADER; /* request header */ - IN handle_t handle; /* thread handle */ - IN int mask; /* setting mask (see below) */ - IN int priority; /* priority class */ - IN int affinity; /* affinity mask */ -}; -#define SET_THREAD_INFO_PRIORITY 0x01 -#define SET_THREAD_INFO_AFFINITY 0x02 - - -/* Suspend a thread */ -struct suspend_thread_request -{ - REQUEST_HEADER; /* request header */ - IN handle_t handle; /* thread handle */ - OUT int count; /* new suspend count */ -}; - - -/* Resume a thread */ -struct resume_thread_request -{ - REQUEST_HEADER; /* request header */ - IN handle_t handle; /* thread handle */ - OUT int count; /* new suspend count */ -}; - - -/* Notify the server that a dll has been loaded */ -struct load_dll_request -{ - REQUEST_HEADER; /* request header */ - IN handle_t handle; /* file handle */ - IN void* base; /* base address */ - IN int dbg_offset; /* debug info offset */ - IN int dbg_size; /* debug info size */ - IN void* name; /* ptr to ptr to name (in process addr space) */ -}; - - -/* Notify the server that a dll is being unloaded */ -struct unload_dll_request -{ - REQUEST_HEADER; /* request header */ - IN void* base; /* base address */ -}; - - -/* Queue an APC for a thread */ -struct queue_apc_request -{ - REQUEST_HEADER; /* request header */ - IN handle_t handle; /* thread handle */ - IN int user; /* user or system apc? */ - IN void* func; /* function to call */ - IN void* param; /* param for function to call */ -}; - - -/* Get next APC to call */ -struct get_apc_request -{ - REQUEST_HEADER; /* request header */ - IN int alertable; /* is thread alertable? */ - OUT void* func; /* function to call */ - OUT int type; /* function type */ - OUT VARARG(args,ptrs); /* function arguments */ -}; -enum apc_type { APC_NONE, APC_USER, APC_TIMER, APC_ASYNC }; - - -/* Close a handle for the current process */ -struct close_handle_request -{ - REQUEST_HEADER; /* request header */ - IN handle_t handle; /* handle to close */ - OUT int fd; /* associated fd to close */ -}; - - -/* Set a handle information */ -struct set_handle_info_request -{ - REQUEST_HEADER; /* request header */ - IN handle_t handle; /* handle we are interested in */ - IN int flags; /* new handle flags */ - IN int mask; /* mask for flags to set */ - IN int fd; /* file descriptor or -1 */ - OUT int old_flags; /* old flag value */ - OUT int cur_fd; /* current file descriptor */ -}; - - -/* Duplicate a handle */ -struct dup_handle_request -{ - REQUEST_HEADER; /* request header */ - IN handle_t src_process; /* src process handle */ - IN handle_t src_handle; /* src handle to duplicate */ - IN handle_t dst_process; /* dst process handle */ - IN unsigned int access; /* wanted access rights */ - IN int inherit; /* inherit flag */ - IN int options; /* duplicate options (see below) */ - OUT handle_t handle; /* duplicated handle in dst process */ - OUT int fd; /* associated fd to close */ -}; -#define DUP_HANDLE_CLOSE_SOURCE DUPLICATE_CLOSE_SOURCE -#define DUP_HANDLE_SAME_ACCESS DUPLICATE_SAME_ACCESS -#define DUP_HANDLE_MAKE_GLOBAL 0x80000000 /* Not a Windows flag */ - - -/* Open a handle to a process */ -struct open_process_request -{ - REQUEST_HEADER; /* request header */ - IN void* pid; /* process id to open */ - IN unsigned int access; /* wanted access rights */ - IN int inherit; /* inherit flag */ - OUT handle_t handle; /* handle to the process */ -}; - - -/* Wait for handles */ -struct select_request -{ - REQUEST_HEADER; /* request header */ - IN int flags; /* wait flags (see below) */ - IN void* cookie; /* magic cookie to return to client */ - IN int sec; /* absolute timeout */ - IN int usec; /* absolute timeout */ - IN VARARG(handles,handles); /* handles to select on */ -}; -#define SELECT_ALL 1 -#define SELECT_ALERTABLE 2 -#define SELECT_INTERRUPTIBLE 4 -#define SELECT_TIMEOUT 8 - - -/* Create an event */ -struct create_event_request -{ - REQUEST_HEADER; /* request header */ - IN int manual_reset; /* manual reset event */ - IN int initial_state; /* initial state of the event */ - IN int inherit; /* inherit flag */ - OUT handle_t handle; /* handle to the event */ - IN VARARG(name,unicode_str); /* object name */ -}; - -/* Event operation */ -struct event_op_request -{ - REQUEST_HEADER; /* request header */ - IN handle_t handle; /* handle to event */ - IN int op; /* event operation (see below) */ -}; -enum event_op { PULSE_EVENT, SET_EVENT, RESET_EVENT }; - - -/* Open an event */ -struct open_event_request -{ - REQUEST_HEADER; /* request header */ - IN unsigned int access; /* wanted access rights */ - IN int inherit; /* inherit flag */ - OUT handle_t handle; /* handle to the event */ - IN VARARG(name,unicode_str); /* object name */ -}; - - -/* Create a mutex */ -struct create_mutex_request -{ - REQUEST_HEADER; /* request header */ - IN int owned; /* initially owned? */ - IN int inherit; /* inherit flag */ - OUT handle_t handle; /* handle to the mutex */ - IN VARARG(name,unicode_str); /* object name */ -}; - - -/* Release a mutex */ -struct release_mutex_request -{ - REQUEST_HEADER; /* request header */ - IN handle_t handle; /* handle to the mutex */ -}; - - -/* Open a mutex */ -struct open_mutex_request -{ - REQUEST_HEADER; /* request header */ - IN unsigned int access; /* wanted access rights */ - IN int inherit; /* inherit flag */ - OUT handle_t handle; /* handle to the mutex */ - IN VARARG(name,unicode_str); /* object name */ -}; - - -/* Create a semaphore */ -struct create_semaphore_request -{ - REQUEST_HEADER; /* request header */ - IN unsigned int initial; /* initial count */ - IN unsigned int max; /* maximum count */ - IN int inherit; /* inherit flag */ - OUT handle_t handle; /* handle to the semaphore */ - IN VARARG(name,unicode_str); /* object name */ -}; - - -/* Release a semaphore */ -struct release_semaphore_request -{ - REQUEST_HEADER; /* request header */ - IN handle_t handle; /* handle to the semaphore */ - IN unsigned int count; /* count to add to semaphore */ - OUT unsigned int prev_count; /* previous semaphore count */ -}; - - -/* Open a semaphore */ -struct open_semaphore_request -{ - REQUEST_HEADER; /* request header */ - IN unsigned int access; /* wanted access rights */ - IN int inherit; /* inherit flag */ - OUT handle_t handle; /* handle to the semaphore */ - IN VARARG(name,unicode_str); /* object name */ -}; - - -/* Create a file */ -struct create_file_request -{ - REQUEST_HEADER; /* request header */ - IN unsigned int access; /* wanted access rights */ - IN int inherit; /* inherit flag */ - IN unsigned int sharing; /* sharing flags */ - IN int create; /* file create action */ - IN unsigned int attrs; /* file attributes for creation */ - OUT handle_t handle; /* handle to the file */ - IN VARARG(filename,string); /* file name */ -}; - - -/* Allocate a file handle for a Unix fd */ -struct alloc_file_handle_request -{ - REQUEST_HEADER; /* request header */ - IN unsigned int access; /* wanted access rights */ - IN int fd; /* file descriptor on the client side */ - OUT handle_t handle; /* handle to the file */ -}; - - -/* Get a Unix fd to access a file */ -struct get_handle_fd_request -{ - REQUEST_HEADER; /* request header */ - IN handle_t handle; /* handle to the file */ - IN unsigned int access; /* wanted access rights */ - OUT int fd; /* file descriptor */ -}; - - -/* Set a file current position */ -struct set_file_pointer_request -{ - REQUEST_HEADER; /* request header */ - IN handle_t handle; /* handle to the file */ - IN int low; /* position low word */ - IN int high; /* position high word */ - IN int whence; /* whence to seek */ - OUT int new_low; /* new position low word */ - OUT int new_high; /* new position high word */ -}; - - -/* Truncate (or extend) a file */ -struct truncate_file_request -{ - REQUEST_HEADER; /* request header */ - IN handle_t handle; /* handle to the file */ -}; - - -/* Set a file access and modification times */ -struct set_file_time_request -{ - REQUEST_HEADER; /* request header */ - IN handle_t handle; /* handle to the file */ - IN time_t access_time; /* last access time */ - IN time_t write_time; /* last write time */ -}; - - -/* Flush a file buffers */ -struct flush_file_request -{ - REQUEST_HEADER; /* request header */ - IN handle_t handle; /* handle to the file */ -}; - - -/* Get information about a file */ -struct get_file_info_request -{ - REQUEST_HEADER; /* request header */ - IN handle_t handle; /* handle to the file */ - OUT int type; /* file type */ - OUT int attr; /* file attributes */ - OUT time_t access_time; /* last access time */ - OUT time_t write_time; /* last write time */ - OUT int size_high; /* file size */ - OUT int size_low; /* file size */ - OUT int links; /* number of links */ - OUT int index_high; /* unique index */ - OUT int index_low; /* unique index */ - OUT unsigned int serial; /* volume serial number */ -}; - - -/* Lock a region of a file */ -struct lock_file_request -{ - REQUEST_HEADER; /* request header */ - IN handle_t handle; /* handle to the file */ - IN unsigned int offset_low; /* offset of start of lock */ - IN unsigned int offset_high; /* offset of start of lock */ - IN unsigned int count_low; /* count of bytes to lock */ - IN unsigned int count_high; /* count of bytes to lock */ -}; - - -/* Unlock a region of a file */ -struct unlock_file_request -{ - REQUEST_HEADER; /* request header */ - IN handle_t handle; /* handle to the file */ - IN unsigned int offset_low; /* offset of start of unlock */ - IN unsigned int offset_high; /* offset of start of unlock */ - IN unsigned int count_low; /* count of bytes to unlock */ - IN unsigned int count_high; /* count of bytes to unlock */ -}; - - -/* Create an anonymous pipe */ -struct create_pipe_request -{ - REQUEST_HEADER; /* request header */ - IN int inherit; /* inherit flag */ - OUT handle_t handle_read; /* handle to the read-side of the pipe */ - OUT handle_t handle_write; /* handle to the write-side of the pipe */ -}; - - -/* Create a socket */ -struct create_socket_request -{ - REQUEST_HEADER; /* request header */ - IN unsigned int access; /* wanted access rights */ - IN int inherit; /* inherit flag */ - IN int family; /* family, see socket manpage */ - IN int type; /* type, see socket manpage */ - IN int protocol; /* protocol, see socket manpage */ - OUT handle_t handle; /* handle to the new socket */ -}; - - -/* Accept a socket */ -struct accept_socket_request -{ - REQUEST_HEADER; /* request header */ - IN handle_t lhandle; /* handle to the listening socket */ - IN unsigned int access; /* wanted access rights */ - IN int inherit; /* inherit flag */ - OUT handle_t handle; /* handle to the new socket */ -}; - - -/* Set socket event parameters */ -struct set_socket_event_request -{ - REQUEST_HEADER; /* request header */ - IN handle_t handle; /* handle to the socket */ - IN unsigned int mask; /* event mask */ - IN handle_t event; /* event object */ -}; - - -/* Get socket event parameters */ -struct get_socket_event_request -{ - REQUEST_HEADER; /* request header */ - IN handle_t handle; /* handle to the socket */ - IN int service; /* clear pending? */ - IN handle_t s_event; /* "expected" event object */ - IN handle_t c_event; /* event to clear */ - OUT unsigned int mask; /* event mask */ - OUT unsigned int pmask; /* pending events */ - OUT unsigned int state; /* status bits */ - OUT VARARG(errors,ints); /* event errors */ -}; - - -/* Reenable pending socket events */ -struct enable_socket_event_request -{ - REQUEST_HEADER; /* request header */ - IN handle_t handle; /* handle to the socket */ - IN unsigned int mask; /* events to re-enable */ - IN unsigned int sstate; /* status bits to set */ - IN unsigned int cstate; /* status bits to clear */ -}; - - -/* Allocate a console for the current process */ -struct alloc_console_request -{ - REQUEST_HEADER; /* request header */ - IN unsigned int access; /* wanted access rights */ - IN int inherit; /* inherit flag */ - OUT handle_t handle_in; /* handle to console input */ - OUT handle_t handle_out; /* handle to console output */ -}; - - -/* Free the console of the current process */ -struct free_console_request -{ - REQUEST_HEADER; /* request header */ -}; - - -/* Open a handle to the process console */ -struct open_console_request -{ - REQUEST_HEADER; /* request header */ - IN int output; /* input or output? */ - IN unsigned int access; /* wanted access rights */ - IN int inherit; /* inherit flag */ - OUT handle_t handle; /* handle to the console */ -}; - - -/* Set a console file descriptor */ -struct set_console_fd_request -{ - REQUEST_HEADER; /* request header */ - IN handle_t handle; /* handle to the console */ - IN int fd_in; /* file descriptor to use as input */ - IN int fd_out; /* file descriptor to use as output */ - IN int pid; /* pid of xterm (hack) */ -}; - - -/* Get a console mode (input or output) */ -struct get_console_mode_request -{ - REQUEST_HEADER; /* request header */ - IN handle_t handle; /* handle to the console */ - OUT int mode; /* console mode */ -}; - - -/* Set a console mode (input or output) */ -struct set_console_mode_request -{ - REQUEST_HEADER; /* request header */ - IN handle_t handle; /* handle to the console */ - IN int mode; /* console mode */ -}; - - -/* Set info about a console (output only) */ -struct set_console_info_request -{ - REQUEST_HEADER; /* request header */ - IN handle_t handle; /* handle to the console */ - IN int mask; /* setting mask (see below) */ - IN int cursor_size; /* size of cursor (percentage filled) */ - IN int cursor_visible;/* cursor visibility flag */ - IN VARARG(title,string); /* console title */ -}; -#define SET_CONSOLE_INFO_CURSOR 0x01 -#define SET_CONSOLE_INFO_TITLE 0x02 - -/* Get info about a console (output only) */ -struct get_console_info_request -{ - REQUEST_HEADER; /* request header */ - IN handle_t handle; /* handle to the console */ - OUT int cursor_size; /* size of cursor (percentage filled) */ - OUT int cursor_visible;/* cursor visibility flag */ - OUT int pid; /* pid of xterm (hack) */ - OUT VARARG(title,string); /* console title */ -}; - - -/* Add input records to a console input queue */ -struct write_console_input_request -{ - REQUEST_HEADER; /* request header */ - IN handle_t handle; /* handle to the console input */ - OUT int written; /* number of records written */ - IN VARARG(rec,input_records); /* input records */ -}; - -/* Fetch input records from a console input queue */ -struct read_console_input_request -{ - REQUEST_HEADER; /* request header */ - IN handle_t handle; /* handle to the console input */ - IN int flush; /* flush the retrieved records from the queue? */ - OUT int read; /* number of records read */ - OUT VARARG(rec,input_records); /* input records */ -}; - - -/* Create a change notification */ -struct create_change_notification_request -{ - REQUEST_HEADER; /* request header */ - IN int subtree; /* watch all the subtree */ - IN int filter; /* notification filter */ - OUT handle_t handle; /* handle to the change notification */ -}; - - -/* Create a file mapping */ -struct create_mapping_request -{ - REQUEST_HEADER; /* request header */ - IN int size_high; /* mapping size */ - IN int size_low; /* mapping size */ - IN int protect; /* protection flags (see below) */ - IN int inherit; /* inherit flag */ - IN handle_t file_handle; /* file handle */ - OUT handle_t handle; /* handle to the mapping */ - IN VARARG(name,unicode_str); /* object name */ -}; -/* protection flags */ -#define VPROT_READ 0x01 -#define VPROT_WRITE 0x02 -#define VPROT_EXEC 0x04 -#define VPROT_WRITECOPY 0x08 -#define VPROT_GUARD 0x10 -#define VPROT_NOCACHE 0x20 -#define VPROT_COMMITTED 0x40 -#define VPROT_IMAGE 0x80 - - -/* Open a mapping */ -struct open_mapping_request -{ - REQUEST_HEADER; /* request header */ - IN unsigned int access; /* wanted access rights */ - IN int inherit; /* inherit flag */ - OUT handle_t handle; /* handle to the mapping */ - IN VARARG(name,unicode_str); /* object name */ -}; - - -/* Get information about a file mapping */ -struct get_mapping_info_request -{ - REQUEST_HEADER; /* request header */ - IN handle_t handle; /* handle to the mapping */ - OUT int size_high; /* mapping size */ - OUT int size_low; /* mapping size */ - OUT int protect; /* protection flags */ - OUT int header_size; /* header size (for VPROT_IMAGE mapping) */ - OUT void* base; /* default base addr (for VPROT_IMAGE mapping) */ - OUT handle_t shared_file; /* shared mapping file handle */ - OUT int shared_size; /* shared mapping size */ -}; - - -/* Create a device */ -struct create_device_request -{ - REQUEST_HEADER; /* request header */ - IN unsigned int access; /* wanted access rights */ - IN int inherit; /* inherit flag */ - IN int id; /* client private id */ - OUT handle_t handle; /* handle to the device */ -}; - - -/* Create a snapshot */ -struct create_snapshot_request -{ - REQUEST_HEADER; /* request header */ - IN int inherit; /* inherit flag */ - IN int flags; /* snapshot flags (TH32CS_*) */ - IN void* pid; /* process id */ - OUT handle_t handle; /* handle to the snapshot */ -}; - - -/* Get the next process from a snapshot */ -struct next_process_request -{ - REQUEST_HEADER; /* request header */ - IN handle_t handle; /* handle to the snapshot */ - IN int reset; /* reset snapshot position? */ - OUT int count; /* process usage count */ - OUT void* pid; /* process id */ - OUT int threads; /* number of threads */ - OUT int priority; /* process priority */ -}; - - -/* Get the next thread from a snapshot */ -struct next_thread_request -{ - REQUEST_HEADER; /* request header */ - IN handle_t handle; /* handle to the snapshot */ - IN int reset; /* reset snapshot position? */ - OUT int count; /* thread usage count */ - OUT void* pid; /* process id */ - OUT void* tid; /* thread id */ - OUT int base_pri; /* base priority */ - OUT int delta_pri; /* delta priority */ -}; - - -/* Get the next module from a snapshot */ -struct next_module_request -{ - REQUEST_HEADER; /* request header */ - IN handle_t handle; /* handle to the snapshot */ - IN int reset; /* reset snapshot position? */ - OUT void* pid; /* process id */ - OUT void* base; /* module base address */ -}; - - -/* Wait for a debug event */ -struct wait_debug_event_request -{ - REQUEST_HEADER; /* request header */ - IN int get_handle; /* should we alloc a handle for waiting? */ - OUT void* pid; /* process id */ - OUT void* tid; /* thread id */ - OUT handle_t wait; /* wait handle if no event ready */ - OUT VARARG(event,debug_event); /* debug event data */ -}; - - -/* Queue an exception event */ -struct queue_exception_event_request -{ - REQUEST_HEADER; /* request header */ - IN int first; /* first chance exception? */ - OUT handle_t handle; /* handle to the queued event */ - IN VARARG(record,exc_event); /* thread context followed by exception record */ -}; - - -/* Retrieve the status of an exception event */ -struct get_exception_status_request -{ - REQUEST_HEADER; /* request header */ - OUT handle_t handle; /* handle to the queued event */ - OUT int status; /* event continuation status */ - OUT VARARG(context,context); /* modified thread context */ -}; - - -/* Send an output string to the debugger */ -struct output_debug_string_request -{ - REQUEST_HEADER; /* request header */ - IN void* string; /* string to display (in debugged process address space) */ - IN int unicode; /* is it Unicode? */ - IN int length; /* string length */ -}; - - -/* Continue a debug event */ -struct continue_debug_event_request -{ - REQUEST_HEADER; /* request header */ - IN void* pid; /* process id to continue */ - IN void* tid; /* thread id to continue */ - IN int status; /* continuation status */ -}; - - -/* Start debugging an existing process */ -struct debug_process_request -{ - REQUEST_HEADER; /* request header */ - IN void* pid; /* id of the process to debug */ -}; - - -/* Read data from a process address space */ -struct read_process_memory_request -{ - REQUEST_HEADER; /* request header */ - IN handle_t handle; /* process handle */ - IN void* addr; /* addr to read from (must be int-aligned) */ - IN int len; /* number of ints to read */ - OUT VARARG(data,bytes); /* result data */ -}; - - -/* Write data to a process address space */ -struct write_process_memory_request -{ - REQUEST_HEADER; /* request header */ - IN handle_t handle; /* process handle */ - IN void* addr; /* addr to write to (must be int-aligned) */ - IN int len; /* number of ints to write */ - IN unsigned int first_mask; /* mask for first word */ - IN unsigned int last_mask; /* mask for last word */ - IN VARARG(data,bytes); /* result data */ -}; - - -/* Create a registry key */ -struct create_key_request -{ - REQUEST_HEADER; /* request header */ - IN handle_t parent; /* handle to the parent key */ - IN unsigned int access; /* desired access rights */ - IN unsigned int options; /* creation options */ - IN time_t modif; /* last modification time */ - OUT handle_t hkey; /* handle to the created key */ - OUT int created; /* has it been newly created? */ - IN VARARG(name,unicode_len_str); /* key name */ - IN VARARG(class,unicode_str); /* class name */ -}; - -/* Open a registry key */ -struct open_key_request -{ - REQUEST_HEADER; /* request header */ - IN handle_t parent; /* handle to the parent key */ - IN unsigned int access; /* desired access rights */ - OUT handle_t hkey; /* handle to the open key */ - IN VARARG(name,unicode_str); /* key name */ -}; - - -/* Delete a registry key */ -struct delete_key_request -{ - REQUEST_HEADER; /* request header */ - IN handle_t hkey; /* handle to the key */ -}; - - -/* Enumerate registry subkeys */ -struct enum_key_request -{ - REQUEST_HEADER; /* request header */ - IN handle_t hkey; /* handle to registry key */ - IN int index; /* index of subkey (or -1 for current key) */ - IN int full; /* return the full info? */ - OUT int subkeys; /* number of subkeys */ - OUT int max_subkey; /* longest subkey name */ - OUT int max_class; /* longest class name */ - OUT int values; /* number of values */ - OUT int max_value; /* longest value name */ - OUT int max_data; /* longest value data */ - OUT time_t modif; /* last modification time */ - OUT VARARG(name,unicode_len_str); /* key name */ - OUT VARARG(class,unicode_str); /* class name */ -}; - - -/* Set a value of a registry key */ -struct set_key_value_request -{ - REQUEST_HEADER; /* request header */ - IN handle_t hkey; /* handle to registry key */ - IN int type; /* value type */ - IN unsigned int total; /* total value len */ - IN unsigned int offset; /* offset for setting data */ - IN VARARG(name,unicode_len_str); /* value name */ - IN VARARG(data,bytes); /* value data */ -}; - - -/* Retrieve the value of a registry key */ -struct get_key_value_request -{ - REQUEST_HEADER; /* request header */ - IN handle_t hkey; /* handle to registry key */ - IN unsigned int offset; /* offset for getting data */ - OUT int type; /* value type */ - OUT int len; /* value data len */ - IN VARARG(name,unicode_len_str); /* value name */ - OUT VARARG(data,bytes); /* value data */ -}; - - -/* Enumerate a value of a registry key */ -struct enum_key_value_request -{ - REQUEST_HEADER; /* request header */ - IN handle_t hkey; /* handle to registry key */ - IN int index; /* value index */ - IN unsigned int offset; /* offset for getting data */ - OUT int type; /* value type */ - OUT int len; /* value data len */ - OUT VARARG(name,unicode_len_str); /* value name */ - OUT VARARG(data,bytes); /* value data */ -}; - - -/* Delete a value of a registry key */ -struct delete_key_value_request -{ - REQUEST_HEADER; /* request header */ - IN handle_t hkey; /* handle to registry key */ - IN VARARG(name,unicode_str); /* value name */ -}; - - -/* Load a registry branch from a file */ -struct load_registry_request -{ - REQUEST_HEADER; /* request header */ - IN handle_t hkey; /* root key to load to */ - IN handle_t file; /* file to load from */ - IN VARARG(name,unicode_str); /* subkey name */ -}; - - -/* Save a registry branch to a file */ -struct save_registry_request -{ - REQUEST_HEADER; /* request header */ - IN handle_t hkey; /* key to save */ - IN handle_t file; /* file to save to */ -}; - - -/* Save a registry branch at server exit */ -struct save_registry_atexit_request -{ - REQUEST_HEADER; /* request header */ - IN handle_t hkey; /* key to save */ - IN VARARG(file,string); /* file to save to */ -}; - - -/* Set the current and saving level for the registry */ -struct set_registry_levels_request -{ - REQUEST_HEADER; /* request header */ - IN int current; /* new current level */ - IN int saving; /* new saving level */ - IN int period; /* duration between periodic saves (milliseconds) */ -}; - - -/* Create a waitable timer */ -struct create_timer_request -{ - REQUEST_HEADER; /* request header */ - IN int inherit; /* inherit flag */ - IN int manual; /* manual reset */ - OUT handle_t handle; /* handle to the timer */ - IN VARARG(name,unicode_str); /* object name */ -}; - - -/* Open a waitable timer */ -struct open_timer_request -{ - REQUEST_HEADER; /* request header */ - IN unsigned int access; /* wanted access rights */ - IN int inherit; /* inherit flag */ - OUT handle_t handle; /* handle to the timer */ - IN VARARG(name,unicode_str); /* object name */ -}; - -/* Set a waitable timer */ -struct set_timer_request -{ - REQUEST_HEADER; /* request header */ - IN handle_t handle; /* handle to the timer */ - IN int sec; /* next expiration absolute time */ - IN int usec; /* next expiration absolute time */ - IN int period; /* timer period in ms */ - IN void* callback; /* callback function */ - IN void* arg; /* callback argument */ -}; - -/* Cancel a waitable timer */ -struct cancel_timer_request -{ - REQUEST_HEADER; /* request header */ - IN handle_t handle; /* handle to the timer */ -}; - - -/* Retrieve the current context of a thread */ -struct get_thread_context_request -{ - REQUEST_HEADER; /* request header */ - IN handle_t handle; /* thread handle */ - IN unsigned int flags; /* context flags */ - OUT VARARG(context,context); /* thread context */ -}; - - -/* Set the current context of a thread */ -struct set_thread_context_request -{ - REQUEST_HEADER; /* request header */ - IN handle_t handle; /* thread handle */ - IN unsigned int flags; /* context flags */ - IN VARARG(context,context); /* thread context */ -}; - - -/* Fetch a selector entry for a thread */ -struct get_selector_entry_request -{ - REQUEST_HEADER; /* request header */ - IN handle_t handle; /* thread handle */ - IN int entry; /* LDT entry */ - OUT unsigned int base; /* selector base */ - OUT unsigned int limit; /* selector limit */ - OUT unsigned char flags; /* selector flags */ -}; - - -/* Add an atom */ -struct add_atom_request -{ - REQUEST_HEADER; /* request header */ - IN int local; /* is atom in local process table? */ - OUT int atom; /* resulting atom */ - IN VARARG(name,unicode_str); /* atom name */ -}; - - -/* Delete an atom */ -struct delete_atom_request -{ - REQUEST_HEADER; /* request header */ - IN int atom; /* atom handle */ - IN int local; /* is atom in local process table? */ -}; - - -/* Find an atom */ -struct find_atom_request -{ - REQUEST_HEADER; /* request header */ - IN int local; /* is atom in local process table? */ - OUT int atom; /* atom handle */ - IN VARARG(name,unicode_str); /* atom name */ -}; - - -/* Get an atom name */ -struct get_atom_name_request -{ - REQUEST_HEADER; /* request header */ - IN int atom; /* atom handle */ - IN int local; /* is atom in local process table? */ - OUT int count; /* atom lock count */ - OUT VARARG(name,unicode_str); /* atom name */ -}; - - -/* Init the process atom table */ -struct init_atom_table_request -{ - REQUEST_HEADER; /* request header */ - IN int entries; /* number of entries */ -}; - - -/* Get the message queue of the current thread */ -struct get_msg_queue_request -{ - REQUEST_HEADER; /* request header */ - OUT handle_t handle; /* handle to the queue */ -}; - - -/* Increment the message queue paint count */ -struct inc_queue_paint_count_request -{ - REQUEST_HEADER; /* request header */ - IN void* id; /* thread id */ - IN int incr; /* increment (can be negative) */ -}; - - -/* Set the current message queue wakeup mask */ -struct set_queue_mask_request -{ - REQUEST_HEADER; /* request header */ - IN unsigned int wake_mask; /* wakeup bits mask */ - IN unsigned int changed_mask; /* changed bits mask */ - IN int skip_wait; /* will we skip waiting if signaled? */ - OUT unsigned int wake_bits; /* current wake bits */ - OUT unsigned int changed_bits; /* current changed bits */ -}; - - -/* Get the current message queue status */ -struct get_queue_status_request -{ - REQUEST_HEADER; /* request header */ - IN int clear; /* should we clear the change bits? */ - OUT unsigned int wake_bits; /* wake bits */ - OUT unsigned int changed_bits; /* changed bits since last time */ -}; - - -/* Wait for a process to start waiting on input */ -struct wait_input_idle_request -{ - REQUEST_HEADER; /* request header */ - IN handle_t handle; /* process handle */ - IN int timeout; /* timeout */ - OUT handle_t event; /* handle to idle event */ -}; - - -/* Send a message to a thread queue */ -struct send_message_request -{ - REQUEST_HEADER; /* request header */ - IN int kind; /* message kind (see below) */ - IN void* id; /* thread id */ - IN int type; /* message type */ - IN handle_t win; /* window handle */ - IN unsigned int msg; /* message code */ - IN unsigned int wparam; /* parameters */ - IN unsigned int lparam; /* parameters */ - IN unsigned short x; /* x position */ - IN unsigned short y; /* y position */ - IN unsigned int time; /* message time */ - IN unsigned int info; /* extra info */ -}; -enum message_kind { SEND_MESSAGE, POST_MESSAGE, COOKED_HW_MESSAGE, RAW_HW_MESSAGE }; -#define NB_MSG_KINDS (RAW_HW_MESSAGE+1) - - -/* Get a message from the current queue */ -struct get_message_request -{ - REQUEST_HEADER; /* request header */ - IN int flags; /* see below */ - IN handle_t get_win; /* window handle to get */ - IN unsigned int get_first; /* first message code to get */ - IN unsigned int get_last; /* last message code to get */ - OUT int kind; /* message kind */ - OUT int type; /* message type */ - OUT handle_t win; /* window handle */ - OUT unsigned int msg; /* message code */ - OUT unsigned int wparam; /* parameters */ - OUT unsigned int lparam; /* parameters */ - OUT unsigned short x; /* x position */ - OUT unsigned short y; /* y position */ - OUT unsigned int time; /* message time */ - OUT unsigned int info; /* extra info */ -}; -#define GET_MSG_REMOVE 1 /* remove the message */ -#define GET_MSG_SENT_ONLY 2 /* only get sent messages */ -#define GET_MSG_REMOVE_LAST 4 /* remove last message returned before checking for a new one */ - -/* Reply to a sent message */ -struct reply_message_request -{ - REQUEST_HEADER; /* request header */ - IN unsigned int result; /* message result */ - IN int remove; /* should we remove the message? */ -}; - - -/* Retrieve the reply for the last message sent */ -struct get_message_reply_request -{ - REQUEST_HEADER; /* request header */ - IN int cancel; /* cancel message if not ready? */ - OUT unsigned int result; /* message result */ -}; - - -/* Check if we are processing a sent message */ -struct in_send_message_request -{ - REQUEST_HEADER; /* request header */ - OUT int flags; /* ISMEX_* flags */ -}; - - -/* Cleanup a queue when a window is deleted */ -struct cleanup_window_queue_request -{ - REQUEST_HEADER; /* request header */ - IN handle_t win; /* window handle */ -}; - - -/* Set a window timer */ -struct set_win_timer_request -{ - REQUEST_HEADER; /* request header */ - IN handle_t win; /* window handle */ - IN unsigned int msg; /* message to post */ - IN unsigned int id; /* timer id */ - IN unsigned int rate; /* timer rate in ms */ - IN unsigned int lparam; /* message lparam (callback proc) */ -}; - - -/* Kill a window timer */ -struct kill_win_timer_request -{ - REQUEST_HEADER; /* request header */ - IN handle_t win; /* window handle */ - IN unsigned int msg; /* message to post */ - IN unsigned int id; /* timer id */ -}; - - -struct create_serial_request -{ - REQUEST_HEADER; /* request header */ - IN unsigned int access; /* wanted access rights */ - IN int inherit; /* inherit flag */ - IN unsigned int sharing; /* sharing flags */ - OUT handle_t handle; /* handle to the port */ - IN VARARG(name,string); /* file name */ -}; - -struct get_serial_info_request -{ - REQUEST_HEADER; /* request header */ - IN handle_t handle; /* handle to comm port */ - OUT unsigned int readinterval; - OUT unsigned int readconst; - OUT unsigned int readmult; - OUT unsigned int writeconst; - OUT unsigned int writemult; - OUT unsigned int eventmask; - OUT unsigned int commerror; -}; - -struct set_serial_info_request -{ - REQUEST_HEADER; /* request header */ - IN handle_t handle; /* handle to comm port */ - IN int flags; /* bitmask to set values (see below) */ - IN unsigned int readinterval; - IN unsigned int readconst; - IN unsigned int readmult; - IN unsigned int writeconst; - IN unsigned int writemult; - IN unsigned int eventmask; - IN unsigned int commerror; -}; -#define SERIALINFO_SET_TIMEOUTS 0x01 -#define SERIALINFO_SET_MASK 0x02 -#define SERIALINFO_SET_ERROR 0x04 - -struct create_async_request -{ - REQUEST_HEADER; /* request header */ - IN handle_t file_handle; /* handle to comm port, socket or file */ - IN int count; - IN int type; - OUT int timeout; -}; -#define ASYNC_TYPE_READ 0x01 -#define ASYNC_TYPE_WRITE 0x02 -#define ASYNC_TYPE_WAIT 0x03 - -struct create_named_pipe_request -{ - REQUEST_HEADER; /* request header */ - IN unsigned int openmode; - IN unsigned int pipemode; - IN unsigned int maxinstances; - IN unsigned int outsize; - IN unsigned int insize; - IN unsigned int timeout; - OUT handle_t handle; /* handle to the pipe */ - IN VARARG(filename,string); /* pipe name */ -}; - -struct open_named_pipe_request -{ - REQUEST_HEADER; /* request header */ - IN unsigned int access; - OUT handle_t handle; /* handle to the pipe */ - IN VARARG(filename,string); /* pipe name */ -}; - -struct connect_named_pipe_request -{ - REQUEST_HEADER; - IN handle_t handle; - IN handle_t event; /* set this event when it's ready */ -}; - -/* Everything below this line is generated automatically by tools/make_requests */ -/* ### make_requests begin ### */ - -enum request -{ - REQ_new_process, - REQ_get_new_process_info, - REQ_new_thread, - REQ_boot_done, - REQ_init_process, - REQ_init_process_done, - REQ_init_thread, - REQ_set_thread_buffer, - REQ_terminate_process, - REQ_terminate_thread, - REQ_get_process_info, - REQ_set_process_info, - REQ_get_thread_info, - REQ_set_thread_info, - REQ_suspend_thread, - REQ_resume_thread, - REQ_load_dll, - REQ_unload_dll, - REQ_queue_apc, - REQ_get_apc, - REQ_close_handle, - REQ_set_handle_info, - REQ_dup_handle, - REQ_open_process, - REQ_select, - REQ_create_event, - REQ_event_op, - REQ_open_event, - REQ_create_mutex, - REQ_release_mutex, - REQ_open_mutex, - REQ_create_semaphore, - REQ_release_semaphore, - REQ_open_semaphore, - REQ_create_file, - REQ_alloc_file_handle, - REQ_get_handle_fd, - REQ_set_file_pointer, - REQ_truncate_file, - REQ_set_file_time, - REQ_flush_file, - REQ_get_file_info, - REQ_lock_file, - REQ_unlock_file, - REQ_create_pipe, - REQ_create_socket, - REQ_accept_socket, - REQ_set_socket_event, - REQ_get_socket_event, - REQ_enable_socket_event, - REQ_alloc_console, - REQ_free_console, - REQ_open_console, - REQ_set_console_fd, - REQ_get_console_mode, - REQ_set_console_mode, - REQ_set_console_info, - REQ_get_console_info, - REQ_write_console_input, - REQ_read_console_input, - REQ_create_change_notification, - REQ_create_mapping, - REQ_open_mapping, - REQ_get_mapping_info, - REQ_create_device, - REQ_create_snapshot, - REQ_next_process, - REQ_next_thread, - REQ_next_module, - REQ_wait_debug_event, - REQ_queue_exception_event, - REQ_get_exception_status, - REQ_output_debug_string, - REQ_continue_debug_event, - REQ_debug_process, - REQ_read_process_memory, - REQ_write_process_memory, - REQ_create_key, - REQ_open_key, - REQ_delete_key, - REQ_enum_key, - REQ_set_key_value, - REQ_get_key_value, - REQ_enum_key_value, - REQ_delete_key_value, - REQ_load_registry, - REQ_save_registry, - REQ_save_registry_atexit, - REQ_set_registry_levels, - REQ_create_timer, - REQ_open_timer, - REQ_set_timer, - REQ_cancel_timer, - REQ_get_thread_context, - REQ_set_thread_context, - REQ_get_selector_entry, - REQ_add_atom, - REQ_delete_atom, - REQ_find_atom, - REQ_get_atom_name, - REQ_init_atom_table, - REQ_get_msg_queue, - REQ_inc_queue_paint_count, - REQ_set_queue_mask, - REQ_get_queue_status, - REQ_wait_input_idle, - REQ_send_message, - REQ_get_message, - REQ_reply_message, - REQ_get_message_reply, - REQ_in_send_message, - REQ_cleanup_window_queue, - REQ_set_win_timer, - REQ_kill_win_timer, - REQ_create_serial, - REQ_get_serial_info, - REQ_set_serial_info, - REQ_create_async, - REQ_create_named_pipe, - REQ_open_named_pipe, - REQ_connect_named_pipe, - REQ_NB_REQUESTS -}; - -union generic_request -{ - struct request_max_size max_size; - struct request_header header; - struct new_process_request new_process; - struct get_new_process_info_request get_new_process_info; - struct new_thread_request new_thread; - struct boot_done_request boot_done; - struct init_process_request init_process; - struct init_process_done_request init_process_done; - struct init_thread_request init_thread; - struct set_thread_buffer_request set_thread_buffer; - struct terminate_process_request terminate_process; - struct terminate_thread_request terminate_thread; - struct get_process_info_request get_process_info; - struct set_process_info_request set_process_info; - struct get_thread_info_request get_thread_info; - struct set_thread_info_request set_thread_info; - struct suspend_thread_request suspend_thread; - struct resume_thread_request resume_thread; - struct load_dll_request load_dll; - struct unload_dll_request unload_dll; - struct queue_apc_request queue_apc; - struct get_apc_request get_apc; - struct close_handle_request close_handle; - struct set_handle_info_request set_handle_info; - struct dup_handle_request dup_handle; - struct open_process_request open_process; - struct select_request select; - struct create_event_request create_event; - struct event_op_request event_op; - struct open_event_request open_event; - struct create_mutex_request create_mutex; - struct release_mutex_request release_mutex; - struct open_mutex_request open_mutex; - struct create_semaphore_request create_semaphore; - struct release_semaphore_request release_semaphore; - struct open_semaphore_request open_semaphore; - struct create_file_request create_file; - struct alloc_file_handle_request alloc_file_handle; - struct get_handle_fd_request get_handle_fd; - struct set_file_pointer_request set_file_pointer; - struct truncate_file_request truncate_file; - struct set_file_time_request set_file_time; - struct flush_file_request flush_file; - struct get_file_info_request get_file_info; - struct lock_file_request lock_file; - struct unlock_file_request unlock_file; - struct create_pipe_request create_pipe; - struct create_socket_request create_socket; - struct accept_socket_request accept_socket; - struct set_socket_event_request set_socket_event; - struct get_socket_event_request get_socket_event; - struct enable_socket_event_request enable_socket_event; - struct alloc_console_request alloc_console; - struct free_console_request free_console; - struct open_console_request open_console; - struct set_console_fd_request set_console_fd; - struct get_console_mode_request get_console_mode; - struct set_console_mode_request set_console_mode; - struct set_console_info_request set_console_info; - struct get_console_info_request get_console_info; - struct write_console_input_request write_console_input; - struct read_console_input_request read_console_input; - struct create_change_notification_request create_change_notification; - struct create_mapping_request create_mapping; - struct open_mapping_request open_mapping; - struct get_mapping_info_request get_mapping_info; - struct create_device_request create_device; - struct create_snapshot_request create_snapshot; - struct next_process_request next_process; - struct next_thread_request next_thread; - struct next_module_request next_module; - struct wait_debug_event_request wait_debug_event; - struct queue_exception_event_request queue_exception_event; - struct get_exception_status_request get_exception_status; - struct output_debug_string_request output_debug_string; - struct continue_debug_event_request continue_debug_event; - struct debug_process_request debug_process; - struct read_process_memory_request read_process_memory; - struct write_process_memory_request write_process_memory; - struct create_key_request create_key; - struct open_key_request open_key; - struct delete_key_request delete_key; - struct enum_key_request enum_key; - struct set_key_value_request set_key_value; - struct get_key_value_request get_key_value; - struct enum_key_value_request enum_key_value; - struct delete_key_value_request delete_key_value; - struct load_registry_request load_registry; - struct save_registry_request save_registry; - struct save_registry_atexit_request save_registry_atexit; - struct set_registry_levels_request set_registry_levels; - struct create_timer_request create_timer; - struct open_timer_request open_timer; - struct set_timer_request set_timer; - struct cancel_timer_request cancel_timer; - struct get_thread_context_request get_thread_context; - struct set_thread_context_request set_thread_context; - struct get_selector_entry_request get_selector_entry; - struct add_atom_request add_atom; - struct delete_atom_request delete_atom; - struct find_atom_request find_atom; - struct get_atom_name_request get_atom_name; - struct init_atom_table_request init_atom_table; - struct get_msg_queue_request get_msg_queue; - struct inc_queue_paint_count_request inc_queue_paint_count; - struct set_queue_mask_request set_queue_mask; - struct get_queue_status_request get_queue_status; - struct wait_input_idle_request wait_input_idle; - struct send_message_request send_message; - struct get_message_request get_message; - struct reply_message_request reply_message; - struct get_message_reply_request get_message_reply; - struct in_send_message_request in_send_message; - struct cleanup_window_queue_request cleanup_window_queue; - struct set_win_timer_request set_win_timer; - struct kill_win_timer_request kill_win_timer; - struct create_serial_request create_serial; - struct get_serial_info_request get_serial_info; - struct set_serial_info_request set_serial_info; - struct create_async_request create_async; - struct create_named_pipe_request create_named_pipe; - struct open_named_pipe_request open_named_pipe; - struct connect_named_pipe_request connect_named_pipe; -}; - -#define SERVER_PROTOCOL_VERSION 48 - -/* ### make_requests end ### */ -/* Everything above this line is generated automatically by tools/make_requests */ - -#undef REQUEST_HEADER -#undef VARARG - -/* client-side functions */ - -#ifndef __WINE_SERVER__ - -#include "thread.h" -#include "ntddk.h" -#include "wine/exception.h" - -/* client communication functions */ - -extern unsigned int wine_server_call( union generic_request *req, size_t size ); -extern void server_protocol_error( const char *err, ... ) WINE_NORETURN; -extern void server_protocol_perror( const char *err ) WINE_NORETURN; -extern void wine_server_alloc_req( union generic_request *req, size_t size ); -extern void wine_server_send_fd( int fd ); -extern int wine_server_recv_fd( handle_t handle ); -extern const char *get_config_dir(void); - -/* do a server call and set the last error code */ -inline static unsigned int __server_call_err( union generic_request *req, size_t size ) -{ - unsigned int res = wine_server_call( req, size ); - if (res) SetLastError( RtlNtStatusToDosError(res) ); - return res; -} - -/* get a pointer to the variable part of the request */ -inline static void *server_data_ptr( const void *req ) -{ - return (char *)NtCurrentTeb()->buffer + ((struct request_header *)req)->var_offset; -} - -/* get the size of the variable part of the request */ -inline static size_t server_data_size( const void *req ) -{ - return ((struct request_header *)req)->var_size; -} - - -/* exception support for server calls */ - -extern DWORD __wine_server_exception_handler( PEXCEPTION_RECORD record, EXCEPTION_FRAME *frame, - CONTEXT *context, EXCEPTION_FRAME **pdispatcher ); - -struct __server_exception_frame -{ - EXCEPTION_FRAME frame; - unsigned int buffer_pos; /* saved buffer position */ -}; - - -/* macros for server requests */ - -#define SERVER_START_REQ(type) \ - do { \ - union generic_request __req; \ - struct type##_request * const req = &__req.type; \ - __req.header.req = REQ_##type; \ - __req.header.var_size = 0; \ - do - -#define SERVER_END_REQ \ - while(0); \ - } while(0) - -#define SERVER_START_VAR_REQ(type,size) \ - do { \ - struct __server_exception_frame __f; \ - union generic_request __req; \ - struct type##_request * const req = &__req.type; \ - __f.frame.Handler = __wine_server_exception_handler; \ - __f.buffer_pos = NtCurrentTeb()->buffer_pos; \ - __wine_push_frame( &__f.frame ); \ - __req.header.req = REQ_##type; \ - wine_server_alloc_req( &__req, (size) ); \ - do - -#define SERVER_END_VAR_REQ \ - while(0); \ - NtCurrentTeb()->buffer_pos = __f.buffer_pos; \ - __wine_pop_frame( &__f.frame ); \ - } while(0) - -#define SERVER_CALL() (wine_server_call( &__req, sizeof(*req) )) -#define SERVER_CALL_ERR() (__server_call_err( &__req, sizeof(*req) )) - - -extern void CLIENT_InitServer(void); -extern void CLIENT_InitThread(void); -extern void CLIENT_BootDone( int debug_level ); -extern int CLIENT_IsBootThread(void); -#endif /* __WINE_SERVER__ */ - -#endif /* __WINE_SERVER_H */ diff --git a/include/wine/server.h b/include/wine/server.h new file mode 100644 index 00000000000..6bc18c557f4 --- /dev/null +++ b/include/wine/server.h @@ -0,0 +1,99 @@ +/* + * Definitions for the client side of the Wine server communication + * + * Copyright (C) 1998 Alexandre Julliard + */ + +#ifndef __WINE_WINE_SERVER_H +#define __WINE_WINE_SERVER_H + +#include "thread.h" +#include "ntddk.h" +#include "wine/exception.h" +#include "wine/server_protocol.h" + +/* client communication functions */ + +extern unsigned int wine_server_call( union generic_request *req, size_t size ); +extern void server_protocol_error( const char *err, ... ) WINE_NORETURN; +extern void server_protocol_perror( const char *err ) WINE_NORETURN; +extern void wine_server_alloc_req( union generic_request *req, size_t size ); +extern void wine_server_send_fd( int fd ); +extern int wine_server_recv_fd( handle_t handle ); +extern const char *get_config_dir(void); + +/* do a server call and set the last error code */ +inline static unsigned int __server_call_err( union generic_request *req, size_t size ) +{ + unsigned int res = wine_server_call( req, size ); + if (res) SetLastError( RtlNtStatusToDosError(res) ); + return res; +} + +/* get a pointer to the variable part of the request */ +inline static void *server_data_ptr( const void *req ) +{ + return (char *)NtCurrentTeb()->buffer + ((struct request_header *)req)->var_offset; +} + +/* get the size of the variable part of the request */ +inline static size_t server_data_size( const void *req ) +{ + return ((struct request_header *)req)->var_size; +} + + +/* exception support for server calls */ + +extern DWORD __wine_server_exception_handler( PEXCEPTION_RECORD record, EXCEPTION_FRAME *frame, + CONTEXT *context, EXCEPTION_FRAME **pdispatcher ); + +struct __server_exception_frame +{ + EXCEPTION_FRAME frame; + unsigned int buffer_pos; /* saved buffer position */ +}; + + +/* macros for server requests */ + +#define SERVER_START_REQ(type) \ + do { \ + union generic_request __req; \ + struct type##_request * const req = &__req.type; \ + __req.header.req = REQ_##type; \ + __req.header.var_size = 0; \ + do + +#define SERVER_END_REQ \ + while(0); \ + } while(0) + +#define SERVER_START_VAR_REQ(type,size) \ + do { \ + struct __server_exception_frame __f; \ + union generic_request __req; \ + struct type##_request * const req = &__req.type; \ + __f.frame.Handler = __wine_server_exception_handler; \ + __f.buffer_pos = NtCurrentTeb()->buffer_pos; \ + __wine_push_frame( &__f.frame ); \ + __req.header.req = REQ_##type; \ + wine_server_alloc_req( &__req, (size) ); \ + do + +#define SERVER_END_VAR_REQ \ + while(0); \ + NtCurrentTeb()->buffer_pos = __f.buffer_pos; \ + __wine_pop_frame( &__f.frame ); \ + } while(0) + +#define SERVER_CALL() (wine_server_call( &__req, sizeof(*req) )) +#define SERVER_CALL_ERR() (__server_call_err( &__req, sizeof(*req) )) + + +extern void CLIENT_InitServer(void); +extern void CLIENT_InitThread(void); +extern void CLIENT_BootDone( int debug_level ); +extern int CLIENT_IsBootThread(void); + +#endif /* __WINE_WINE_SERVER_H */ diff --git a/include/wine/server_protocol.h b/include/wine/server_protocol.h new file mode 100644 index 00000000000..a8d8a8a37ac --- /dev/null +++ b/include/wine/server_protocol.h @@ -0,0 +1,1785 @@ +/* + * Wine server protocol definitions + * + * This file is automatically generated; DO NO EDIT! + * Edit server/protocol.def instead and re-run tools/make_requests + */ + +#ifndef __WINE_WINE_SERVER_PROTOCOL_H +#define __WINE_WINE_SERVER_PROTOCOL_H + +#include +#include +#include "winbase.h" + +struct request_header +{ + int req; + unsigned short var_offset; + unsigned short var_size; + unsigned int error; +}; + +struct reply_header +{ + unsigned int error; + unsigned short var_offset; + unsigned short var_size; +}; + + + +struct request_max_size +{ + int pad[16]; +}; + + +#define REQUEST_MAX_VAR_SIZE 1024 + +typedef int handle_t; + + +struct debug_event_exception +{ + EXCEPTION_RECORD record; + int first; +}; +struct debug_event_create_thread +{ + handle_t handle; + void *teb; + void *start; +}; +struct debug_event_create_process +{ + handle_t file; + handle_t process; + handle_t thread; + void *base; + int dbg_offset; + int dbg_size; + void *teb; + void *start; + void *name; + int unicode; +}; +struct debug_event_exit +{ + int exit_code; +}; +struct debug_event_load_dll +{ + handle_t handle; + void *base; + int dbg_offset; + int dbg_size; + void *name; + int unicode; +}; +struct debug_event_unload_dll +{ + void *base; +}; +struct debug_event_output_string +{ + void *string; + int unicode; + int length; +}; +struct debug_event_rip_info +{ + int error; + int type; +}; +union debug_event_data +{ + struct debug_event_exception exception; + struct debug_event_create_thread create_thread; + struct debug_event_create_process create_process; + struct debug_event_exit exit; + struct debug_event_load_dll load_dll; + struct debug_event_unload_dll unload_dll; + struct debug_event_output_string output_string; + struct debug_event_rip_info rip_info; +}; + + +typedef struct +{ + int code; + union debug_event_data info; +} debug_event_t; + + +struct send_fd +{ + void *tid; + int fd; +}; + + +struct wake_up_reply +{ + void *cookie; + int signaled; +}; + + + + + +struct new_process_request +{ + struct request_header __header; + int inherit_all; + int create_flags; + int start_flags; + handle_t exe_file; + handle_t hstdin; + handle_t hstdout; + handle_t hstderr; + int cmd_show; + /* VARARG(filename,string); */ + handle_t info; +}; + + + +struct get_new_process_info_request +{ + struct request_header __header; + handle_t info; + int pinherit; + int tinherit; + void* pid; + handle_t phandle; + void* tid; + handle_t thandle; + handle_t event; +}; + + + +struct new_thread_request +{ + struct request_header __header; + int suspend; + int inherit; + int request_fd; + void* tid; + handle_t handle; +}; + + + +struct boot_done_request +{ + struct request_header __header; + int debug_level; +}; + + + +struct init_process_request +{ + struct request_header __header; + void* ldt_copy; + int ppid; + int create_flags; + int start_flags; + unsigned int server_start; + handle_t exe_file; + handle_t hstdin; + handle_t hstdout; + handle_t hstderr; + int cmd_show; + /* VARARG(filename,string); */ +}; + + + +struct init_process_done_request +{ + struct request_header __header; + void* module; + void* entry; + void* name; + handle_t exe_file; + int gui; + int debugged; +}; + + + +struct init_thread_request +{ + struct request_header __header; + int unix_pid; + void* teb; + void* entry; + int reply_fd; + int wait_fd; + void* pid; + void* tid; + int boot; + int version; +}; + + + +struct set_thread_buffer_request +{ + struct request_header __header; + int fd; + unsigned int offset; + unsigned int size; +}; + + + +struct terminate_process_request +{ + struct request_header __header; + handle_t handle; + int exit_code; + int self; +}; + + + +struct terminate_thread_request +{ + struct request_header __header; + handle_t handle; + int exit_code; + int self; + int last; +}; + + + +struct get_process_info_request +{ + struct request_header __header; + handle_t handle; + void* pid; + int debugged; + int exit_code; + int priority; + int process_affinity; + int system_affinity; +}; + + + +struct set_process_info_request +{ + struct request_header __header; + handle_t handle; + int mask; + int priority; + int affinity; +}; +#define SET_PROCESS_INFO_PRIORITY 0x01 +#define SET_PROCESS_INFO_AFFINITY 0x02 + + + +struct get_thread_info_request +{ + struct request_header __header; + handle_t handle; + void* tid_in; + void* tid; + void* teb; + int exit_code; + int priority; +}; + + + +struct set_thread_info_request +{ + struct request_header __header; + handle_t handle; + int mask; + int priority; + int affinity; +}; +#define SET_THREAD_INFO_PRIORITY 0x01 +#define SET_THREAD_INFO_AFFINITY 0x02 + + + +struct suspend_thread_request +{ + struct request_header __header; + handle_t handle; + int count; +}; + + + +struct resume_thread_request +{ + struct request_header __header; + handle_t handle; + int count; +}; + + + +struct load_dll_request +{ + struct request_header __header; + handle_t handle; + void* base; + int dbg_offset; + int dbg_size; + void* name; +}; + + + +struct unload_dll_request +{ + struct request_header __header; + void* base; +}; + + + +struct queue_apc_request +{ + struct request_header __header; + handle_t handle; + int user; + void* func; + void* param; +}; + + + +struct get_apc_request +{ + struct request_header __header; + int alertable; + void* func; + int type; + /* VARARG(args,ptrs); */ +}; +enum apc_type { APC_NONE, APC_USER, APC_TIMER, APC_ASYNC }; + + + +struct close_handle_request +{ + struct request_header __header; + handle_t handle; + int fd; +}; + + + +struct set_handle_info_request +{ + struct request_header __header; + handle_t handle; + int flags; + int mask; + int fd; + int old_flags; + int cur_fd; +}; + + + +struct dup_handle_request +{ + struct request_header __header; + handle_t src_process; + handle_t src_handle; + handle_t dst_process; + unsigned int access; + int inherit; + int options; + handle_t handle; + int fd; +}; +#define DUP_HANDLE_CLOSE_SOURCE DUPLICATE_CLOSE_SOURCE +#define DUP_HANDLE_SAME_ACCESS DUPLICATE_SAME_ACCESS +#define DUP_HANDLE_MAKE_GLOBAL 0x80000000 + + + +struct open_process_request +{ + struct request_header __header; + void* pid; + unsigned int access; + int inherit; + handle_t handle; +}; + + + +struct select_request +{ + struct request_header __header; + int flags; + void* cookie; + int sec; + int usec; + /* VARARG(handles,handles); */ +}; +#define SELECT_ALL 1 +#define SELECT_ALERTABLE 2 +#define SELECT_INTERRUPTIBLE 4 +#define SELECT_TIMEOUT 8 + + + +struct create_event_request +{ + struct request_header __header; + int manual_reset; + int initial_state; + int inherit; + /* VARARG(name,unicode_str); */ + handle_t handle; +}; + + +struct event_op_request +{ + struct request_header __header; + handle_t handle; + int op; +}; +enum event_op { PULSE_EVENT, SET_EVENT, RESET_EVENT }; + + + +struct open_event_request +{ + struct request_header __header; + unsigned int access; + int inherit; + /* VARARG(name,unicode_str); */ + handle_t handle; +}; + + + +struct create_mutex_request +{ + struct request_header __header; + int owned; + int inherit; + /* VARARG(name,unicode_str); */ + handle_t handle; +}; + + + +struct release_mutex_request +{ + struct request_header __header; + handle_t handle; +}; + + + +struct open_mutex_request +{ + struct request_header __header; + unsigned int access; + int inherit; + /* VARARG(name,unicode_str); */ + handle_t handle; +}; + + + +struct create_semaphore_request +{ + struct request_header __header; + unsigned int initial; + unsigned int max; + int inherit; + /* VARARG(name,unicode_str); */ + handle_t handle; +}; + + + +struct release_semaphore_request +{ + struct request_header __header; + handle_t handle; + unsigned int count; + unsigned int prev_count; +}; + + + +struct open_semaphore_request +{ + struct request_header __header; + unsigned int access; + int inherit; + /* VARARG(name,unicode_str); */ + handle_t handle; +}; + + + +struct create_file_request +{ + struct request_header __header; + unsigned int access; + int inherit; + unsigned int sharing; + int create; + unsigned int attrs; + /* VARARG(filename,string); */ + handle_t handle; +}; + + + +struct alloc_file_handle_request +{ + struct request_header __header; + unsigned int access; + int fd; + handle_t handle; +}; + + + +struct get_handle_fd_request +{ + struct request_header __header; + handle_t handle; + unsigned int access; + int fd; +}; + + + +struct set_file_pointer_request +{ + struct request_header __header; + handle_t handle; + int low; + int high; + int whence; + int new_low; + int new_high; +}; + + + +struct truncate_file_request +{ + struct request_header __header; + handle_t handle; +}; + + + +struct set_file_time_request +{ + struct request_header __header; + handle_t handle; + time_t access_time; + time_t write_time; +}; + + + +struct flush_file_request +{ + struct request_header __header; + handle_t handle; +}; + + + +struct get_file_info_request +{ + struct request_header __header; + handle_t handle; + int type; + int attr; + time_t access_time; + time_t write_time; + int size_high; + int size_low; + int links; + int index_high; + int index_low; + unsigned int serial; +}; + + + +struct lock_file_request +{ + struct request_header __header; + handle_t handle; + unsigned int offset_low; + unsigned int offset_high; + unsigned int count_low; + unsigned int count_high; +}; + + + +struct unlock_file_request +{ + struct request_header __header; + handle_t handle; + unsigned int offset_low; + unsigned int offset_high; + unsigned int count_low; + unsigned int count_high; +}; + + + +struct create_pipe_request +{ + struct request_header __header; + int inherit; + handle_t handle_read; + handle_t handle_write; +}; + + + +struct create_socket_request +{ + struct request_header __header; + unsigned int access; + int inherit; + int family; + int type; + int protocol; + handle_t handle; +}; + + + +struct accept_socket_request +{ + struct request_header __header; + handle_t lhandle; + unsigned int access; + int inherit; + handle_t handle; +}; + + + +struct set_socket_event_request +{ + struct request_header __header; + handle_t handle; + unsigned int mask; + handle_t event; +}; + + + +struct get_socket_event_request +{ + struct request_header __header; + handle_t handle; + int service; + handle_t s_event; + handle_t c_event; + unsigned int mask; + unsigned int pmask; + unsigned int state; + /* VARARG(errors,ints); */ +}; + + + +struct enable_socket_event_request +{ + struct request_header __header; + handle_t handle; + unsigned int mask; + unsigned int sstate; + unsigned int cstate; +}; + + + +struct alloc_console_request +{ + struct request_header __header; + unsigned int access; + int inherit; + handle_t handle_in; + handle_t handle_out; +}; + + + +struct free_console_request +{ + struct request_header __header; +}; + + + +struct open_console_request +{ + struct request_header __header; + int output; + unsigned int access; + int inherit; + handle_t handle; +}; + + + +struct set_console_fd_request +{ + struct request_header __header; + handle_t handle; + int fd_in; + int fd_out; + int pid; +}; + + + +struct get_console_mode_request +{ + struct request_header __header; + handle_t handle; + int mode; +}; + + + +struct set_console_mode_request +{ + struct request_header __header; + handle_t handle; + int mode; +}; + + + +struct set_console_info_request +{ + struct request_header __header; + handle_t handle; + int mask; + int cursor_size; + int cursor_visible; + /* VARARG(title,string); */ +}; +#define SET_CONSOLE_INFO_CURSOR 0x01 +#define SET_CONSOLE_INFO_TITLE 0x02 + + +struct get_console_info_request +{ + struct request_header __header; + handle_t handle; + int cursor_size; + int cursor_visible; + int pid; + /* VARARG(title,string); */ +}; + + + +struct write_console_input_request +{ + struct request_header __header; + handle_t handle; + /* VARARG(rec,input_records); */ + int written; +}; + + +struct read_console_input_request +{ + struct request_header __header; + handle_t handle; + int flush; + int read; + /* VARARG(rec,input_records); */ +}; + + + +struct create_change_notification_request +{ + struct request_header __header; + int subtree; + int filter; + handle_t handle; +}; + + + +struct create_mapping_request +{ + struct request_header __header; + int size_high; + int size_low; + int protect; + int inherit; + handle_t file_handle; + /* VARARG(name,unicode_str); */ + handle_t handle; +}; + +#define VPROT_READ 0x01 +#define VPROT_WRITE 0x02 +#define VPROT_EXEC 0x04 +#define VPROT_WRITECOPY 0x08 +#define VPROT_GUARD 0x10 +#define VPROT_NOCACHE 0x20 +#define VPROT_COMMITTED 0x40 +#define VPROT_IMAGE 0x80 + + + +struct open_mapping_request +{ + struct request_header __header; + unsigned int access; + int inherit; + /* VARARG(name,unicode_str); */ + handle_t handle; +}; + + + +struct get_mapping_info_request +{ + struct request_header __header; + handle_t handle; + int size_high; + int size_low; + int protect; + int header_size; + void* base; + handle_t shared_file; + int shared_size; +}; + + + +struct create_device_request +{ + struct request_header __header; + unsigned int access; + int inherit; + int id; + handle_t handle; +}; + + + +struct create_snapshot_request +{ + struct request_header __header; + int inherit; + int flags; + void* pid; + handle_t handle; +}; + + + +struct next_process_request +{ + struct request_header __header; + handle_t handle; + int reset; + int count; + void* pid; + int threads; + int priority; +}; + + + +struct next_thread_request +{ + struct request_header __header; + handle_t handle; + int reset; + int count; + void* pid; + void* tid; + int base_pri; + int delta_pri; +}; + + + +struct next_module_request +{ + struct request_header __header; + handle_t handle; + int reset; + void* pid; + void* base; +}; + + + +struct wait_debug_event_request +{ + struct request_header __header; + int get_handle; + void* pid; + void* tid; + handle_t wait; + /* VARARG(event,debug_event); */ +}; + + + +struct queue_exception_event_request +{ + struct request_header __header; + int first; + /* VARARG(record,exc_event); */ + handle_t handle; +}; + + + +struct get_exception_status_request +{ + struct request_header __header; + handle_t handle; + int status; + /* VARARG(context,context); */ +}; + + + +struct output_debug_string_request +{ + struct request_header __header; + void* string; + int unicode; + int length; +}; + + + +struct continue_debug_event_request +{ + struct request_header __header; + void* pid; + void* tid; + int status; +}; + + + +struct debug_process_request +{ + struct request_header __header; + void* pid; +}; + + + +struct read_process_memory_request +{ + struct request_header __header; + handle_t handle; + void* addr; + int len; + /* VARARG(data,bytes); */ +}; + + + +struct write_process_memory_request +{ + struct request_header __header; + handle_t handle; + void* addr; + int len; + unsigned int first_mask; + unsigned int last_mask; + /* VARARG(data,bytes); */ +}; + + + +struct create_key_request +{ + struct request_header __header; + handle_t parent; + unsigned int access; + unsigned int options; + time_t modif; + /* VARARG(name,unicode_len_str); */ + /* VARARG(class,unicode_str); */ + handle_t hkey; + int created; +}; + + +struct open_key_request +{ + struct request_header __header; + handle_t parent; + unsigned int access; + /* VARARG(name,unicode_str); */ + handle_t hkey; +}; + + + +struct delete_key_request +{ + struct request_header __header; + handle_t hkey; +}; + + + +struct enum_key_request +{ + struct request_header __header; + handle_t hkey; + int index; + int full; + int subkeys; + int max_subkey; + int max_class; + int values; + int max_value; + int max_data; + time_t modif; + /* VARARG(name,unicode_len_str); */ + /* VARARG(class,unicode_str); */ +}; + + + +struct set_key_value_request +{ + struct request_header __header; + handle_t hkey; + int type; + unsigned int total; + unsigned int offset; + /* VARARG(name,unicode_len_str); */ + /* VARARG(data,bytes); */ +}; + + + +struct get_key_value_request +{ + struct request_header __header; + handle_t hkey; + unsigned int offset; + /* VARARG(name,unicode_len_str); */ + int type; + int len; + /* VARARG(data,bytes); */ +}; + + + +struct enum_key_value_request +{ + struct request_header __header; + handle_t hkey; + int index; + unsigned int offset; + int type; + int len; + /* VARARG(name,unicode_len_str); */ + /* VARARG(data,bytes); */ +}; + + + +struct delete_key_value_request +{ + struct request_header __header; + handle_t hkey; + /* VARARG(name,unicode_str); */ +}; + + + +struct load_registry_request +{ + struct request_header __header; + handle_t hkey; + handle_t file; + /* VARARG(name,unicode_str); */ +}; + + + +struct save_registry_request +{ + struct request_header __header; + handle_t hkey; + handle_t file; +}; + + + +struct save_registry_atexit_request +{ + struct request_header __header; + handle_t hkey; + /* VARARG(file,string); */ +}; + + + +struct set_registry_levels_request +{ + struct request_header __header; + int current; + int saving; + int period; +}; + + + +struct create_timer_request +{ + struct request_header __header; + int inherit; + int manual; + /* VARARG(name,unicode_str); */ + handle_t handle; +}; + + + +struct open_timer_request +{ + struct request_header __header; + unsigned int access; + int inherit; + /* VARARG(name,unicode_str); */ + handle_t handle; +}; + + +struct set_timer_request +{ + struct request_header __header; + handle_t handle; + int sec; + int usec; + int period; + void* callback; + void* arg; +}; + + +struct cancel_timer_request +{ + struct request_header __header; + handle_t handle; +}; + + + +struct get_thread_context_request +{ + struct request_header __header; + handle_t handle; + unsigned int flags; + /* VARARG(context,context); */ +}; + + + +struct set_thread_context_request +{ + struct request_header __header; + handle_t handle; + unsigned int flags; + /* VARARG(context,context); */ +}; + + + +struct get_selector_entry_request +{ + struct request_header __header; + handle_t handle; + int entry; + unsigned int base; + unsigned int limit; + unsigned char flags; +}; + + + +struct add_atom_request +{ + struct request_header __header; + int local; + /* VARARG(name,unicode_str); */ + int atom; +}; + + + +struct delete_atom_request +{ + struct request_header __header; + int atom; + int local; +}; + + + +struct find_atom_request +{ + struct request_header __header; + int local; + /* VARARG(name,unicode_str); */ + int atom; +}; + + + +struct get_atom_name_request +{ + struct request_header __header; + int atom; + int local; + int count; + /* VARARG(name,unicode_str); */ +}; + + + +struct init_atom_table_request +{ + struct request_header __header; + int entries; +}; + + + +struct get_msg_queue_request +{ + struct request_header __header; + handle_t handle; +}; + + + +struct inc_queue_paint_count_request +{ + struct request_header __header; + void* id; + int incr; +}; + + + +struct set_queue_mask_request +{ + struct request_header __header; + unsigned int wake_mask; + unsigned int changed_mask; + int skip_wait; + unsigned int wake_bits; + unsigned int changed_bits; +}; + + + +struct get_queue_status_request +{ + struct request_header __header; + int clear; + unsigned int wake_bits; + unsigned int changed_bits; +}; + + + +struct wait_input_idle_request +{ + struct request_header __header; + handle_t handle; + int timeout; + handle_t event; +}; + + + +struct send_message_request +{ + struct request_header __header; + int kind; + void* id; + int type; + handle_t win; + unsigned int msg; + unsigned int wparam; + unsigned int lparam; + unsigned short x; + unsigned short y; + unsigned int time; + unsigned int info; +}; +enum message_kind { SEND_MESSAGE, POST_MESSAGE, COOKED_HW_MESSAGE, RAW_HW_MESSAGE }; +#define NB_MSG_KINDS (RAW_HW_MESSAGE+1) + + + +struct get_message_request +{ + struct request_header __header; + int flags; + handle_t get_win; + unsigned int get_first; + unsigned int get_last; + int kind; + int type; + handle_t win; + unsigned int msg; + unsigned int wparam; + unsigned int lparam; + unsigned short x; + unsigned short y; + unsigned int time; + unsigned int info; +}; +#define GET_MSG_REMOVE 1 +#define GET_MSG_SENT_ONLY 2 +#define GET_MSG_REMOVE_LAST 4 + + +struct reply_message_request +{ + struct request_header __header; + unsigned int result; + int remove; +}; + + + +struct get_message_reply_request +{ + struct request_header __header; + int cancel; + unsigned int result; +}; + + + +struct in_send_message_request +{ + struct request_header __header; + int flags; +}; + + + +struct cleanup_window_queue_request +{ + struct request_header __header; + handle_t win; +}; + + + +struct set_win_timer_request +{ + struct request_header __header; + handle_t win; + unsigned int msg; + unsigned int id; + unsigned int rate; + unsigned int lparam; +}; + + + +struct kill_win_timer_request +{ + struct request_header __header; + handle_t win; + unsigned int msg; + unsigned int id; +}; + + + +struct create_serial_request +{ + struct request_header __header; + unsigned int access; + int inherit; + unsigned int sharing; + /* VARARG(name,string); */ + handle_t handle; +}; + + + +struct get_serial_info_request +{ + struct request_header __header; + handle_t handle; + unsigned int readinterval; + unsigned int readconst; + unsigned int readmult; + unsigned int writeconst; + unsigned int writemult; + unsigned int eventmask; + unsigned int commerror; +}; + + + +struct set_serial_info_request +{ + struct request_header __header; + handle_t handle; + int flags; + unsigned int readinterval; + unsigned int readconst; + unsigned int readmult; + unsigned int writeconst; + unsigned int writemult; + unsigned int eventmask; + unsigned int commerror; +}; +#define SERIALINFO_SET_TIMEOUTS 0x01 +#define SERIALINFO_SET_MASK 0x02 +#define SERIALINFO_SET_ERROR 0x04 + + + +struct create_async_request +{ + struct request_header __header; + handle_t file_handle; + int count; + int type; + int timeout; +}; +#define ASYNC_TYPE_READ 0x01 +#define ASYNC_TYPE_WRITE 0x02 +#define ASYNC_TYPE_WAIT 0x03 + + + +struct create_named_pipe_request +{ + struct request_header __header; + unsigned int openmode; + unsigned int pipemode; + unsigned int maxinstances; + unsigned int outsize; + unsigned int insize; + unsigned int timeout; + /* VARARG(filename,string); */ + handle_t handle; +}; + + + +struct open_named_pipe_request +{ + struct request_header __header; + unsigned int access; + /* VARARG(filename,string); */ + handle_t handle; +}; + + + +struct connect_named_pipe_request +{ + struct request_header __header; + handle_t handle; + handle_t event; +}; + + +enum request +{ + REQ_new_process, + REQ_get_new_process_info, + REQ_new_thread, + REQ_boot_done, + REQ_init_process, + REQ_init_process_done, + REQ_init_thread, + REQ_set_thread_buffer, + REQ_terminate_process, + REQ_terminate_thread, + REQ_get_process_info, + REQ_set_process_info, + REQ_get_thread_info, + REQ_set_thread_info, + REQ_suspend_thread, + REQ_resume_thread, + REQ_load_dll, + REQ_unload_dll, + REQ_queue_apc, + REQ_get_apc, + REQ_close_handle, + REQ_set_handle_info, + REQ_dup_handle, + REQ_open_process, + REQ_select, + REQ_create_event, + REQ_event_op, + REQ_open_event, + REQ_create_mutex, + REQ_release_mutex, + REQ_open_mutex, + REQ_create_semaphore, + REQ_release_semaphore, + REQ_open_semaphore, + REQ_create_file, + REQ_alloc_file_handle, + REQ_get_handle_fd, + REQ_set_file_pointer, + REQ_truncate_file, + REQ_set_file_time, + REQ_flush_file, + REQ_get_file_info, + REQ_lock_file, + REQ_unlock_file, + REQ_create_pipe, + REQ_create_socket, + REQ_accept_socket, + REQ_set_socket_event, + REQ_get_socket_event, + REQ_enable_socket_event, + REQ_alloc_console, + REQ_free_console, + REQ_open_console, + REQ_set_console_fd, + REQ_get_console_mode, + REQ_set_console_mode, + REQ_set_console_info, + REQ_get_console_info, + REQ_write_console_input, + REQ_read_console_input, + REQ_create_change_notification, + REQ_create_mapping, + REQ_open_mapping, + REQ_get_mapping_info, + REQ_create_device, + REQ_create_snapshot, + REQ_next_process, + REQ_next_thread, + REQ_next_module, + REQ_wait_debug_event, + REQ_queue_exception_event, + REQ_get_exception_status, + REQ_output_debug_string, + REQ_continue_debug_event, + REQ_debug_process, + REQ_read_process_memory, + REQ_write_process_memory, + REQ_create_key, + REQ_open_key, + REQ_delete_key, + REQ_enum_key, + REQ_set_key_value, + REQ_get_key_value, + REQ_enum_key_value, + REQ_delete_key_value, + REQ_load_registry, + REQ_save_registry, + REQ_save_registry_atexit, + REQ_set_registry_levels, + REQ_create_timer, + REQ_open_timer, + REQ_set_timer, + REQ_cancel_timer, + REQ_get_thread_context, + REQ_set_thread_context, + REQ_get_selector_entry, + REQ_add_atom, + REQ_delete_atom, + REQ_find_atom, + REQ_get_atom_name, + REQ_init_atom_table, + REQ_get_msg_queue, + REQ_inc_queue_paint_count, + REQ_set_queue_mask, + REQ_get_queue_status, + REQ_wait_input_idle, + REQ_send_message, + REQ_get_message, + REQ_reply_message, + REQ_get_message_reply, + REQ_in_send_message, + REQ_cleanup_window_queue, + REQ_set_win_timer, + REQ_kill_win_timer, + REQ_create_serial, + REQ_get_serial_info, + REQ_set_serial_info, + REQ_create_async, + REQ_create_named_pipe, + REQ_open_named_pipe, + REQ_connect_named_pipe, + REQ_NB_REQUESTS +}; + +union generic_request +{ + struct request_max_size max_size; + struct request_header header; + struct new_process_request new_process; + struct get_new_process_info_request get_new_process_info; + struct new_thread_request new_thread; + struct boot_done_request boot_done; + struct init_process_request init_process; + struct init_process_done_request init_process_done; + struct init_thread_request init_thread; + struct set_thread_buffer_request set_thread_buffer; + struct terminate_process_request terminate_process; + struct terminate_thread_request terminate_thread; + struct get_process_info_request get_process_info; + struct set_process_info_request set_process_info; + struct get_thread_info_request get_thread_info; + struct set_thread_info_request set_thread_info; + struct suspend_thread_request suspend_thread; + struct resume_thread_request resume_thread; + struct load_dll_request load_dll; + struct unload_dll_request unload_dll; + struct queue_apc_request queue_apc; + struct get_apc_request get_apc; + struct close_handle_request close_handle; + struct set_handle_info_request set_handle_info; + struct dup_handle_request dup_handle; + struct open_process_request open_process; + struct select_request select; + struct create_event_request create_event; + struct event_op_request event_op; + struct open_event_request open_event; + struct create_mutex_request create_mutex; + struct release_mutex_request release_mutex; + struct open_mutex_request open_mutex; + struct create_semaphore_request create_semaphore; + struct release_semaphore_request release_semaphore; + struct open_semaphore_request open_semaphore; + struct create_file_request create_file; + struct alloc_file_handle_request alloc_file_handle; + struct get_handle_fd_request get_handle_fd; + struct set_file_pointer_request set_file_pointer; + struct truncate_file_request truncate_file; + struct set_file_time_request set_file_time; + struct flush_file_request flush_file; + struct get_file_info_request get_file_info; + struct lock_file_request lock_file; + struct unlock_file_request unlock_file; + struct create_pipe_request create_pipe; + struct create_socket_request create_socket; + struct accept_socket_request accept_socket; + struct set_socket_event_request set_socket_event; + struct get_socket_event_request get_socket_event; + struct enable_socket_event_request enable_socket_event; + struct alloc_console_request alloc_console; + struct free_console_request free_console; + struct open_console_request open_console; + struct set_console_fd_request set_console_fd; + struct get_console_mode_request get_console_mode; + struct set_console_mode_request set_console_mode; + struct set_console_info_request set_console_info; + struct get_console_info_request get_console_info; + struct write_console_input_request write_console_input; + struct read_console_input_request read_console_input; + struct create_change_notification_request create_change_notification; + struct create_mapping_request create_mapping; + struct open_mapping_request open_mapping; + struct get_mapping_info_request get_mapping_info; + struct create_device_request create_device; + struct create_snapshot_request create_snapshot; + struct next_process_request next_process; + struct next_thread_request next_thread; + struct next_module_request next_module; + struct wait_debug_event_request wait_debug_event; + struct queue_exception_event_request queue_exception_event; + struct get_exception_status_request get_exception_status; + struct output_debug_string_request output_debug_string; + struct continue_debug_event_request continue_debug_event; + struct debug_process_request debug_process; + struct read_process_memory_request read_process_memory; + struct write_process_memory_request write_process_memory; + struct create_key_request create_key; + struct open_key_request open_key; + struct delete_key_request delete_key; + struct enum_key_request enum_key; + struct set_key_value_request set_key_value; + struct get_key_value_request get_key_value; + struct enum_key_value_request enum_key_value; + struct delete_key_value_request delete_key_value; + struct load_registry_request load_registry; + struct save_registry_request save_registry; + struct save_registry_atexit_request save_registry_atexit; + struct set_registry_levels_request set_registry_levels; + struct create_timer_request create_timer; + struct open_timer_request open_timer; + struct set_timer_request set_timer; + struct cancel_timer_request cancel_timer; + struct get_thread_context_request get_thread_context; + struct set_thread_context_request set_thread_context; + struct get_selector_entry_request get_selector_entry; + struct add_atom_request add_atom; + struct delete_atom_request delete_atom; + struct find_atom_request find_atom; + struct get_atom_name_request get_atom_name; + struct init_atom_table_request init_atom_table; + struct get_msg_queue_request get_msg_queue; + struct inc_queue_paint_count_request inc_queue_paint_count; + struct set_queue_mask_request set_queue_mask; + struct get_queue_status_request get_queue_status; + struct wait_input_idle_request wait_input_idle; + struct send_message_request send_message; + struct get_message_request get_message; + struct reply_message_request reply_message; + struct get_message_reply_request get_message_reply; + struct in_send_message_request in_send_message; + struct cleanup_window_queue_request cleanup_window_queue; + struct set_win_timer_request set_win_timer; + struct kill_win_timer_request kill_win_timer; + struct create_serial_request create_serial; + struct get_serial_info_request get_serial_info; + struct set_serial_info_request set_serial_info; + struct create_async_request create_async; + struct create_named_pipe_request create_named_pipe; + struct open_named_pipe_request open_named_pipe; + struct connect_named_pipe_request connect_named_pipe; +}; + +#define SERVER_PROTOCOL_VERSION 48 + +#endif /* __WINE_WINE_SERVER_PROTOCOL_H */ diff --git a/loader/main.c b/loader/main.c index 2128df3f5f6..30f2af6570a 100644 --- a/loader/main.c +++ b/loader/main.c @@ -19,7 +19,7 @@ #include "file.h" #include "options.h" #include "debugtools.h" -#include "server.h" +#include "wine/server.h" #include "loadorder.h" DEFAULT_DEBUG_CHANNEL(server); diff --git a/loader/module.c b/loader/module.c index a1b6cd831ce..cde4f4f5457 100644 --- a/loader/module.c +++ b/loader/module.c @@ -19,7 +19,7 @@ #include "debugtools.h" #include "callback.h" #include "loadorder.h" -#include "server.h" +#include "wine/server.h" DEFAULT_DEBUG_CHANNEL(module); DECLARE_DEBUG_CHANNEL(win32); diff --git a/loader/pe_image.c b/loader/pe_image.c index 4bf299310b4..16b7a17b966 100644 --- a/loader/pe_image.c +++ b/loader/pe_image.c @@ -33,7 +33,7 @@ #include "wine/winbase16.h" #include "winerror.h" #include "snoop.h" -#include "server.h" +#include "wine/server.h" #include "debugtools.h" DEFAULT_DEBUG_CHANNEL(win32); diff --git a/loader/task.c b/loader/task.c index 5b3819fddb5..856cf5011e9 100644 --- a/loader/task.c +++ b/loader/task.c @@ -29,7 +29,7 @@ #include "ntddk.h" #include "selectors.h" #include "services.h" -#include "server.h" +#include "wine/server.h" #include "syslevel.h" #include "stackframe.h" #include "task.h" diff --git a/memory/atom.c b/memory/atom.c index 25462a351bf..2ee16f60c58 100644 --- a/memory/atom.c +++ b/memory/atom.c @@ -24,7 +24,7 @@ #include "instance.h" #include "stackframe.h" #include "debugtools.h" -#include "server.h" +#include "wine/server.h" DEFAULT_DEBUG_CHANNEL(atom); diff --git a/memory/registry.c b/memory/registry.c index 0c34811b3f3..1ec8f804d2c 100644 --- a/memory/registry.c +++ b/memory/registry.c @@ -22,7 +22,7 @@ #include "wine/winbase16.h" #include "wine/unicode.h" #include "heap.h" -#include "server.h" +#include "wine/server.h" #include "debugtools.h" DEFAULT_DEBUG_CHANNEL(reg); diff --git a/memory/selector.c b/memory/selector.c index 144fc144b5b..a014a70312c 100644 --- a/memory/selector.c +++ b/memory/selector.c @@ -12,7 +12,7 @@ #include "miscemu.h" #include "selectors.h" #include "stackframe.h" -#include "server.h" +#include "wine/server.h" #include "debugtools.h" #include "toolhelp.h" diff --git a/memory/virtual.c b/memory/virtual.c index ce3457ab9bd..be9cf7570d5 100644 --- a/memory/virtual.c +++ b/memory/virtual.c @@ -29,7 +29,7 @@ #include "winerror.h" #include "file.h" #include "global.h" -#include "server.h" +#include "wine/server.h" #include "debugtools.h" DEFAULT_DEBUG_CHANNEL(virtual); diff --git a/misc/registry.c b/misc/registry.c index 05ca70261df..d24dcb0a8d7 100644 --- a/misc/registry.c +++ b/misc/registry.c @@ -41,7 +41,7 @@ #include "file.h" #include "heap.h" #include "options.h" -#include "server.h" +#include "wine/server.h" #include "debugtools.h" diff --git a/relay32/builtin32.c b/relay32/builtin32.c index 47aa37e0849..0951a8f9448 100644 --- a/relay32/builtin32.c +++ b/relay32/builtin32.c @@ -22,7 +22,7 @@ #include "file.h" #include "heap.h" #include "winerror.h" -#include "server.h" +#include "wine/server.h" #include "debugtools.h" DEFAULT_DEBUG_CHANNEL(module); diff --git a/scheduler/client.c b/scheduler/client.c index 5253ea29d90..baaabf20102 100644 --- a/scheduler/client.c +++ b/scheduler/client.c @@ -32,7 +32,7 @@ #include "wine/port.h" #include "thread.h" -#include "server.h" +#include "wine/server.h" #include "winerror.h" #include "options.h" diff --git a/scheduler/handle.c b/scheduler/handle.c index c1b9c6a7eb6..ea42da5e238 100644 --- a/scheduler/handle.c +++ b/scheduler/handle.c @@ -8,7 +8,7 @@ #include #include #include "winbase.h" -#include "server.h" +#include "wine/server.h" #include "winerror.h" #include "debugtools.h" diff --git a/scheduler/pipe.c b/scheduler/pipe.c index f7c7b4891f6..58162038d3f 100644 --- a/scheduler/pipe.c +++ b/scheduler/pipe.c @@ -7,7 +7,7 @@ #include #include "winerror.h" #include "winbase.h" -#include "server.h" +#include "wine/server.h" /*********************************************************************** diff --git a/scheduler/process.c b/scheduler/process.c index 5db30c730c0..e0b9ca4b790 100644 --- a/scheduler/process.c +++ b/scheduler/process.c @@ -20,7 +20,7 @@ #include "file.h" #include "thread.h" #include "winerror.h" -#include "server.h" +#include "wine/server.h" #include "options.h" #include "callback.h" #include "debugtools.h" diff --git a/scheduler/synchro.c b/scheduler/synchro.c index 1f6ab934d44..77907a4a4f4 100644 --- a/scheduler/synchro.c +++ b/scheduler/synchro.c @@ -15,7 +15,7 @@ #include "file.h" /* for DOSFS_UnixTimeToFileTime */ #include "thread.h" #include "winerror.h" -#include "server.h" +#include "wine/server.h" /*********************************************************************** diff --git a/scheduler/sysdeps.c b/scheduler/sysdeps.c index dce9b30ce26..15ede6c1c35 100644 --- a/scheduler/sysdeps.c +++ b/scheduler/sysdeps.c @@ -22,7 +22,7 @@ #endif #include "wine/port.h" #include "thread.h" -#include "server.h" +#include "wine/server.h" #include "winbase.h" #include "wine/exception.h" #include "debugtools.h" diff --git a/scheduler/thread.c b/scheduler/thread.c index 6d2a4bd1aaf..7d8dd19d546 100644 --- a/scheduler/thread.c +++ b/scheduler/thread.c @@ -22,7 +22,7 @@ #include "heap.h" #include "selectors.h" #include "winnt.h" -#include "server.h" +#include "wine/server.h" #include "services.h" #include "stackframe.h" #include "builtin16.h" diff --git a/scheduler/timer.c b/scheduler/timer.c index bc4119fccd3..1fec1117bf3 100644 --- a/scheduler/timer.c +++ b/scheduler/timer.c @@ -10,7 +10,7 @@ #include "winnls.h" #include "wine/unicode.h" #include "file.h" /* for FILETIME routines */ -#include "server.h" +#include "wine/server.h" /*********************************************************************** diff --git a/win32/console.c b/win32/console.c index 91b154165ec..7a4487fc1ce 100644 --- a/win32/console.c +++ b/win32/console.c @@ -45,7 +45,7 @@ #include "winerror.h" #include "wincon.h" #include "heap.h" -#include "server.h" +#include "wine/server.h" #include "debugtools.h" DEFAULT_DEBUG_CHANNEL(console); diff --git a/win32/device.c b/win32/device.c index 1d72698d308..bb954f14989 100644 --- a/win32/device.c +++ b/win32/device.c @@ -27,7 +27,7 @@ #include "msdos.h" #include "miscemu.h" #include "stackframe.h" -#include "server.h" +#include "wine/server.h" #include "debugtools.h" DEFAULT_DEBUG_CHANNEL(win32); diff --git a/win32/except.c b/win32/except.c index 86d23b31129..8aebe640260 100644 --- a/win32/except.c +++ b/win32/except.c @@ -31,7 +31,7 @@ #include "wine/exception.h" #include "thread.h" #include "stackframe.h" -#include "server.h" +#include "wine/server.h" #include "debugtools.h" DEFAULT_DEBUG_CHANNEL(seh); diff --git a/windows/input.c b/windows/input.c index 6710cbf12ee..9a4225a7f80 100644 --- a/windows/input.c +++ b/windows/input.c @@ -23,7 +23,7 @@ #include "wine/winbase16.h" #include "wine/winuser16.h" #include "wine/keyboard16.h" -#include "server.h" +#include "wine/server.h" #include "win.h" #include "heap.h" #include "input.h" diff --git a/windows/message.c b/windows/message.c index eb20f06cb38..47d410d0adc 100644 --- a/windows/message.c +++ b/windows/message.c @@ -14,7 +14,7 @@ #include "wine/winuser16.h" #include "message.h" #include "winerror.h" -#include "server.h" +#include "wine/server.h" #include "win.h" #include "heap.h" #include "hook.h" diff --git a/windows/painting.c b/windows/painting.c index 795fd1faa9a..831274e5055 100644 --- a/windows/painting.c +++ b/windows/painting.c @@ -10,7 +10,7 @@ #include "wingdi.h" #include "wine/winuser16.h" #include "wine/unicode.h" -#include "server.h" +#include "wine/server.h" #include "region.h" #include "user.h" #include "win.h" diff --git a/windows/queue.c b/windows/queue.c index cafd93b3e97..d68d4025e35 100644 --- a/windows/queue.c +++ b/windows/queue.c @@ -18,7 +18,7 @@ #include "hook.h" #include "thread.h" #include "debugtools.h" -#include "server.h" +#include "wine/server.h" #include "spy.h" DEFAULT_DEBUG_CHANNEL(msg); diff --git a/windows/timer.c b/windows/timer.c index c6639769cd4..47b3a67d852 100644 --- a/windows/timer.c +++ b/windows/timer.c @@ -12,7 +12,7 @@ #include "winproc.h" #include "message.h" -#include "server.h" +#include "wine/server.h" #include "debugtools.h" DEFAULT_DEBUG_CHANNEL(timer);