3 * Wine server protocol definition
5 * Copyright (C
) 2001 Alexandre Julliard
7 * This file is used by tools
/make_requests to build the
8 * protocol structures in include
/wine
/server_protocol.h
10 * This library is free software
; you can redistribute it and
/or
11 * modify it under the terms of the GNU Lesser General Public
12 * License as published by the Free Software Foundation
; either
13 * version
2.1 of the License
, or (at your option
) any later version.
15 * This library is distributed in the hope that it will be useful
,
16 * but WITHOUT ANY WARRANTY
; without even the implied warranty of
17 * MERCHANTABILITY or FITNESS
FOR A PARTICULAR PURPOSE. See the GNU
18 * Lesser General Public License for more details.
20 * You should have received a copy of the GNU Lesser General Public
21 * License along with this library
; if not
, write to the Free Software
22 * Foundation
, Inc.
, 59 Temple Place
, Suite
330, Boston
, MA
02111-1307 USA
25 @HEADER
/* start of C declarations
*/
33 int req
; /* request code
*/
34 size_t request_size
; /* request variable part size
*/
35 size_t reply_size
; /* reply variable part maximum size
*/
40 unsigned int error
; /* error result
*/
41 size_t reply_size
; /* reply variable part size
*/
44 /* placeholder structure for the maximum allowed request size
*/
45 /* this is used to construct the generic_request union
*/
46 struct request_max_size
48 int pad
[16]; /* the max request size is
16 ints
*/
51 /* max size of the variable part of a request
*/
52 #define REQUEST_MAX_VAR_SIZE
1024
55 typedef unsigned short atom_t
;
56 typedef unsigned int user_handle_t
;
58 #define FIRST_USER_HANDLE
0x0020 /* first possible value for low word of user handle
*/
59 #define LAST_USER_HANDLE
0xffef /* last possible value for low word of user handle
*/
62 /* definitions of the event data depending on the event code
*/
63 struct debug_event_exception
65 EXCEPTION_RECORD record
; /* exception record
*/
66 int first
; /* first chance exception?
*/
68 struct debug_event_create_thread
70 handle_t handle
; /* handle to the new thread
*/
71 void
*teb
; /* thread
teb (in debugged process address space
) */
72 void
*start
; /* thread startup routine
*/
74 struct debug_event_create_process
76 handle_t file
; /* handle to the process exe file
*/
77 handle_t process
; /* handle to the new process
*/
78 handle_t thread
; /* handle to the new thread
*/
79 void
*base
; /* base of executable image
*/
80 int dbg_offset
; /* offset of debug info in file
*/
81 int dbg_size
; /* size of debug info
*/
82 void
*teb
; /* thread
teb (in debugged process address space
) */
83 void
*start
; /* thread startup routine
*/
84 void
*name
; /* image
name (optional
) */
85 int unicode
; /* is it Unicode?
*/
87 struct debug_event_exit
89 int exit_code
; /* thread or process exit code
*/
91 struct debug_event_load_dll
93 handle_t handle
; /* file handle for the dll
*/
94 void
*base
; /* base address of the dll
*/
95 int dbg_offset
; /* offset of debug info in file
*/
96 int dbg_size
; /* size of debug info
*/
97 void
*name
; /* image
name (optional
) */
98 int unicode
; /* is it Unicode?
*/
100 struct debug_event_unload_dll
102 void
*base
; /* base address of the dll
*/
104 struct debug_event_output_string
106 void
*string
; /* string to
display (in debugged process address space
) */
107 int unicode
; /* is it Unicode?
*/
108 int length
; /* string length
*/
110 struct debug_event_rip_info
115 union debug_event_data
117 struct debug_event_exception exception
;
118 struct debug_event_create_thread create_thread
;
119 struct debug_event_create_process create_process
;
120 struct debug_event_exit exit
;
121 struct debug_event_load_dll load_dll
;
122 struct debug_event_unload_dll unload_dll
;
123 struct debug_event_output_string output_string
;
124 struct debug_event_rip_info rip_info
;
127 /* debug event data
*/
130 int code
; /* event code
*/
131 union debug_event_data info
; /* event information
*/
134 /* structure used in sending an fd from client to server
*/
137 void
*tid
; /* thread id
*/
138 int fd
; /* file descriptor on client
-side
*/
141 /* structure sent by the server on the wait fifo
*/
144 void
*cookie
; /* magic cookie that was passed in select_request
*/
145 int signaled
; /* wait result
*/
148 /* structure for process startup info
*/
151 size_t size
; /* size of this structure
*/
152 size_t filename_len
; /* length of filename
*/
153 size_t cmdline_len
; /* length of cmd line
*/
154 size_t desktop_len
; /* length of desktop name
*/
155 size_t title_len
; /* length of title
*/
156 int x
; /* window position
*/
158 int cx
; /* window size
*/
160 int x_chars
; /* console size
*/
162 int attribute
; /* console attributes
*/
163 int cmd_show
; /* main window show mode
*/
164 unsigned int flags
; /* info flags
*/
165 /* char filename
[...
]; */
166 /* char cmdline
[...
]; */
167 /* char desktop
[...
]; */
168 /* char title
[...
]; */
171 /* structure returned in the list of window properties
*/
174 atom_t atom
; /* property atom
*/
175 short string
; /* was atom a string originally?
*/
176 handle_t handle
; /* handle stored in property
*/
179 /* structure to specify window rectangles
*/
188 /* structure for console char
/attribute info
*/
195 /****************************************************************/
196 /* Request declarations
*/
198 /* Create a new process from the context of the parent
*/
200 int inherit_all
; /* inherit all handles from parent
*/
201 int use_handles
; /* use stdio handles
*/
202 int create_flags
; /* creation flags
*/
203 handle_t exe_file
; /* file handle for main exe
*/
204 handle_t hstdin
; /* handle for stdin
*/
205 handle_t hstdout
; /* handle for stdout
*/
206 handle_t hstderr
; /* handle for stderr
*/
207 VARARG(info
,startup_info
); /* startup information
*/
209 handle_t info
; /* new process info handle
*/
213 /* Retrieve information about a newly started process
*/
214 @
REQ(get_new_process_info
)
215 handle_t info
; /* info handle returned from new_process_request
*/
216 int pinherit
; /* process handle inherit flag
*/
217 int tinherit
; /* thread handle inherit flag
*/
219 void
* pid
; /* process id
*/
220 handle_t phandle
; /* process
handle (in the current process
) */
221 void
* tid
; /* thread id
*/
222 handle_t thandle
; /* thread
handle (in the current process
) */
223 handle_t event
; /* event handle to signal startup
*/
227 /* Create a new thread from the context of the parent
*/
229 int suspend
; /* new thread should be suspended on creation
*/
230 int inherit
; /* inherit flag
*/
231 int request_fd
; /* fd for request pipe
*/
233 void
* tid
; /* thread id
*/
234 handle_t handle
; /* thread
handle (in the current process
) */
238 /* Signal that we are finished booting on the client side
*/
240 int debug_level
; /* new debug level
*/
244 /* Initialize a process
; called from the new process context
*/
246 void
* ldt_copy
; /* addr of LDT copy
*/
247 int ppid
; /* parent Unix pid
*/
249 int create_flags
; /* creation flags
*/
250 unsigned int server_start
; /* server start
time (GetTickCount
) */
251 handle_t info
; /* handle to startup info
*/
252 size_t info_size
; /* total size of startup info
*/
253 handle_t exe_file
; /* file handle for main exe
*/
254 handle_t hstdin
; /* handle for stdin
*/
255 handle_t hstdout
; /* handle for stdout
*/
256 handle_t hstderr
; /* handle for stderr
*/
260 /* Retrieve the new process startup info
*/
261 @
REQ(get_startup_info
)
262 handle_t info
; /* handle to startup info
*/
263 int close
; /* should we close the handle at the same time?
*/
265 VARARG(info
,startup_info
); /* startup information
*/
269 /* Signal the end of the process initialization
*/
270 @
REQ(init_process_done
)
271 void
* module
; /* main module base address
*/
272 size_t module_size
; /* main module size
*/
273 void
* entry
; /* process entry point
*/
274 void
* name
; /* ptr to ptr to
name (in process addr space
) */
275 handle_t exe_file
; /* file handle for main exe
*/
276 int gui
; /* is it a GUI process?
*/
277 VARARG(filename
,string
); /* file name of main exe
*/
279 int debugged
; /* being debugged?
*/
283 /* Initialize a thread
; called from the child after
fork()/clone() */
285 int unix_pid
; /* Unix pid of new thread
*/
286 void
* teb
; /* TEB of new
thread (in thread address space
) */
287 void
* entry
; /* thread entry
point (in thread address space
) */
288 int reply_fd
; /* fd for reply pipe
*/
289 int wait_fd
; /* fd for blocking calls pipe
*/
291 void
* pid
; /* process id of the new thread
's process */
292 void* tid; /* thread id of the new thread */
293 int boot; /* is this the boot thread? */
294 int version; /* protocol version */
298 /* Terminate a process */
299 @REQ(terminate_process)
300 handle_t handle; /* process handle to terminate */
301 int exit_code; /* process exit code */
303 int self; /* suicide? */
307 /* Terminate a thread */
308 @REQ(terminate_thread)
309 handle_t handle; /* thread handle to terminate */
310 int exit_code; /* thread exit code */
312 int self; /* suicide? */
313 int last; /* last thread in this process? */
317 /* Retrieve information about a process */
318 @REQ(get_process_info)
319 handle_t handle; /* process handle */
321 void* pid; /* server process id */
322 int debugged; /* debugged? */
323 int exit_code; /* process exit code */
324 int priority; /* priority class */
325 int process_affinity; /* process affinity mask */
326 int system_affinity; /* system affinity mask */
330 /* Set a process informations */
331 @REQ(set_process_info)
332 handle_t handle; /* process handle */
333 int mask; /* setting mask (see below) */
334 int priority; /* priority class */
335 int affinity; /* affinity mask */
337 #define SET_PROCESS_INFO_PRIORITY 0x01
338 #define SET_PROCESS_INFO_AFFINITY 0x02
341 /* Retrieve information about a thread */
342 @REQ(get_thread_info)
343 handle_t handle; /* thread handle */
344 void* tid_in; /* thread id (optional) */
346 void* tid; /* server thread id */
347 void* teb; /* thread teb pointer */
348 int exit_code; /* thread exit code */
349 int priority; /* thread priority level */
353 /* Set a thread informations */
354 @REQ(set_thread_info)
355 handle_t handle; /* thread handle */
356 int mask; /* setting mask (see below) */
357 int priority; /* priority class */
358 int affinity; /* affinity mask */
360 #define SET_THREAD_INFO_PRIORITY 0x01
361 #define SET_THREAD_INFO_AFFINITY 0x02
364 /* Suspend a thread */
366 handle_t handle; /* thread handle */
368 int count; /* new suspend count */
372 /* Resume a thread */
374 handle_t handle; /* thread handle */
376 int count; /* new suspend count */
380 /* Notify the server that a dll has been loaded */
382 handle_t handle; /* file handle */
383 void* base; /* base address */
384 size_t size; /* dll size */
385 int dbg_offset; /* debug info offset */
386 int dbg_size; /* debug info size */
387 void* name; /* ptr to ptr to name (in process addr space) */
388 VARARG(filename,string); /* file name of dll */
392 /* Notify the server that a dll is being unloaded */
394 void* base; /* base address */
398 /* Queue an APC for a thread */
400 handle_t handle; /* thread handle */
401 int user; /* user or system apc? */
402 void* func; /* function to call */
403 void* param; /* param for function to call */
407 /* Get next APC to call */
409 int alertable; /* is thread alertable? */
411 void* func; /* function to call */
412 int type; /* function type */
413 VARARG(args,ptrs); /* function arguments */
415 enum apc_type { APC_NONE, APC_USER, APC_TIMER, APC_ASYNC, APC_ASYNC_IO };
418 /* Close a handle for the current process */
420 handle_t handle; /* handle to close */
422 int fd; /* associated fd to close */
426 /* Set a handle information */
427 @REQ(set_handle_info)
428 handle_t handle; /* handle we are interested in */
429 int flags; /* new handle flags */
430 int mask; /* mask for flags to set */
431 int fd; /* file descriptor or -1 */
433 int old_flags; /* old flag value */
434 int cur_fd; /* current file descriptor */
438 /* Duplicate a handle */
440 handle_t src_process; /* src process handle */
441 handle_t src_handle; /* src handle to duplicate */
442 handle_t dst_process; /* dst process handle */
443 unsigned int access; /* wanted access rights */
444 int inherit; /* inherit flag */
445 int options; /* duplicate options (see below) */
447 handle_t handle; /* duplicated handle in dst process */
448 int fd; /* associated fd to close */
450 #define DUP_HANDLE_CLOSE_SOURCE DUPLICATE_CLOSE_SOURCE
451 #define DUP_HANDLE_SAME_ACCESS DUPLICATE_SAME_ACCESS
452 #define DUP_HANDLE_MAKE_GLOBAL 0x80000000 /* Not a Windows flag */
455 /* Open a handle to a process */
457 void* pid; /* process id to open */
458 unsigned int access; /* wanted access rights */
459 int inherit; /* inherit flag */
461 handle_t handle; /* handle to the process */
465 /* Open a handle to a thread */
467 void* tid; /* thread id to open */
468 unsigned int access; /* wanted access rights */
469 int inherit; /* inherit flag */
471 handle_t handle; /* handle to the thread */
475 /* Wait for handles */
477 int flags; /* wait flags (see below) */
478 void* cookie; /* magic cookie to return to client */
479 int sec; /* absolute timeout */
480 int usec; /* absolute timeout */
481 VARARG(handles,handles); /* handles to select on */
484 #define SELECT_ALERTABLE 2
485 #define SELECT_INTERRUPTIBLE 4
486 #define SELECT_TIMEOUT 8
489 /* Create an event */
491 int manual_reset; /* manual reset event */
492 int initial_state; /* initial state of the event */
493 int inherit; /* inherit flag */
494 VARARG(name,unicode_str); /* object name */
496 handle_t handle; /* handle to the event */
499 /* Event operation */
501 handle_t handle; /* handle to event */
502 int op; /* event operation (see below) */
504 enum event_op { PULSE_EVENT, SET_EVENT, RESET_EVENT };
509 unsigned int access; /* wanted access rights */
510 int inherit; /* inherit flag */
511 VARARG(name,unicode_str); /* object name */
513 handle_t handle; /* handle to the event */
519 int owned; /* initially owned? */
520 int inherit; /* inherit flag */
521 VARARG(name,unicode_str); /* object name */
523 handle_t handle; /* handle to the mutex */
527 /* Release a mutex */
529 handle_t handle; /* handle to the mutex */
535 unsigned int access; /* wanted access rights */
536 int inherit; /* inherit flag */
537 VARARG(name,unicode_str); /* object name */
539 handle_t handle; /* handle to the mutex */
543 /* Create a semaphore */
544 @REQ(create_semaphore)
545 unsigned int initial; /* initial count */
546 unsigned int max; /* maximum count */
547 int inherit; /* inherit flag */
548 VARARG(name,unicode_str); /* object name */
550 handle_t handle; /* handle to the semaphore */
554 /* Release a semaphore */
555 @REQ(release_semaphore)
556 handle_t handle; /* handle to the semaphore */
557 unsigned int count; /* count to add to semaphore */
559 unsigned int prev_count; /* previous semaphore count */
563 /* Open a semaphore */
565 unsigned int access; /* wanted access rights */
566 int inherit; /* inherit flag */
567 VARARG(name,unicode_str); /* object name */
569 handle_t handle; /* handle to the semaphore */
575 unsigned int access; /* wanted access rights */
576 int inherit; /* inherit flag */
577 unsigned int sharing; /* sharing flags */
578 int create; /* file create action */
579 unsigned int attrs; /* file attributes for creation */
580 int drive_type; /* type of drive the file is on */
581 VARARG(filename,string); /* file name */
583 handle_t handle; /* handle to the file */
587 /* Allocate a file handle for a Unix fd */
588 @REQ(alloc_file_handle)
589 unsigned int access; /* wanted access rights */
590 int inherit; /* inherit flag */
591 int fd; /* file descriptor on the client side */
593 handle_t handle; /* handle to the file */
597 /* Get a Unix fd to access a file */
599 handle_t handle; /* handle to the file */
600 unsigned int access; /* wanted access rights */
602 int fd; /* file descriptor */
603 int type; /* the type of file (see below) */
604 int flags; /* file read/write flags (see below) */
613 #define FD_FLAG_OVERLAPPED 0x01
614 #define FD_FLAG_TIMEOUT 0x02
617 /* Set a file current position */
618 @REQ(set_file_pointer)
619 handle_t handle; /* handle to the file */
620 int low; /* position low word */
621 int high; /* position high word */
622 int whence; /* whence to seek */
624 int new_low; /* new position low word */
625 int new_high; /* new position high word */
629 /* Truncate (or extend) a file */
631 handle_t handle; /* handle to the file */
635 /* Set a file access and modification times */
637 handle_t handle; /* handle to the file */
638 time_t access_time; /* last access time */
639 time_t write_time; /* last write time */
643 /* Flush a file buffers */
645 handle_t handle; /* handle to the file */
649 /* Get information about a file */
651 handle_t handle; /* handle to the file */
653 int type; /* file type */
654 int attr; /* file attributes */
655 time_t access_time; /* last access time */
656 time_t write_time; /* last write time */
657 int size_high; /* file size */
658 int size_low; /* file size */
659 int links; /* number of links */
660 int index_high; /* unique index */
661 int index_low; /* unique index */
662 unsigned int serial; /* volume serial number */
666 /* Lock a region of a file */
668 handle_t handle; /* handle to the file */
669 unsigned int offset_low; /* offset of start of lock */
670 unsigned int offset_high; /* offset of start of lock */
671 unsigned int count_low; /* count of bytes to lock */
672 unsigned int count_high; /* count of bytes to lock */
676 /* Unlock a region of a file */
678 handle_t handle; /* handle to the file */
679 unsigned int offset_low; /* offset of start of unlock */
680 unsigned int offset_high; /* offset of start of unlock */
681 unsigned int count_low; /* count of bytes to unlock */
682 unsigned int count_high; /* count of bytes to unlock */
686 /* Create an anonymous pipe */
688 int inherit; /* inherit flag */
690 handle_t handle_read; /* handle to the read-side of the pipe */
691 handle_t handle_write; /* handle to the write-side of the pipe */
695 /* Create a socket */
697 unsigned int access; /* wanted access rights */
698 int inherit; /* inherit flag */
699 int family; /* family, see socket manpage */
700 int type; /* type, see socket manpage */
701 int protocol; /* protocol, see socket manpage */
702 unsigned int flags; /* socket flags */
704 handle_t handle; /* handle to the new socket */
708 /* Accept a socket */
710 handle_t lhandle; /* handle to the listening socket */
711 unsigned int access; /* wanted access rights */
712 int inherit; /* inherit flag */
714 handle_t handle; /* handle to the new socket */
718 /* Set socket event parameters */
719 @REQ(set_socket_event)
720 handle_t handle; /* handle to the socket */
721 unsigned int mask; /* event mask */
722 handle_t event; /* event object */
723 user_handle_t window; /* window to send the message to */
724 unsigned int msg; /* message to send */
728 /* Get socket event parameters */
729 @REQ(get_socket_event)
730 handle_t handle; /* handle to the socket */
731 int service; /* clear pending? */
732 handle_t c_event; /* event to clear */
734 unsigned int mask; /* event mask */
735 unsigned int pmask; /* pending events */
736 unsigned int state; /* status bits */
737 VARARG(errors,ints); /* event errors */
741 /* Reenable pending socket events */
742 @REQ(enable_socket_event)
743 handle_t handle; /* handle to the socket */
744 unsigned int mask; /* events to re-enable */
745 unsigned int sstate; /* status bits to set */
746 unsigned int cstate; /* status bits to clear */
750 /* Allocate a console (only used by a console renderer) */
752 unsigned int access; /* wanted access rights */
753 int inherit; /* inherit flag */
754 void* pid; /* pid of process which shall be attached to the console */
756 handle_t handle_in; /* handle to console input */
757 handle_t event; /* handle to renderer events change notification */
761 /* Free the console of the current process */
766 #define CONSOLE_RENDERER_NONE_EVENT 0x00
767 #define CONSOLE_RENDERER_TITLE_EVENT 0x01
768 #define CONSOLE_RENDERER_ACTIVE_SB_EVENT 0x02
769 #define CONSOLE_RENDERER_SB_RESIZE_EVENT 0x03
770 #define CONSOLE_RENDERER_UPDATE_EVENT 0x04
771 #define CONSOLE_RENDERER_CURSOR_POS_EVENT 0x05
772 #define CONSOLE_RENDERER_CURSOR_GEOM_EVENT 0x06
773 #define CONSOLE_RENDERER_DISPLAY_EVENT 0x07
774 #define CONSOLE_RENDERER_EXIT_EVENT 0x08
775 struct console_renderer_event
810 /* retrieve console events for the renderer */
811 @REQ(get_console_renderer_events)
812 handle_t handle; /* handle to console input events */
814 VARARG(data,bytes); /* the various console_renderer_events */
818 /* Open a handle to the process console */
820 int from; /* 0 (resp 1) input (resp output) of current process console */
821 /* otherwise console_in handle to get active screen buffer? */
822 unsigned int access; /* wanted access rights */
823 int inherit; /* inherit flag */
824 int share; /* share mask (only for output handles) */
826 handle_t handle; /* handle to the console */
830 /* Get a console mode (input or output) */
831 @REQ(get_console_mode)
832 handle_t handle; /* handle to the console */
834 int mode; /* console mode */
838 /* Set a console mode (input or output) */
839 @REQ(set_console_mode)
840 handle_t handle; /* handle to the console */
841 int mode; /* console mode */
845 /* Set info about a console (input only) */
846 @REQ(set_console_input_info)
847 handle_t handle; /* handle to console input, or 0 for process' console
*/
848 int mask
; /* setting
mask (see below
) */
849 handle_t active_sb
; /* active screen buffer
*/
850 int history_mode
; /* whether we duplicate lines in history
*/
851 int history_size
; /* number of lines in history
*/
852 VARARG(title
,unicode_str
); /* console title
*/
854 #define SET_CONSOLE_INPUT_INFO_ACTIVE_SB
0x01
855 #define SET_CONSOLE_INPUT_INFO_TITLE
0x02
856 #define SET_CONSOLE_INPUT_INFO_HISTORY_MODE
0x04
857 #define SET_CONSOLE_INPUT_INFO_HISTORY_SIZE
0x08
860 /* Get info about a
console (input only
) */
861 @
REQ(get_console_input_info
)
862 handle_t handle
; /* handle to console input
, or
0 for process
' console */
864 int history_mode; /* whether we duplicate lines in history */
865 int history_size; /* number of lines in history */
866 int history_index; /* number of used lines in history */
867 VARARG(title,unicode_str); /* console title */
871 /* appends a string to console's history
*/
872 @
REQ(append_console_input_history
)
873 handle_t handle
; /* handle to console input
, or
0 for process
' console */
874 VARARG(line,unicode_str); /* line to add */
878 /* appends a string to console's history
*/
879 @
REQ(get_console_input_history
)
880 handle_t handle
; /* handle to console input
, or
0 for process
' console */
881 int index; /* index to get line from */
883 int total; /* total length of line in Unicode chars */
884 VARARG(line,unicode_str); /* line to add */
888 /* creates a new screen buffer on process' console
*/
889 @
REQ(create_console_output
)
890 handle_t handle_in
; /* handle to console input
, or
0 for process
' console */
891 int access; /* wanted access rights */
892 int share; /* sharing credentials */
893 int inherit; /* inherit flag */
895 handle_t handle_out; /* handle to the screen buffer */
899 /* Set info about a console (output only) */
900 @REQ(set_console_output_info)
901 handle_t handle; /* handle to the console */
902 int mask; /* setting mask (see below) */
903 short int cursor_size; /* size of cursor (percentage filled) */
904 short int cursor_visible;/* cursor visibility flag */
905 short int cursor_x; /* position of cursor (x, y) */
907 short int width; /* width of the screen buffer */
908 short int height; /* height of the screen buffer */
909 short int attr; /* default attribute */
910 short int win_left; /* window actually displayed by renderer */
911 short int win_top; /* the rect area is expressed withing the */
912 short int win_right; /* boundaries of the screen buffer */
913 short int win_bottom;
914 short int max_width; /* maximum size (width x height) for the window */
915 short int max_height;
917 #define SET_CONSOLE_OUTPUT_INFO_CURSOR_GEOM 0x01
918 #define SET_CONSOLE_OUTPUT_INFO_CURSOR_POS 0x02
919 #define SET_CONSOLE_OUTPUT_INFO_SIZE 0x04
920 #define SET_CONSOLE_OUTPUT_INFO_ATTR 0x08
921 #define SET_CONSOLE_OUTPUT_INFO_DISPLAY_WINDOW 0x10
922 #define SET_CONSOLE_OUTPUT_INFO_MAX_SIZE 0x20
925 /* Get info about a console (output only) */
926 @REQ(get_console_output_info)
927 handle_t handle; /* handle to the console */
929 short int cursor_size; /* size of cursor (percentage filled) */
930 short int cursor_visible;/* cursor visibility flag */
931 short int cursor_x; /* position of cursor (x, y) */
933 short int width; /* width of the screen buffer */
934 short int height; /* height of the screen buffer */
935 short int attr; /* default attribute */
936 short int win_left; /* window actually displayed by renderer */
937 short int win_top; /* the rect area is expressed withing the */
938 short int win_right; /* boundaries of the screen buffer */
939 short int win_bottom;
940 short int max_width; /* maximum size (width x height) for the window */
941 short int max_height;
944 /* Add input records to a console input queue */
945 @REQ(write_console_input)
946 handle_t handle; /* handle to the console input */
947 VARARG(rec,input_records); /* input records */
949 int written; /* number of records written */
953 /* Fetch input records from a console input queue */
954 @REQ(read_console_input)
955 handle_t handle; /* handle to the console input */
956 int flush; /* flush the retrieved records from the queue? */
958 int read; /* number of records read */
959 VARARG(rec,input_records); /* input records */
963 /* write data (chars and/or attributes) in a screen buffer */
964 @REQ(write_console_output)
965 handle_t handle; /* handle to the console output */
966 int x; /* position where to start writing */
968 int mode; /* char info (see below) */
969 int wrap; /* wrap around at end of line? */
970 VARARG(data,bytes); /* info to write */
972 int written; /* number of char infos actually written */
973 int width; /* width of screen buffer */
974 int height; /* height of screen buffer */
978 CHAR_INFO_MODE_TEXT, /* characters only */
979 CHAR_INFO_MODE_ATTR, /* attributes only */
980 CHAR_INFO_MODE_TEXTATTR, /* both characters and attributes */
981 CHAR_INFO_MODE_TEXTSTDATTR /* characters but use standard attributes */
985 /* fill a screen buffer with constant data (chars and/or attributes) */
986 @REQ(fill_console_output)
987 handle_t handle; /* handle to the console output */
988 int x; /* position where to start writing */
990 int mode; /* char info mode */
991 int count; /* number to write */
992 int wrap; /* wrap around at end of line? */
993 char_info_t data; /* data to write */
995 int written; /* number of char infos actually written */
999 /* read data (chars and/or attributes) from a screen buffer */
1000 @REQ(read_console_output)
1001 handle_t handle; /* handle to the console output */
1002 int x; /* position (x,y) where to start reading */
1004 int mode; /* char info mode */
1005 int wrap; /* wrap around at end of line? */
1007 int width; /* width of screen buffer */
1008 int height; /* height of screen buffer */
1012 /* move a rect (of data) in screen buffer content */
1013 @REQ(move_console_output)
1014 handle_t handle; /* handle to the console output */
1015 short int x_src; /* position (x, y) of rect to start moving from */
1017 short int x_dst; /* position (x, y) of rect to move to */
1019 short int w; /* size of the rect (width, height) to move */
1024 /* Create a change notification */
1025 @REQ(create_change_notification)
1026 int subtree; /* watch all the subtree */
1027 int filter; /* notification filter */
1029 handle_t handle; /* handle to the change notification */
1033 /* Create a file mapping */
1034 @REQ(create_mapping)
1035 int size_high; /* mapping size */
1036 int size_low; /* mapping size */
1037 int protect; /* protection flags (see below) */
1038 int inherit; /* inherit flag */
1039 handle_t file_handle; /* file handle */
1040 VARARG(name,unicode_str); /* object name */
1042 handle_t handle; /* handle to the mapping */
1044 /* protection flags */
1045 #define VPROT_READ 0x01
1046 #define VPROT_WRITE 0x02
1047 #define VPROT_EXEC 0x04
1048 #define VPROT_WRITECOPY 0x08
1049 #define VPROT_GUARD 0x10
1050 #define VPROT_NOCACHE 0x20
1051 #define VPROT_COMMITTED 0x40
1052 #define VPROT_IMAGE 0x80
1055 /* Open a mapping */
1057 unsigned int access; /* wanted access rights */
1058 int inherit; /* inherit flag */
1059 VARARG(name,unicode_str); /* object name */
1061 handle_t handle; /* handle to the mapping */
1065 /* Get information about a file mapping */
1066 @REQ(get_mapping_info)
1067 handle_t handle; /* handle to the mapping */
1069 int size_high; /* mapping size */
1070 int size_low; /* mapping size */
1071 int protect; /* protection flags */
1072 int header_size; /* header size (for VPROT_IMAGE mapping) */
1073 void* base; /* default base addr (for VPROT_IMAGE mapping) */
1074 handle_t shared_file; /* shared mapping file handle */
1075 int shared_size; /* shared mapping size */
1076 int drive_type; /* type of drive the file is on */
1080 /* Create a device */
1082 unsigned int access; /* wanted access rights */
1083 int inherit; /* inherit flag */
1084 int id; /* client private id */
1086 handle_t handle; /* handle to the device */
1090 /* Create a snapshot */
1091 @REQ(create_snapshot)
1092 int inherit; /* inherit flag */
1093 int flags; /* snapshot flags (TH32CS_*) */
1094 void* pid; /* process id */
1096 handle_t handle; /* handle to the snapshot */
1100 /* Get the next process from a snapshot */
1102 handle_t handle; /* handle to the snapshot */
1103 int reset; /* reset snapshot position? */
1105 int count; /* process usage count */
1106 void* pid; /* process id */
1107 void* ppid; /* parent process id */
1108 void* heap; /* heap base */
1109 void* module; /* main module */
1110 int threads; /* number of threads */
1111 int priority; /* process priority */
1112 VARARG(filename,string); /* file name of main exe */
1116 /* Get the next thread from a snapshot */
1118 handle_t handle; /* handle to the snapshot */
1119 int reset; /* reset snapshot position? */
1121 int count; /* thread usage count */
1122 void* pid; /* process id */
1123 void* tid; /* thread id */
1124 int base_pri; /* base priority */
1125 int delta_pri; /* delta priority */
1129 /* Get the next module from a snapshot */
1131 handle_t handle; /* handle to the snapshot */
1132 int reset; /* reset snapshot position? */
1134 void* pid; /* process id */
1135 void* base; /* module base address */
1136 size_t size; /* module size */
1137 VARARG(filename,string); /* file name of module */
1141 /* Wait for a debug event */
1142 @REQ(wait_debug_event)
1143 int get_handle; /* should we alloc a handle for waiting? */
1145 void* pid; /* process id */
1146 void* tid; /* thread id */
1147 handle_t wait; /* wait handle if no event ready */
1148 VARARG(event,debug_event); /* debug event data */
1152 /* Queue an exception event */
1153 @REQ(queue_exception_event)
1154 int first; /* first chance exception? */
1155 VARARG(record,exc_event); /* thread context followed by exception record */
1157 handle_t handle; /* handle to the queued event */
1161 /* Retrieve the status of an exception event */
1162 @REQ(get_exception_status)
1163 handle_t handle; /* handle to the queued event */
1165 int status; /* event continuation status */
1166 VARARG(context,context); /* modified thread context */
1170 /* Send an output string to the debugger */
1171 @REQ(output_debug_string)
1172 void* string; /* string to display (in debugged process address space) */
1173 int unicode; /* is it Unicode? */
1174 int length; /* string length */
1178 /* Continue a debug event */
1179 @REQ(continue_debug_event)
1180 void* pid; /* process id to continue */
1181 void* tid; /* thread id to continue */
1182 int status; /* continuation status */
1186 /* Start/stop debugging an existing process */
1188 void* pid; /* id of the process to debug */
1189 int attach; /* 1=attaching / 0=detaching from the process */
1193 /* Simulate a breakpoint in a process */
1195 handle_t handle; /* process handle */
1197 int self; /* was it the caller itself? */
1201 /* Set debugger kill on exit flag */
1202 @REQ(set_debugger_kill_on_exit)
1203 int kill_on_exit; /* 0=detach/1=kill debuggee when debugger dies */
1207 /* Read data from a process address space */
1208 @REQ(read_process_memory)
1209 handle_t handle; /* process handle */
1210 void* addr; /* addr to read from */
1212 VARARG(data,bytes); /* result data */
1216 /* Write data to a process address space */
1217 @REQ(write_process_memory)
1218 handle_t handle; /* process handle */
1219 void* addr; /* addr to write to (must be int-aligned) */
1220 unsigned int first_mask; /* mask for first word */
1221 unsigned int last_mask; /* mask for last word */
1222 VARARG(data,bytes); /* data to write */
1226 /* Create a registry key */
1228 handle_t parent; /* handle to the parent key */
1229 unsigned int access; /* desired access rights */
1230 unsigned int options; /* creation options */
1231 time_t modif; /* last modification time */
1232 size_t namelen; /* length of key name in bytes */
1233 VARARG(name,unicode_str,namelen); /* key name */
1234 VARARG(class,unicode_str); /* class name */
1236 handle_t hkey; /* handle to the created key */
1237 int created; /* has it been newly created? */
1240 /* Open a registry key */
1242 handle_t parent; /* handle to the parent key */
1243 unsigned int access; /* desired access rights */
1244 VARARG(name,unicode_str); /* key name */
1246 handle_t hkey; /* handle to the open key */
1250 /* Delete a registry key */
1252 handle_t hkey; /* handle to the key */
1256 /* Enumerate registry subkeys */
1258 handle_t hkey; /* handle to registry key */
1259 int index; /* index of subkey (or -1 for current key) */
1260 int info_class; /* requested information class */
1262 int subkeys; /* number of subkeys */
1263 int max_subkey; /* longest subkey name */
1264 int max_class; /* longest class name */
1265 int values; /* number of values */
1266 int max_value; /* longest value name */
1267 int max_data; /* longest value data */
1268 time_t modif; /* last modification time */
1269 size_t total; /* total length needed for full name and class */
1270 size_t namelen; /* length of key name in bytes */
1271 VARARG(name,unicode_str,namelen); /* key name */
1272 VARARG(class,unicode_str); /* class name */
1276 /* Set a value of a registry key */
1278 handle_t hkey; /* handle to registry key */
1279 int type; /* value type */
1280 size_t namelen; /* length of value name in bytes */
1281 VARARG(name,unicode_str,namelen); /* value name */
1282 VARARG(data,bytes); /* value data */
1286 /* Retrieve the value of a registry key */
1288 handle_t hkey; /* handle to registry key */
1289 VARARG(name,unicode_str); /* value name */
1291 int type; /* value type */
1292 size_t total; /* total length needed for data */
1293 VARARG(data,bytes); /* value data */
1297 /* Enumerate a value of a registry key */
1298 @REQ(enum_key_value)
1299 handle_t hkey; /* handle to registry key */
1300 int index; /* value index */
1301 int info_class; /* requested information class */
1303 int type; /* value type */
1304 size_t total; /* total length needed for full name and data */
1305 size_t namelen; /* length of value name in bytes */
1306 VARARG(name,unicode_str,namelen); /* value name */
1307 VARARG(data,bytes); /* value data */
1311 /* Delete a value of a registry key */
1312 @REQ(delete_key_value)
1313 handle_t hkey; /* handle to registry key */
1314 VARARG(name,unicode_str); /* value name */
1318 /* Load a registry branch from a file */
1320 handle_t hkey; /* root key to load to */
1321 handle_t file; /* file to load from */
1322 VARARG(name,unicode_str); /* subkey name */
1326 /* Save a registry branch to a file */
1328 handle_t hkey; /* key to save */
1329 handle_t file; /* file to save to */
1333 /* Save a registry branch at server exit */
1334 @REQ(save_registry_atexit)
1335 handle_t hkey; /* key to save */
1336 VARARG(file,string); /* file to save to */
1340 /* Set the current and saving level for the registry */
1341 @REQ(set_registry_levels)
1342 int current; /* new current level */
1343 int saving; /* new saving level */
1344 int period; /* duration between periodic saves (milliseconds) */
1348 /* Create a waitable timer */
1350 int inherit; /* inherit flag */
1351 int manual; /* manual reset */
1352 VARARG(name,unicode_str); /* object name */
1354 handle_t handle; /* handle to the timer */
1358 /* Open a waitable timer */
1360 unsigned int access; /* wanted access rights */
1361 int inherit; /* inherit flag */
1362 VARARG(name,unicode_str); /* object name */
1364 handle_t handle; /* handle to the timer */
1367 /* Set a waitable timer */
1369 handle_t handle; /* handle to the timer */
1370 int sec; /* next expiration absolute time */
1371 int usec; /* next expiration absolute time */
1372 int period; /* timer period in ms */
1373 void* callback; /* callback function */
1374 void* arg; /* callback argument */
1377 /* Cancel a waitable timer */
1379 handle_t handle; /* handle to the timer */
1383 /* Retrieve the current context of a thread */
1384 @REQ(get_thread_context)
1385 handle_t handle; /* thread handle */
1386 unsigned int flags; /* context flags */
1388 VARARG(context,context); /* thread context */
1392 /* Set the current context of a thread */
1393 @REQ(set_thread_context)
1394 handle_t handle; /* thread handle */
1395 unsigned int flags; /* context flags */
1396 VARARG(context,context); /* thread context */
1400 /* Fetch a selector entry for a thread */
1401 @REQ(get_selector_entry)
1402 handle_t handle; /* thread handle */
1403 int entry; /* LDT entry */
1405 unsigned int base; /* selector base */
1406 unsigned int limit; /* selector limit */
1407 unsigned char flags; /* selector flags */
1413 int local; /* is atom in local process table? */
1414 VARARG(name,unicode_str); /* atom name */
1416 atom_t atom; /* resulting atom */
1420 /* Delete an atom */
1422 atom_t atom; /* atom handle */
1423 int local; /* is atom in local process table? */
1429 int local; /* is atom in local process table? */
1430 VARARG(name,unicode_str); /* atom name */
1432 atom_t atom; /* atom handle */
1436 /* Get an atom name */
1438 atom_t atom; /* atom handle */
1439 int local; /* is atom in local process table? */
1441 int count; /* atom lock count */
1442 VARARG(name,unicode_str); /* atom name */
1446 /* Init the process atom table */
1447 @REQ(init_atom_table)
1448 int entries; /* number of entries */
1452 /* Get the message queue of the current thread */
1455 handle_t handle; /* handle to the queue */
1459 /* Set the current message queue wakeup mask */
1460 @REQ(set_queue_mask)
1461 unsigned int wake_mask; /* wakeup bits mask */
1462 unsigned int changed_mask; /* changed bits mask */
1463 int skip_wait; /* will we skip waiting if signaled? */
1465 unsigned int wake_bits; /* current wake bits */
1466 unsigned int changed_bits; /* current changed bits */
1470 /* Get the current message queue status */
1471 @REQ(get_queue_status)
1472 int clear; /* should we clear the change bits? */
1474 unsigned int wake_bits; /* wake bits */
1475 unsigned int changed_bits; /* changed bits since last time */
1479 /* Wait for a process to start waiting on input */
1480 @REQ(wait_input_idle)
1481 handle_t handle; /* process handle */
1482 int timeout; /* timeout */
1484 handle_t event; /* handle to idle event */
1488 /* Send a message to a thread queue */
1490 void* id; /* thread id */
1491 int type; /* message type (see below) */
1492 user_handle_t win; /* window handle */
1493 unsigned int msg; /* message code */
1494 unsigned int wparam; /* parameters */
1495 unsigned int lparam; /* parameters */
1496 int x; /* x position */
1497 int y; /* y position */
1498 unsigned int time; /* message time */
1499 unsigned int info; /* extra info */
1500 int timeout; /* timeout for reply */
1501 VARARG(data,bytes); /* message data for sent messages */
1506 MSG_ASCII, /* Ascii message (from SendMessageA) */
1507 MSG_UNICODE, /* Unicode message (from SendMessageW) */
1508 MSG_NOTIFY, /* notify message (from SendNotifyMessageW), always Unicode */
1509 MSG_CALLBACK, /* callback message (from SendMessageCallbackW), always Unicode */
1510 MSG_OTHER_PROCESS, /* sent from other process, may include vararg data, always Unicode */
1511 MSG_POSTED, /* posted message (from PostMessageW), always Unicode */
1512 MSG_HARDWARE_RAW, /* raw hardware message */
1513 MSG_HARDWARE_COOKED /* cooked hardware message */
1517 /* Get a message from the current queue */
1519 int flags; /* see below */
1520 user_handle_t get_win; /* window handle to get */
1521 unsigned int get_first; /* first message code to get */
1522 unsigned int get_last; /* last message code to get */
1524 int type; /* message type */
1525 user_handle_t win; /* window handle */
1526 unsigned int msg; /* message code */
1527 unsigned int wparam; /* parameters */
1528 unsigned int lparam; /* parameters */
1529 int x; /* x position */
1530 int y; /* y position */
1531 unsigned int time; /* message time */
1532 unsigned int info; /* extra info */
1533 size_t total; /* total size of extra data */
1534 VARARG(data,bytes); /* message data for sent messages */
1536 #define GET_MSG_REMOVE 1 /* remove the message */
1537 #define GET_MSG_SENT_ONLY 2 /* only get sent messages */
1538 #define GET_MSG_REMOVE_LAST 4 /* remove last message returned before checking for a new one */
1540 /* Reply to a sent message */
1542 unsigned int result; /* message result */
1543 int remove; /* should we remove the message? */
1544 VARARG(data,bytes); /* message data for sent messages */
1548 /* Retrieve the reply for the last message sent */
1549 @REQ(get_message_reply)
1550 int cancel; /* cancel message if not ready? */
1552 unsigned int result; /* message result */
1553 VARARG(data,bytes); /* message data for sent messages */
1557 /* Set a window timer */
1559 user_handle_t win; /* window handle */
1560 unsigned int msg; /* message to post */
1561 unsigned int id; /* timer id */
1562 unsigned int rate; /* timer rate in ms */
1563 unsigned int lparam; /* message lparam (callback proc) */
1567 /* Kill a window timer */
1568 @REQ(kill_win_timer)
1569 user_handle_t win; /* window handle */
1570 unsigned int msg; /* message to post */
1571 unsigned int id; /* timer id */
1575 /* Open a serial port */
1577 unsigned int access; /* wanted access rights */
1578 int inherit; /* inherit flag */
1579 unsigned int attributes; /* eg. FILE_FLAG_OVERLAPPED */
1580 unsigned int sharing; /* sharing flags */
1581 VARARG(name,string); /* file name */
1583 handle_t handle; /* handle to the port */
1587 /* Retrieve info about a serial port */
1588 @REQ(get_serial_info)
1589 handle_t handle; /* handle to comm port */
1591 unsigned int readinterval;
1592 unsigned int readconst;
1593 unsigned int readmult;
1594 unsigned int writeconst;
1595 unsigned int writemult;
1596 unsigned int eventmask;
1597 unsigned int commerror;
1601 /* Set info about a serial port */
1602 @REQ(set_serial_info)
1603 handle_t handle; /* handle to comm port */
1604 int flags; /* bitmask to set values (see below) */
1605 unsigned int readinterval;
1606 unsigned int readconst;
1607 unsigned int readmult;
1608 unsigned int writeconst;
1609 unsigned int writemult;
1610 unsigned int eventmask;
1611 unsigned int commerror;
1613 #define SERIALINFO_SET_TIMEOUTS 0x01
1614 #define SERIALINFO_SET_MASK 0x02
1615 #define SERIALINFO_SET_ERROR 0x04
1618 /* Create / reschedule an async I/O */
1619 @REQ(register_async)
1620 handle_t handle; /* handle to comm port, socket or file */
1624 unsigned int status;
1626 #define ASYNC_TYPE_NONE 0x00
1627 #define ASYNC_TYPE_READ 0x01
1628 #define ASYNC_TYPE_WRITE 0x02
1629 #define ASYNC_TYPE_WAIT 0x03
1632 /* Create a named pipe */
1633 @REQ(create_named_pipe)
1634 unsigned int openmode;
1635 unsigned int pipemode;
1636 unsigned int maxinstances;
1637 unsigned int outsize;
1638 unsigned int insize;
1639 unsigned int timeout;
1640 VARARG(name,unicode_str); /* pipe name */
1642 handle_t handle; /* handle to the pipe */
1646 /* Open an existing named pipe */
1647 @REQ(open_named_pipe)
1648 unsigned int access;
1649 VARARG(name,unicode_str); /* pipe name */
1651 handle_t handle; /* handle to the pipe */
1655 /* Connect to a named pipe */
1656 @REQ(connect_named_pipe)
1663 /* Wait for a named pipe */
1664 @REQ(wait_named_pipe)
1665 unsigned int timeout;
1668 VARARG(name,unicode_str); /* pipe name */
1672 /* Disconnect a named pipe */
1673 @REQ(disconnect_named_pipe)
1678 @REQ(get_named_pipe_info)
1682 unsigned int maxinstances;
1683 unsigned int outsize;
1684 unsigned int insize;
1690 unsigned int tree_id;
1691 unsigned int user_id;
1692 unsigned int file_id;
1693 unsigned int dialect;
1702 unsigned int offset;
1704 unsigned int tree_id;
1705 unsigned int user_id;
1706 unsigned int dialect;
1707 unsigned int file_id;
1708 unsigned int offset;
1710 #define SMBINFO_SET_OFFSET 0x01
1713 /* Create a window */
1715 user_handle_t parent; /* parent window */
1716 user_handle_t owner; /* owner window */
1717 atom_t atom; /* class atom */
1719 user_handle_t handle; /* created window */
1723 /* Link a window into the tree */
1725 user_handle_t handle; /* handle to the window */
1726 user_handle_t parent; /* handle to the parent */
1727 user_handle_t previous; /* previous child in Z-order */
1729 user_handle_t full_parent; /* full handle of new parent */
1733 /* Destroy a window */
1734 @REQ(destroy_window)
1735 user_handle_t handle; /* handle to the window */
1739 /* Set a window owner */
1740 @REQ(set_window_owner)
1741 user_handle_t handle; /* handle to the window */
1742 user_handle_t owner; /* new owner */
1744 user_handle_t full_owner; /* full handle of new owner */
1748 /* Get information from a window handle */
1749 @REQ(get_window_info)
1750 user_handle_t handle; /* handle to the window */
1752 user_handle_t full_handle; /* full 32-bit handle */
1753 void* pid; /* process owning the window */
1754 void* tid; /* thread owning the window */
1755 atom_t atom; /* class atom */
1759 /* Set some information in a window */
1760 @REQ(set_window_info)
1761 user_handle_t handle; /* handle to the window */
1762 unsigned int flags; /* flags for fields to set (see below) */
1763 unsigned int style; /* window style */
1764 unsigned int ex_style; /* window extended style */
1765 unsigned int id; /* window id */
1766 void* instance; /* creator instance */
1767 void* user_data; /* user-specific data */
1769 unsigned int old_style; /* old window style */
1770 unsigned int old_ex_style; /* old window extended style */
1771 unsigned int old_id; /* old window id */
1772 void* old_instance; /* old creator instance */
1773 void* old_user_data; /* old user-specific data */
1775 #define SET_WIN_STYLE 0x01
1776 #define SET_WIN_EXSTYLE 0x02
1777 #define SET_WIN_ID 0x04
1778 #define SET_WIN_INSTANCE 0x08
1779 #define SET_WIN_USERDATA 0x10
1782 /* Get a list of the window parents, up to the root of the tree */
1783 @REQ(get_window_parents)
1784 user_handle_t handle; /* handle to the window */
1786 int count; /* total count of parents */
1787 VARARG(parents,user_handles); /* parent handles */
1791 /* Get a list of the window children */
1792 @REQ(get_window_children)
1793 user_handle_t parent; /* parent window */
1794 atom_t atom; /* class atom for the listed children */
1795 void* tid; /* thread owning the listed children */
1797 int count; /* total count of children */
1798 VARARG(children,user_handles); /* children handles */
1802 /* Get window tree information from a window handle */
1803 @REQ(get_window_tree)
1804 user_handle_t handle; /* handle to the window */
1806 user_handle_t parent; /* parent window */
1807 user_handle_t owner; /* owner window */
1808 user_handle_t next_sibling; /* next sibling in Z-order */
1809 user_handle_t prev_sibling; /* prev sibling in Z-order */
1810 user_handle_t first_sibling; /* first sibling in Z-order */
1811 user_handle_t last_sibling; /* last sibling in Z-order */
1812 user_handle_t first_child; /* first child */
1813 user_handle_t last_child; /* last child */
1816 /* Set the window and client rectangles of a window */
1817 @REQ(set_window_rectangles)
1818 user_handle_t handle; /* handle to the window */
1819 rectangle_t window; /* window rectangle */
1820 rectangle_t client; /* client rectangle */
1824 /* Get the window and client rectangles of a window */
1825 @REQ(get_window_rectangles)
1826 user_handle_t handle; /* handle to the window */
1828 rectangle_t window; /* window rectangle */
1829 rectangle_t client; /* client rectangle */
1833 /* Get the window text */
1834 @REQ(get_window_text)
1835 user_handle_t handle; /* handle to the window */
1837 VARARG(text,unicode_str); /* window text */
1841 /* Set the window text */
1842 @REQ(set_window_text)
1843 user_handle_t handle; /* handle to the window */
1844 VARARG(text,unicode_str); /* window text */
1848 /* Increment the window paint count */
1849 @REQ(inc_window_paint_count)
1850 user_handle_t handle; /* handle to the window */
1851 int incr; /* increment (can be negative) */
1855 /* Get the coordinates offset between two windows */
1856 @REQ(get_windows_offset)
1857 user_handle_t from; /* handle to the first window */
1858 user_handle_t to; /* handle to the second window */
1860 int x; /* x coordinate offset */
1861 int y; /* y coordinate offset */
1865 /* Set a window property */
1866 @REQ(set_window_property)
1867 user_handle_t window; /* handle to the window */
1868 atom_t atom; /* property atom (high-word set if it was a string) */
1869 int string; /* was atom a string originally? */
1870 handle_t handle; /* handle to store */
1874 /* Remove a window property */
1875 @REQ(remove_window_property)
1876 user_handle_t window; /* handle to the window */
1877 atom_t atom; /* property atom */
1879 handle_t handle; /* handle stored in property */
1883 /* Get a window property */
1884 @REQ(get_window_property)
1885 user_handle_t window; /* handle to the window */
1886 atom_t atom; /* property atom */
1888 handle_t handle; /* handle stored in property */
1892 /* Get the list of properties of a window */
1893 @REQ(get_window_properties)
1894 user_handle_t window; /* handle to the window */
1896 int total; /* total number of properties */
1897 VARARG(props,properties); /* list of properties */