Alexandre Julliard | 37ec927 | 2001-07-19 00:35:37 +0000 | [diff] [blame] | 1 | /* -*- C -*- |
| 2 | * |
| 3 | * Wine server protocol definition |
| 4 | * |
| 5 | * Copyright (C) 2001 Alexandre Julliard |
| 6 | * |
| 7 | * This file is used by tools/make_requests to build the |
| 8 | * protocol structures in include/wine/server_protocol.h |
Alexandre Julliard | 0799c1a | 2002-03-09 23:29:33 +0000 | [diff] [blame] | 9 | * |
| 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. |
| 14 | * |
| 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. |
| 19 | * |
| 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 |
Alexandre Julliard | 37ec927 | 2001-07-19 00:35:37 +0000 | [diff] [blame] | 23 | */ |
| 24 | |
| 25 | @HEADER /* start of C declarations */ |
| 26 | |
Alexandre Julliard | e0b5270 | 2003-09-08 19:04:01 +0000 | [diff] [blame] | 27 | #include <stdarg.h> |
Alexandre Julliard | 37ec927 | 2001-07-19 00:35:37 +0000 | [diff] [blame] | 28 | #include <stdlib.h> |
| 29 | #include <time.h> |
Alexandre Julliard | e0b5270 | 2003-09-08 19:04:01 +0000 | [diff] [blame] | 30 | |
| 31 | #include <windef.h> |
| 32 | #include <winbase.h> |
Alexandre Julliard | 37ec927 | 2001-07-19 00:35:37 +0000 | [diff] [blame] | 33 | |
| 34 | struct request_header |
| 35 | { |
Alexandre Julliard | 9caa71e | 2001-11-30 18:46:42 +0000 | [diff] [blame] | 36 | int req; /* request code */ |
| 37 | size_t request_size; /* request variable part size */ |
| 38 | size_t reply_size; /* reply variable part maximum size */ |
Alexandre Julliard | 37ec927 | 2001-07-19 00:35:37 +0000 | [diff] [blame] | 39 | }; |
| 40 | |
| 41 | struct reply_header |
| 42 | { |
Alexandre Julliard | 9caa71e | 2001-11-30 18:46:42 +0000 | [diff] [blame] | 43 | unsigned int error; /* error result */ |
| 44 | size_t reply_size; /* reply variable part size */ |
Alexandre Julliard | 37ec927 | 2001-07-19 00:35:37 +0000 | [diff] [blame] | 45 | }; |
| 46 | |
| 47 | /* placeholder structure for the maximum allowed request size */ |
| 48 | /* this is used to construct the generic_request union */ |
| 49 | struct request_max_size |
| 50 | { |
| 51 | int pad[16]; /* the max request size is 16 ints */ |
| 52 | }; |
| 53 | |
Alexandre Julliard | b1df392 | 2002-10-21 23:43:04 +0000 | [diff] [blame] | 54 | typedef void *obj_handle_t; |
| 55 | typedef void *user_handle_t; |
Alexandre Julliard | 23bb371 | 2002-10-18 23:46:28 +0000 | [diff] [blame] | 56 | typedef unsigned short atom_t; |
Alexandre Julliard | 54f2287 | 2002-10-03 19:54:57 +0000 | [diff] [blame] | 57 | typedef unsigned int process_id_t; |
| 58 | typedef unsigned int thread_id_t; |
Alexandre Julliard | 37ec927 | 2001-07-19 00:35:37 +0000 | [diff] [blame] | 59 | |
Alexandre Julliard | 7695d69 | 2001-09-24 01:19:59 +0000 | [diff] [blame] | 60 | #define FIRST_USER_HANDLE 0x0020 /* first possible value for low word of user handle */ |
| 61 | #define LAST_USER_HANDLE 0xffef /* last possible value for low word of user handle */ |
| 62 | |
| 63 | |
Alexandre Julliard | 37ec927 | 2001-07-19 00:35:37 +0000 | [diff] [blame] | 64 | /* definitions of the event data depending on the event code */ |
| 65 | struct debug_event_exception |
| 66 | { |
| 67 | EXCEPTION_RECORD record; /* exception record */ |
| 68 | int first; /* first chance exception? */ |
| 69 | }; |
| 70 | struct debug_event_create_thread |
| 71 | { |
Alexandre Julliard | 5188574 | 2002-05-30 20:12:58 +0000 | [diff] [blame] | 72 | obj_handle_t handle; /* handle to the new thread */ |
| 73 | void *teb; /* thread teb (in debugged process address space) */ |
| 74 | void *start; /* thread startup routine */ |
Alexandre Julliard | 37ec927 | 2001-07-19 00:35:37 +0000 | [diff] [blame] | 75 | }; |
| 76 | struct debug_event_create_process |
| 77 | { |
Alexandre Julliard | 5188574 | 2002-05-30 20:12:58 +0000 | [diff] [blame] | 78 | obj_handle_t file; /* handle to the process exe file */ |
| 79 | obj_handle_t process; /* handle to the new process */ |
| 80 | obj_handle_t thread; /* handle to the new thread */ |
| 81 | void *base; /* base of executable image */ |
| 82 | int dbg_offset; /* offset of debug info in file */ |
| 83 | int dbg_size; /* size of debug info */ |
| 84 | void *teb; /* thread teb (in debugged process address space) */ |
| 85 | void *start; /* thread startup routine */ |
| 86 | void *name; /* image name (optional) */ |
| 87 | int unicode; /* is it Unicode? */ |
Alexandre Julliard | 37ec927 | 2001-07-19 00:35:37 +0000 | [diff] [blame] | 88 | }; |
| 89 | struct debug_event_exit |
| 90 | { |
Alexandre Julliard | 5188574 | 2002-05-30 20:12:58 +0000 | [diff] [blame] | 91 | int exit_code; /* thread or process exit code */ |
Alexandre Julliard | 37ec927 | 2001-07-19 00:35:37 +0000 | [diff] [blame] | 92 | }; |
| 93 | struct debug_event_load_dll |
| 94 | { |
Alexandre Julliard | 5188574 | 2002-05-30 20:12:58 +0000 | [diff] [blame] | 95 | obj_handle_t handle; /* file handle for the dll */ |
| 96 | void *base; /* base address of the dll */ |
| 97 | int dbg_offset; /* offset of debug info in file */ |
| 98 | int dbg_size; /* size of debug info */ |
| 99 | void *name; /* image name (optional) */ |
| 100 | int unicode; /* is it Unicode? */ |
Alexandre Julliard | 37ec927 | 2001-07-19 00:35:37 +0000 | [diff] [blame] | 101 | }; |
| 102 | struct debug_event_unload_dll |
| 103 | { |
| 104 | void *base; /* base address of the dll */ |
| 105 | }; |
| 106 | struct debug_event_output_string |
| 107 | { |
| 108 | void *string; /* string to display (in debugged process address space) */ |
| 109 | int unicode; /* is it Unicode? */ |
| 110 | int length; /* string length */ |
| 111 | }; |
| 112 | struct debug_event_rip_info |
| 113 | { |
| 114 | int error; /* ??? */ |
| 115 | int type; /* ??? */ |
| 116 | }; |
| 117 | union debug_event_data |
| 118 | { |
| 119 | struct debug_event_exception exception; |
| 120 | struct debug_event_create_thread create_thread; |
| 121 | struct debug_event_create_process create_process; |
| 122 | struct debug_event_exit exit; |
| 123 | struct debug_event_load_dll load_dll; |
| 124 | struct debug_event_unload_dll unload_dll; |
| 125 | struct debug_event_output_string output_string; |
| 126 | struct debug_event_rip_info rip_info; |
| 127 | }; |
| 128 | |
| 129 | /* debug event data */ |
| 130 | typedef struct |
| 131 | { |
| 132 | int code; /* event code */ |
| 133 | union debug_event_data info; /* event information */ |
| 134 | } debug_event_t; |
| 135 | |
| 136 | /* structure used in sending an fd from client to server */ |
| 137 | struct send_fd |
| 138 | { |
Alexandre Julliard | 54f2287 | 2002-10-03 19:54:57 +0000 | [diff] [blame] | 139 | thread_id_t tid; /* thread id */ |
| 140 | int fd; /* file descriptor on client-side */ |
Alexandre Julliard | 37ec927 | 2001-07-19 00:35:37 +0000 | [diff] [blame] | 141 | }; |
| 142 | |
| 143 | /* structure sent by the server on the wait fifo */ |
| 144 | struct wake_up_reply |
| 145 | { |
| 146 | void *cookie; /* magic cookie that was passed in select_request */ |
| 147 | int signaled; /* wait result */ |
| 148 | }; |
| 149 | |
Alexandre Julliard | 462172a | 2003-04-02 22:48:59 +0000 | [diff] [blame] | 150 | /* structure for absolute timeouts */ |
| 151 | typedef struct |
| 152 | { |
| 153 | int sec; /* seconds since Unix epoch */ |
| 154 | int usec; /* microseconds */ |
| 155 | } abs_time_t; |
| 156 | |
Alexandre Julliard | 7a2017d | 2001-10-12 19:10:26 +0000 | [diff] [blame] | 157 | /* structure returned in the list of window properties */ |
| 158 | typedef struct |
| 159 | { |
| 160 | atom_t atom; /* property atom */ |
| 161 | short string; /* was atom a string originally? */ |
Alexandre Julliard | 5188574 | 2002-05-30 20:12:58 +0000 | [diff] [blame] | 162 | obj_handle_t handle; /* handle stored in property */ |
Alexandre Julliard | 7a2017d | 2001-10-12 19:10:26 +0000 | [diff] [blame] | 163 | } property_data_t; |
| 164 | |
Alexandre Julliard | 0d50965 | 2001-10-16 21:55:37 +0000 | [diff] [blame] | 165 | /* structure to specify window rectangles */ |
| 166 | typedef struct |
| 167 | { |
| 168 | int left; |
| 169 | int top; |
| 170 | int right; |
| 171 | int bottom; |
| 172 | } rectangle_t; |
| 173 | |
Alexandre Julliard | 9caa71e | 2001-11-30 18:46:42 +0000 | [diff] [blame] | 174 | /* structure for console char/attribute info */ |
| 175 | typedef struct |
| 176 | { |
| 177 | WCHAR ch; |
| 178 | unsigned short attr; |
| 179 | } char_info_t; |
| 180 | |
Robert Shearman | 7bff354 | 2005-05-23 16:33:00 +0000 | [diff] [blame] | 181 | #define MAX_ACL_LEN 65535 |
| 182 | |
| 183 | struct security_descriptor |
| 184 | { |
| 185 | unsigned int control; /* SE_ flags */ |
| 186 | size_t owner_len; |
| 187 | size_t group_len; |
| 188 | size_t sacl_len; |
| 189 | size_t dacl_len; |
| 190 | /* VARARGS(owner,SID); */ |
| 191 | /* VARARGS(group,SID); */ |
| 192 | /* VARARGS(sacl,ACL); */ |
| 193 | /* VARARGS(dacl,ACL); */ |
| 194 | }; |
| 195 | |
Alexandre Julliard | 37ec927 | 2001-07-19 00:35:37 +0000 | [diff] [blame] | 196 | /****************************************************************/ |
| 197 | /* Request declarations */ |
| 198 | |
| 199 | /* Create a new process from the context of the parent */ |
| 200 | @REQ(new_process) |
| 201 | int inherit_all; /* inherit all handles from parent */ |
Alexandre Julliard | 01caa5e | 2005-07-12 20:27:09 +0000 | [diff] [blame] | 202 | unsigned int create_flags; /* creation flags */ |
Alexandre Julliard | 77c8b1d | 2003-02-24 20:51:50 +0000 | [diff] [blame] | 203 | int unix_pid; /* Unix pid of new process */ |
Alexandre Julliard | 5188574 | 2002-05-30 20:12:58 +0000 | [diff] [blame] | 204 | obj_handle_t exe_file; /* file handle for main exe */ |
| 205 | obj_handle_t hstdin; /* handle for stdin */ |
| 206 | obj_handle_t hstdout; /* handle for stdout */ |
| 207 | obj_handle_t hstderr; /* handle for stderr */ |
Alexandre Julliard | 6543a65 | 2002-03-29 18:28:56 +0000 | [diff] [blame] | 208 | VARARG(info,startup_info); /* startup information */ |
Alexandre Julliard | c4ec210 | 2004-07-16 03:54:35 +0000 | [diff] [blame] | 209 | VARARG(env,unicode_str); /* environment for new process */ |
Alexandre Julliard | 37ec927 | 2001-07-19 00:35:37 +0000 | [diff] [blame] | 210 | @REPLY |
Alexandre Julliard | 5188574 | 2002-05-30 20:12:58 +0000 | [diff] [blame] | 211 | obj_handle_t info; /* new process info handle */ |
Alexandre Julliard | 37ec927 | 2001-07-19 00:35:37 +0000 | [diff] [blame] | 212 | @END |
| 213 | |
| 214 | |
| 215 | /* Retrieve information about a newly started process */ |
| 216 | @REQ(get_new_process_info) |
Alexandre Julliard | 5188574 | 2002-05-30 20:12:58 +0000 | [diff] [blame] | 217 | obj_handle_t info; /* info handle returned from new_process_request */ |
Alexandre Julliard | 37ec927 | 2001-07-19 00:35:37 +0000 | [diff] [blame] | 218 | int pinherit; /* process handle inherit flag */ |
| 219 | int tinherit; /* thread handle inherit flag */ |
| 220 | @REPLY |
Alexandre Julliard | 54f2287 | 2002-10-03 19:54:57 +0000 | [diff] [blame] | 221 | process_id_t pid; /* process id */ |
Alexandre Julliard | 5188574 | 2002-05-30 20:12:58 +0000 | [diff] [blame] | 222 | obj_handle_t phandle; /* process handle (in the current process) */ |
Alexandre Julliard | 54f2287 | 2002-10-03 19:54:57 +0000 | [diff] [blame] | 223 | thread_id_t tid; /* thread id */ |
Alexandre Julliard | 5188574 | 2002-05-30 20:12:58 +0000 | [diff] [blame] | 224 | obj_handle_t thandle; /* thread handle (in the current process) */ |
Alexandre Julliard | 9d80215 | 2002-05-24 21:20:27 +0000 | [diff] [blame] | 225 | int success; /* did the process start successfully? */ |
Alexandre Julliard | 37ec927 | 2001-07-19 00:35:37 +0000 | [diff] [blame] | 226 | @END |
| 227 | |
| 228 | |
| 229 | /* Create a new thread from the context of the parent */ |
| 230 | @REQ(new_thread) |
| 231 | int suspend; /* new thread should be suspended on creation */ |
| 232 | int inherit; /* inherit flag */ |
| 233 | int request_fd; /* fd for request pipe */ |
| 234 | @REPLY |
Alexandre Julliard | 54f2287 | 2002-10-03 19:54:57 +0000 | [diff] [blame] | 235 | thread_id_t tid; /* thread id */ |
Alexandre Julliard | 5188574 | 2002-05-30 20:12:58 +0000 | [diff] [blame] | 236 | obj_handle_t handle; /* thread handle (in the current process) */ |
Alexandre Julliard | 37ec927 | 2001-07-19 00:35:37 +0000 | [diff] [blame] | 237 | @END |
| 238 | |
| 239 | |
Alexandre Julliard | 6543a65 | 2002-03-29 18:28:56 +0000 | [diff] [blame] | 240 | /* Retrieve the new process startup info */ |
| 241 | @REQ(get_startup_info) |
Alexandre Julliard | 6543a65 | 2002-03-29 18:28:56 +0000 | [diff] [blame] | 242 | @REPLY |
Alexandre Julliard | 01caa5e | 2005-07-12 20:27:09 +0000 | [diff] [blame] | 243 | unsigned int create_flags; /* creation flags */ |
| 244 | obj_handle_t exe_file; /* file handle for main exe */ |
| 245 | obj_handle_t hstdin; /* handle for stdin */ |
| 246 | obj_handle_t hstdout; /* handle for stdout */ |
| 247 | obj_handle_t hstderr; /* handle for stderr */ |
Alexandre Julliard | 6543a65 | 2002-03-29 18:28:56 +0000 | [diff] [blame] | 248 | VARARG(info,startup_info); /* startup information */ |
Alexandre Julliard | c4ec210 | 2004-07-16 03:54:35 +0000 | [diff] [blame] | 249 | VARARG(env,unicode_str); /* environment */ |
Alexandre Julliard | 37ec927 | 2001-07-19 00:35:37 +0000 | [diff] [blame] | 250 | @END |
| 251 | |
| 252 | |
| 253 | /* Signal the end of the process initialization */ |
| 254 | @REQ(init_process_done) |
| 255 | void* module; /* main module base address */ |
Alexandre Julliard | aeb5660 | 2002-03-22 00:21:23 +0000 | [diff] [blame] | 256 | size_t module_size; /* main module size */ |
Alexandre Julliard | 37ec927 | 2001-07-19 00:35:37 +0000 | [diff] [blame] | 257 | void* entry; /* process entry point */ |
| 258 | void* name; /* ptr to ptr to name (in process addr space) */ |
Alexandre Julliard | 5188574 | 2002-05-30 20:12:58 +0000 | [diff] [blame] | 259 | obj_handle_t exe_file; /* file handle for main exe */ |
Alexandre Julliard | 37ec927 | 2001-07-19 00:35:37 +0000 | [diff] [blame] | 260 | int gui; /* is it a GUI process? */ |
Alexandre Julliard | c30cefb | 2003-09-30 01:04:19 +0000 | [diff] [blame] | 261 | VARARG(filename,unicode_str); /* file name of main exe */ |
Alexandre Julliard | 37ec927 | 2001-07-19 00:35:37 +0000 | [diff] [blame] | 262 | @END |
| 263 | |
| 264 | |
| 265 | /* Initialize a thread; called from the child after fork()/clone() */ |
| 266 | @REQ(init_thread) |
| 267 | int unix_pid; /* Unix pid of new thread */ |
Alexandre Julliard | a8497bd | 2003-03-22 21:00:09 +0000 | [diff] [blame] | 268 | int unix_tid; /* Unix tid of new thread */ |
Alexandre Julliard | 37ec927 | 2001-07-19 00:35:37 +0000 | [diff] [blame] | 269 | void* teb; /* TEB of new thread (in thread address space) */ |
Alexandre Julliard | 0424f38 | 2005-07-13 12:12:43 +0000 | [diff] [blame] | 270 | void* peb; /* address of PEB (in thread address space) */ |
Alexandre Julliard | 37ec927 | 2001-07-19 00:35:37 +0000 | [diff] [blame] | 271 | void* entry; /* thread entry point (in thread address space) */ |
Alexandre Julliard | 0424f38 | 2005-07-13 12:12:43 +0000 | [diff] [blame] | 272 | void* ldt_copy; /* address of LDT copy (in thread address space) */ |
Alexandre Julliard | 37ec927 | 2001-07-19 00:35:37 +0000 | [diff] [blame] | 273 | int reply_fd; /* fd for reply pipe */ |
| 274 | int wait_fd; /* fd for blocking calls pipe */ |
Alexandre Julliard | 0424f38 | 2005-07-13 12:12:43 +0000 | [diff] [blame] | 275 | int debug_level; /* new debug level */ |
Alexandre Julliard | 37ec927 | 2001-07-19 00:35:37 +0000 | [diff] [blame] | 276 | @REPLY |
Alexandre Julliard | 54f2287 | 2002-10-03 19:54:57 +0000 | [diff] [blame] | 277 | process_id_t pid; /* process id of the new thread's process */ |
| 278 | thread_id_t tid; /* thread id of the new thread */ |
Alexandre Julliard | 11ad6a0 | 2005-07-13 19:43:35 +0000 | [diff] [blame] | 279 | size_t info_size; /* total size of startup info */ |
Alexandre Julliard | 9ad5628 | 2005-07-14 10:32:46 +0000 | [diff] [blame] | 280 | time_t server_start; /* server start time */ |
Alexandre Julliard | 37ec927 | 2001-07-19 00:35:37 +0000 | [diff] [blame] | 281 | int version; /* protocol version */ |
| 282 | @END |
| 283 | |
| 284 | |
Alexandre Julliard | 37ec927 | 2001-07-19 00:35:37 +0000 | [diff] [blame] | 285 | /* Terminate a process */ |
| 286 | @REQ(terminate_process) |
Alexandre Julliard | 5188574 | 2002-05-30 20:12:58 +0000 | [diff] [blame] | 287 | obj_handle_t handle; /* process handle to terminate */ |
Alexandre Julliard | 37ec927 | 2001-07-19 00:35:37 +0000 | [diff] [blame] | 288 | int exit_code; /* process exit code */ |
| 289 | @REPLY |
| 290 | int self; /* suicide? */ |
| 291 | @END |
| 292 | |
| 293 | |
| 294 | /* Terminate a thread */ |
| 295 | @REQ(terminate_thread) |
Alexandre Julliard | 5188574 | 2002-05-30 20:12:58 +0000 | [diff] [blame] | 296 | obj_handle_t handle; /* thread handle to terminate */ |
Alexandre Julliard | 37ec927 | 2001-07-19 00:35:37 +0000 | [diff] [blame] | 297 | int exit_code; /* thread exit code */ |
| 298 | @REPLY |
| 299 | int self; /* suicide? */ |
| 300 | int last; /* last thread in this process? */ |
| 301 | @END |
| 302 | |
| 303 | |
| 304 | /* Retrieve information about a process */ |
| 305 | @REQ(get_process_info) |
Alexandre Julliard | 5188574 | 2002-05-30 20:12:58 +0000 | [diff] [blame] | 306 | obj_handle_t handle; /* process handle */ |
Alexandre Julliard | 37ec927 | 2001-07-19 00:35:37 +0000 | [diff] [blame] | 307 | @REPLY |
Alexandre Julliard | 54f2287 | 2002-10-03 19:54:57 +0000 | [diff] [blame] | 308 | process_id_t pid; /* server process id */ |
Eric Pouech | b0fd2ad | 2004-06-14 17:02:00 +0000 | [diff] [blame] | 309 | process_id_t ppid; /* server process id of parent */ |
Alexandre Julliard | 37ec927 | 2001-07-19 00:35:37 +0000 | [diff] [blame] | 310 | int exit_code; /* process exit code */ |
| 311 | int priority; /* priority class */ |
Eric Pouech | b09582a | 2005-09-27 10:52:10 +0000 | [diff] [blame] | 312 | int affinity; /* process affinity mask */ |
Eric Pouech | b0fd2ad | 2004-06-14 17:02:00 +0000 | [diff] [blame] | 313 | void* peb; /* PEB address in process address space */ |
Alexandre Julliard | 37ec927 | 2001-07-19 00:35:37 +0000 | [diff] [blame] | 314 | @END |
| 315 | |
| 316 | |
| 317 | /* Set a process informations */ |
| 318 | @REQ(set_process_info) |
Alexandre Julliard | 5188574 | 2002-05-30 20:12:58 +0000 | [diff] [blame] | 319 | obj_handle_t handle; /* process handle */ |
Alexandre Julliard | 37ec927 | 2001-07-19 00:35:37 +0000 | [diff] [blame] | 320 | int mask; /* setting mask (see below) */ |
| 321 | int priority; /* priority class */ |
| 322 | int affinity; /* affinity mask */ |
| 323 | @END |
| 324 | #define SET_PROCESS_INFO_PRIORITY 0x01 |
| 325 | #define SET_PROCESS_INFO_AFFINITY 0x02 |
| 326 | |
| 327 | |
| 328 | /* Retrieve information about a thread */ |
| 329 | @REQ(get_thread_info) |
Ryan Cumming | 24f4ece | 2002-11-25 01:33:38 +0000 | [diff] [blame] | 330 | obj_handle_t handle; /* thread handle */ |
| 331 | thread_id_t tid_in; /* thread id (optional) */ |
Alexandre Julliard | 37ec927 | 2001-07-19 00:35:37 +0000 | [diff] [blame] | 332 | @REPLY |
Alexandre Julliard | 4f196ea | 2003-07-09 02:57:57 +0000 | [diff] [blame] | 333 | process_id_t pid; /* server process id */ |
Ryan Cumming | 24f4ece | 2002-11-25 01:33:38 +0000 | [diff] [blame] | 334 | thread_id_t tid; /* server thread id */ |
| 335 | void* teb; /* thread teb pointer */ |
| 336 | int exit_code; /* thread exit code */ |
| 337 | int priority; /* thread priority level */ |
Alexandre Julliard | 4f196ea | 2003-07-09 02:57:57 +0000 | [diff] [blame] | 338 | int affinity; /* thread affinity mask */ |
Ryan Cumming | 24f4ece | 2002-11-25 01:33:38 +0000 | [diff] [blame] | 339 | time_t creation_time; /* thread creation time */ |
| 340 | time_t exit_time; /* thread exit time */ |
Alexandre Julliard | 37ec927 | 2001-07-19 00:35:37 +0000 | [diff] [blame] | 341 | @END |
| 342 | |
| 343 | |
| 344 | /* Set a thread informations */ |
| 345 | @REQ(set_thread_info) |
Alexandre Julliard | 5188574 | 2002-05-30 20:12:58 +0000 | [diff] [blame] | 346 | obj_handle_t handle; /* thread handle */ |
Alexandre Julliard | 37ec927 | 2001-07-19 00:35:37 +0000 | [diff] [blame] | 347 | int mask; /* setting mask (see below) */ |
| 348 | int priority; /* priority class */ |
| 349 | int affinity; /* affinity mask */ |
Robert Shearman | 4bba216 | 2005-06-20 13:18:38 +0000 | [diff] [blame] | 350 | obj_handle_t token; /* impersonation token */ |
Alexandre Julliard | 37ec927 | 2001-07-19 00:35:37 +0000 | [diff] [blame] | 351 | @END |
| 352 | #define SET_THREAD_INFO_PRIORITY 0x01 |
| 353 | #define SET_THREAD_INFO_AFFINITY 0x02 |
Robert Shearman | 4bba216 | 2005-06-20 13:18:38 +0000 | [diff] [blame] | 354 | #define SET_THREAD_INFO_TOKEN 0x04 |
Alexandre Julliard | 37ec927 | 2001-07-19 00:35:37 +0000 | [diff] [blame] | 355 | |
| 356 | |
Eric Pouech | 2359b57 | 2003-01-09 00:01:28 +0000 | [diff] [blame] | 357 | /* Retrieve information about a module */ |
| 358 | @REQ(get_dll_info) |
| 359 | obj_handle_t handle; /* process handle */ |
| 360 | void* base_address; /* base address of module */ |
| 361 | @REPLY |
| 362 | size_t size; /* module size */ |
| 363 | void* entry_point; |
Alexandre Julliard | c30cefb | 2003-09-30 01:04:19 +0000 | [diff] [blame] | 364 | VARARG(filename,unicode_str); /* file name of module */ |
Eric Pouech | 2359b57 | 2003-01-09 00:01:28 +0000 | [diff] [blame] | 365 | @END |
| 366 | |
| 367 | |
Alexandre Julliard | 37ec927 | 2001-07-19 00:35:37 +0000 | [diff] [blame] | 368 | /* Suspend a thread */ |
| 369 | @REQ(suspend_thread) |
Alexandre Julliard | 5188574 | 2002-05-30 20:12:58 +0000 | [diff] [blame] | 370 | obj_handle_t handle; /* thread handle */ |
Alexandre Julliard | 37ec927 | 2001-07-19 00:35:37 +0000 | [diff] [blame] | 371 | @REPLY |
| 372 | int count; /* new suspend count */ |
| 373 | @END |
| 374 | |
| 375 | |
| 376 | /* Resume a thread */ |
| 377 | @REQ(resume_thread) |
Alexandre Julliard | 5188574 | 2002-05-30 20:12:58 +0000 | [diff] [blame] | 378 | obj_handle_t handle; /* thread handle */ |
Alexandre Julliard | 37ec927 | 2001-07-19 00:35:37 +0000 | [diff] [blame] | 379 | @REPLY |
| 380 | int count; /* new suspend count */ |
| 381 | @END |
| 382 | |
| 383 | |
| 384 | /* Notify the server that a dll has been loaded */ |
| 385 | @REQ(load_dll) |
Alexandre Julliard | 5188574 | 2002-05-30 20:12:58 +0000 | [diff] [blame] | 386 | obj_handle_t handle; /* file handle */ |
Alexandre Julliard | 37ec927 | 2001-07-19 00:35:37 +0000 | [diff] [blame] | 387 | void* base; /* base address */ |
Alexandre Julliard | aeb5660 | 2002-03-22 00:21:23 +0000 | [diff] [blame] | 388 | size_t size; /* dll size */ |
Alexandre Julliard | 37ec927 | 2001-07-19 00:35:37 +0000 | [diff] [blame] | 389 | int dbg_offset; /* debug info offset */ |
| 390 | int dbg_size; /* debug info size */ |
| 391 | void* name; /* ptr to ptr to name (in process addr space) */ |
Alexandre Julliard | c30cefb | 2003-09-30 01:04:19 +0000 | [diff] [blame] | 392 | VARARG(filename,unicode_str); /* file name of dll */ |
Alexandre Julliard | 37ec927 | 2001-07-19 00:35:37 +0000 | [diff] [blame] | 393 | @END |
| 394 | |
| 395 | |
| 396 | /* Notify the server that a dll is being unloaded */ |
| 397 | @REQ(unload_dll) |
| 398 | void* base; /* base address */ |
| 399 | @END |
| 400 | |
| 401 | |
| 402 | /* Queue an APC for a thread */ |
| 403 | @REQ(queue_apc) |
Alexandre Julliard | 5188574 | 2002-05-30 20:12:58 +0000 | [diff] [blame] | 404 | obj_handle_t handle; /* thread handle */ |
Alexandre Julliard | 37ec927 | 2001-07-19 00:35:37 +0000 | [diff] [blame] | 405 | int user; /* user or system apc? */ |
| 406 | void* func; /* function to call */ |
Alexandre Julliard | 088bcf9 | 2003-04-04 22:26:34 +0000 | [diff] [blame] | 407 | void* arg1; /* params for function to call */ |
| 408 | void* arg2; |
| 409 | void* arg3; |
Alexandre Julliard | 37ec927 | 2001-07-19 00:35:37 +0000 | [diff] [blame] | 410 | @END |
| 411 | |
| 412 | |
| 413 | /* Get next APC to call */ |
| 414 | @REQ(get_apc) |
| 415 | int alertable; /* is thread alertable? */ |
| 416 | @REPLY |
| 417 | void* func; /* function to call */ |
| 418 | int type; /* function type */ |
Alexandre Julliard | 088bcf9 | 2003-04-04 22:26:34 +0000 | [diff] [blame] | 419 | void* arg1; /* function arguments */ |
| 420 | void* arg2; |
| 421 | void* arg3; |
Alexandre Julliard | 37ec927 | 2001-07-19 00:35:37 +0000 | [diff] [blame] | 422 | @END |
Eric Pouech | 0a9f98b | 2005-04-18 15:38:44 +0000 | [diff] [blame] | 423 | enum apc_type { APC_NONE, APC_USER, APC_TIMER, APC_ASYNC_IO }; |
Alexandre Julliard | 37ec927 | 2001-07-19 00:35:37 +0000 | [diff] [blame] | 424 | |
| 425 | |
| 426 | /* Close a handle for the current process */ |
| 427 | @REQ(close_handle) |
Alexandre Julliard | 5188574 | 2002-05-30 20:12:58 +0000 | [diff] [blame] | 428 | obj_handle_t handle; /* handle to close */ |
Alexandre Julliard | 37ec927 | 2001-07-19 00:35:37 +0000 | [diff] [blame] | 429 | @REPLY |
| 430 | int fd; /* associated fd to close */ |
| 431 | @END |
| 432 | |
| 433 | |
| 434 | /* Set a handle information */ |
| 435 | @REQ(set_handle_info) |
Alexandre Julliard | 5188574 | 2002-05-30 20:12:58 +0000 | [diff] [blame] | 436 | obj_handle_t handle; /* handle we are interested in */ |
Alexandre Julliard | 37ec927 | 2001-07-19 00:35:37 +0000 | [diff] [blame] | 437 | int flags; /* new handle flags */ |
| 438 | int mask; /* mask for flags to set */ |
Alexandre Julliard | 37ec927 | 2001-07-19 00:35:37 +0000 | [diff] [blame] | 439 | @REPLY |
| 440 | int old_flags; /* old flag value */ |
Alexandre Julliard | 38502f7 | 2005-08-23 18:43:50 +0000 | [diff] [blame] | 441 | @END |
| 442 | |
| 443 | |
Alexandre Julliard | 37ec927 | 2001-07-19 00:35:37 +0000 | [diff] [blame] | 444 | /* Duplicate a handle */ |
| 445 | @REQ(dup_handle) |
Alexandre Julliard | 5188574 | 2002-05-30 20:12:58 +0000 | [diff] [blame] | 446 | obj_handle_t src_process; /* src process handle */ |
| 447 | obj_handle_t src_handle; /* src handle to duplicate */ |
| 448 | obj_handle_t dst_process; /* dst process handle */ |
Alexandre Julliard | 37ec927 | 2001-07-19 00:35:37 +0000 | [diff] [blame] | 449 | unsigned int access; /* wanted access rights */ |
| 450 | int inherit; /* inherit flag */ |
| 451 | int options; /* duplicate options (see below) */ |
| 452 | @REPLY |
Alexandre Julliard | 5188574 | 2002-05-30 20:12:58 +0000 | [diff] [blame] | 453 | obj_handle_t handle; /* duplicated handle in dst process */ |
Alexandre Julliard | 37ec927 | 2001-07-19 00:35:37 +0000 | [diff] [blame] | 454 | int fd; /* associated fd to close */ |
| 455 | @END |
| 456 | #define DUP_HANDLE_CLOSE_SOURCE DUPLICATE_CLOSE_SOURCE |
| 457 | #define DUP_HANDLE_SAME_ACCESS DUPLICATE_SAME_ACCESS |
| 458 | #define DUP_HANDLE_MAKE_GLOBAL 0x80000000 /* Not a Windows flag */ |
| 459 | |
| 460 | |
| 461 | /* Open a handle to a process */ |
| 462 | @REQ(open_process) |
Alexandre Julliard | 54f2287 | 2002-10-03 19:54:57 +0000 | [diff] [blame] | 463 | process_id_t pid; /* process id to open */ |
Alexandre Julliard | 37ec927 | 2001-07-19 00:35:37 +0000 | [diff] [blame] | 464 | unsigned int access; /* wanted access rights */ |
| 465 | int inherit; /* inherit flag */ |
| 466 | @REPLY |
Alexandre Julliard | 5188574 | 2002-05-30 20:12:58 +0000 | [diff] [blame] | 467 | obj_handle_t handle; /* handle to the process */ |
Alexandre Julliard | 37ec927 | 2001-07-19 00:35:37 +0000 | [diff] [blame] | 468 | @END |
| 469 | |
| 470 | |
Chris Morgan | 417296c | 2002-04-02 00:49:05 +0000 | [diff] [blame] | 471 | /* Open a handle to a thread */ |
| 472 | @REQ(open_thread) |
Alexandre Julliard | 54f2287 | 2002-10-03 19:54:57 +0000 | [diff] [blame] | 473 | thread_id_t tid; /* thread id to open */ |
Chris Morgan | 417296c | 2002-04-02 00:49:05 +0000 | [diff] [blame] | 474 | unsigned int access; /* wanted access rights */ |
| 475 | int inherit; /* inherit flag */ |
| 476 | @REPLY |
Alexandre Julliard | 5188574 | 2002-05-30 20:12:58 +0000 | [diff] [blame] | 477 | obj_handle_t handle; /* handle to the thread */ |
Chris Morgan | 417296c | 2002-04-02 00:49:05 +0000 | [diff] [blame] | 478 | @END |
| 479 | |
| 480 | |
Alexandre Julliard | 37ec927 | 2001-07-19 00:35:37 +0000 | [diff] [blame] | 481 | /* Wait for handles */ |
| 482 | @REQ(select) |
| 483 | int flags; /* wait flags (see below) */ |
| 484 | void* cookie; /* magic cookie to return to client */ |
Mike McCormack | f92fff6 | 2005-04-24 17:35:52 +0000 | [diff] [blame] | 485 | obj_handle_t signal; /* object to signal (0 if none) */ |
Alexandre Julliard | 462172a | 2003-04-02 22:48:59 +0000 | [diff] [blame] | 486 | abs_time_t timeout; /* absolute timeout */ |
Alexandre Julliard | 37ec927 | 2001-07-19 00:35:37 +0000 | [diff] [blame] | 487 | VARARG(handles,handles); /* handles to select on */ |
| 488 | @END |
| 489 | #define SELECT_ALL 1 |
| 490 | #define SELECT_ALERTABLE 2 |
| 491 | #define SELECT_INTERRUPTIBLE 4 |
| 492 | #define SELECT_TIMEOUT 8 |
| 493 | |
| 494 | |
| 495 | /* Create an event */ |
| 496 | @REQ(create_event) |
Eric Pouech | 44158dd | 2004-12-02 18:05:37 +0000 | [diff] [blame] | 497 | unsigned int access; /* wanted access rights */ |
Vitaliy Margolen | a996000 | 2005-10-27 18:30:37 +0000 | [diff] [blame] | 498 | unsigned int attributes; /* object attributes */ |
Vitaliy Margolen | f676bc8 | 2005-12-02 15:55:48 +0100 | [diff] [blame] | 499 | obj_handle_t rootdir; /* root directory */ |
Alexandre Julliard | 37ec927 | 2001-07-19 00:35:37 +0000 | [diff] [blame] | 500 | int manual_reset; /* manual reset event */ |
| 501 | int initial_state; /* initial state of the event */ |
Alexandre Julliard | 37ec927 | 2001-07-19 00:35:37 +0000 | [diff] [blame] | 502 | VARARG(name,unicode_str); /* object name */ |
| 503 | @REPLY |
Alexandre Julliard | 5188574 | 2002-05-30 20:12:58 +0000 | [diff] [blame] | 504 | obj_handle_t handle; /* handle to the event */ |
Alexandre Julliard | 37ec927 | 2001-07-19 00:35:37 +0000 | [diff] [blame] | 505 | @END |
| 506 | |
| 507 | /* Event operation */ |
| 508 | @REQ(event_op) |
Alexandre Julliard | 5188574 | 2002-05-30 20:12:58 +0000 | [diff] [blame] | 509 | obj_handle_t handle; /* handle to event */ |
Alexandre Julliard | 37ec927 | 2001-07-19 00:35:37 +0000 | [diff] [blame] | 510 | int op; /* event operation (see below) */ |
| 511 | @END |
| 512 | enum event_op { PULSE_EVENT, SET_EVENT, RESET_EVENT }; |
| 513 | |
| 514 | |
| 515 | /* Open an event */ |
| 516 | @REQ(open_event) |
| 517 | unsigned int access; /* wanted access rights */ |
Vitaliy Margolen | a996000 | 2005-10-27 18:30:37 +0000 | [diff] [blame] | 518 | unsigned int attributes; /* object attributes */ |
Vitaliy Margolen | f676bc8 | 2005-12-02 15:55:48 +0100 | [diff] [blame] | 519 | obj_handle_t rootdir; /* root directory */ |
Alexandre Julliard | 37ec927 | 2001-07-19 00:35:37 +0000 | [diff] [blame] | 520 | VARARG(name,unicode_str); /* object name */ |
| 521 | @REPLY |
Alexandre Julliard | 5188574 | 2002-05-30 20:12:58 +0000 | [diff] [blame] | 522 | obj_handle_t handle; /* handle to the event */ |
Alexandre Julliard | 37ec927 | 2001-07-19 00:35:37 +0000 | [diff] [blame] | 523 | @END |
| 524 | |
| 525 | |
| 526 | /* Create a mutex */ |
| 527 | @REQ(create_mutex) |
Eric Pouech | 44158dd | 2004-12-02 18:05:37 +0000 | [diff] [blame] | 528 | unsigned int access; /* wanted access rights */ |
Vitaliy Margolen | a996000 | 2005-10-27 18:30:37 +0000 | [diff] [blame] | 529 | unsigned int attributes; /* object attributes */ |
Vitaliy Margolen | f676bc8 | 2005-12-02 15:55:48 +0100 | [diff] [blame] | 530 | obj_handle_t rootdir; /* root directory */ |
Alexandre Julliard | 37ec927 | 2001-07-19 00:35:37 +0000 | [diff] [blame] | 531 | int owned; /* initially owned? */ |
Alexandre Julliard | 37ec927 | 2001-07-19 00:35:37 +0000 | [diff] [blame] | 532 | VARARG(name,unicode_str); /* object name */ |
| 533 | @REPLY |
Alexandre Julliard | 5188574 | 2002-05-30 20:12:58 +0000 | [diff] [blame] | 534 | obj_handle_t handle; /* handle to the mutex */ |
Alexandre Julliard | 37ec927 | 2001-07-19 00:35:37 +0000 | [diff] [blame] | 535 | @END |
| 536 | |
| 537 | |
| 538 | /* Release a mutex */ |
| 539 | @REQ(release_mutex) |
Alexandre Julliard | 5188574 | 2002-05-30 20:12:58 +0000 | [diff] [blame] | 540 | obj_handle_t handle; /* handle to the mutex */ |
Eric Pouech | 44158dd | 2004-12-02 18:05:37 +0000 | [diff] [blame] | 541 | @REPLY |
| 542 | unsigned int prev_count; /* value of internal counter, before release */ |
Alexandre Julliard | 37ec927 | 2001-07-19 00:35:37 +0000 | [diff] [blame] | 543 | @END |
| 544 | |
| 545 | |
| 546 | /* Open a mutex */ |
| 547 | @REQ(open_mutex) |
| 548 | unsigned int access; /* wanted access rights */ |
Vitaliy Margolen | a996000 | 2005-10-27 18:30:37 +0000 | [diff] [blame] | 549 | unsigned int attributes; /* object attributes */ |
Vitaliy Margolen | f676bc8 | 2005-12-02 15:55:48 +0100 | [diff] [blame] | 550 | obj_handle_t rootdir; /* root directory */ |
Alexandre Julliard | 37ec927 | 2001-07-19 00:35:37 +0000 | [diff] [blame] | 551 | VARARG(name,unicode_str); /* object name */ |
| 552 | @REPLY |
Alexandre Julliard | 5188574 | 2002-05-30 20:12:58 +0000 | [diff] [blame] | 553 | obj_handle_t handle; /* handle to the mutex */ |
Alexandre Julliard | 37ec927 | 2001-07-19 00:35:37 +0000 | [diff] [blame] | 554 | @END |
| 555 | |
| 556 | |
| 557 | /* Create a semaphore */ |
| 558 | @REQ(create_semaphore) |
Eric Pouech | 44158dd | 2004-12-02 18:05:37 +0000 | [diff] [blame] | 559 | unsigned int access; /* wanted access rights */ |
Vitaliy Margolen | a996000 | 2005-10-27 18:30:37 +0000 | [diff] [blame] | 560 | unsigned int attributes; /* object attributes */ |
Vitaliy Margolen | 5daae3d | 2005-12-02 16:01:17 +0100 | [diff] [blame] | 561 | obj_handle_t rootdir; /* root directory */ |
Alexandre Julliard | 37ec927 | 2001-07-19 00:35:37 +0000 | [diff] [blame] | 562 | unsigned int initial; /* initial count */ |
| 563 | unsigned int max; /* maximum count */ |
Alexandre Julliard | 37ec927 | 2001-07-19 00:35:37 +0000 | [diff] [blame] | 564 | VARARG(name,unicode_str); /* object name */ |
| 565 | @REPLY |
Alexandre Julliard | 5188574 | 2002-05-30 20:12:58 +0000 | [diff] [blame] | 566 | obj_handle_t handle; /* handle to the semaphore */ |
Alexandre Julliard | 37ec927 | 2001-07-19 00:35:37 +0000 | [diff] [blame] | 567 | @END |
| 568 | |
| 569 | |
| 570 | /* Release a semaphore */ |
| 571 | @REQ(release_semaphore) |
Alexandre Julliard | 5188574 | 2002-05-30 20:12:58 +0000 | [diff] [blame] | 572 | obj_handle_t handle; /* handle to the semaphore */ |
Alexandre Julliard | 37ec927 | 2001-07-19 00:35:37 +0000 | [diff] [blame] | 573 | unsigned int count; /* count to add to semaphore */ |
| 574 | @REPLY |
| 575 | unsigned int prev_count; /* previous semaphore count */ |
| 576 | @END |
| 577 | |
| 578 | |
| 579 | /* Open a semaphore */ |
| 580 | @REQ(open_semaphore) |
| 581 | unsigned int access; /* wanted access rights */ |
Vitaliy Margolen | a996000 | 2005-10-27 18:30:37 +0000 | [diff] [blame] | 582 | unsigned int attributes; /* object attributes */ |
Vitaliy Margolen | 5daae3d | 2005-12-02 16:01:17 +0100 | [diff] [blame] | 583 | obj_handle_t rootdir; /* root directory */ |
Alexandre Julliard | 37ec927 | 2001-07-19 00:35:37 +0000 | [diff] [blame] | 584 | VARARG(name,unicode_str); /* object name */ |
| 585 | @REPLY |
Alexandre Julliard | 5188574 | 2002-05-30 20:12:58 +0000 | [diff] [blame] | 586 | obj_handle_t handle; /* handle to the semaphore */ |
Alexandre Julliard | 37ec927 | 2001-07-19 00:35:37 +0000 | [diff] [blame] | 587 | @END |
| 588 | |
| 589 | |
| 590 | /* Create a file */ |
| 591 | @REQ(create_file) |
| 592 | unsigned int access; /* wanted access rights */ |
| 593 | int inherit; /* inherit flag */ |
| 594 | unsigned int sharing; /* sharing flags */ |
| 595 | int create; /* file create action */ |
Alexandre Julliard | 014099c | 2004-03-12 01:56:49 +0000 | [diff] [blame] | 596 | unsigned int options; /* file options */ |
Alexandre Julliard | 37ec927 | 2001-07-19 00:35:37 +0000 | [diff] [blame] | 597 | unsigned int attrs; /* file attributes for creation */ |
| 598 | VARARG(filename,string); /* file name */ |
| 599 | @REPLY |
Alexandre Julliard | 5188574 | 2002-05-30 20:12:58 +0000 | [diff] [blame] | 600 | obj_handle_t handle; /* handle to the file */ |
Alexandre Julliard | 37ec927 | 2001-07-19 00:35:37 +0000 | [diff] [blame] | 601 | @END |
| 602 | |
| 603 | |
| 604 | /* Allocate a file handle for a Unix fd */ |
| 605 | @REQ(alloc_file_handle) |
| 606 | unsigned int access; /* wanted access rights */ |
Eric Pouech | 0b83d4c | 2001-11-23 23:04:58 +0000 | [diff] [blame] | 607 | int inherit; /* inherit flag */ |
Alexandre Julliard | 37ec927 | 2001-07-19 00:35:37 +0000 | [diff] [blame] | 608 | int fd; /* file descriptor on the client side */ |
| 609 | @REPLY |
Alexandre Julliard | 5188574 | 2002-05-30 20:12:58 +0000 | [diff] [blame] | 610 | obj_handle_t handle; /* handle to the file */ |
Alexandre Julliard | 37ec927 | 2001-07-19 00:35:37 +0000 | [diff] [blame] | 611 | @END |
| 612 | |
| 613 | |
| 614 | /* Get a Unix fd to access a file */ |
| 615 | @REQ(get_handle_fd) |
Alexandre Julliard | 5188574 | 2002-05-30 20:12:58 +0000 | [diff] [blame] | 616 | obj_handle_t handle; /* handle to the file */ |
Alexandre Julliard | 37ec927 | 2001-07-19 00:35:37 +0000 | [diff] [blame] | 617 | unsigned int access; /* wanted access rights */ |
| 618 | @REPLY |
| 619 | int fd; /* file descriptor */ |
Alexandre Julliard | f62f6e8 | 2005-08-24 18:33:50 +0000 | [diff] [blame] | 620 | int removable; /* is device removable? (-1 if unknown) */ |
Martin Wilck | 88cd32b | 2002-01-09 20:30:51 +0000 | [diff] [blame] | 621 | int flags; /* file read/write flags (see below) */ |
Alexandre Julliard | 37ec927 | 2001-07-19 00:35:37 +0000 | [diff] [blame] | 622 | @END |
Eric Pouech | 1ffddb4 | 2004-08-17 23:37:55 +0000 | [diff] [blame] | 623 | #define FD_FLAG_OVERLAPPED 0x01 /* fd opened in overlapped mode */ |
| 624 | #define FD_FLAG_TIMEOUT 0x02 /* read/write is synchronous */ |
Martin Wilck | bff7e69 | 2002-04-25 21:31:11 +0000 | [diff] [blame] | 625 | #define FD_FLAG_RECV_SHUTDOWN 0x04 |
| 626 | #define FD_FLAG_SEND_SHUTDOWN 0x08 |
Eric Pouech | 1ffddb4 | 2004-08-17 23:37:55 +0000 | [diff] [blame] | 627 | #define FD_FLAG_AVAILABLE 0x10 /* in overlap read/write operation, |
| 628 | * only handle available data (don't wait) */ |
Alexandre Julliard | 37ec927 | 2001-07-19 00:35:37 +0000 | [diff] [blame] | 629 | |
Alexandre Julliard | f62f6e8 | 2005-08-24 18:33:50 +0000 | [diff] [blame] | 630 | /* Set the cached file descriptor of a handle */ |
| 631 | @REQ(set_handle_fd) |
| 632 | obj_handle_t handle; /* handle we are interested in */ |
| 633 | int fd; /* file descriptor */ |
| 634 | int removable; /* is device removable? (-1 if unknown) */ |
| 635 | @REPLY |
| 636 | int cur_fd; /* current file descriptor */ |
| 637 | @END |
| 638 | |
Alexandre Julliard | 37ec927 | 2001-07-19 00:35:37 +0000 | [diff] [blame] | 639 | |
Alexandre Julliard | 37ec927 | 2001-07-19 00:35:37 +0000 | [diff] [blame] | 640 | /* Flush a file buffers */ |
| 641 | @REQ(flush_file) |
Alexandre Julliard | 5188574 | 2002-05-30 20:12:58 +0000 | [diff] [blame] | 642 | obj_handle_t handle; /* handle to the file */ |
Mike McCormack | ef8b946 | 2003-05-15 04:22:45 +0000 | [diff] [blame] | 643 | @REPLY |
| 644 | obj_handle_t event; /* event set when finished */ |
Alexandre Julliard | 37ec927 | 2001-07-19 00:35:37 +0000 | [diff] [blame] | 645 | @END |
| 646 | |
| 647 | |
Alexandre Julliard | 37ec927 | 2001-07-19 00:35:37 +0000 | [diff] [blame] | 648 | /* Lock a region of a file */ |
| 649 | @REQ(lock_file) |
Alexandre Julliard | 5188574 | 2002-05-30 20:12:58 +0000 | [diff] [blame] | 650 | obj_handle_t handle; /* handle to the file */ |
Alexandre Julliard | 37ec927 | 2001-07-19 00:35:37 +0000 | [diff] [blame] | 651 | unsigned int offset_low; /* offset of start of lock */ |
| 652 | unsigned int offset_high; /* offset of start of lock */ |
| 653 | unsigned int count_low; /* count of bytes to lock */ |
| 654 | unsigned int count_high; /* count of bytes to lock */ |
Alexandre Julliard | ce61349 | 2003-03-18 05:04:33 +0000 | [diff] [blame] | 655 | int shared; /* shared or exclusive lock? */ |
| 656 | int wait; /* do we want to wait? */ |
| 657 | @REPLY |
| 658 | obj_handle_t handle; /* handle to wait on */ |
| 659 | int overlapped; /* is it an overlapped I/O handle? */ |
Alexandre Julliard | 37ec927 | 2001-07-19 00:35:37 +0000 | [diff] [blame] | 660 | @END |
| 661 | |
| 662 | |
| 663 | /* Unlock a region of a file */ |
| 664 | @REQ(unlock_file) |
Alexandre Julliard | 5188574 | 2002-05-30 20:12:58 +0000 | [diff] [blame] | 665 | obj_handle_t handle; /* handle to the file */ |
Alexandre Julliard | 37ec927 | 2001-07-19 00:35:37 +0000 | [diff] [blame] | 666 | unsigned int offset_low; /* offset of start of unlock */ |
| 667 | unsigned int offset_high; /* offset of start of unlock */ |
| 668 | unsigned int count_low; /* count of bytes to unlock */ |
| 669 | unsigned int count_high; /* count of bytes to unlock */ |
| 670 | @END |
| 671 | |
| 672 | |
Alexandre Julliard | 964815b | 2005-08-08 15:11:03 +0000 | [diff] [blame] | 673 | /* Get ready to unmount a Unix device */ |
| 674 | @REQ(unmount_device) |
| 675 | obj_handle_t handle; /* handle to a file on the device */ |
| 676 | @END |
| 677 | |
| 678 | |
Alexandre Julliard | 37ec927 | 2001-07-19 00:35:37 +0000 | [diff] [blame] | 679 | /* Create a socket */ |
| 680 | @REQ(create_socket) |
| 681 | unsigned int access; /* wanted access rights */ |
| 682 | int inherit; /* inherit flag */ |
| 683 | int family; /* family, see socket manpage */ |
| 684 | int type; /* type, see socket manpage */ |
| 685 | int protocol; /* protocol, see socket manpage */ |
Martin Wilck | aa47705 | 2002-01-09 21:16:24 +0000 | [diff] [blame] | 686 | unsigned int flags; /* socket flags */ |
Alexandre Julliard | 37ec927 | 2001-07-19 00:35:37 +0000 | [diff] [blame] | 687 | @REPLY |
Alexandre Julliard | 5188574 | 2002-05-30 20:12:58 +0000 | [diff] [blame] | 688 | obj_handle_t handle; /* handle to the new socket */ |
Alexandre Julliard | 37ec927 | 2001-07-19 00:35:37 +0000 | [diff] [blame] | 689 | @END |
| 690 | |
| 691 | |
| 692 | /* Accept a socket */ |
| 693 | @REQ(accept_socket) |
Alexandre Julliard | 5188574 | 2002-05-30 20:12:58 +0000 | [diff] [blame] | 694 | obj_handle_t lhandle; /* handle to the listening socket */ |
Alexandre Julliard | 37ec927 | 2001-07-19 00:35:37 +0000 | [diff] [blame] | 695 | unsigned int access; /* wanted access rights */ |
| 696 | int inherit; /* inherit flag */ |
| 697 | @REPLY |
Alexandre Julliard | 5188574 | 2002-05-30 20:12:58 +0000 | [diff] [blame] | 698 | obj_handle_t handle; /* handle to the new socket */ |
Alexandre Julliard | 37ec927 | 2001-07-19 00:35:37 +0000 | [diff] [blame] | 699 | @END |
| 700 | |
| 701 | |
| 702 | /* Set socket event parameters */ |
| 703 | @REQ(set_socket_event) |
Alexandre Julliard | 5188574 | 2002-05-30 20:12:58 +0000 | [diff] [blame] | 704 | obj_handle_t handle; /* handle to the socket */ |
Alexandre Julliard | 81f2a73 | 2002-03-23 20:43:52 +0000 | [diff] [blame] | 705 | unsigned int mask; /* event mask */ |
Alexandre Julliard | 5188574 | 2002-05-30 20:12:58 +0000 | [diff] [blame] | 706 | obj_handle_t event; /* event object */ |
Alexandre Julliard | 81f2a73 | 2002-03-23 20:43:52 +0000 | [diff] [blame] | 707 | user_handle_t window; /* window to send the message to */ |
| 708 | unsigned int msg; /* message to send */ |
Alexandre Julliard | 37ec927 | 2001-07-19 00:35:37 +0000 | [diff] [blame] | 709 | @END |
| 710 | |
| 711 | |
| 712 | /* Get socket event parameters */ |
| 713 | @REQ(get_socket_event) |
Alexandre Julliard | 5188574 | 2002-05-30 20:12:58 +0000 | [diff] [blame] | 714 | obj_handle_t handle; /* handle to the socket */ |
Alexandre Julliard | 37ec927 | 2001-07-19 00:35:37 +0000 | [diff] [blame] | 715 | int service; /* clear pending? */ |
Alexandre Julliard | 5188574 | 2002-05-30 20:12:58 +0000 | [diff] [blame] | 716 | obj_handle_t c_event; /* event to clear */ |
Alexandre Julliard | 37ec927 | 2001-07-19 00:35:37 +0000 | [diff] [blame] | 717 | @REPLY |
| 718 | unsigned int mask; /* event mask */ |
| 719 | unsigned int pmask; /* pending events */ |
| 720 | unsigned int state; /* status bits */ |
| 721 | VARARG(errors,ints); /* event errors */ |
| 722 | @END |
| 723 | |
| 724 | |
| 725 | /* Reenable pending socket events */ |
| 726 | @REQ(enable_socket_event) |
Alexandre Julliard | 5188574 | 2002-05-30 20:12:58 +0000 | [diff] [blame] | 727 | obj_handle_t handle; /* handle to the socket */ |
Alexandre Julliard | 37ec927 | 2001-07-19 00:35:37 +0000 | [diff] [blame] | 728 | unsigned int mask; /* events to re-enable */ |
| 729 | unsigned int sstate; /* status bits to set */ |
| 730 | unsigned int cstate; /* status bits to clear */ |
| 731 | @END |
| 732 | |
Martin Wilck | d15bf1c | 2002-04-23 22:03:42 +0000 | [diff] [blame] | 733 | @REQ(set_socket_deferred) |
Alexandre Julliard | 5188574 | 2002-05-30 20:12:58 +0000 | [diff] [blame] | 734 | obj_handle_t handle; /* handle to the socket */ |
| 735 | obj_handle_t deferred; /* handle to the socket for which accept() is deferred */ |
Martin Wilck | d15bf1c | 2002-04-23 22:03:42 +0000 | [diff] [blame] | 736 | @END |
Alexandre Julliard | 37ec927 | 2001-07-19 00:35:37 +0000 | [diff] [blame] | 737 | |
Eric Pouech | 0b83d4c | 2001-11-23 23:04:58 +0000 | [diff] [blame] | 738 | /* Allocate a console (only used by a console renderer) */ |
Alexandre Julliard | 37ec927 | 2001-07-19 00:35:37 +0000 | [diff] [blame] | 739 | @REQ(alloc_console) |
| 740 | unsigned int access; /* wanted access rights */ |
| 741 | int inherit; /* inherit flag */ |
Alexandre Julliard | 54f2287 | 2002-10-03 19:54:57 +0000 | [diff] [blame] | 742 | process_id_t pid; /* pid of process which shall be attached to the console */ |
Alexandre Julliard | 37ec927 | 2001-07-19 00:35:37 +0000 | [diff] [blame] | 743 | @REPLY |
Alexandre Julliard | 5188574 | 2002-05-30 20:12:58 +0000 | [diff] [blame] | 744 | obj_handle_t handle_in; /* handle to console input */ |
| 745 | obj_handle_t event; /* handle to renderer events change notification */ |
Alexandre Julliard | 37ec927 | 2001-07-19 00:35:37 +0000 | [diff] [blame] | 746 | @END |
| 747 | |
| 748 | |
| 749 | /* Free the console of the current process */ |
| 750 | @REQ(free_console) |
| 751 | @END |
| 752 | |
| 753 | |
Eric Pouech | 0b83d4c | 2001-11-23 23:04:58 +0000 | [diff] [blame] | 754 | #define CONSOLE_RENDERER_NONE_EVENT 0x00 |
| 755 | #define CONSOLE_RENDERER_TITLE_EVENT 0x01 |
| 756 | #define CONSOLE_RENDERER_ACTIVE_SB_EVENT 0x02 |
| 757 | #define CONSOLE_RENDERER_SB_RESIZE_EVENT 0x03 |
| 758 | #define CONSOLE_RENDERER_UPDATE_EVENT 0x04 |
| 759 | #define CONSOLE_RENDERER_CURSOR_POS_EVENT 0x05 |
| 760 | #define CONSOLE_RENDERER_CURSOR_GEOM_EVENT 0x06 |
| 761 | #define CONSOLE_RENDERER_DISPLAY_EVENT 0x07 |
| 762 | #define CONSOLE_RENDERER_EXIT_EVENT 0x08 |
| 763 | struct console_renderer_event |
| 764 | { |
| 765 | short event; |
| 766 | union |
| 767 | { |
| 768 | struct update |
| 769 | { |
| 770 | short top; |
| 771 | short bottom; |
| 772 | } update; |
| 773 | struct resize |
| 774 | { |
| 775 | short width; |
| 776 | short height; |
| 777 | } resize; |
| 778 | struct cursor_pos |
| 779 | { |
| 780 | short x; |
| 781 | short y; |
| 782 | } cursor_pos; |
| 783 | struct cursor_geom |
| 784 | { |
| 785 | short visible; |
| 786 | short size; |
| 787 | } cursor_geom; |
| 788 | struct display |
| 789 | { |
| 790 | short left; |
| 791 | short top; |
| 792 | short width; |
| 793 | short height; |
| 794 | } display; |
| 795 | } u; |
| 796 | }; |
| 797 | |
| 798 | /* retrieve console events for the renderer */ |
| 799 | @REQ(get_console_renderer_events) |
Alexandre Julliard | 5188574 | 2002-05-30 20:12:58 +0000 | [diff] [blame] | 800 | obj_handle_t handle; /* handle to console input events */ |
Alexandre Julliard | 37ec927 | 2001-07-19 00:35:37 +0000 | [diff] [blame] | 801 | @REPLY |
Eric Pouech | 0b83d4c | 2001-11-23 23:04:58 +0000 | [diff] [blame] | 802 | VARARG(data,bytes); /* the various console_renderer_events */ |
Alexandre Julliard | 37ec927 | 2001-07-19 00:35:37 +0000 | [diff] [blame] | 803 | @END |
| 804 | |
| 805 | |
Eric Pouech | 0b83d4c | 2001-11-23 23:04:58 +0000 | [diff] [blame] | 806 | /* Open a handle to the process console */ |
| 807 | @REQ(open_console) |
| 808 | int from; /* 0 (resp 1) input (resp output) of current process console */ |
| 809 | /* otherwise console_in handle to get active screen buffer? */ |
| 810 | unsigned int access; /* wanted access rights */ |
| 811 | int inherit; /* inherit flag */ |
| 812 | int share; /* share mask (only for output handles) */ |
| 813 | @REPLY |
Alexandre Julliard | 5188574 | 2002-05-30 20:12:58 +0000 | [diff] [blame] | 814 | obj_handle_t handle; /* handle to the console */ |
Alexandre Julliard | 37ec927 | 2001-07-19 00:35:37 +0000 | [diff] [blame] | 815 | @END |
| 816 | |
| 817 | |
Eric Pouech | 412d37f | 2003-06-21 02:07:10 +0000 | [diff] [blame] | 818 | /* Get the input queue wait event */ |
| 819 | @REQ(get_console_wait_event) |
| 820 | @REPLY |
| 821 | obj_handle_t handle; |
| 822 | @END |
| 823 | |
Alexandre Julliard | 37ec927 | 2001-07-19 00:35:37 +0000 | [diff] [blame] | 824 | /* Get a console mode (input or output) */ |
| 825 | @REQ(get_console_mode) |
Alexandre Julliard | 5188574 | 2002-05-30 20:12:58 +0000 | [diff] [blame] | 826 | obj_handle_t handle; /* handle to the console */ |
Alexandre Julliard | 37ec927 | 2001-07-19 00:35:37 +0000 | [diff] [blame] | 827 | @REPLY |
| 828 | int mode; /* console mode */ |
| 829 | @END |
| 830 | |
| 831 | |
| 832 | /* Set a console mode (input or output) */ |
| 833 | @REQ(set_console_mode) |
Alexandre Julliard | 5188574 | 2002-05-30 20:12:58 +0000 | [diff] [blame] | 834 | obj_handle_t handle; /* handle to the console */ |
Alexandre Julliard | 37ec927 | 2001-07-19 00:35:37 +0000 | [diff] [blame] | 835 | int mode; /* console mode */ |
| 836 | @END |
| 837 | |
| 838 | |
Eric Pouech | 0b83d4c | 2001-11-23 23:04:58 +0000 | [diff] [blame] | 839 | /* Set info about a console (input only) */ |
| 840 | @REQ(set_console_input_info) |
Alexandre Julliard | 5188574 | 2002-05-30 20:12:58 +0000 | [diff] [blame] | 841 | obj_handle_t handle; /* handle to console input, or 0 for process' console */ |
Eric Pouech | 0b83d4c | 2001-11-23 23:04:58 +0000 | [diff] [blame] | 842 | int mask; /* setting mask (see below) */ |
Alexandre Julliard | 5188574 | 2002-05-30 20:12:58 +0000 | [diff] [blame] | 843 | obj_handle_t active_sb; /* active screen buffer */ |
Eric Pouech | 0b83d4c | 2001-11-23 23:04:58 +0000 | [diff] [blame] | 844 | int history_mode; /* whether we duplicate lines in history */ |
| 845 | int history_size; /* number of lines in history */ |
Eric Pouech | fa8b85a | 2003-01-09 06:01:32 +0000 | [diff] [blame] | 846 | int edition_mode; /* index to the edition mode flavors */ |
Eric Pouech | 0b83d4c | 2001-11-23 23:04:58 +0000 | [diff] [blame] | 847 | VARARG(title,unicode_str); /* console title */ |
| 848 | @END |
| 849 | #define SET_CONSOLE_INPUT_INFO_ACTIVE_SB 0x01 |
| 850 | #define SET_CONSOLE_INPUT_INFO_TITLE 0x02 |
| 851 | #define SET_CONSOLE_INPUT_INFO_HISTORY_MODE 0x04 |
| 852 | #define SET_CONSOLE_INPUT_INFO_HISTORY_SIZE 0x08 |
Eric Pouech | fa8b85a | 2003-01-09 06:01:32 +0000 | [diff] [blame] | 853 | #define SET_CONSOLE_INPUT_INFO_EDITION_MODE 0x10 |
Eric Pouech | 0b83d4c | 2001-11-23 23:04:58 +0000 | [diff] [blame] | 854 | |
| 855 | |
| 856 | /* Get info about a console (input only) */ |
| 857 | @REQ(get_console_input_info) |
Alexandre Julliard | 5188574 | 2002-05-30 20:12:58 +0000 | [diff] [blame] | 858 | obj_handle_t handle; /* handle to console input, or 0 for process' console */ |
Eric Pouech | 0b83d4c | 2001-11-23 23:04:58 +0000 | [diff] [blame] | 859 | @REPLY |
| 860 | int history_mode; /* whether we duplicate lines in history */ |
| 861 | int history_size; /* number of lines in history */ |
| 862 | int history_index; /* number of used lines in history */ |
Eric Pouech | fa8b85a | 2003-01-09 06:01:32 +0000 | [diff] [blame] | 863 | int edition_mode; /* index to the edition mode flavors */ |
Eric Pouech | 0b83d4c | 2001-11-23 23:04:58 +0000 | [diff] [blame] | 864 | VARARG(title,unicode_str); /* console title */ |
| 865 | @END |
| 866 | |
| 867 | |
| 868 | /* appends a string to console's history */ |
| 869 | @REQ(append_console_input_history) |
Alexandre Julliard | 5188574 | 2002-05-30 20:12:58 +0000 | [diff] [blame] | 870 | obj_handle_t handle; /* handle to console input, or 0 for process' console */ |
Eric Pouech | 0b83d4c | 2001-11-23 23:04:58 +0000 | [diff] [blame] | 871 | VARARG(line,unicode_str); /* line to add */ |
| 872 | @END |
| 873 | |
| 874 | |
| 875 | /* appends a string to console's history */ |
| 876 | @REQ(get_console_input_history) |
Alexandre Julliard | 5188574 | 2002-05-30 20:12:58 +0000 | [diff] [blame] | 877 | obj_handle_t handle; /* handle to console input, or 0 for process' console */ |
Eric Pouech | 0b83d4c | 2001-11-23 23:04:58 +0000 | [diff] [blame] | 878 | int index; /* index to get line from */ |
| 879 | @REPLY |
Alexandre Julliard | 9caa71e | 2001-11-30 18:46:42 +0000 | [diff] [blame] | 880 | int total; /* total length of line in Unicode chars */ |
Eric Pouech | 0b83d4c | 2001-11-23 23:04:58 +0000 | [diff] [blame] | 881 | VARARG(line,unicode_str); /* line to add */ |
| 882 | @END |
| 883 | |
| 884 | |
| 885 | /* creates a new screen buffer on process' console */ |
| 886 | @REQ(create_console_output) |
Alexandre Julliard | 5188574 | 2002-05-30 20:12:58 +0000 | [diff] [blame] | 887 | obj_handle_t handle_in; /* handle to console input, or 0 for process' console */ |
Eric Pouech | 0b83d4c | 2001-11-23 23:04:58 +0000 | [diff] [blame] | 888 | int access; /* wanted access rights */ |
| 889 | int share; /* sharing credentials */ |
| 890 | int inherit; /* inherit flag */ |
| 891 | @REPLY |
Alexandre Julliard | 5188574 | 2002-05-30 20:12:58 +0000 | [diff] [blame] | 892 | obj_handle_t handle_out; /* handle to the screen buffer */ |
Eric Pouech | 0b83d4c | 2001-11-23 23:04:58 +0000 | [diff] [blame] | 893 | @END |
| 894 | |
| 895 | |
Alexandre Julliard | 37ec927 | 2001-07-19 00:35:37 +0000 | [diff] [blame] | 896 | /* Set info about a console (output only) */ |
Eric Pouech | 0b83d4c | 2001-11-23 23:04:58 +0000 | [diff] [blame] | 897 | @REQ(set_console_output_info) |
Alexandre Julliard | 5188574 | 2002-05-30 20:12:58 +0000 | [diff] [blame] | 898 | obj_handle_t handle; /* handle to the console */ |
Alexandre Julliard | 37ec927 | 2001-07-19 00:35:37 +0000 | [diff] [blame] | 899 | int mask; /* setting mask (see below) */ |
Eric Pouech | 0b83d4c | 2001-11-23 23:04:58 +0000 | [diff] [blame] | 900 | short int cursor_size; /* size of cursor (percentage filled) */ |
| 901 | short int cursor_visible;/* cursor visibility flag */ |
| 902 | short int cursor_x; /* position of cursor (x, y) */ |
| 903 | short int cursor_y; |
| 904 | short int width; /* width of the screen buffer */ |
| 905 | short int height; /* height of the screen buffer */ |
| 906 | short int attr; /* default attribute */ |
| 907 | short int win_left; /* window actually displayed by renderer */ |
| 908 | short int win_top; /* the rect area is expressed withing the */ |
| 909 | short int win_right; /* boundaries of the screen buffer */ |
| 910 | short int win_bottom; |
| 911 | short int max_width; /* maximum size (width x height) for the window */ |
| 912 | short int max_height; |
Alexandre Julliard | 37ec927 | 2001-07-19 00:35:37 +0000 | [diff] [blame] | 913 | @END |
Eric Pouech | 0b83d4c | 2001-11-23 23:04:58 +0000 | [diff] [blame] | 914 | #define SET_CONSOLE_OUTPUT_INFO_CURSOR_GEOM 0x01 |
| 915 | #define SET_CONSOLE_OUTPUT_INFO_CURSOR_POS 0x02 |
| 916 | #define SET_CONSOLE_OUTPUT_INFO_SIZE 0x04 |
| 917 | #define SET_CONSOLE_OUTPUT_INFO_ATTR 0x08 |
| 918 | #define SET_CONSOLE_OUTPUT_INFO_DISPLAY_WINDOW 0x10 |
| 919 | #define SET_CONSOLE_OUTPUT_INFO_MAX_SIZE 0x20 |
| 920 | |
Alexandre Julliard | 37ec927 | 2001-07-19 00:35:37 +0000 | [diff] [blame] | 921 | |
| 922 | /* Get info about a console (output only) */ |
Eric Pouech | 0b83d4c | 2001-11-23 23:04:58 +0000 | [diff] [blame] | 923 | @REQ(get_console_output_info) |
Alexandre Julliard | 5188574 | 2002-05-30 20:12:58 +0000 | [diff] [blame] | 924 | obj_handle_t handle; /* handle to the console */ |
Alexandre Julliard | 37ec927 | 2001-07-19 00:35:37 +0000 | [diff] [blame] | 925 | @REPLY |
Eric Pouech | 0b83d4c | 2001-11-23 23:04:58 +0000 | [diff] [blame] | 926 | short int cursor_size; /* size of cursor (percentage filled) */ |
| 927 | short int cursor_visible;/* cursor visibility flag */ |
| 928 | short int cursor_x; /* position of cursor (x, y) */ |
| 929 | short int cursor_y; |
| 930 | short int width; /* width of the screen buffer */ |
| 931 | short int height; /* height of the screen buffer */ |
| 932 | short int attr; /* default attribute */ |
| 933 | short int win_left; /* window actually displayed by renderer */ |
| 934 | short int win_top; /* the rect area is expressed withing the */ |
| 935 | short int win_right; /* boundaries of the screen buffer */ |
| 936 | short int win_bottom; |
| 937 | short int max_width; /* maximum size (width x height) for the window */ |
| 938 | short int max_height; |
Alexandre Julliard | 37ec927 | 2001-07-19 00:35:37 +0000 | [diff] [blame] | 939 | @END |
| 940 | |
Alexandre Julliard | 37ec927 | 2001-07-19 00:35:37 +0000 | [diff] [blame] | 941 | /* Add input records to a console input queue */ |
| 942 | @REQ(write_console_input) |
Alexandre Julliard | 5188574 | 2002-05-30 20:12:58 +0000 | [diff] [blame] | 943 | obj_handle_t handle; /* handle to the console input */ |
Alexandre Julliard | 37ec927 | 2001-07-19 00:35:37 +0000 | [diff] [blame] | 944 | VARARG(rec,input_records); /* input records */ |
| 945 | @REPLY |
| 946 | int written; /* number of records written */ |
| 947 | @END |
| 948 | |
Eric Pouech | 0b83d4c | 2001-11-23 23:04:58 +0000 | [diff] [blame] | 949 | |
Alexandre Julliard | 37ec927 | 2001-07-19 00:35:37 +0000 | [diff] [blame] | 950 | /* Fetch input records from a console input queue */ |
| 951 | @REQ(read_console_input) |
Alexandre Julliard | 5188574 | 2002-05-30 20:12:58 +0000 | [diff] [blame] | 952 | obj_handle_t handle; /* handle to the console input */ |
Alexandre Julliard | 37ec927 | 2001-07-19 00:35:37 +0000 | [diff] [blame] | 953 | int flush; /* flush the retrieved records from the queue? */ |
| 954 | @REPLY |
| 955 | int read; /* number of records read */ |
| 956 | VARARG(rec,input_records); /* input records */ |
| 957 | @END |
| 958 | |
| 959 | |
Eric Pouech | 0b83d4c | 2001-11-23 23:04:58 +0000 | [diff] [blame] | 960 | /* write data (chars and/or attributes) in a screen buffer */ |
| 961 | @REQ(write_console_output) |
Alexandre Julliard | 5188574 | 2002-05-30 20:12:58 +0000 | [diff] [blame] | 962 | obj_handle_t handle; /* handle to the console output */ |
Alexandre Julliard | 9caa71e | 2001-11-30 18:46:42 +0000 | [diff] [blame] | 963 | int x; /* position where to start writing */ |
| 964 | int y; |
| 965 | int mode; /* char info (see below) */ |
| 966 | int wrap; /* wrap around at end of line? */ |
Eric Pouech | 0b83d4c | 2001-11-23 23:04:58 +0000 | [diff] [blame] | 967 | VARARG(data,bytes); /* info to write */ |
| 968 | @REPLY |
Alexandre Julliard | 9caa71e | 2001-11-30 18:46:42 +0000 | [diff] [blame] | 969 | int written; /* number of char infos actually written */ |
| 970 | int width; /* width of screen buffer */ |
| 971 | int height; /* height of screen buffer */ |
Eric Pouech | 0b83d4c | 2001-11-23 23:04:58 +0000 | [diff] [blame] | 972 | @END |
Alexandre Julliard | 9caa71e | 2001-11-30 18:46:42 +0000 | [diff] [blame] | 973 | enum char_info_mode |
| 974 | { |
| 975 | CHAR_INFO_MODE_TEXT, /* characters only */ |
| 976 | CHAR_INFO_MODE_ATTR, /* attributes only */ |
| 977 | CHAR_INFO_MODE_TEXTATTR, /* both characters and attributes */ |
| 978 | CHAR_INFO_MODE_TEXTSTDATTR /* characters but use standard attributes */ |
| 979 | }; |
Eric Pouech | 0b83d4c | 2001-11-23 23:04:58 +0000 | [diff] [blame] | 980 | |
| 981 | |
Alexandre Julliard | 9caa71e | 2001-11-30 18:46:42 +0000 | [diff] [blame] | 982 | /* fill a screen buffer with constant data (chars and/or attributes) */ |
| 983 | @REQ(fill_console_output) |
Alexandre Julliard | 5188574 | 2002-05-30 20:12:58 +0000 | [diff] [blame] | 984 | obj_handle_t handle; /* handle to the console output */ |
Alexandre Julliard | 9caa71e | 2001-11-30 18:46:42 +0000 | [diff] [blame] | 985 | int x; /* position where to start writing */ |
| 986 | int y; |
| 987 | int mode; /* char info mode */ |
| 988 | int count; /* number to write */ |
| 989 | int wrap; /* wrap around at end of line? */ |
| 990 | char_info_t data; /* data to write */ |
Eric Pouech | 0b83d4c | 2001-11-23 23:04:58 +0000 | [diff] [blame] | 991 | @REPLY |
Alexandre Julliard | 9caa71e | 2001-11-30 18:46:42 +0000 | [diff] [blame] | 992 | int written; /* number of char infos actually written */ |
| 993 | @END |
| 994 | |
| 995 | |
| 996 | /* read data (chars and/or attributes) from a screen buffer */ |
| 997 | @REQ(read_console_output) |
Alexandre Julliard | 5188574 | 2002-05-30 20:12:58 +0000 | [diff] [blame] | 998 | obj_handle_t handle; /* handle to the console output */ |
Alexandre Julliard | 9caa71e | 2001-11-30 18:46:42 +0000 | [diff] [blame] | 999 | int x; /* position (x,y) where to start reading */ |
| 1000 | int y; |
| 1001 | int mode; /* char info mode */ |
| 1002 | int wrap; /* wrap around at end of line? */ |
| 1003 | @REPLY |
| 1004 | int width; /* width of screen buffer */ |
| 1005 | int height; /* height of screen buffer */ |
Eric Pouech | 0b83d4c | 2001-11-23 23:04:58 +0000 | [diff] [blame] | 1006 | VARARG(data,bytes); |
| 1007 | @END |
| 1008 | |
Eric Pouech | 93bfa0d | 2002-06-02 21:22:22 +0000 | [diff] [blame] | 1009 | |
Eric Pouech | 0b83d4c | 2001-11-23 23:04:58 +0000 | [diff] [blame] | 1010 | /* move a rect (of data) in screen buffer content */ |
| 1011 | @REQ(move_console_output) |
Alexandre Julliard | 5188574 | 2002-05-30 20:12:58 +0000 | [diff] [blame] | 1012 | obj_handle_t handle; /* handle to the console output */ |
Eric Pouech | 0b83d4c | 2001-11-23 23:04:58 +0000 | [diff] [blame] | 1013 | short int x_src; /* position (x, y) of rect to start moving from */ |
| 1014 | short int y_src; |
| 1015 | short int x_dst; /* position (x, y) of rect to move to */ |
| 1016 | short int y_dst; |
| 1017 | short int w; /* size of the rect (width, height) to move */ |
| 1018 | short int h; |
| 1019 | @END |
| 1020 | |
| 1021 | |
Eric Pouech | 93bfa0d | 2002-06-02 21:22:22 +0000 | [diff] [blame] | 1022 | /* Sends a signal to a process group */ |
| 1023 | @REQ(send_console_signal) |
| 1024 | int signal; /* the signal to send */ |
Alexandre Julliard | 54f2287 | 2002-10-03 19:54:57 +0000 | [diff] [blame] | 1025 | process_id_t group_id; /* the group to send the signal to */ |
Eric Pouech | 93bfa0d | 2002-06-02 21:22:22 +0000 | [diff] [blame] | 1026 | @END |
| 1027 | |
| 1028 | |
Alexandre Julliard | 37ec927 | 2001-07-19 00:35:37 +0000 | [diff] [blame] | 1029 | /* Create a change notification */ |
| 1030 | @REQ(create_change_notification) |
Alexandre Julliard | 3e588e3 | 2003-03-26 23:41:43 +0000 | [diff] [blame] | 1031 | obj_handle_t handle; /* handle to the directory */ |
Alexandre Julliard | 37ec927 | 2001-07-19 00:35:37 +0000 | [diff] [blame] | 1032 | int subtree; /* watch all the subtree */ |
Alexandre Julliard | 3e588e3 | 2003-03-26 23:41:43 +0000 | [diff] [blame] | 1033 | unsigned int filter; /* notification filter */ |
Alexandre Julliard | 37ec927 | 2001-07-19 00:35:37 +0000 | [diff] [blame] | 1034 | @REPLY |
Alexandre Julliard | 5188574 | 2002-05-30 20:12:58 +0000 | [diff] [blame] | 1035 | obj_handle_t handle; /* handle to the change notification */ |
Alexandre Julliard | 37ec927 | 2001-07-19 00:35:37 +0000 | [diff] [blame] | 1036 | @END |
| 1037 | |
| 1038 | |
Alexandre Julliard | 3e588e3 | 2003-03-26 23:41:43 +0000 | [diff] [blame] | 1039 | /* Move to the next change notification */ |
| 1040 | @REQ(next_change_notification) |
| 1041 | obj_handle_t handle; /* handle to the change notification */ |
| 1042 | @END |
| 1043 | |
Alexandre Julliard | 37ec927 | 2001-07-19 00:35:37 +0000 | [diff] [blame] | 1044 | /* Create a file mapping */ |
| 1045 | @REQ(create_mapping) |
Vitaliy Margolen | a996000 | 2005-10-27 18:30:37 +0000 | [diff] [blame] | 1046 | unsigned int access; /* wanted access rights */ |
| 1047 | unsigned int attributes; /* object attributes */ |
Vitaliy Margolen | 348a3d9 | 2005-12-02 16:13:13 +0100 | [diff] [blame^] | 1048 | obj_handle_t rootdir; /* root directory */ |
Alexandre Julliard | 37ec927 | 2001-07-19 00:35:37 +0000 | [diff] [blame] | 1049 | int size_high; /* mapping size */ |
| 1050 | int size_low; /* mapping size */ |
| 1051 | int protect; /* protection flags (see below) */ |
Alexandre Julliard | 5188574 | 2002-05-30 20:12:58 +0000 | [diff] [blame] | 1052 | obj_handle_t file_handle; /* file handle */ |
Alexandre Julliard | 37ec927 | 2001-07-19 00:35:37 +0000 | [diff] [blame] | 1053 | VARARG(name,unicode_str); /* object name */ |
| 1054 | @REPLY |
Alexandre Julliard | 5188574 | 2002-05-30 20:12:58 +0000 | [diff] [blame] | 1055 | obj_handle_t handle; /* handle to the mapping */ |
Alexandre Julliard | 37ec927 | 2001-07-19 00:35:37 +0000 | [diff] [blame] | 1056 | @END |
| 1057 | /* protection flags */ |
| 1058 | #define VPROT_READ 0x01 |
| 1059 | #define VPROT_WRITE 0x02 |
| 1060 | #define VPROT_EXEC 0x04 |
| 1061 | #define VPROT_WRITECOPY 0x08 |
| 1062 | #define VPROT_GUARD 0x10 |
| 1063 | #define VPROT_NOCACHE 0x20 |
| 1064 | #define VPROT_COMMITTED 0x40 |
| 1065 | #define VPROT_IMAGE 0x80 |
| 1066 | |
| 1067 | |
| 1068 | /* Open a mapping */ |
| 1069 | @REQ(open_mapping) |
| 1070 | unsigned int access; /* wanted access rights */ |
Vitaliy Margolen | a996000 | 2005-10-27 18:30:37 +0000 | [diff] [blame] | 1071 | unsigned int attributes; /* object attributes */ |
Vitaliy Margolen | 348a3d9 | 2005-12-02 16:13:13 +0100 | [diff] [blame^] | 1072 | obj_handle_t rootdir; /* root directory */ |
Alexandre Julliard | 37ec927 | 2001-07-19 00:35:37 +0000 | [diff] [blame] | 1073 | VARARG(name,unicode_str); /* object name */ |
| 1074 | @REPLY |
Alexandre Julliard | 5188574 | 2002-05-30 20:12:58 +0000 | [diff] [blame] | 1075 | obj_handle_t handle; /* handle to the mapping */ |
Alexandre Julliard | 37ec927 | 2001-07-19 00:35:37 +0000 | [diff] [blame] | 1076 | @END |
| 1077 | |
| 1078 | |
| 1079 | /* Get information about a file mapping */ |
| 1080 | @REQ(get_mapping_info) |
Alexandre Julliard | 5188574 | 2002-05-30 20:12:58 +0000 | [diff] [blame] | 1081 | obj_handle_t handle; /* handle to the mapping */ |
Alexandre Julliard | 37ec927 | 2001-07-19 00:35:37 +0000 | [diff] [blame] | 1082 | @REPLY |
| 1083 | int size_high; /* mapping size */ |
| 1084 | int size_low; /* mapping size */ |
| 1085 | int protect; /* protection flags */ |
| 1086 | int header_size; /* header size (for VPROT_IMAGE mapping) */ |
| 1087 | void* base; /* default base addr (for VPROT_IMAGE mapping) */ |
Alexandre Julliard | 5188574 | 2002-05-30 20:12:58 +0000 | [diff] [blame] | 1088 | obj_handle_t shared_file; /* shared mapping file handle */ |
Alexandre Julliard | 37ec927 | 2001-07-19 00:35:37 +0000 | [diff] [blame] | 1089 | int shared_size; /* shared mapping size */ |
| 1090 | @END |
| 1091 | |
| 1092 | |
Eric Pouech | 2359b57 | 2003-01-09 00:01:28 +0000 | [diff] [blame] | 1093 | #define SNAP_HEAPLIST 0x00000001 |
| 1094 | #define SNAP_PROCESS 0x00000002 |
| 1095 | #define SNAP_THREAD 0x00000004 |
| 1096 | #define SNAP_MODULE 0x00000008 |
Alexandre Julliard | 37ec927 | 2001-07-19 00:35:37 +0000 | [diff] [blame] | 1097 | /* Create a snapshot */ |
| 1098 | @REQ(create_snapshot) |
| 1099 | int inherit; /* inherit flag */ |
Eric Pouech | 2359b57 | 2003-01-09 00:01:28 +0000 | [diff] [blame] | 1100 | int flags; /* snapshot flags (SNAP_*) */ |
Alexandre Julliard | 54f2287 | 2002-10-03 19:54:57 +0000 | [diff] [blame] | 1101 | process_id_t pid; /* process id */ |
Alexandre Julliard | 37ec927 | 2001-07-19 00:35:37 +0000 | [diff] [blame] | 1102 | @REPLY |
Alexandre Julliard | 5188574 | 2002-05-30 20:12:58 +0000 | [diff] [blame] | 1103 | obj_handle_t handle; /* handle to the snapshot */ |
Alexandre Julliard | 37ec927 | 2001-07-19 00:35:37 +0000 | [diff] [blame] | 1104 | @END |
| 1105 | |
| 1106 | |
| 1107 | /* Get the next process from a snapshot */ |
| 1108 | @REQ(next_process) |
Alexandre Julliard | 5188574 | 2002-05-30 20:12:58 +0000 | [diff] [blame] | 1109 | obj_handle_t handle; /* handle to the snapshot */ |
Alexandre Julliard | 37ec927 | 2001-07-19 00:35:37 +0000 | [diff] [blame] | 1110 | int reset; /* reset snapshot position? */ |
| 1111 | @REPLY |
| 1112 | int count; /* process usage count */ |
Alexandre Julliard | 54f2287 | 2002-10-03 19:54:57 +0000 | [diff] [blame] | 1113 | process_id_t pid; /* process id */ |
| 1114 | process_id_t ppid; /* parent process id */ |
Alexandre Julliard | aeb5660 | 2002-03-22 00:21:23 +0000 | [diff] [blame] | 1115 | void* heap; /* heap base */ |
| 1116 | void* module; /* main module */ |
Alexandre Julliard | 37ec927 | 2001-07-19 00:35:37 +0000 | [diff] [blame] | 1117 | int threads; /* number of threads */ |
| 1118 | int priority; /* process priority */ |
Eric Pouech | 9fd54b2 | 2003-09-16 01:07:21 +0000 | [diff] [blame] | 1119 | int handles; /* number of handles */ |
Alexandre Julliard | c30cefb | 2003-09-30 01:04:19 +0000 | [diff] [blame] | 1120 | VARARG(filename,unicode_str); /* file name of main exe */ |
Alexandre Julliard | 37ec927 | 2001-07-19 00:35:37 +0000 | [diff] [blame] | 1121 | @END |
| 1122 | |
| 1123 | |
| 1124 | /* Get the next thread from a snapshot */ |
| 1125 | @REQ(next_thread) |
Alexandre Julliard | 5188574 | 2002-05-30 20:12:58 +0000 | [diff] [blame] | 1126 | obj_handle_t handle; /* handle to the snapshot */ |
Alexandre Julliard | 37ec927 | 2001-07-19 00:35:37 +0000 | [diff] [blame] | 1127 | int reset; /* reset snapshot position? */ |
| 1128 | @REPLY |
| 1129 | int count; /* thread usage count */ |
Alexandre Julliard | 54f2287 | 2002-10-03 19:54:57 +0000 | [diff] [blame] | 1130 | process_id_t pid; /* process id */ |
| 1131 | thread_id_t tid; /* thread id */ |
Alexandre Julliard | 37ec927 | 2001-07-19 00:35:37 +0000 | [diff] [blame] | 1132 | int base_pri; /* base priority */ |
| 1133 | int delta_pri; /* delta priority */ |
| 1134 | @END |
| 1135 | |
| 1136 | |
| 1137 | /* Get the next module from a snapshot */ |
| 1138 | @REQ(next_module) |
Alexandre Julliard | 5188574 | 2002-05-30 20:12:58 +0000 | [diff] [blame] | 1139 | obj_handle_t handle; /* handle to the snapshot */ |
Alexandre Julliard | 37ec927 | 2001-07-19 00:35:37 +0000 | [diff] [blame] | 1140 | int reset; /* reset snapshot position? */ |
| 1141 | @REPLY |
Alexandre Julliard | 54f2287 | 2002-10-03 19:54:57 +0000 | [diff] [blame] | 1142 | process_id_t pid; /* process id */ |
Alexandre Julliard | 37ec927 | 2001-07-19 00:35:37 +0000 | [diff] [blame] | 1143 | void* base; /* module base address */ |
Alexandre Julliard | aeb5660 | 2002-03-22 00:21:23 +0000 | [diff] [blame] | 1144 | size_t size; /* module size */ |
Alexandre Julliard | c30cefb | 2003-09-30 01:04:19 +0000 | [diff] [blame] | 1145 | VARARG(filename,unicode_str); /* file name of module */ |
Alexandre Julliard | 37ec927 | 2001-07-19 00:35:37 +0000 | [diff] [blame] | 1146 | @END |
| 1147 | |
| 1148 | |
| 1149 | /* Wait for a debug event */ |
| 1150 | @REQ(wait_debug_event) |
| 1151 | int get_handle; /* should we alloc a handle for waiting? */ |
| 1152 | @REPLY |
Alexandre Julliard | 54f2287 | 2002-10-03 19:54:57 +0000 | [diff] [blame] | 1153 | process_id_t pid; /* process id */ |
| 1154 | thread_id_t tid; /* thread id */ |
Alexandre Julliard | 5188574 | 2002-05-30 20:12:58 +0000 | [diff] [blame] | 1155 | obj_handle_t wait; /* wait handle if no event ready */ |
Alexandre Julliard | 37ec927 | 2001-07-19 00:35:37 +0000 | [diff] [blame] | 1156 | VARARG(event,debug_event); /* debug event data */ |
| 1157 | @END |
| 1158 | |
| 1159 | |
| 1160 | /* Queue an exception event */ |
| 1161 | @REQ(queue_exception_event) |
| 1162 | int first; /* first chance exception? */ |
| 1163 | VARARG(record,exc_event); /* thread context followed by exception record */ |
| 1164 | @REPLY |
Alexandre Julliard | 5188574 | 2002-05-30 20:12:58 +0000 | [diff] [blame] | 1165 | obj_handle_t handle; /* handle to the queued event */ |
Alexandre Julliard | 37ec927 | 2001-07-19 00:35:37 +0000 | [diff] [blame] | 1166 | @END |
| 1167 | |
| 1168 | |
| 1169 | /* Retrieve the status of an exception event */ |
| 1170 | @REQ(get_exception_status) |
Alexandre Julliard | 5188574 | 2002-05-30 20:12:58 +0000 | [diff] [blame] | 1171 | obj_handle_t handle; /* handle to the queued event */ |
Alexandre Julliard | 9caa71e | 2001-11-30 18:46:42 +0000 | [diff] [blame] | 1172 | @REPLY |
Alexandre Julliard | 37ec927 | 2001-07-19 00:35:37 +0000 | [diff] [blame] | 1173 | VARARG(context,context); /* modified thread context */ |
| 1174 | @END |
| 1175 | |
| 1176 | |
| 1177 | /* Send an output string to the debugger */ |
| 1178 | @REQ(output_debug_string) |
| 1179 | void* string; /* string to display (in debugged process address space) */ |
| 1180 | int unicode; /* is it Unicode? */ |
| 1181 | int length; /* string length */ |
| 1182 | @END |
| 1183 | |
| 1184 | |
| 1185 | /* Continue a debug event */ |
| 1186 | @REQ(continue_debug_event) |
Alexandre Julliard | 54f2287 | 2002-10-03 19:54:57 +0000 | [diff] [blame] | 1187 | process_id_t pid; /* process id to continue */ |
| 1188 | thread_id_t tid; /* thread id to continue */ |
Alexandre Julliard | 37ec927 | 2001-07-19 00:35:37 +0000 | [diff] [blame] | 1189 | int status; /* continuation status */ |
| 1190 | @END |
| 1191 | |
| 1192 | |
Eric Pouech | fbccb38 | 2002-02-27 01:28:30 +0000 | [diff] [blame] | 1193 | /* Start/stop debugging an existing process */ |
Alexandre Julliard | 37ec927 | 2001-07-19 00:35:37 +0000 | [diff] [blame] | 1194 | @REQ(debug_process) |
Alexandre Julliard | 54f2287 | 2002-10-03 19:54:57 +0000 | [diff] [blame] | 1195 | process_id_t pid; /* id of the process to debug */ |
Eric Pouech | fbccb38 | 2002-02-27 01:28:30 +0000 | [diff] [blame] | 1196 | int attach; /* 1=attaching / 0=detaching from the process */ |
| 1197 | @END |
| 1198 | |
| 1199 | |
Alexandre Julliard | 3c4538c | 2002-02-27 01:55:02 +0000 | [diff] [blame] | 1200 | /* Simulate a breakpoint in a process */ |
| 1201 | @REQ(debug_break) |
Alexandre Julliard | 5188574 | 2002-05-30 20:12:58 +0000 | [diff] [blame] | 1202 | obj_handle_t handle; /* process handle */ |
Alexandre Julliard | 3c4538c | 2002-02-27 01:55:02 +0000 | [diff] [blame] | 1203 | @REPLY |
| 1204 | int self; /* was it the caller itself? */ |
| 1205 | @END |
| 1206 | |
| 1207 | |
Eric Pouech | fbccb38 | 2002-02-27 01:28:30 +0000 | [diff] [blame] | 1208 | /* Set debugger kill on exit flag */ |
| 1209 | @REQ(set_debugger_kill_on_exit) |
| 1210 | int kill_on_exit; /* 0=detach/1=kill debuggee when debugger dies */ |
Alexandre Julliard | 37ec927 | 2001-07-19 00:35:37 +0000 | [diff] [blame] | 1211 | @END |
| 1212 | |
| 1213 | |
| 1214 | /* Read data from a process address space */ |
| 1215 | @REQ(read_process_memory) |
Alexandre Julliard | 5188574 | 2002-05-30 20:12:58 +0000 | [diff] [blame] | 1216 | obj_handle_t handle; /* process handle */ |
Alexandre Julliard | 9caa71e | 2001-11-30 18:46:42 +0000 | [diff] [blame] | 1217 | void* addr; /* addr to read from */ |
Alexandre Julliard | 37ec927 | 2001-07-19 00:35:37 +0000 | [diff] [blame] | 1218 | @REPLY |
| 1219 | VARARG(data,bytes); /* result data */ |
| 1220 | @END |
| 1221 | |
| 1222 | |
| 1223 | /* Write data to a process address space */ |
| 1224 | @REQ(write_process_memory) |
Alexandre Julliard | 5188574 | 2002-05-30 20:12:58 +0000 | [diff] [blame] | 1225 | obj_handle_t handle; /* process handle */ |
Alexandre Julliard | 37ec927 | 2001-07-19 00:35:37 +0000 | [diff] [blame] | 1226 | void* addr; /* addr to write to (must be int-aligned) */ |
Alexandre Julliard | 37ec927 | 2001-07-19 00:35:37 +0000 | [diff] [blame] | 1227 | unsigned int first_mask; /* mask for first word */ |
| 1228 | unsigned int last_mask; /* mask for last word */ |
Alexandre Julliard | 9caa71e | 2001-11-30 18:46:42 +0000 | [diff] [blame] | 1229 | VARARG(data,bytes); /* data to write */ |
Alexandre Julliard | 37ec927 | 2001-07-19 00:35:37 +0000 | [diff] [blame] | 1230 | @END |
| 1231 | |
| 1232 | |
| 1233 | /* Create a registry key */ |
| 1234 | @REQ(create_key) |
Alexandre Julliard | 5188574 | 2002-05-30 20:12:58 +0000 | [diff] [blame] | 1235 | obj_handle_t parent; /* handle to the parent key */ |
Alexandre Julliard | 37ec927 | 2001-07-19 00:35:37 +0000 | [diff] [blame] | 1236 | unsigned int access; /* desired access rights */ |
| 1237 | unsigned int options; /* creation options */ |
| 1238 | time_t modif; /* last modification time */ |
Alexandre Julliard | 9caa71e | 2001-11-30 18:46:42 +0000 | [diff] [blame] | 1239 | size_t namelen; /* length of key name in bytes */ |
| 1240 | VARARG(name,unicode_str,namelen); /* key name */ |
| 1241 | VARARG(class,unicode_str); /* class name */ |
Alexandre Julliard | 37ec927 | 2001-07-19 00:35:37 +0000 | [diff] [blame] | 1242 | @REPLY |
Alexandre Julliard | 5188574 | 2002-05-30 20:12:58 +0000 | [diff] [blame] | 1243 | obj_handle_t hkey; /* handle to the created key */ |
Alexandre Julliard | 37ec927 | 2001-07-19 00:35:37 +0000 | [diff] [blame] | 1244 | int created; /* has it been newly created? */ |
| 1245 | @END |
| 1246 | |
| 1247 | /* Open a registry key */ |
| 1248 | @REQ(open_key) |
Alexandre Julliard | 5188574 | 2002-05-30 20:12:58 +0000 | [diff] [blame] | 1249 | obj_handle_t parent; /* handle to the parent key */ |
Alexandre Julliard | 37ec927 | 2001-07-19 00:35:37 +0000 | [diff] [blame] | 1250 | unsigned int access; /* desired access rights */ |
| 1251 | VARARG(name,unicode_str); /* key name */ |
| 1252 | @REPLY |
Alexandre Julliard | 5188574 | 2002-05-30 20:12:58 +0000 | [diff] [blame] | 1253 | obj_handle_t hkey; /* handle to the open key */ |
Alexandre Julliard | 37ec927 | 2001-07-19 00:35:37 +0000 | [diff] [blame] | 1254 | @END |
| 1255 | |
| 1256 | |
| 1257 | /* Delete a registry key */ |
| 1258 | @REQ(delete_key) |
Alexandre Julliard | 5188574 | 2002-05-30 20:12:58 +0000 | [diff] [blame] | 1259 | obj_handle_t hkey; /* handle to the key */ |
Alexandre Julliard | 37ec927 | 2001-07-19 00:35:37 +0000 | [diff] [blame] | 1260 | @END |
| 1261 | |
| 1262 | |
Mike Hearn | 43cb03b | 2004-01-03 00:38:30 +0000 | [diff] [blame] | 1263 | /* Flush a registry key */ |
| 1264 | @REQ(flush_key) |
| 1265 | obj_handle_t hkey; /* handle to the key */ |
| 1266 | @END |
| 1267 | |
| 1268 | |
Alexandre Julliard | 37ec927 | 2001-07-19 00:35:37 +0000 | [diff] [blame] | 1269 | /* Enumerate registry subkeys */ |
| 1270 | @REQ(enum_key) |
Alexandre Julliard | 5188574 | 2002-05-30 20:12:58 +0000 | [diff] [blame] | 1271 | obj_handle_t hkey; /* handle to registry key */ |
Alexandre Julliard | 37ec927 | 2001-07-19 00:35:37 +0000 | [diff] [blame] | 1272 | int index; /* index of subkey (or -1 for current key) */ |
Alexandre Julliard | 9caa71e | 2001-11-30 18:46:42 +0000 | [diff] [blame] | 1273 | int info_class; /* requested information class */ |
Alexandre Julliard | 37ec927 | 2001-07-19 00:35:37 +0000 | [diff] [blame] | 1274 | @REPLY |
| 1275 | int subkeys; /* number of subkeys */ |
| 1276 | int max_subkey; /* longest subkey name */ |
| 1277 | int max_class; /* longest class name */ |
| 1278 | int values; /* number of values */ |
| 1279 | int max_value; /* longest value name */ |
| 1280 | int max_data; /* longest value data */ |
| 1281 | time_t modif; /* last modification time */ |
Alexandre Julliard | 9caa71e | 2001-11-30 18:46:42 +0000 | [diff] [blame] | 1282 | size_t total; /* total length needed for full name and class */ |
| 1283 | size_t namelen; /* length of key name in bytes */ |
| 1284 | VARARG(name,unicode_str,namelen); /* key name */ |
| 1285 | VARARG(class,unicode_str); /* class name */ |
Alexandre Julliard | 37ec927 | 2001-07-19 00:35:37 +0000 | [diff] [blame] | 1286 | @END |
| 1287 | |
| 1288 | |
| 1289 | /* Set a value of a registry key */ |
| 1290 | @REQ(set_key_value) |
Alexandre Julliard | 5188574 | 2002-05-30 20:12:58 +0000 | [diff] [blame] | 1291 | obj_handle_t hkey; /* handle to registry key */ |
Alexandre Julliard | 37ec927 | 2001-07-19 00:35:37 +0000 | [diff] [blame] | 1292 | int type; /* value type */ |
Alexandre Julliard | 9caa71e | 2001-11-30 18:46:42 +0000 | [diff] [blame] | 1293 | size_t namelen; /* length of value name in bytes */ |
| 1294 | VARARG(name,unicode_str,namelen); /* value name */ |
| 1295 | VARARG(data,bytes); /* value data */ |
Alexandre Julliard | 37ec927 | 2001-07-19 00:35:37 +0000 | [diff] [blame] | 1296 | @END |
| 1297 | |
| 1298 | |
| 1299 | /* Retrieve the value of a registry key */ |
| 1300 | @REQ(get_key_value) |
Alexandre Julliard | 5188574 | 2002-05-30 20:12:58 +0000 | [diff] [blame] | 1301 | obj_handle_t hkey; /* handle to registry key */ |
Alexandre Julliard | 9caa71e | 2001-11-30 18:46:42 +0000 | [diff] [blame] | 1302 | VARARG(name,unicode_str); /* value name */ |
Alexandre Julliard | 37ec927 | 2001-07-19 00:35:37 +0000 | [diff] [blame] | 1303 | @REPLY |
| 1304 | int type; /* value type */ |
Alexandre Julliard | 9caa71e | 2001-11-30 18:46:42 +0000 | [diff] [blame] | 1305 | size_t total; /* total length needed for data */ |
Alexandre Julliard | 37ec927 | 2001-07-19 00:35:37 +0000 | [diff] [blame] | 1306 | VARARG(data,bytes); /* value data */ |
| 1307 | @END |
| 1308 | |
| 1309 | |
| 1310 | /* Enumerate a value of a registry key */ |
| 1311 | @REQ(enum_key_value) |
Alexandre Julliard | 5188574 | 2002-05-30 20:12:58 +0000 | [diff] [blame] | 1312 | obj_handle_t hkey; /* handle to registry key */ |
Alexandre Julliard | 37ec927 | 2001-07-19 00:35:37 +0000 | [diff] [blame] | 1313 | int index; /* value index */ |
Alexandre Julliard | 9caa71e | 2001-11-30 18:46:42 +0000 | [diff] [blame] | 1314 | int info_class; /* requested information class */ |
Alexandre Julliard | 37ec927 | 2001-07-19 00:35:37 +0000 | [diff] [blame] | 1315 | @REPLY |
| 1316 | int type; /* value type */ |
Alexandre Julliard | 9caa71e | 2001-11-30 18:46:42 +0000 | [diff] [blame] | 1317 | size_t total; /* total length needed for full name and data */ |
| 1318 | size_t namelen; /* length of value name in bytes */ |
| 1319 | VARARG(name,unicode_str,namelen); /* value name */ |
| 1320 | VARARG(data,bytes); /* value data */ |
Alexandre Julliard | 37ec927 | 2001-07-19 00:35:37 +0000 | [diff] [blame] | 1321 | @END |
| 1322 | |
| 1323 | |
| 1324 | /* Delete a value of a registry key */ |
| 1325 | @REQ(delete_key_value) |
Alexandre Julliard | 5188574 | 2002-05-30 20:12:58 +0000 | [diff] [blame] | 1326 | obj_handle_t hkey; /* handle to registry key */ |
Alexandre Julliard | 37ec927 | 2001-07-19 00:35:37 +0000 | [diff] [blame] | 1327 | VARARG(name,unicode_str); /* value name */ |
| 1328 | @END |
| 1329 | |
| 1330 | |
| 1331 | /* Load a registry branch from a file */ |
| 1332 | @REQ(load_registry) |
Alexandre Julliard | 5188574 | 2002-05-30 20:12:58 +0000 | [diff] [blame] | 1333 | obj_handle_t hkey; /* root key to load to */ |
| 1334 | obj_handle_t file; /* file to load from */ |
Alexandre Julliard | 37ec927 | 2001-07-19 00:35:37 +0000 | [diff] [blame] | 1335 | VARARG(name,unicode_str); /* subkey name */ |
| 1336 | @END |
| 1337 | |
| 1338 | |
Mike McCormack | 5ac945c | 2003-08-19 03:08:17 +0000 | [diff] [blame] | 1339 | /* UnLoad a registry branch from a file */ |
| 1340 | @REQ(unload_registry) |
| 1341 | obj_handle_t hkey; /* root key to unload to */ |
| 1342 | @END |
| 1343 | |
| 1344 | |
Alexandre Julliard | 37ec927 | 2001-07-19 00:35:37 +0000 | [diff] [blame] | 1345 | /* Save a registry branch to a file */ |
| 1346 | @REQ(save_registry) |
Alexandre Julliard | 5188574 | 2002-05-30 20:12:58 +0000 | [diff] [blame] | 1347 | obj_handle_t hkey; /* key to save */ |
| 1348 | obj_handle_t file; /* file to save to */ |
Alexandre Julliard | 37ec927 | 2001-07-19 00:35:37 +0000 | [diff] [blame] | 1349 | @END |
| 1350 | |
| 1351 | |
Alexandre Julliard | c07ce05 | 2004-05-07 04:13:21 +0000 | [diff] [blame] | 1352 | /* Add a registry key change notification */ |
Mike McCormack | 11f4b44 | 2002-11-25 02:47:32 +0000 | [diff] [blame] | 1353 | @REQ(set_registry_notification) |
| 1354 | obj_handle_t hkey; /* key to watch for changes */ |
| 1355 | obj_handle_t event; /* event to set */ |
| 1356 | int subtree; /* should we watch the whole subtree? */ |
| 1357 | unsigned int filter; /* things to watch */ |
| 1358 | @END |
| 1359 | |
| 1360 | |
Alexandre Julliard | 37ec927 | 2001-07-19 00:35:37 +0000 | [diff] [blame] | 1361 | /* Create a waitable timer */ |
| 1362 | @REQ(create_timer) |
Eric Pouech | 44158dd | 2004-12-02 18:05:37 +0000 | [diff] [blame] | 1363 | unsigned int access; /* wanted access rights */ |
Vitaliy Margolen | a996000 | 2005-10-27 18:30:37 +0000 | [diff] [blame] | 1364 | unsigned int attributes; /* object attributes */ |
Vitaliy Margolen | 7c5cb7a | 2005-12-02 16:05:54 +0100 | [diff] [blame] | 1365 | obj_handle_t rootdir; /* root directory */ |
Alexandre Julliard | 37ec927 | 2001-07-19 00:35:37 +0000 | [diff] [blame] | 1366 | int manual; /* manual reset */ |
| 1367 | VARARG(name,unicode_str); /* object name */ |
| 1368 | @REPLY |
Alexandre Julliard | 5188574 | 2002-05-30 20:12:58 +0000 | [diff] [blame] | 1369 | obj_handle_t handle; /* handle to the timer */ |
Alexandre Julliard | 37ec927 | 2001-07-19 00:35:37 +0000 | [diff] [blame] | 1370 | @END |
| 1371 | |
| 1372 | |
| 1373 | /* Open a waitable timer */ |
| 1374 | @REQ(open_timer) |
| 1375 | unsigned int access; /* wanted access rights */ |
Vitaliy Margolen | a996000 | 2005-10-27 18:30:37 +0000 | [diff] [blame] | 1376 | unsigned int attributes; /* object attributes */ |
Vitaliy Margolen | 7c5cb7a | 2005-12-02 16:05:54 +0100 | [diff] [blame] | 1377 | obj_handle_t rootdir; /* root directory */ |
Alexandre Julliard | 37ec927 | 2001-07-19 00:35:37 +0000 | [diff] [blame] | 1378 | VARARG(name,unicode_str); /* object name */ |
| 1379 | @REPLY |
Alexandre Julliard | 5188574 | 2002-05-30 20:12:58 +0000 | [diff] [blame] | 1380 | obj_handle_t handle; /* handle to the timer */ |
Alexandre Julliard | 37ec927 | 2001-07-19 00:35:37 +0000 | [diff] [blame] | 1381 | @END |
| 1382 | |
| 1383 | /* Set a waitable timer */ |
| 1384 | @REQ(set_timer) |
Alexandre Julliard | 5188574 | 2002-05-30 20:12:58 +0000 | [diff] [blame] | 1385 | obj_handle_t handle; /* handle to the timer */ |
Alexandre Julliard | 462172a | 2003-04-02 22:48:59 +0000 | [diff] [blame] | 1386 | abs_time_t expire; /* next expiration absolute time */ |
Alexandre Julliard | 37ec927 | 2001-07-19 00:35:37 +0000 | [diff] [blame] | 1387 | int period; /* timer period in ms */ |
| 1388 | void* callback; /* callback function */ |
| 1389 | void* arg; /* callback argument */ |
Eric Pouech | 4c591d4 | 2003-05-20 04:00:42 +0000 | [diff] [blame] | 1390 | @REPLY |
| 1391 | int signaled; /* was the timer signaled before this call ? */ |
Alexandre Julliard | 37ec927 | 2001-07-19 00:35:37 +0000 | [diff] [blame] | 1392 | @END |
| 1393 | |
| 1394 | /* Cancel a waitable timer */ |
| 1395 | @REQ(cancel_timer) |
Alexandre Julliard | 5188574 | 2002-05-30 20:12:58 +0000 | [diff] [blame] | 1396 | obj_handle_t handle; /* handle to the timer */ |
Eric Pouech | 4c591d4 | 2003-05-20 04:00:42 +0000 | [diff] [blame] | 1397 | @REPLY |
| 1398 | int signaled; /* was the timer signaled before this calltime ? */ |
Alexandre Julliard | 37ec927 | 2001-07-19 00:35:37 +0000 | [diff] [blame] | 1399 | @END |
| 1400 | |
Robert Shearman | 7572b12 | 2004-12-13 21:10:58 +0000 | [diff] [blame] | 1401 | /* Get information on a waitable timer */ |
| 1402 | @REQ(get_timer_info) |
| 1403 | obj_handle_t handle; /* handle to the timer */ |
| 1404 | @REPLY |
| 1405 | abs_time_t when; /* absolute time when the timer next expires */ |
| 1406 | int signaled; /* is the timer signaled? */ |
| 1407 | @END |
| 1408 | |
Alexandre Julliard | 37ec927 | 2001-07-19 00:35:37 +0000 | [diff] [blame] | 1409 | |
| 1410 | /* Retrieve the current context of a thread */ |
| 1411 | @REQ(get_thread_context) |
Alexandre Julliard | 5188574 | 2002-05-30 20:12:58 +0000 | [diff] [blame] | 1412 | obj_handle_t handle; /* thread handle */ |
Alexandre Julliard | 37ec927 | 2001-07-19 00:35:37 +0000 | [diff] [blame] | 1413 | unsigned int flags; /* context flags */ |
Alexandre Julliard | 73c7239 | 2005-11-02 20:54:12 +0000 | [diff] [blame] | 1414 | int suspend; /* if getting context during suspend */ |
Alexandre Julliard | 37ec927 | 2001-07-19 00:35:37 +0000 | [diff] [blame] | 1415 | @REPLY |
| 1416 | VARARG(context,context); /* thread context */ |
| 1417 | @END |
| 1418 | |
| 1419 | |
| 1420 | /* Set the current context of a thread */ |
| 1421 | @REQ(set_thread_context) |
Alexandre Julliard | 5188574 | 2002-05-30 20:12:58 +0000 | [diff] [blame] | 1422 | obj_handle_t handle; /* thread handle */ |
Alexandre Julliard | 37ec927 | 2001-07-19 00:35:37 +0000 | [diff] [blame] | 1423 | unsigned int flags; /* context flags */ |
Alexandre Julliard | 73c7239 | 2005-11-02 20:54:12 +0000 | [diff] [blame] | 1424 | int suspend; /* if setting context during suspend */ |
Alexandre Julliard | 37ec927 | 2001-07-19 00:35:37 +0000 | [diff] [blame] | 1425 | VARARG(context,context); /* thread context */ |
| 1426 | @END |
| 1427 | |
| 1428 | |
| 1429 | /* Fetch a selector entry for a thread */ |
| 1430 | @REQ(get_selector_entry) |
Alexandre Julliard | 5188574 | 2002-05-30 20:12:58 +0000 | [diff] [blame] | 1431 | obj_handle_t handle; /* thread handle */ |
Alexandre Julliard | 37ec927 | 2001-07-19 00:35:37 +0000 | [diff] [blame] | 1432 | int entry; /* LDT entry */ |
| 1433 | @REPLY |
| 1434 | unsigned int base; /* selector base */ |
| 1435 | unsigned int limit; /* selector limit */ |
| 1436 | unsigned char flags; /* selector flags */ |
| 1437 | @END |
| 1438 | |
| 1439 | |
| 1440 | /* Add an atom */ |
| 1441 | @REQ(add_atom) |
Eric Pouech | e626736 | 2005-05-10 15:15:50 +0000 | [diff] [blame] | 1442 | obj_handle_t table; /* which table to add atom to */ |
Alexandre Julliard | 37ec927 | 2001-07-19 00:35:37 +0000 | [diff] [blame] | 1443 | VARARG(name,unicode_str); /* atom name */ |
| 1444 | @REPLY |
Alexandre Julliard | d8a8c11 | 2001-10-12 18:45:29 +0000 | [diff] [blame] | 1445 | atom_t atom; /* resulting atom */ |
Alexandre Julliard | 37ec927 | 2001-07-19 00:35:37 +0000 | [diff] [blame] | 1446 | @END |
| 1447 | |
| 1448 | |
| 1449 | /* Delete an atom */ |
| 1450 | @REQ(delete_atom) |
Eric Pouech | e626736 | 2005-05-10 15:15:50 +0000 | [diff] [blame] | 1451 | obj_handle_t table; /* which table to delete atom from */ |
Alexandre Julliard | d8a8c11 | 2001-10-12 18:45:29 +0000 | [diff] [blame] | 1452 | atom_t atom; /* atom handle */ |
Alexandre Julliard | 37ec927 | 2001-07-19 00:35:37 +0000 | [diff] [blame] | 1453 | @END |
| 1454 | |
| 1455 | |
| 1456 | /* Find an atom */ |
| 1457 | @REQ(find_atom) |
Eric Pouech | e626736 | 2005-05-10 15:15:50 +0000 | [diff] [blame] | 1458 | obj_handle_t table; /* which table to find atom from */ |
Alexandre Julliard | 37ec927 | 2001-07-19 00:35:37 +0000 | [diff] [blame] | 1459 | VARARG(name,unicode_str); /* atom name */ |
| 1460 | @REPLY |
Alexandre Julliard | d8a8c11 | 2001-10-12 18:45:29 +0000 | [diff] [blame] | 1461 | atom_t atom; /* atom handle */ |
Alexandre Julliard | 37ec927 | 2001-07-19 00:35:37 +0000 | [diff] [blame] | 1462 | @END |
| 1463 | |
| 1464 | |
Eric Pouech | e626736 | 2005-05-10 15:15:50 +0000 | [diff] [blame] | 1465 | /* Get information about an atom */ |
| 1466 | @REQ(get_atom_information) |
| 1467 | obj_handle_t table; /* which table to find atom from */ |
Alexandre Julliard | d8a8c11 | 2001-10-12 18:45:29 +0000 | [diff] [blame] | 1468 | atom_t atom; /* atom handle */ |
Alexandre Julliard | 37ec927 | 2001-07-19 00:35:37 +0000 | [diff] [blame] | 1469 | @REPLY |
| 1470 | int count; /* atom lock count */ |
Eric Pouech | e626736 | 2005-05-10 15:15:50 +0000 | [diff] [blame] | 1471 | int pinned; /* whether the atom has been pinned */ |
Alexandre Julliard | 37ec927 | 2001-07-19 00:35:37 +0000 | [diff] [blame] | 1472 | VARARG(name,unicode_str); /* atom name */ |
| 1473 | @END |
| 1474 | |
| 1475 | |
Eric Pouech | e626736 | 2005-05-10 15:15:50 +0000 | [diff] [blame] | 1476 | /* Set information about an atom */ |
| 1477 | @REQ(set_atom_information) |
| 1478 | obj_handle_t table; /* which table to find atom from */ |
| 1479 | atom_t atom; /* atom handle */ |
| 1480 | int pinned; /* whether to bump atom information */ |
| 1481 | @END |
| 1482 | |
| 1483 | |
| 1484 | /* Empty an atom table */ |
| 1485 | @REQ(empty_atom_table) |
| 1486 | obj_handle_t table; /* which table to find atom from */ |
| 1487 | int if_pinned; /* whether to delete pinned atoms */ |
| 1488 | @END |
| 1489 | |
| 1490 | |
| 1491 | /* Init an atom table */ |
Alexandre Julliard | 37ec927 | 2001-07-19 00:35:37 +0000 | [diff] [blame] | 1492 | @REQ(init_atom_table) |
Eric Pouech | e626736 | 2005-05-10 15:15:50 +0000 | [diff] [blame] | 1493 | int entries; /* number of entries (only for local) */ |
| 1494 | @REPLY |
| 1495 | obj_handle_t table; /* handle to the atom table */ |
Alexandre Julliard | 37ec927 | 2001-07-19 00:35:37 +0000 | [diff] [blame] | 1496 | @END |
| 1497 | |
| 1498 | |
| 1499 | /* Get the message queue of the current thread */ |
| 1500 | @REQ(get_msg_queue) |
| 1501 | @REPLY |
Alexandre Julliard | 5188574 | 2002-05-30 20:12:58 +0000 | [diff] [blame] | 1502 | obj_handle_t handle; /* handle to the queue */ |
Alexandre Julliard | 37ec927 | 2001-07-19 00:35:37 +0000 | [diff] [blame] | 1503 | @END |
| 1504 | |
| 1505 | |
Alexandre Julliard | 37ec927 | 2001-07-19 00:35:37 +0000 | [diff] [blame] | 1506 | /* Set the current message queue wakeup mask */ |
| 1507 | @REQ(set_queue_mask) |
| 1508 | unsigned int wake_mask; /* wakeup bits mask */ |
| 1509 | unsigned int changed_mask; /* changed bits mask */ |
| 1510 | int skip_wait; /* will we skip waiting if signaled? */ |
| 1511 | @REPLY |
| 1512 | unsigned int wake_bits; /* current wake bits */ |
| 1513 | unsigned int changed_bits; /* current changed bits */ |
| 1514 | @END |
| 1515 | |
| 1516 | |
| 1517 | /* Get the current message queue status */ |
| 1518 | @REQ(get_queue_status) |
| 1519 | int clear; /* should we clear the change bits? */ |
| 1520 | @REPLY |
| 1521 | unsigned int wake_bits; /* wake bits */ |
| 1522 | unsigned int changed_bits; /* changed bits since last time */ |
| 1523 | @END |
| 1524 | |
| 1525 | |
| 1526 | /* Wait for a process to start waiting on input */ |
| 1527 | @REQ(wait_input_idle) |
Alexandre Julliard | 5188574 | 2002-05-30 20:12:58 +0000 | [diff] [blame] | 1528 | obj_handle_t handle; /* process handle */ |
Alexandre Julliard | 37ec927 | 2001-07-19 00:35:37 +0000 | [diff] [blame] | 1529 | int timeout; /* timeout */ |
| 1530 | @REPLY |
Alexandre Julliard | 5188574 | 2002-05-30 20:12:58 +0000 | [diff] [blame] | 1531 | obj_handle_t event; /* handle to idle event */ |
Alexandre Julliard | 37ec927 | 2001-07-19 00:35:37 +0000 | [diff] [blame] | 1532 | @END |
| 1533 | |
| 1534 | |
| 1535 | /* Send a message to a thread queue */ |
| 1536 | @REQ(send_message) |
Alexandre Julliard | 54f2287 | 2002-10-03 19:54:57 +0000 | [diff] [blame] | 1537 | thread_id_t id; /* thread id */ |
Alexandre Julliard | d253c58 | 2001-08-07 19:19:08 +0000 | [diff] [blame] | 1538 | int type; /* message type (see below) */ |
Alexandre Julliard | 09029b2 | 2003-07-11 04:09:42 +0000 | [diff] [blame] | 1539 | int flags; /* message flags (see below) */ |
Alexandre Julliard | 1a66d22 | 2001-08-28 18:44:52 +0000 | [diff] [blame] | 1540 | user_handle_t win; /* window handle */ |
Alexandre Julliard | 37ec927 | 2001-07-19 00:35:37 +0000 | [diff] [blame] | 1541 | unsigned int msg; /* message code */ |
| 1542 | unsigned int wparam; /* parameters */ |
| 1543 | unsigned int lparam; /* parameters */ |
Alexandre Julliard | d253c58 | 2001-08-07 19:19:08 +0000 | [diff] [blame] | 1544 | int x; /* x position */ |
| 1545 | int y; /* y position */ |
Alexandre Julliard | 37ec927 | 2001-07-19 00:35:37 +0000 | [diff] [blame] | 1546 | unsigned int time; /* message time */ |
| 1547 | unsigned int info; /* extra info */ |
Alexandre Julliard | d253c58 | 2001-08-07 19:19:08 +0000 | [diff] [blame] | 1548 | int timeout; /* timeout for reply */ |
Alexandre Julliard | 039e131 | 2003-07-26 20:36:43 +0000 | [diff] [blame] | 1549 | void* callback; /* callback address */ |
Alexandre Julliard | d253c58 | 2001-08-07 19:19:08 +0000 | [diff] [blame] | 1550 | VARARG(data,bytes); /* message data for sent messages */ |
Alexandre Julliard | 37ec927 | 2001-07-19 00:35:37 +0000 | [diff] [blame] | 1551 | @END |
Alexandre Julliard | d253c58 | 2001-08-07 19:19:08 +0000 | [diff] [blame] | 1552 | |
| 1553 | enum message_type |
| 1554 | { |
| 1555 | MSG_ASCII, /* Ascii message (from SendMessageA) */ |
| 1556 | MSG_UNICODE, /* Unicode message (from SendMessageW) */ |
| 1557 | MSG_NOTIFY, /* notify message (from SendNotifyMessageW), always Unicode */ |
| 1558 | MSG_CALLBACK, /* callback message (from SendMessageCallbackW), always Unicode */ |
Alexandre Julliard | 039e131 | 2003-07-26 20:36:43 +0000 | [diff] [blame] | 1559 | MSG_CALLBACK_RESULT,/* result of a callback message */ |
Alexandre Julliard | d253c58 | 2001-08-07 19:19:08 +0000 | [diff] [blame] | 1560 | MSG_OTHER_PROCESS, /* sent from other process, may include vararg data, always Unicode */ |
| 1561 | MSG_POSTED, /* posted message (from PostMessageW), always Unicode */ |
Dmitry Timoshkov | 6dba0a7 | 2005-02-03 16:40:20 +0000 | [diff] [blame] | 1562 | MSG_HARDWARE, /* hardware message */ |
| 1563 | MSG_WINEVENT /* winevent message */ |
Alexandre Julliard | d253c58 | 2001-08-07 19:19:08 +0000 | [diff] [blame] | 1564 | }; |
Alexandre Julliard | 09029b2 | 2003-07-11 04:09:42 +0000 | [diff] [blame] | 1565 | #define SEND_MSG_ABORT_IF_HUNG 0x01 |
Alexandre Julliard | 37ec927 | 2001-07-19 00:35:37 +0000 | [diff] [blame] | 1566 | |
| 1567 | |
| 1568 | /* Get a message from the current queue */ |
| 1569 | @REQ(get_message) |
| 1570 | int flags; /* see below */ |
Alexandre Julliard | 1a66d22 | 2001-08-28 18:44:52 +0000 | [diff] [blame] | 1571 | user_handle_t get_win; /* window handle to get */ |
Alexandre Julliard | 37ec927 | 2001-07-19 00:35:37 +0000 | [diff] [blame] | 1572 | unsigned int get_first; /* first message code to get */ |
| 1573 | unsigned int get_last; /* last message code to get */ |
Alexandre Julliard | 3e2f2a5 | 2005-04-20 13:03:59 +0000 | [diff] [blame] | 1574 | unsigned int hw_id; /* id of the previous hardware message (or 0) */ |
Alexandre Julliard | 37ec927 | 2001-07-19 00:35:37 +0000 | [diff] [blame] | 1575 | @REPLY |
Alexandre Julliard | 37ec927 | 2001-07-19 00:35:37 +0000 | [diff] [blame] | 1576 | int type; /* message type */ |
Alexandre Julliard | 1a66d22 | 2001-08-28 18:44:52 +0000 | [diff] [blame] | 1577 | user_handle_t win; /* window handle */ |
Alexandre Julliard | 37ec927 | 2001-07-19 00:35:37 +0000 | [diff] [blame] | 1578 | unsigned int msg; /* message code */ |
Alexandre Julliard | 039e131 | 2003-07-26 20:36:43 +0000 | [diff] [blame] | 1579 | unsigned int wparam; /* parameters (callback function for MSG_CALLBACK_RESULT) */ |
| 1580 | unsigned int lparam; /* parameters (result for MSG_CALLBACK_RESULT) */ |
Alexandre Julliard | d253c58 | 2001-08-07 19:19:08 +0000 | [diff] [blame] | 1581 | int x; /* x position */ |
| 1582 | int y; /* y position */ |
Dmitry Timoshkov | 6dba0a7 | 2005-02-03 16:40:20 +0000 | [diff] [blame] | 1583 | user_handle_t hook; /* winevent hook handle */ |
| 1584 | void* hook_proc; /* winevent hook proc address */ |
Alexandre Julliard | 37ec927 | 2001-07-19 00:35:37 +0000 | [diff] [blame] | 1585 | unsigned int time; /* message time */ |
Alexandre Julliard | 039e131 | 2003-07-26 20:36:43 +0000 | [diff] [blame] | 1586 | unsigned int info; /* extra info (callback argument for MSG_CALLBACK_RESULT) */ |
Alexandre Julliard | 3e2f2a5 | 2005-04-20 13:03:59 +0000 | [diff] [blame] | 1587 | unsigned int hw_id; /* id if hardware message */ |
Alexandre Julliard | 6334235 | 2005-05-11 13:03:15 +0000 | [diff] [blame] | 1588 | unsigned int active_hooks; /* active hooks bitmap */ |
Alexandre Julliard | 9caa71e | 2001-11-30 18:46:42 +0000 | [diff] [blame] | 1589 | size_t total; /* total size of extra data */ |
Alexandre Julliard | d253c58 | 2001-08-07 19:19:08 +0000 | [diff] [blame] | 1590 | VARARG(data,bytes); /* message data for sent messages */ |
Alexandre Julliard | 37ec927 | 2001-07-19 00:35:37 +0000 | [diff] [blame] | 1591 | @END |
| 1592 | #define GET_MSG_REMOVE 1 /* remove the message */ |
| 1593 | #define GET_MSG_SENT_ONLY 2 /* only get sent messages */ |
Alexandre Julliard | 37ec927 | 2001-07-19 00:35:37 +0000 | [diff] [blame] | 1594 | |
| 1595 | /* Reply to a sent message */ |
| 1596 | @REQ(reply_message) |
| 1597 | unsigned int result; /* message result */ |
| 1598 | int remove; /* should we remove the message? */ |
Alexandre Julliard | d253c58 | 2001-08-07 19:19:08 +0000 | [diff] [blame] | 1599 | VARARG(data,bytes); /* message data for sent messages */ |
Alexandre Julliard | 37ec927 | 2001-07-19 00:35:37 +0000 | [diff] [blame] | 1600 | @END |
| 1601 | |
| 1602 | |
Alexandre Julliard | 0bc8377 | 2005-03-23 10:33:17 +0000 | [diff] [blame] | 1603 | /* Accept the current hardware message */ |
| 1604 | @REQ(accept_hardware_message) |
Alexandre Julliard | 3e2f2a5 | 2005-04-20 13:03:59 +0000 | [diff] [blame] | 1605 | unsigned int hw_id; /* id of the hardware message */ |
Alexandre Julliard | 0bc8377 | 2005-03-23 10:33:17 +0000 | [diff] [blame] | 1606 | int remove; /* should we remove the message? */ |
| 1607 | user_handle_t new_win; /* new destination window for current message */ |
| 1608 | @END |
| 1609 | |
| 1610 | |
Alexandre Julliard | 37ec927 | 2001-07-19 00:35:37 +0000 | [diff] [blame] | 1611 | /* Retrieve the reply for the last message sent */ |
| 1612 | @REQ(get_message_reply) |
| 1613 | int cancel; /* cancel message if not ready? */ |
| 1614 | @REPLY |
| 1615 | unsigned int result; /* message result */ |
Alexandre Julliard | d253c58 | 2001-08-07 19:19:08 +0000 | [diff] [blame] | 1616 | VARARG(data,bytes); /* message data for sent messages */ |
Alexandre Julliard | 37ec927 | 2001-07-19 00:35:37 +0000 | [diff] [blame] | 1617 | @END |
| 1618 | |
| 1619 | |
Alexandre Julliard | 37ec927 | 2001-07-19 00:35:37 +0000 | [diff] [blame] | 1620 | /* Set a window timer */ |
| 1621 | @REQ(set_win_timer) |
Alexandre Julliard | 1a66d22 | 2001-08-28 18:44:52 +0000 | [diff] [blame] | 1622 | user_handle_t win; /* window handle */ |
Alexandre Julliard | 37ec927 | 2001-07-19 00:35:37 +0000 | [diff] [blame] | 1623 | unsigned int msg; /* message to post */ |
| 1624 | unsigned int id; /* timer id */ |
| 1625 | unsigned int rate; /* timer rate in ms */ |
| 1626 | unsigned int lparam; /* message lparam (callback proc) */ |
Alexandre Julliard | ff986a5 | 2004-11-29 18:08:18 +0000 | [diff] [blame] | 1627 | @REPLY |
| 1628 | unsigned int id; /* timer id */ |
Alexandre Julliard | 37ec927 | 2001-07-19 00:35:37 +0000 | [diff] [blame] | 1629 | @END |
| 1630 | |
| 1631 | |
| 1632 | /* Kill a window timer */ |
| 1633 | @REQ(kill_win_timer) |
Alexandre Julliard | 1a66d22 | 2001-08-28 18:44:52 +0000 | [diff] [blame] | 1634 | user_handle_t win; /* window handle */ |
Alexandre Julliard | 37ec927 | 2001-07-19 00:35:37 +0000 | [diff] [blame] | 1635 | unsigned int msg; /* message to post */ |
| 1636 | unsigned int id; /* timer id */ |
| 1637 | @END |
| 1638 | |
| 1639 | |
Alexandre Julliard | 37ec927 | 2001-07-19 00:35:37 +0000 | [diff] [blame] | 1640 | /* Retrieve info about a serial port */ |
| 1641 | @REQ(get_serial_info) |
Alexandre Julliard | 5188574 | 2002-05-30 20:12:58 +0000 | [diff] [blame] | 1642 | obj_handle_t handle; /* handle to comm port */ |
Alexandre Julliard | 37ec927 | 2001-07-19 00:35:37 +0000 | [diff] [blame] | 1643 | @REPLY |
| 1644 | unsigned int readinterval; |
| 1645 | unsigned int readconst; |
| 1646 | unsigned int readmult; |
| 1647 | unsigned int writeconst; |
| 1648 | unsigned int writemult; |
| 1649 | unsigned int eventmask; |
| 1650 | unsigned int commerror; |
| 1651 | @END |
| 1652 | |
| 1653 | |
| 1654 | /* Set info about a serial port */ |
| 1655 | @REQ(set_serial_info) |
Alexandre Julliard | 5188574 | 2002-05-30 20:12:58 +0000 | [diff] [blame] | 1656 | obj_handle_t handle; /* handle to comm port */ |
Alexandre Julliard | 37ec927 | 2001-07-19 00:35:37 +0000 | [diff] [blame] | 1657 | int flags; /* bitmask to set values (see below) */ |
| 1658 | unsigned int readinterval; |
| 1659 | unsigned int readconst; |
| 1660 | unsigned int readmult; |
| 1661 | unsigned int writeconst; |
| 1662 | unsigned int writemult; |
| 1663 | unsigned int eventmask; |
| 1664 | unsigned int commerror; |
| 1665 | @END |
| 1666 | #define SERIALINFO_SET_TIMEOUTS 0x01 |
| 1667 | #define SERIALINFO_SET_MASK 0x02 |
| 1668 | #define SERIALINFO_SET_ERROR 0x04 |
| 1669 | |
| 1670 | |
Eric Pouech | 4634447 | 2005-01-14 19:54:38 +0000 | [diff] [blame] | 1671 | /* Create an async I/O */ |
Mike McCormack | 6f011c0 | 2001-12-20 00:07:05 +0000 | [diff] [blame] | 1672 | @REQ(register_async) |
Eric Pouech | 4634447 | 2005-01-14 19:54:38 +0000 | [diff] [blame] | 1673 | obj_handle_t handle; /* handle to comm port, socket or file */ |
| 1674 | int type; /* type of queue to look after */ |
| 1675 | void* io_apc; /* APC routine to queue upon end of async */ |
| 1676 | void* io_sb; /* I/O status block (unique across all async on this handle) */ |
| 1677 | void* io_user; /* data to pass back to caller */ |
| 1678 | int count; /* count - usually # of bytes to be read/written */ |
Alexandre Julliard | 37ec927 | 2001-07-19 00:35:37 +0000 | [diff] [blame] | 1679 | @END |
| 1680 | #define ASYNC_TYPE_READ 0x01 |
| 1681 | #define ASYNC_TYPE_WRITE 0x02 |
| 1682 | #define ASYNC_TYPE_WAIT 0x03 |
| 1683 | |
| 1684 | |
Eric Pouech | 4634447 | 2005-01-14 19:54:38 +0000 | [diff] [blame] | 1685 | /* Cancel all async op on a fd */ |
| 1686 | @REQ(cancel_async) |
| 1687 | obj_handle_t handle; /* handle to comm port, socket or file */ |
| 1688 | @END |
| 1689 | |
| 1690 | |
Alexandre Julliard | 37ec927 | 2001-07-19 00:35:37 +0000 | [diff] [blame] | 1691 | /* Create a named pipe */ |
| 1692 | @REQ(create_named_pipe) |
Eric Pouech | e21aa6a | 2005-09-26 11:02:45 +0000 | [diff] [blame] | 1693 | unsigned int access; |
Vitaliy Margolen | a996000 | 2005-10-27 18:30:37 +0000 | [diff] [blame] | 1694 | unsigned int attributes; /* object attributes */ |
Eric Pouech | 5a2591d | 2005-04-18 14:57:04 +0000 | [diff] [blame] | 1695 | unsigned int options; |
| 1696 | unsigned int flags; |
Alexandre Julliard | 37ec927 | 2001-07-19 00:35:37 +0000 | [diff] [blame] | 1697 | unsigned int maxinstances; |
| 1698 | unsigned int outsize; |
| 1699 | unsigned int insize; |
| 1700 | unsigned int timeout; |
Alexandre Julliard | 8ae5761 | 2001-12-31 22:26:51 +0000 | [diff] [blame] | 1701 | VARARG(name,unicode_str); /* pipe name */ |
Alexandre Julliard | 37ec927 | 2001-07-19 00:35:37 +0000 | [diff] [blame] | 1702 | @REPLY |
Alexandre Julliard | 5188574 | 2002-05-30 20:12:58 +0000 | [diff] [blame] | 1703 | obj_handle_t handle; /* handle to the pipe */ |
Alexandre Julliard | 37ec927 | 2001-07-19 00:35:37 +0000 | [diff] [blame] | 1704 | @END |
| 1705 | |
Eric Pouech | 5a2591d | 2005-04-18 14:57:04 +0000 | [diff] [blame] | 1706 | /* flags in create_named_pipe and get_named_pipe_info */ |
| 1707 | #define NAMED_PIPE_MESSAGE_STREAM_WRITE 0x0001 |
| 1708 | #define NAMED_PIPE_MESSAGE_STREAM_READ 0x0002 |
| 1709 | #define NAMED_PIPE_NONBLOCKING_MODE 0x0004 |
| 1710 | |
Alexandre Julliard | 37ec927 | 2001-07-19 00:35:37 +0000 | [diff] [blame] | 1711 | |
| 1712 | /* Open an existing named pipe */ |
| 1713 | @REQ(open_named_pipe) |
| 1714 | unsigned int access; |
Vitaliy Margolen | a996000 | 2005-10-27 18:30:37 +0000 | [diff] [blame] | 1715 | unsigned int attributes; /* object attributes */ |
Robert Shearman | e51dd36 | 2005-06-08 19:11:46 +0000 | [diff] [blame] | 1716 | unsigned int flags; /* file flags */ |
Alexandre Julliard | 8ae5761 | 2001-12-31 22:26:51 +0000 | [diff] [blame] | 1717 | VARARG(name,unicode_str); /* pipe name */ |
Alexandre Julliard | 37ec927 | 2001-07-19 00:35:37 +0000 | [diff] [blame] | 1718 | @REPLY |
Alexandre Julliard | 5188574 | 2002-05-30 20:12:58 +0000 | [diff] [blame] | 1719 | obj_handle_t handle; /* handle to the pipe */ |
Alexandre Julliard | 37ec927 | 2001-07-19 00:35:37 +0000 | [diff] [blame] | 1720 | @END |
| 1721 | |
| 1722 | |
| 1723 | /* Connect to a named pipe */ |
| 1724 | @REQ(connect_named_pipe) |
Alexandre Julliard | 5188574 | 2002-05-30 20:12:58 +0000 | [diff] [blame] | 1725 | obj_handle_t handle; |
Ivan Leo Puoti | f0db7ab | 2005-09-06 14:09:42 +0000 | [diff] [blame] | 1726 | obj_handle_t event; |
Mike McCormack | 309ed4e | 2001-11-07 20:14:45 +0000 | [diff] [blame] | 1727 | void* func; |
Alexandre Julliard | 37ec927 | 2001-07-19 00:35:37 +0000 | [diff] [blame] | 1728 | @END |
Mike McCormack | bf55457 | 2001-08-23 23:29:20 +0000 | [diff] [blame] | 1729 | |
| 1730 | |
| 1731 | /* Wait for a named pipe */ |
| 1732 | @REQ(wait_named_pipe) |
| 1733 | unsigned int timeout; |
Mike McCormack | 309ed4e | 2001-11-07 20:14:45 +0000 | [diff] [blame] | 1734 | void* overlapped; |
| 1735 | void* func; |
Alexandre Julliard | 8ae5761 | 2001-12-31 22:26:51 +0000 | [diff] [blame] | 1736 | VARARG(name,unicode_str); /* pipe name */ |
Mike McCormack | bf55457 | 2001-08-23 23:29:20 +0000 | [diff] [blame] | 1737 | @END |
| 1738 | |
| 1739 | |
| 1740 | /* Disconnect a named pipe */ |
| 1741 | @REQ(disconnect_named_pipe) |
Alexandre Julliard | 5188574 | 2002-05-30 20:12:58 +0000 | [diff] [blame] | 1742 | obj_handle_t handle; |
Mike McCormack | ef8b946 | 2003-05-15 04:22:45 +0000 | [diff] [blame] | 1743 | @REPLY |
| 1744 | int fd; /* associated fd to close */ |
Mike McCormack | bf55457 | 2001-08-23 23:29:20 +0000 | [diff] [blame] | 1745 | @END |
Mike McCormack | f2e7ce7 | 2001-08-27 19:03:42 +0000 | [diff] [blame] | 1746 | |
Alexandre Julliard | 1a66d22 | 2001-08-28 18:44:52 +0000 | [diff] [blame] | 1747 | |
Mike McCormack | f2e7ce7 | 2001-08-27 19:03:42 +0000 | [diff] [blame] | 1748 | @REQ(get_named_pipe_info) |
Alexandre Julliard | 5188574 | 2002-05-30 20:12:58 +0000 | [diff] [blame] | 1749 | obj_handle_t handle; |
Mike McCormack | f2e7ce7 | 2001-08-27 19:03:42 +0000 | [diff] [blame] | 1750 | @REPLY |
| 1751 | unsigned int flags; |
| 1752 | unsigned int maxinstances; |
| 1753 | unsigned int outsize; |
| 1754 | unsigned int insize; |
| 1755 | @END |
| 1756 | |
Alexandre Julliard | 1a66d22 | 2001-08-28 18:44:52 +0000 | [diff] [blame] | 1757 | |
Alexandre Julliard | 1a66d22 | 2001-08-28 18:44:52 +0000 | [diff] [blame] | 1758 | /* Create a window */ |
| 1759 | @REQ(create_window) |
Alexandre Julliard | a09da0c | 2001-09-21 21:08:40 +0000 | [diff] [blame] | 1760 | user_handle_t parent; /* parent window */ |
| 1761 | user_handle_t owner; /* owner window */ |
Alexandre Julliard | d8a8c11 | 2001-10-12 18:45:29 +0000 | [diff] [blame] | 1762 | atom_t atom; /* class atom */ |
Alexandre Julliard | bfce151 | 2003-12-10 04:08:06 +0000 | [diff] [blame] | 1763 | void* instance; /* module instance */ |
Alexandre Julliard | 1a66d22 | 2001-08-28 18:44:52 +0000 | [diff] [blame] | 1764 | @REPLY |
Alexandre Julliard | a09da0c | 2001-09-21 21:08:40 +0000 | [diff] [blame] | 1765 | user_handle_t handle; /* created window */ |
Alexandre Julliard | bd13ab8 | 2003-12-11 05:34:53 +0000 | [diff] [blame] | 1766 | int extra; /* number of extra bytes */ |
| 1767 | void* class_ptr; /* pointer to class in client address space */ |
Alexandre Julliard | 1a66d22 | 2001-08-28 18:44:52 +0000 | [diff] [blame] | 1768 | @END |
| 1769 | |
| 1770 | |
Alexandre Julliard | 1a66d22 | 2001-08-28 18:44:52 +0000 | [diff] [blame] | 1771 | /* Destroy a window */ |
| 1772 | @REQ(destroy_window) |
| 1773 | user_handle_t handle; /* handle to the window */ |
| 1774 | @END |
| 1775 | |
| 1776 | |
Alexandre Julliard | 8c51880 | 2005-07-08 11:37:40 +0000 | [diff] [blame] | 1777 | /* Retrieve the desktop window for the current thread */ |
| 1778 | @REQ(get_desktop_window) |
| 1779 | @REPLY |
| 1780 | user_handle_t handle; /* handle to the desktop window */ |
| 1781 | @END |
| 1782 | |
| 1783 | |
Alexandre Julliard | ddc3317 | 2001-10-22 19:08:33 +0000 | [diff] [blame] | 1784 | /* Set a window owner */ |
| 1785 | @REQ(set_window_owner) |
| 1786 | user_handle_t handle; /* handle to the window */ |
| 1787 | user_handle_t owner; /* new owner */ |
| 1788 | @REPLY |
| 1789 | user_handle_t full_owner; /* full handle of new owner */ |
Alexandre Julliard | 7dafa61 | 2002-09-25 00:21:56 +0000 | [diff] [blame] | 1790 | user_handle_t prev_owner; /* full handle of previous owner */ |
Alexandre Julliard | ddc3317 | 2001-10-22 19:08:33 +0000 | [diff] [blame] | 1791 | @END |
| 1792 | |
| 1793 | |
Alexandre Julliard | 1a66d22 | 2001-08-28 18:44:52 +0000 | [diff] [blame] | 1794 | /* Get information from a window handle */ |
| 1795 | @REQ(get_window_info) |
| 1796 | user_handle_t handle; /* handle to the window */ |
| 1797 | @REPLY |
| 1798 | user_handle_t full_handle; /* full 32-bit handle */ |
Alexandre Julliard | 5030bda | 2002-10-11 23:41:06 +0000 | [diff] [blame] | 1799 | user_handle_t last_active; /* last active popup */ |
Alexandre Julliard | 54f2287 | 2002-10-03 19:54:57 +0000 | [diff] [blame] | 1800 | process_id_t pid; /* process owning the window */ |
| 1801 | thread_id_t tid; /* thread owning the window */ |
Alexandre Julliard | ddc3317 | 2001-10-22 19:08:33 +0000 | [diff] [blame] | 1802 | atom_t atom; /* class atom */ |
Dmitry Timoshkov | 86af38c | 2005-07-07 12:02:31 +0000 | [diff] [blame] | 1803 | int is_unicode; /* ANSI or unicode */ |
Alexandre Julliard | 1a66d22 | 2001-08-28 18:44:52 +0000 | [diff] [blame] | 1804 | @END |
Alexandre Julliard | a09da0c | 2001-09-21 21:08:40 +0000 | [diff] [blame] | 1805 | |
| 1806 | |
Alexandre Julliard | ddc3317 | 2001-10-22 19:08:33 +0000 | [diff] [blame] | 1807 | /* Set some information in a window */ |
| 1808 | @REQ(set_window_info) |
| 1809 | user_handle_t handle; /* handle to the window */ |
| 1810 | unsigned int flags; /* flags for fields to set (see below) */ |
| 1811 | unsigned int style; /* window style */ |
| 1812 | unsigned int ex_style; /* window extended style */ |
| 1813 | unsigned int id; /* window id */ |
| 1814 | void* instance; /* creator instance */ |
Dmitry Timoshkov | 86af38c | 2005-07-07 12:02:31 +0000 | [diff] [blame] | 1815 | int is_unicode; /* ANSI or unicode */ |
Alexandre Julliard | ddc3317 | 2001-10-22 19:08:33 +0000 | [diff] [blame] | 1816 | void* user_data; /* user-specific data */ |
Alexandre Julliard | 97903d2 | 2003-11-26 22:15:41 +0000 | [diff] [blame] | 1817 | int extra_offset; /* offset to set in extra bytes */ |
Alexandre Julliard | ebf1243 | 2003-12-10 01:34:51 +0000 | [diff] [blame] | 1818 | size_t extra_size; /* size to set in extra bytes */ |
Alexandre Julliard | 97903d2 | 2003-11-26 22:15:41 +0000 | [diff] [blame] | 1819 | unsigned int extra_value; /* value to set in extra bytes */ |
Alexandre Julliard | ddc3317 | 2001-10-22 19:08:33 +0000 | [diff] [blame] | 1820 | @REPLY |
| 1821 | unsigned int old_style; /* old window style */ |
| 1822 | unsigned int old_ex_style; /* old window extended style */ |
| 1823 | unsigned int old_id; /* old window id */ |
| 1824 | void* old_instance; /* old creator instance */ |
| 1825 | void* old_user_data; /* old user-specific data */ |
Alexandre Julliard | 97903d2 | 2003-11-26 22:15:41 +0000 | [diff] [blame] | 1826 | unsigned int old_extra_value; /* old value in extra bytes */ |
Alexandre Julliard | ddc3317 | 2001-10-22 19:08:33 +0000 | [diff] [blame] | 1827 | @END |
| 1828 | #define SET_WIN_STYLE 0x01 |
| 1829 | #define SET_WIN_EXSTYLE 0x02 |
| 1830 | #define SET_WIN_ID 0x04 |
| 1831 | #define SET_WIN_INSTANCE 0x08 |
| 1832 | #define SET_WIN_USERDATA 0x10 |
Alexandre Julliard | ebf1243 | 2003-12-10 01:34:51 +0000 | [diff] [blame] | 1833 | #define SET_WIN_EXTRA 0x20 |
Dmitry Timoshkov | 86af38c | 2005-07-07 12:02:31 +0000 | [diff] [blame] | 1834 | #define SET_WIN_UNICODE 0x40 |
Alexandre Julliard | ddc3317 | 2001-10-22 19:08:33 +0000 | [diff] [blame] | 1835 | |
| 1836 | |
Alexandre Julliard | 4d32a47 | 2005-03-25 10:38:56 +0000 | [diff] [blame] | 1837 | /* Set the parent of a window */ |
| 1838 | @REQ(set_parent) |
| 1839 | user_handle_t handle; /* handle to the window */ |
| 1840 | user_handle_t parent; /* handle to the parent */ |
| 1841 | @REPLY |
| 1842 | user_handle_t old_parent; /* old parent window */ |
| 1843 | user_handle_t full_parent; /* full handle of new parent */ |
| 1844 | @END |
| 1845 | |
| 1846 | |
Alexandre Julliard | a09da0c | 2001-09-21 21:08:40 +0000 | [diff] [blame] | 1847 | /* Get a list of the window parents, up to the root of the tree */ |
| 1848 | @REQ(get_window_parents) |
| 1849 | user_handle_t handle; /* handle to the window */ |
| 1850 | @REPLY |
| 1851 | int count; /* total count of parents */ |
| 1852 | VARARG(parents,user_handles); /* parent handles */ |
| 1853 | @END |
| 1854 | |
| 1855 | |
| 1856 | /* Get a list of the window children */ |
| 1857 | @REQ(get_window_children) |
| 1858 | user_handle_t parent; /* parent window */ |
Alexandre Julliard | d8a8c11 | 2001-10-12 18:45:29 +0000 | [diff] [blame] | 1859 | atom_t atom; /* class atom for the listed children */ |
Alexandre Julliard | 54f2287 | 2002-10-03 19:54:57 +0000 | [diff] [blame] | 1860 | thread_id_t tid; /* thread owning the listed children */ |
Alexandre Julliard | a09da0c | 2001-09-21 21:08:40 +0000 | [diff] [blame] | 1861 | @REPLY |
| 1862 | int count; /* total count of children */ |
Alexandre Julliard | 7695d69 | 2001-09-24 01:19:59 +0000 | [diff] [blame] | 1863 | VARARG(children,user_handles); /* children handles */ |
Alexandre Julliard | a09da0c | 2001-09-21 21:08:40 +0000 | [diff] [blame] | 1864 | @END |
| 1865 | |
| 1866 | |
Alexandre Julliard | 4616dcb | 2004-07-20 22:17:38 +0000 | [diff] [blame] | 1867 | /* Get a list of the window children that contain a given point */ |
| 1868 | @REQ(get_window_children_from_point) |
| 1869 | user_handle_t parent; /* parent window */ |
| 1870 | int x; /* point in parent coordinates */ |
| 1871 | int y; |
| 1872 | @REPLY |
| 1873 | int count; /* total count of children */ |
| 1874 | VARARG(children,user_handles); /* children handles */ |
| 1875 | @END |
| 1876 | |
| 1877 | |
Alexandre Julliard | a09da0c | 2001-09-21 21:08:40 +0000 | [diff] [blame] | 1878 | /* Get window tree information from a window handle */ |
| 1879 | @REQ(get_window_tree) |
| 1880 | user_handle_t handle; /* handle to the window */ |
| 1881 | @REPLY |
| 1882 | user_handle_t parent; /* parent window */ |
| 1883 | user_handle_t owner; /* owner window */ |
| 1884 | user_handle_t next_sibling; /* next sibling in Z-order */ |
| 1885 | user_handle_t prev_sibling; /* prev sibling in Z-order */ |
| 1886 | user_handle_t first_sibling; /* first sibling in Z-order */ |
| 1887 | user_handle_t last_sibling; /* last sibling in Z-order */ |
| 1888 | user_handle_t first_child; /* first child */ |
| 1889 | user_handle_t last_child; /* last child */ |
| 1890 | @END |
Alexandre Julliard | 7a2017d | 2001-10-12 19:10:26 +0000 | [diff] [blame] | 1891 | |
Alexandre Julliard | 5defa49 | 2004-12-07 17:31:53 +0000 | [diff] [blame] | 1892 | /* Set the position and Z order of a window */ |
| 1893 | @REQ(set_window_pos) |
Alexandre Julliard | 0d50965 | 2001-10-16 21:55:37 +0000 | [diff] [blame] | 1894 | user_handle_t handle; /* handle to the window */ |
Alexandre Julliard | 5defa49 | 2004-12-07 17:31:53 +0000 | [diff] [blame] | 1895 | user_handle_t previous; /* previous window in Z order */ |
| 1896 | unsigned int flags; /* SWP_* flags */ |
Alexandre Julliard | 0d50965 | 2001-10-16 21:55:37 +0000 | [diff] [blame] | 1897 | rectangle_t window; /* window rectangle */ |
| 1898 | rectangle_t client; /* client rectangle */ |
Alexandre Julliard | ae661da | 2005-02-03 13:40:12 +0000 | [diff] [blame] | 1899 | VARARG(valid,rectangles); /* valid rectangles from WM_NCCALCSIZE */ |
Alexandre Julliard | 5defa49 | 2004-12-07 17:31:53 +0000 | [diff] [blame] | 1900 | @REPLY |
| 1901 | unsigned int new_style; /* new window style */ |
Alexandre Julliard | 0d50965 | 2001-10-16 21:55:37 +0000 | [diff] [blame] | 1902 | @END |
| 1903 | |
| 1904 | |
| 1905 | /* Get the window and client rectangles of a window */ |
| 1906 | @REQ(get_window_rectangles) |
| 1907 | user_handle_t handle; /* handle to the window */ |
| 1908 | @REPLY |
| 1909 | rectangle_t window; /* window rectangle */ |
Alexandre Julliard | f756090 | 2005-03-17 19:10:41 +0000 | [diff] [blame] | 1910 | rectangle_t visible; /* visible part of the window rectangle */ |
Alexandre Julliard | 0d50965 | 2001-10-16 21:55:37 +0000 | [diff] [blame] | 1911 | rectangle_t client; /* client rectangle */ |
| 1912 | @END |
| 1913 | |
| 1914 | |
Alexandre Julliard | 805bdc5 | 2001-11-13 22:23:48 +0000 | [diff] [blame] | 1915 | /* Get the window text */ |
| 1916 | @REQ(get_window_text) |
| 1917 | user_handle_t handle; /* handle to the window */ |
| 1918 | @REPLY |
| 1919 | VARARG(text,unicode_str); /* window text */ |
| 1920 | @END |
| 1921 | |
| 1922 | |
| 1923 | /* Set the window text */ |
| 1924 | @REQ(set_window_text) |
| 1925 | user_handle_t handle; /* handle to the window */ |
| 1926 | VARARG(text,unicode_str); /* window text */ |
| 1927 | @END |
| 1928 | |
| 1929 | |
Alexandre Julliard | 0d50965 | 2001-10-16 21:55:37 +0000 | [diff] [blame] | 1930 | /* Get the coordinates offset between two windows */ |
| 1931 | @REQ(get_windows_offset) |
| 1932 | user_handle_t from; /* handle to the first window */ |
| 1933 | user_handle_t to; /* handle to the second window */ |
| 1934 | @REPLY |
| 1935 | int x; /* x coordinate offset */ |
| 1936 | int y; /* y coordinate offset */ |
| 1937 | @END |
| 1938 | |
Alexandre Julliard | 7a2017d | 2001-10-12 19:10:26 +0000 | [diff] [blame] | 1939 | |
Alexandre Julliard | e8d86b7 | 2004-06-23 20:44:58 +0000 | [diff] [blame] | 1940 | /* Get the visible region of a window */ |
| 1941 | @REQ(get_visible_region) |
| 1942 | user_handle_t window; /* handle to the window */ |
Alexandre Julliard | e8d86b7 | 2004-06-23 20:44:58 +0000 | [diff] [blame] | 1943 | unsigned int flags; /* DCX flags */ |
| 1944 | @REPLY |
Alexandre Julliard | bc75f2f | 2005-03-31 15:36:57 +0000 | [diff] [blame] | 1945 | user_handle_t top_win; /* top window to clip against */ |
| 1946 | int top_org_x; /* top window visible rect origin in screen coords */ |
| 1947 | int top_org_y; |
| 1948 | int win_org_x; /* window rect origin in screen coords */ |
| 1949 | int win_org_y; |
Alexandre Julliard | e8d86b7 | 2004-06-23 20:44:58 +0000 | [diff] [blame] | 1950 | size_t total_size; /* total size of the resulting region */ |
Alexandre Julliard | bc75f2f | 2005-03-31 15:36:57 +0000 | [diff] [blame] | 1951 | VARARG(region,rectangles); /* list of rectangles for the region (in screen coords) */ |
Alexandre Julliard | e8d86b7 | 2004-06-23 20:44:58 +0000 | [diff] [blame] | 1952 | @END |
| 1953 | |
| 1954 | |
Alexandre Julliard | 618a7e5 | 2004-06-29 03:53:25 +0000 | [diff] [blame] | 1955 | /* Get the window region */ |
| 1956 | @REQ(get_window_region) |
| 1957 | user_handle_t window; /* handle to the window */ |
| 1958 | @REPLY |
| 1959 | size_t total_size; /* total size of the resulting region */ |
| 1960 | VARARG(region,rectangles); /* list of rectangles for the region */ |
| 1961 | @END |
| 1962 | |
| 1963 | |
| 1964 | /* Set the window region */ |
| 1965 | @REQ(set_window_region) |
| 1966 | user_handle_t window; /* handle to the window */ |
| 1967 | VARARG(region,rectangles); /* list of rectangles for the region */ |
| 1968 | @END |
| 1969 | |
| 1970 | |
Alexandre Julliard | 5defa49 | 2004-12-07 17:31:53 +0000 | [diff] [blame] | 1971 | /* Get the window update region */ |
| 1972 | @REQ(get_update_region) |
| 1973 | user_handle_t window; /* handle to the window */ |
Alexandre Julliard | db412aa | 2005-05-31 13:37:16 +0000 | [diff] [blame] | 1974 | user_handle_t from_child; /* child to start searching from */ |
Alexandre Julliard | 5defa49 | 2004-12-07 17:31:53 +0000 | [diff] [blame] | 1975 | unsigned int flags; /* update flags (see below) */ |
| 1976 | @REPLY |
| 1977 | user_handle_t child; /* child to repaint (or window itself) */ |
| 1978 | unsigned int flags; /* resulting update flags (see below) */ |
| 1979 | size_t total_size; /* total size of the resulting region */ |
| 1980 | VARARG(region,rectangles); /* list of rectangles for the region */ |
| 1981 | @END |
| 1982 | #define UPDATE_NONCLIENT 0x01 /* get region for repainting non-client area */ |
| 1983 | #define UPDATE_ERASE 0x02 /* get region for erasing client area */ |
| 1984 | #define UPDATE_PAINT 0x04 /* get region for painting client area */ |
| 1985 | #define UPDATE_INTERNALPAINT 0x08 /* get region if internal paint is pending */ |
| 1986 | #define UPDATE_ALLCHILDREN 0x10 /* force repaint of all children */ |
| 1987 | #define UPDATE_NOCHILDREN 0x20 /* don't try to repaint any children */ |
| 1988 | #define UPDATE_NOREGION 0x40 /* don't return a region, only the flags */ |
| 1989 | |
| 1990 | |
Alexandre Julliard | 5054c79 | 2005-03-21 12:37:00 +0000 | [diff] [blame] | 1991 | /* Update the z order of a window so that a given rectangle is fully visible */ |
| 1992 | @REQ(update_window_zorder) |
| 1993 | user_handle_t window; /* handle to the window */ |
| 1994 | rectangle_t rect; /* rectangle that must be visible */ |
| 1995 | @END |
| 1996 | |
| 1997 | |
Alexandre Julliard | 5defa49 | 2004-12-07 17:31:53 +0000 | [diff] [blame] | 1998 | /* Mark parts of a window as needing a redraw */ |
| 1999 | @REQ(redraw_window) |
| 2000 | user_handle_t window; /* handle to the window */ |
| 2001 | unsigned int flags; /* RDW_* flags */ |
| 2002 | VARARG(region,rectangles); /* list of rectangles for the region */ |
| 2003 | @END |
| 2004 | |
| 2005 | |
Alexandre Julliard | 7a2017d | 2001-10-12 19:10:26 +0000 | [diff] [blame] | 2006 | /* Set a window property */ |
| 2007 | @REQ(set_window_property) |
| 2008 | user_handle_t window; /* handle to the window */ |
Alexandre Julliard | 9e73cdd | 2005-05-11 19:01:10 +0000 | [diff] [blame] | 2009 | atom_t atom; /* property atom (if no name specified) */ |
Alexandre Julliard | 5188574 | 2002-05-30 20:12:58 +0000 | [diff] [blame] | 2010 | obj_handle_t handle; /* handle to store */ |
Alexandre Julliard | 9e73cdd | 2005-05-11 19:01:10 +0000 | [diff] [blame] | 2011 | VARARG(name,unicode_str); /* property name */ |
Alexandre Julliard | 7a2017d | 2001-10-12 19:10:26 +0000 | [diff] [blame] | 2012 | @END |
| 2013 | |
| 2014 | |
| 2015 | /* Remove a window property */ |
| 2016 | @REQ(remove_window_property) |
| 2017 | user_handle_t window; /* handle to the window */ |
Alexandre Julliard | 9e73cdd | 2005-05-11 19:01:10 +0000 | [diff] [blame] | 2018 | atom_t atom; /* property atom (if no name specified) */ |
| 2019 | VARARG(name,unicode_str); /* property name */ |
Alexandre Julliard | 7a2017d | 2001-10-12 19:10:26 +0000 | [diff] [blame] | 2020 | @REPLY |
Alexandre Julliard | 5188574 | 2002-05-30 20:12:58 +0000 | [diff] [blame] | 2021 | obj_handle_t handle; /* handle stored in property */ |
Alexandre Julliard | 7a2017d | 2001-10-12 19:10:26 +0000 | [diff] [blame] | 2022 | @END |
| 2023 | |
| 2024 | |
| 2025 | /* Get a window property */ |
| 2026 | @REQ(get_window_property) |
| 2027 | user_handle_t window; /* handle to the window */ |
Alexandre Julliard | 9e73cdd | 2005-05-11 19:01:10 +0000 | [diff] [blame] | 2028 | atom_t atom; /* property atom (if no name specified) */ |
| 2029 | VARARG(name,unicode_str); /* property name */ |
Alexandre Julliard | 7a2017d | 2001-10-12 19:10:26 +0000 | [diff] [blame] | 2030 | @REPLY |
Alexandre Julliard | 5188574 | 2002-05-30 20:12:58 +0000 | [diff] [blame] | 2031 | obj_handle_t handle; /* handle stored in property */ |
Alexandre Julliard | 7a2017d | 2001-10-12 19:10:26 +0000 | [diff] [blame] | 2032 | @END |
| 2033 | |
| 2034 | |
| 2035 | /* Get the list of properties of a window */ |
| 2036 | @REQ(get_window_properties) |
| 2037 | user_handle_t window; /* handle to the window */ |
| 2038 | @REPLY |
Alexandre Julliard | 9caa71e | 2001-11-30 18:46:42 +0000 | [diff] [blame] | 2039 | int total; /* total number of properties */ |
Alexandre Julliard | 7a2017d | 2001-10-12 19:10:26 +0000 | [diff] [blame] | 2040 | VARARG(props,properties); /* list of properties */ |
| 2041 | @END |
Alexandre Julliard | ab5063b | 2002-10-11 18:50:15 +0000 | [diff] [blame] | 2042 | |
| 2043 | |
Alexandre Julliard | 1bf96e0 | 2005-06-08 18:44:50 +0000 | [diff] [blame] | 2044 | /* Create a window station */ |
| 2045 | @REQ(create_winstation) |
| 2046 | unsigned int flags; /* window station flags */ |
| 2047 | unsigned int access; /* wanted access rights */ |
Vitaliy Margolen | 83ef91c | 2005-11-21 12:05:38 +0000 | [diff] [blame] | 2048 | unsigned int attributes; /* object attributes */ |
Alexandre Julliard | 1bf96e0 | 2005-06-08 18:44:50 +0000 | [diff] [blame] | 2049 | VARARG(name,unicode_str); /* object name */ |
| 2050 | @REPLY |
| 2051 | obj_handle_t handle; /* handle to the window station */ |
| 2052 | @END |
| 2053 | |
| 2054 | |
| 2055 | /* Open a handle to a window station */ |
| 2056 | @REQ(open_winstation) |
| 2057 | unsigned int access; /* wanted access rights */ |
Vitaliy Margolen | 83ef91c | 2005-11-21 12:05:38 +0000 | [diff] [blame] | 2058 | unsigned int attributes; /* object attributes */ |
Alexandre Julliard | 1bf96e0 | 2005-06-08 18:44:50 +0000 | [diff] [blame] | 2059 | VARARG(name,unicode_str); /* object name */ |
| 2060 | @REPLY |
| 2061 | obj_handle_t handle; /* handle to the window station */ |
| 2062 | @END |
| 2063 | |
| 2064 | |
| 2065 | /* Close a window station */ |
| 2066 | @REQ(close_winstation) |
| 2067 | obj_handle_t handle; /* handle to the window station */ |
| 2068 | @END |
| 2069 | |
| 2070 | |
| 2071 | /* Get the process current window station */ |
| 2072 | @REQ(get_process_winstation) |
| 2073 | @REPLY |
| 2074 | obj_handle_t handle; /* handle to the window station */ |
| 2075 | @END |
| 2076 | |
| 2077 | |
| 2078 | /* Set the process current window station */ |
| 2079 | @REQ(set_process_winstation) |
| 2080 | obj_handle_t handle; /* handle to the window station */ |
| 2081 | @END |
| 2082 | |
| 2083 | |
| 2084 | /* Create a desktop */ |
| 2085 | @REQ(create_desktop) |
| 2086 | unsigned int flags; /* desktop flags */ |
| 2087 | unsigned int access; /* wanted access rights */ |
Vitaliy Margolen | 83ef91c | 2005-11-21 12:05:38 +0000 | [diff] [blame] | 2088 | unsigned int attributes; /* object attributes */ |
Alexandre Julliard | 1bf96e0 | 2005-06-08 18:44:50 +0000 | [diff] [blame] | 2089 | VARARG(name,unicode_str); /* object name */ |
| 2090 | @REPLY |
| 2091 | obj_handle_t handle; /* handle to the desktop */ |
| 2092 | @END |
| 2093 | |
| 2094 | |
| 2095 | /* Open a handle to a desktop */ |
| 2096 | @REQ(open_desktop) |
| 2097 | unsigned int flags; /* desktop flags */ |
| 2098 | unsigned int access; /* wanted access rights */ |
Vitaliy Margolen | 83ef91c | 2005-11-21 12:05:38 +0000 | [diff] [blame] | 2099 | unsigned int attributes; /* object attributes */ |
Alexandre Julliard | 1bf96e0 | 2005-06-08 18:44:50 +0000 | [diff] [blame] | 2100 | VARARG(name,unicode_str); /* object name */ |
| 2101 | @REPLY |
| 2102 | obj_handle_t handle; /* handle to the desktop */ |
| 2103 | @END |
| 2104 | |
| 2105 | |
| 2106 | /* Close a desktop */ |
| 2107 | @REQ(close_desktop) |
| 2108 | obj_handle_t handle; /* handle to the desktop */ |
| 2109 | @END |
| 2110 | |
| 2111 | |
| 2112 | /* Get the thread current desktop */ |
| 2113 | @REQ(get_thread_desktop) |
| 2114 | thread_id_t tid; /* thread id */ |
| 2115 | @REPLY |
| 2116 | obj_handle_t handle; /* handle to the desktop */ |
| 2117 | @END |
| 2118 | |
| 2119 | |
| 2120 | /* Set the thread current desktop */ |
| 2121 | @REQ(set_thread_desktop) |
| 2122 | obj_handle_t handle; /* handle to the desktop */ |
| 2123 | @END |
| 2124 | |
| 2125 | |
| 2126 | /* Get/set information about a user object (window station or desktop) */ |
| 2127 | @REQ(set_user_object_info) |
| 2128 | obj_handle_t handle; /* handle to the object */ |
| 2129 | unsigned int flags; /* information to set */ |
| 2130 | unsigned int obj_flags; /* new object flags */ |
| 2131 | @REPLY |
| 2132 | int is_desktop; /* is object a desktop? */ |
| 2133 | unsigned int old_obj_flags; /* old object flags */ |
| 2134 | VARARG(name,unicode_str); /* object name */ |
| 2135 | @END |
| 2136 | #define SET_USER_OBJECT_FLAGS 1 |
| 2137 | |
| 2138 | |
Alexandre Julliard | ab5063b | 2002-10-11 18:50:15 +0000 | [diff] [blame] | 2139 | /* Attach (or detach) thread inputs */ |
| 2140 | @REQ(attach_thread_input) |
| 2141 | thread_id_t tid_from; /* thread to be attached */ |
| 2142 | thread_id_t tid_to; /* thread to which tid_from should be attached */ |
| 2143 | int attach; /* is it an attach? */ |
| 2144 | @END |
| 2145 | |
| 2146 | |
| 2147 | /* Get input data for a given thread */ |
| 2148 | @REQ(get_thread_input) |
| 2149 | thread_id_t tid; /* id of thread */ |
| 2150 | @REPLY |
| 2151 | user_handle_t focus; /* handle to the focus window */ |
| 2152 | user_handle_t capture; /* handle to the capture window */ |
| 2153 | user_handle_t active; /* handle to the active window */ |
| 2154 | user_handle_t foreground; /* handle to the global foreground window */ |
| 2155 | user_handle_t menu_owner; /* handle to the menu owner */ |
| 2156 | user_handle_t move_size; /* handle to the moving/resizing window */ |
| 2157 | user_handle_t caret; /* handle to the caret window */ |
| 2158 | rectangle_t rect; /* caret rectangle */ |
| 2159 | @END |
Alexandre Julliard | 5030bda | 2002-10-11 23:41:06 +0000 | [diff] [blame] | 2160 | |
Mike McCormack | abe70f7 | 2005-04-28 12:04:14 +0000 | [diff] [blame] | 2161 | |
| 2162 | /* Get the time of the last input event */ |
| 2163 | @REQ(get_last_input_time) |
| 2164 | @REPLY |
| 2165 | unsigned int time; |
| 2166 | @END |
| 2167 | |
| 2168 | |
Alexandre Julliard | 8ba666f | 2003-01-08 19:56:31 +0000 | [diff] [blame] | 2169 | /* Retrieve queue keyboard state for a given thread */ |
| 2170 | @REQ(get_key_state) |
| 2171 | thread_id_t tid; /* id of thread */ |
| 2172 | int key; /* optional key code or -1 */ |
| 2173 | @REPLY |
| 2174 | unsigned char state; /* state of specified key */ |
| 2175 | VARARG(keystate,bytes); /* state array for all the keys */ |
| 2176 | @END |
| 2177 | |
| 2178 | /* Set queue keyboard state for a given thread */ |
| 2179 | @REQ(set_key_state) |
| 2180 | thread_id_t tid; /* id of thread */ |
| 2181 | VARARG(keystate,bytes); /* state array for all the keys */ |
| 2182 | @END |
| 2183 | |
Alexandre Julliard | 5030bda | 2002-10-11 23:41:06 +0000 | [diff] [blame] | 2184 | /* Set the system foreground window */ |
| 2185 | @REQ(set_foreground_window) |
| 2186 | user_handle_t handle; /* handle to the foreground window */ |
| 2187 | @REPLY |
| 2188 | user_handle_t previous; /* handle to the previous foreground window */ |
| 2189 | int send_msg_old; /* whether we have to send a msg to the old window */ |
| 2190 | int send_msg_new; /* whether we have to send a msg to the new window */ |
| 2191 | @END |
| 2192 | |
| 2193 | /* Set the current thread focus window */ |
| 2194 | @REQ(set_focus_window) |
| 2195 | user_handle_t handle; /* handle to the focus window */ |
| 2196 | @REPLY |
| 2197 | user_handle_t previous; /* handle to the previous focus window */ |
| 2198 | @END |
| 2199 | |
| 2200 | /* Set the current thread active window */ |
| 2201 | @REQ(set_active_window) |
| 2202 | user_handle_t handle; /* handle to the active window */ |
| 2203 | @REPLY |
| 2204 | user_handle_t previous; /* handle to the previous active window */ |
| 2205 | @END |
Alexandre Julliard | a9e8f59 | 2002-10-12 01:24:37 +0000 | [diff] [blame] | 2206 | |
| 2207 | /* Set the current thread capture window */ |
| 2208 | @REQ(set_capture_window) |
| 2209 | user_handle_t handle; /* handle to the capture window */ |
| 2210 | unsigned int flags; /* capture flags (see below) */ |
| 2211 | @REPLY |
| 2212 | user_handle_t previous; /* handle to the previous capture window */ |
| 2213 | user_handle_t full_handle; /* full 32-bit handle of new capture window */ |
| 2214 | @END |
| 2215 | #define CAPTURE_MENU 0x01 /* capture is for a menu */ |
| 2216 | #define CAPTURE_MOVESIZE 0x02 /* capture is for moving/resizing */ |
Alexandre Julliard | 11e3523 | 2002-10-17 01:24:33 +0000 | [diff] [blame] | 2217 | |
| 2218 | |
| 2219 | /* Set the current thread caret window */ |
| 2220 | @REQ(set_caret_window) |
| 2221 | user_handle_t handle; /* handle to the caret window */ |
| 2222 | int width; /* caret width */ |
| 2223 | int height; /* caret height */ |
| 2224 | @REPLY |
| 2225 | user_handle_t previous; /* handle to the previous caret window */ |
| 2226 | rectangle_t old_rect; /* previous caret rectangle */ |
| 2227 | int old_hide; /* previous hide count */ |
| 2228 | int old_state; /* previous caret state (1=on, 0=off) */ |
| 2229 | @END |
| 2230 | |
| 2231 | |
| 2232 | /* Set the current thread caret information */ |
| 2233 | @REQ(set_caret_info) |
| 2234 | unsigned int flags; /* caret flags (see below) */ |
| 2235 | user_handle_t handle; /* handle to the caret window */ |
| 2236 | int x; /* caret x position */ |
| 2237 | int y; /* caret y position */ |
| 2238 | int hide; /* increment for hide count (can be negative to show it) */ |
| 2239 | int state; /* caret state (1=on, 0=off, -1=toggle current state) */ |
| 2240 | @REPLY |
| 2241 | user_handle_t full_handle; /* handle to the current caret window */ |
| 2242 | rectangle_t old_rect; /* previous caret rectangle */ |
| 2243 | int old_hide; /* previous hide count */ |
| 2244 | int old_state; /* previous caret state (1=on, 0=off) */ |
| 2245 | @END |
| 2246 | #define SET_CARET_POS 0x01 /* set the caret position from x,y */ |
| 2247 | #define SET_CARET_HIDE 0x02 /* increment the caret hide count */ |
| 2248 | #define SET_CARET_STATE 0x04 /* set the caret on/off state */ |
Alexandre Julliard | 0286135 | 2002-10-29 00:41:42 +0000 | [diff] [blame] | 2249 | |
| 2250 | |
| 2251 | /* Set a window hook */ |
| 2252 | @REQ(set_hook) |
| 2253 | int id; /* id of the hook */ |
Dmitry Timoshkov | 6dba0a7 | 2005-02-03 16:40:20 +0000 | [diff] [blame] | 2254 | process_id_t pid; /* id of process to set the hook into */ |
Alexandre Julliard | 0286135 | 2002-10-29 00:41:42 +0000 | [diff] [blame] | 2255 | thread_id_t tid; /* id of thread to set the hook into */ |
Dmitry Timoshkov | 6dba0a7 | 2005-02-03 16:40:20 +0000 | [diff] [blame] | 2256 | int event_min; |
| 2257 | int event_max; |
| 2258 | int flags; |
Alexandre Julliard | 0286135 | 2002-10-29 00:41:42 +0000 | [diff] [blame] | 2259 | void* proc; /* hook procedure */ |
| 2260 | int unicode; /* is it a unicode hook? */ |
Alexandre Julliard | 14e68ba | 2002-11-20 19:54:32 +0000 | [diff] [blame] | 2261 | VARARG(module,unicode_str); /* module name */ |
Alexandre Julliard | 0286135 | 2002-10-29 00:41:42 +0000 | [diff] [blame] | 2262 | @REPLY |
| 2263 | user_handle_t handle; /* handle to the hook */ |
Alexandre Julliard | 6334235 | 2005-05-11 13:03:15 +0000 | [diff] [blame] | 2264 | unsigned int active_hooks; /* active hooks bitmap */ |
Alexandre Julliard | 0286135 | 2002-10-29 00:41:42 +0000 | [diff] [blame] | 2265 | @END |
| 2266 | |
| 2267 | |
| 2268 | /* Remove a window hook */ |
| 2269 | @REQ(remove_hook) |
| 2270 | user_handle_t handle; /* handle to the hook */ |
| 2271 | int id; /* id of the hook if handle is 0 */ |
| 2272 | void* proc; /* hook procedure if handle is 0 */ |
Alexandre Julliard | 6334235 | 2005-05-11 13:03:15 +0000 | [diff] [blame] | 2273 | @REPLY |
| 2274 | unsigned int active_hooks; /* active hooks bitmap */ |
Alexandre Julliard | 0286135 | 2002-10-29 00:41:42 +0000 | [diff] [blame] | 2275 | @END |
| 2276 | |
| 2277 | |
| 2278 | /* Start calling a hook chain */ |
| 2279 | @REQ(start_hook_chain) |
| 2280 | int id; /* id of the hook */ |
Dmitry Timoshkov | 6dba0a7 | 2005-02-03 16:40:20 +0000 | [diff] [blame] | 2281 | int event; /* signalled event */ |
| 2282 | user_handle_t window; /* handle to the event window */ |
| 2283 | int object_id; /* object id for out of context winevent */ |
| 2284 | int child_id; /* child id for out of context winevent */ |
Alexandre Julliard | 0286135 | 2002-10-29 00:41:42 +0000 | [diff] [blame] | 2285 | @REPLY |
| 2286 | user_handle_t handle; /* handle to the next hook */ |
Alexandre Julliard | ca3ac8f | 2003-07-11 21:55:58 +0000 | [diff] [blame] | 2287 | process_id_t pid; /* process id for low-level keyboard/mouse hooks */ |
| 2288 | thread_id_t tid; /* thread id for low-level keyboard/mouse hooks */ |
Alexandre Julliard | 0286135 | 2002-10-29 00:41:42 +0000 | [diff] [blame] | 2289 | void* proc; /* hook procedure */ |
| 2290 | int unicode; /* is it a unicode hook? */ |
Alexandre Julliard | 6334235 | 2005-05-11 13:03:15 +0000 | [diff] [blame] | 2291 | unsigned int active_hooks; /* active hooks bitmap */ |
Alexandre Julliard | 14e68ba | 2002-11-20 19:54:32 +0000 | [diff] [blame] | 2292 | VARARG(module,unicode_str); /* module name */ |
Alexandre Julliard | 0286135 | 2002-10-29 00:41:42 +0000 | [diff] [blame] | 2293 | @END |
| 2294 | |
| 2295 | |
| 2296 | /* Finished calling a hook chain */ |
| 2297 | @REQ(finish_hook_chain) |
| 2298 | int id; /* id of the hook */ |
| 2299 | @END |
| 2300 | |
| 2301 | |
| 2302 | /* Get the next hook to call */ |
| 2303 | @REQ(get_next_hook) |
| 2304 | user_handle_t handle; /* handle to the current hook */ |
Dmitry Timoshkov | 6dba0a7 | 2005-02-03 16:40:20 +0000 | [diff] [blame] | 2305 | int event; /* signalled event */ |
| 2306 | user_handle_t window; /* handle to the event window */ |
| 2307 | int object_id; /* object id for out of context winevent */ |
| 2308 | int child_id; /* child id for out of context winevent */ |
Alexandre Julliard | 0286135 | 2002-10-29 00:41:42 +0000 | [diff] [blame] | 2309 | @REPLY |
| 2310 | user_handle_t next; /* handle to the next hook */ |
| 2311 | int id; /* id of the next hook */ |
Alexandre Julliard | ca3ac8f | 2003-07-11 21:55:58 +0000 | [diff] [blame] | 2312 | process_id_t pid; /* process id for low-level keyboard/mouse hooks */ |
| 2313 | thread_id_t tid; /* thread id for low-level keyboard/mouse hooks */ |
Alexandre Julliard | 0286135 | 2002-10-29 00:41:42 +0000 | [diff] [blame] | 2314 | void* proc; /* next hook procedure */ |
| 2315 | int prev_unicode; /* was the previous a unicode hook? */ |
| 2316 | int next_unicode; /* is the next a unicode hook? */ |
Alexandre Julliard | 14e68ba | 2002-11-20 19:54:32 +0000 | [diff] [blame] | 2317 | VARARG(module,unicode_str); /* module name */ |
Alexandre Julliard | 0286135 | 2002-10-29 00:41:42 +0000 | [diff] [blame] | 2318 | @END |
Ulrich Czekalla | b2df5f9 | 2003-06-23 23:02:02 +0000 | [diff] [blame] | 2319 | |
| 2320 | |
Alexandre Julliard | bfce151 | 2003-12-10 04:08:06 +0000 | [diff] [blame] | 2321 | /* Create a window class */ |
| 2322 | @REQ(create_class) |
| 2323 | int local; /* is it a local class? */ |
| 2324 | atom_t atom; /* class atom */ |
| 2325 | unsigned int style; /* class style */ |
| 2326 | void* instance; /* module instance */ |
| 2327 | int extra; /* number of extra class bytes */ |
| 2328 | int win_extra; /* number of window extra bytes */ |
Alexandre Julliard | bd13ab8 | 2003-12-11 05:34:53 +0000 | [diff] [blame] | 2329 | void* client_ptr; /* pointer to class in client address space */ |
Alexandre Julliard | bfce151 | 2003-12-10 04:08:06 +0000 | [diff] [blame] | 2330 | @END |
| 2331 | |
| 2332 | |
| 2333 | /* Destroy a window class */ |
| 2334 | @REQ(destroy_class) |
| 2335 | atom_t atom; /* class atom */ |
| 2336 | void* instance; /* module instance */ |
Alexandre Julliard | bd13ab8 | 2003-12-11 05:34:53 +0000 | [diff] [blame] | 2337 | @REPLY |
| 2338 | void* client_ptr; /* pointer to class in client address space */ |
Alexandre Julliard | bfce151 | 2003-12-10 04:08:06 +0000 | [diff] [blame] | 2339 | @END |
| 2340 | |
| 2341 | |
| 2342 | /* Set some information in a class */ |
| 2343 | @REQ(set_class_info) |
| 2344 | user_handle_t window; /* handle to the window */ |
| 2345 | unsigned int flags; /* flags for info to set (see below) */ |
| 2346 | atom_t atom; /* class atom */ |
| 2347 | unsigned int style; /* class style */ |
| 2348 | int win_extra; /* number of window extra bytes */ |
| 2349 | void* instance; /* module instance */ |
| 2350 | int extra_offset; /* offset to set in extra bytes */ |
| 2351 | size_t extra_size; /* size to set in extra bytes */ |
| 2352 | unsigned int extra_value; /* value to set in extra bytes */ |
| 2353 | @REPLY |
| 2354 | atom_t old_atom; /* previous class atom */ |
| 2355 | unsigned int old_style; /* previous class style */ |
| 2356 | int old_extra; /* previous number of class extra bytes */ |
| 2357 | int old_win_extra; /* previous number of window extra bytes */ |
| 2358 | void* old_instance; /* previous module instance */ |
| 2359 | unsigned int old_extra_value; /* old value in extra bytes */ |
| 2360 | @END |
| 2361 | #define SET_CLASS_ATOM 0x0001 |
| 2362 | #define SET_CLASS_STYLE 0x0002 |
| 2363 | #define SET_CLASS_WINEXTRA 0x0004 |
| 2364 | #define SET_CLASS_INSTANCE 0x0008 |
| 2365 | #define SET_CLASS_EXTRA 0x0010 |
| 2366 | |
| 2367 | |
Ulrich Czekalla | b2df5f9 | 2003-06-23 23:02:02 +0000 | [diff] [blame] | 2368 | /* Set/get clipboard information */ |
| 2369 | @REQ(set_clipboard_info) |
| 2370 | unsigned int flags; /* flags for fields to set (see below) */ |
| 2371 | user_handle_t clipboard; /* clipboard window */ |
| 2372 | user_handle_t owner; /* clipboard owner */ |
| 2373 | user_handle_t viewer; /* first clipboard viewer */ |
| 2374 | unsigned int seqno; /* change sequence number */ |
| 2375 | @REPLY |
| 2376 | unsigned int flags; /* status flags (see below) */ |
| 2377 | user_handle_t old_clipboard; /* old clipboard window */ |
| 2378 | user_handle_t old_owner; /* old clipboard owner */ |
| 2379 | user_handle_t old_viewer; /* old clipboard viewer */ |
| 2380 | unsigned int seqno; /* current sequence number */ |
| 2381 | @END |
| 2382 | |
| 2383 | #define SET_CB_OPEN 0x001 |
| 2384 | #define SET_CB_OWNER 0x002 |
| 2385 | #define SET_CB_VIEWER 0x004 |
| 2386 | #define SET_CB_SEQNO 0x008 |
| 2387 | #define SET_CB_RELOWNER 0x010 |
| 2388 | #define SET_CB_CLOSE 0x020 |
| 2389 | #define CB_OPEN 0x040 |
| 2390 | #define CB_OWNER 0x080 |
Ulrich Czekalla | 5067909 | 2005-03-07 19:31:46 +0000 | [diff] [blame] | 2391 | #define CB_PROCESS 0x100 |
Mike McCormack | 36cd6f5 | 2003-07-24 00:07:00 +0000 | [diff] [blame] | 2392 | |
| 2393 | |
| 2394 | /* Open a security token */ |
| 2395 | @REQ(open_token) |
| 2396 | obj_handle_t handle; /* handle to the thread or process */ |
| 2397 | unsigned int flags; /* flags (see below) */ |
| 2398 | @REPLY |
| 2399 | obj_handle_t token; /* handle to the token */ |
| 2400 | @END |
| 2401 | #define OPEN_TOKEN_THREAD 1 |
| 2402 | #define OPEN_TOKEN_AS_SELF 2 |
Alexandre Julliard | 8d174d3 | 2003-10-07 03:40:23 +0000 | [diff] [blame] | 2403 | |
| 2404 | |
| 2405 | /* Set/get the global windows */ |
| 2406 | @REQ(set_global_windows) |
| 2407 | unsigned int flags; /* flags for fields to set (see below) */ |
| 2408 | user_handle_t shell_window; /* handle to the new shell window */ |
| 2409 | user_handle_t shell_listview; /* handle to the new shell listview window */ |
| 2410 | user_handle_t progman_window; /* handle to the new program manager window */ |
| 2411 | user_handle_t taskman_window; /* handle to the new task manager window */ |
| 2412 | @REPLY |
| 2413 | user_handle_t old_shell_window; /* handle to the shell window */ |
| 2414 | user_handle_t old_shell_listview; /* handle to the shell listview window */ |
| 2415 | user_handle_t old_progman_window; /* handle to the new program manager window */ |
| 2416 | user_handle_t old_taskman_window; /* handle to the new task manager window */ |
| 2417 | @END |
| 2418 | #define SET_GLOBAL_SHELL_WINDOWS 0x01 /* set both main shell and listview windows */ |
| 2419 | #define SET_GLOBAL_PROGMAN_WINDOW 0x02 |
| 2420 | #define SET_GLOBAL_TASKMAN_WINDOW 0x04 |
Robert Shearman | b0f02b2 | 2005-02-11 11:52:06 +0000 | [diff] [blame] | 2421 | |
| 2422 | /* Adjust the privileges held by a token */ |
| 2423 | @REQ(adjust_token_privileges) |
| 2424 | obj_handle_t handle; /* handle to the token */ |
| 2425 | int disable_all; /* disable all privileges? */ |
| 2426 | int get_modified_state; /* get modified privileges? */ |
| 2427 | VARARG(privileges,LUID_AND_ATTRIBUTES); /* privileges to enable/disable/remove */ |
| 2428 | @REPLY |
| 2429 | unsigned int len; /* total length in bytes required to store token privileges */ |
| 2430 | VARARG(privileges,LUID_AND_ATTRIBUTES); /* modified privileges */ |
| 2431 | @END |
| 2432 | |
| 2433 | /* Retrieves the set of privileges held by or available to a token */ |
| 2434 | @REQ(get_token_privileges) |
| 2435 | obj_handle_t handle; /* handle to the token */ |
| 2436 | @REPLY |
| 2437 | unsigned int len; /* total length in bytes required to store token privileges */ |
| 2438 | VARARG(privileges,LUID_AND_ATTRIBUTES); /* privileges held by or available to a token */ |
| 2439 | @END |
| 2440 | |
Robert Shearman | d2ea92d | 2005-04-22 21:17:15 +0000 | [diff] [blame] | 2441 | /* Check the token has the required privileges */ |
| 2442 | @REQ(check_token_privileges) |
| 2443 | obj_handle_t handle; /* handle to the token */ |
| 2444 | int all_required; /* are all the privileges required for the check to succeed? */ |
| 2445 | VARARG(privileges,LUID_AND_ATTRIBUTES); /* privileges to check */ |
| 2446 | @REPLY |
| 2447 | int has_privileges; /* does the token have the required privileges? */ |
| 2448 | VARARG(privileges,LUID_AND_ATTRIBUTES); /* privileges held by or available to a token */ |
| 2449 | @END |
| 2450 | |
Robert Shearman | b0f02b2 | 2005-02-11 11:52:06 +0000 | [diff] [blame] | 2451 | @REQ(duplicate_token) |
| 2452 | obj_handle_t handle; /* handle to the token to duplicate */ |
| 2453 | unsigned int access; /* access rights to the new token */ |
| 2454 | int inherit; /* inherit flag */ |
| 2455 | int primary; /* is the new token to be a primary one? */ |
| 2456 | int impersonation_level; /* impersonation level of the new token */ |
| 2457 | @REPLY |
| 2458 | obj_handle_t new_handle; /* duplicated handle */ |
| 2459 | @END |
Mike McCormack | 2ab6a77 | 2005-03-30 19:02:15 +0000 | [diff] [blame] | 2460 | |
Robert Shearman | 4ad9341 | 2005-05-24 12:32:18 +0000 | [diff] [blame] | 2461 | @REQ(access_check) |
| 2462 | obj_handle_t handle; /* handle to the token */ |
| 2463 | unsigned int desired_access; /* desired access to the object */ |
| 2464 | unsigned int mapping_read; /* mapping from generic read to specific rights */ |
| 2465 | unsigned int mapping_write; /* mapping from generic write to specific rights */ |
| 2466 | unsigned int mapping_execute; /* mapping from generic execute to specific rights */ |
| 2467 | unsigned int mapping_all; /* mapping from generic all to specific rights */ |
| 2468 | VARARG(sd,security_descriptor); /* security descriptor to check */ |
| 2469 | @REPLY |
| 2470 | unsigned int access_granted; /* access rights actually granted */ |
| 2471 | unsigned int access_status; /* was access granted? */ |
| 2472 | unsigned int privileges_len; /* length needed to store privileges */ |
| 2473 | VARARG(privileges,LUID_AND_ATTRIBUTES); /* privileges used during access check */ |
| 2474 | @END |
Mike McCormack | 2ab6a77 | 2005-03-30 19:02:15 +0000 | [diff] [blame] | 2475 | |
Robert Shearman | 91eaea5 | 2005-07-18 13:22:55 +0000 | [diff] [blame] | 2476 | @REQ(get_token_user) |
| 2477 | obj_handle_t handle; /* handle to the token */ |
| 2478 | @REPLY |
| 2479 | size_t user_len; /* length needed to store user */ |
| 2480 | VARARG(user,SID); /* sid of the user the token represents */ |
| 2481 | @END |
| 2482 | |
Mike McCormack | 2ab6a77 | 2005-03-30 19:02:15 +0000 | [diff] [blame] | 2483 | /* Create a mailslot */ |
| 2484 | @REQ(create_mailslot) |
Vitaliy Margolen | a996000 | 2005-10-27 18:30:37 +0000 | [diff] [blame] | 2485 | unsigned int access; /* wanted access rights */ |
| 2486 | unsigned int attributes; /* object attributes */ |
Mike McCormack | 2ab6a77 | 2005-03-30 19:02:15 +0000 | [diff] [blame] | 2487 | unsigned int max_msgsize; |
Alexandre Julliard | 86397e1 | 2005-11-21 15:23:49 +0000 | [diff] [blame] | 2488 | int read_timeout; |
Mike McCormack | 2ab6a77 | 2005-03-30 19:02:15 +0000 | [diff] [blame] | 2489 | VARARG(name,unicode_str); /* mailslot name */ |
| 2490 | @REPLY |
| 2491 | obj_handle_t handle; /* handle to the mailslot */ |
| 2492 | @END |
| 2493 | |
| 2494 | |
| 2495 | /* Open an existing mailslot */ |
| 2496 | @REQ(open_mailslot) |
| 2497 | unsigned int access; |
Vitaliy Margolen | a996000 | 2005-10-27 18:30:37 +0000 | [diff] [blame] | 2498 | unsigned int attributes; /* object attributes */ |
Mike McCormack | 2ab6a77 | 2005-03-30 19:02:15 +0000 | [diff] [blame] | 2499 | unsigned int sharing; /* sharing mode */ |
| 2500 | VARARG(name,unicode_str); /* mailslot name */ |
| 2501 | @REPLY |
| 2502 | obj_handle_t handle; /* handle to the mailslot */ |
| 2503 | @END |
| 2504 | |
| 2505 | |
| 2506 | /* Set mailslot information */ |
| 2507 | @REQ(set_mailslot_info) |
| 2508 | obj_handle_t handle; /* handle to the mailslot */ |
| 2509 | unsigned int flags; |
Alexandre Julliard | 86397e1 | 2005-11-21 15:23:49 +0000 | [diff] [blame] | 2510 | int read_timeout; |
Mike McCormack | 2ab6a77 | 2005-03-30 19:02:15 +0000 | [diff] [blame] | 2511 | @REPLY |
| 2512 | unsigned int max_msgsize; |
Alexandre Julliard | 86397e1 | 2005-11-21 15:23:49 +0000 | [diff] [blame] | 2513 | int read_timeout; |
Mike McCormack | 2ab6a77 | 2005-03-30 19:02:15 +0000 | [diff] [blame] | 2514 | unsigned int msg_count; |
| 2515 | unsigned int next_msgsize; |
| 2516 | @END |
| 2517 | #define MAILSLOT_SET_READ_TIMEOUT 1 |
Vitaliy Margolen | 3c6bdcc | 2005-11-29 17:21:05 +0100 | [diff] [blame] | 2518 | |
| 2519 | |
| 2520 | /* Create a directory object */ |
| 2521 | @REQ(create_directory) |
| 2522 | unsigned int access; /* access flags */ |
| 2523 | unsigned int attributes; /* object attributes */ |
| 2524 | obj_handle_t rootdir; /* root directory */ |
| 2525 | VARARG(directory_name,unicode_str); /* Directory name */ |
| 2526 | @REPLY |
| 2527 | obj_handle_t handle; /* handle to the directory */ |
| 2528 | @END |
| 2529 | |
| 2530 | |
| 2531 | /* Open a directory object */ |
| 2532 | @REQ(open_directory) |
| 2533 | unsigned int access; /* access flags */ |
| 2534 | unsigned int attributes; /* object attributes */ |
| 2535 | obj_handle_t rootdir; /* root directory */ |
| 2536 | VARARG(directory_name,unicode_str); /* Directory name */ |
| 2537 | @REPLY |
| 2538 | obj_handle_t handle; /* handle to the directory */ |
| 2539 | @END |
Vitaliy Margolen | 80444df | 2005-11-30 19:22:57 +0100 | [diff] [blame] | 2540 | |
| 2541 | |
| 2542 | /* Create a symbolic link object */ |
| 2543 | @REQ(create_symlink) |
| 2544 | unsigned int access; /* access flags */ |
| 2545 | unsigned int attributes; /* object attributes */ |
| 2546 | obj_handle_t rootdir; /* root directory */ |
| 2547 | size_t name_len; /* length of the symlink name in bytes */ |
| 2548 | VARARG(name,unicode_str,name_len); /* symlink name */ |
| 2549 | VARARG(target_name,unicode_str); /* target name */ |
| 2550 | @REPLY |
| 2551 | obj_handle_t handle; /* handle to the symlink */ |
| 2552 | @END |
| 2553 | |
| 2554 | |
| 2555 | /* Open a symbolic link object */ |
| 2556 | @REQ(open_symlink) |
| 2557 | unsigned int access; /* access flags */ |
| 2558 | unsigned int attributes; /* object attributes */ |
| 2559 | obj_handle_t rootdir; /* root directory */ |
| 2560 | VARARG(name,unicode_str); /* symlink name */ |
| 2561 | @REPLY |
| 2562 | obj_handle_t handle; /* handle to the symlink */ |
| 2563 | @END |
| 2564 | |
| 2565 | |
| 2566 | /* Query a symbolic link object */ |
| 2567 | @REQ(query_symlink) |
| 2568 | obj_handle_t handle; /* handle to the symlink */ |
| 2569 | @REPLY |
| 2570 | VARARG(target_name,unicode_str); /* target name */ |
| 2571 | @END |