2001-07-19 02:35:37 +02:00
|
|
|
/* -*- C -*-
|
|
|
|
*
|
|
|
|
* Wine server protocol definition
|
|
|
|
*
|
|
|
|
* Copyright (C) 2001 Alexandre Julliard
|
|
|
|
*
|
|
|
|
* This file is used by tools/make_requests to build the
|
|
|
|
* protocol structures in include/wine/server_protocol.h
|
2002-03-10 00:29:33 +01:00
|
|
|
*
|
|
|
|
* This library is free software; you can redistribute it and/or
|
|
|
|
* modify it under the terms of the GNU Lesser General Public
|
|
|
|
* License as published by the Free Software Foundation; either
|
|
|
|
* version 2.1 of the License, or (at your option) any later version.
|
|
|
|
*
|
|
|
|
* This library is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
|
|
* Lesser General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU Lesser General Public
|
|
|
|
* License along with this library; if not, write to the Free Software
|
|
|
|
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
2001-07-19 02:35:37 +02:00
|
|
|
*/
|
|
|
|
|
|
|
|
@HEADER /* start of C declarations */
|
|
|
|
|
2003-09-08 21:04:01 +02:00
|
|
|
#include <stdarg.h>
|
2001-07-19 02:35:37 +02:00
|
|
|
#include <stdlib.h>
|
|
|
|
#include <time.h>
|
2003-09-08 21:04:01 +02:00
|
|
|
|
|
|
|
#include <windef.h>
|
|
|
|
#include <winbase.h>
|
2001-07-19 02:35:37 +02:00
|
|
|
|
|
|
|
struct request_header
|
|
|
|
{
|
2001-11-30 19:46:42 +01:00
|
|
|
int req; /* request code */
|
|
|
|
size_t request_size; /* request variable part size */
|
|
|
|
size_t reply_size; /* reply variable part maximum size */
|
2001-07-19 02:35:37 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
struct reply_header
|
|
|
|
{
|
2001-11-30 19:46:42 +01:00
|
|
|
unsigned int error; /* error result */
|
|
|
|
size_t reply_size; /* reply variable part size */
|
2001-07-19 02:35:37 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
/* placeholder structure for the maximum allowed request size */
|
|
|
|
/* this is used to construct the generic_request union */
|
|
|
|
struct request_max_size
|
|
|
|
{
|
|
|
|
int pad[16]; /* the max request size is 16 ints */
|
|
|
|
};
|
|
|
|
|
2002-10-22 01:43:04 +02:00
|
|
|
typedef void *obj_handle_t;
|
|
|
|
typedef void *user_handle_t;
|
2002-10-19 01:46:28 +02:00
|
|
|
typedef unsigned short atom_t;
|
2002-10-03 21:54:57 +02:00
|
|
|
typedef unsigned int process_id_t;
|
|
|
|
typedef unsigned int thread_id_t;
|
2001-07-19 02:35:37 +02:00
|
|
|
|
2001-09-24 03:19:59 +02:00
|
|
|
#define FIRST_USER_HANDLE 0x0020 /* first possible value for low word of user handle */
|
|
|
|
#define LAST_USER_HANDLE 0xffef /* last possible value for low word of user handle */
|
|
|
|
|
|
|
|
|
2001-07-19 02:35:37 +02:00
|
|
|
/* definitions of the event data depending on the event code */
|
|
|
|
struct debug_event_exception
|
|
|
|
{
|
|
|
|
EXCEPTION_RECORD record; /* exception record */
|
|
|
|
int first; /* first chance exception? */
|
|
|
|
};
|
|
|
|
struct debug_event_create_thread
|
|
|
|
{
|
2002-05-30 22:12:58 +02:00
|
|
|
obj_handle_t handle; /* handle to the new thread */
|
|
|
|
void *teb; /* thread teb (in debugged process address space) */
|
|
|
|
void *start; /* thread startup routine */
|
2001-07-19 02:35:37 +02:00
|
|
|
};
|
|
|
|
struct debug_event_create_process
|
|
|
|
{
|
2002-05-30 22:12:58 +02:00
|
|
|
obj_handle_t file; /* handle to the process exe file */
|
|
|
|
obj_handle_t process; /* handle to the new process */
|
|
|
|
obj_handle_t thread; /* handle to the new thread */
|
|
|
|
void *base; /* base of executable image */
|
|
|
|
int dbg_offset; /* offset of debug info in file */
|
|
|
|
int dbg_size; /* size of debug info */
|
|
|
|
void *teb; /* thread teb (in debugged process address space) */
|
|
|
|
void *start; /* thread startup routine */
|
|
|
|
void *name; /* image name (optional) */
|
|
|
|
int unicode; /* is it Unicode? */
|
2001-07-19 02:35:37 +02:00
|
|
|
};
|
|
|
|
struct debug_event_exit
|
|
|
|
{
|
2002-05-30 22:12:58 +02:00
|
|
|
int exit_code; /* thread or process exit code */
|
2001-07-19 02:35:37 +02:00
|
|
|
};
|
|
|
|
struct debug_event_load_dll
|
|
|
|
{
|
2002-05-30 22:12:58 +02:00
|
|
|
obj_handle_t handle; /* file handle for the dll */
|
|
|
|
void *base; /* base address of the dll */
|
|
|
|
int dbg_offset; /* offset of debug info in file */
|
|
|
|
int dbg_size; /* size of debug info */
|
|
|
|
void *name; /* image name (optional) */
|
|
|
|
int unicode; /* is it Unicode? */
|
2001-07-19 02:35:37 +02:00
|
|
|
};
|
|
|
|
struct debug_event_unload_dll
|
|
|
|
{
|
|
|
|
void *base; /* base address of the dll */
|
|
|
|
};
|
|
|
|
struct debug_event_output_string
|
|
|
|
{
|
|
|
|
void *string; /* string to display (in debugged process address space) */
|
|
|
|
int unicode; /* is it Unicode? */
|
|
|
|
int length; /* string length */
|
|
|
|
};
|
|
|
|
struct debug_event_rip_info
|
|
|
|
{
|
|
|
|
int error; /* ??? */
|
|
|
|
int type; /* ??? */
|
|
|
|
};
|
|
|
|
union debug_event_data
|
|
|
|
{
|
|
|
|
struct debug_event_exception exception;
|
|
|
|
struct debug_event_create_thread create_thread;
|
|
|
|
struct debug_event_create_process create_process;
|
|
|
|
struct debug_event_exit exit;
|
|
|
|
struct debug_event_load_dll load_dll;
|
|
|
|
struct debug_event_unload_dll unload_dll;
|
|
|
|
struct debug_event_output_string output_string;
|
|
|
|
struct debug_event_rip_info rip_info;
|
|
|
|
};
|
|
|
|
|
|
|
|
/* debug event data */
|
|
|
|
typedef struct
|
|
|
|
{
|
|
|
|
int code; /* event code */
|
|
|
|
union debug_event_data info; /* event information */
|
|
|
|
} debug_event_t;
|
|
|
|
|
|
|
|
/* structure used in sending an fd from client to server */
|
|
|
|
struct send_fd
|
|
|
|
{
|
2002-10-03 21:54:57 +02:00
|
|
|
thread_id_t tid; /* thread id */
|
|
|
|
int fd; /* file descriptor on client-side */
|
2001-07-19 02:35:37 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
/* structure sent by the server on the wait fifo */
|
|
|
|
struct wake_up_reply
|
|
|
|
{
|
|
|
|
void *cookie; /* magic cookie that was passed in select_request */
|
|
|
|
int signaled; /* wait result */
|
|
|
|
};
|
|
|
|
|
2003-04-03 00:48:59 +02:00
|
|
|
/* structure for absolute timeouts */
|
|
|
|
typedef struct
|
|
|
|
{
|
|
|
|
int sec; /* seconds since Unix epoch */
|
|
|
|
int usec; /* microseconds */
|
|
|
|
} abs_time_t;
|
|
|
|
|
2001-10-12 21:10:26 +02:00
|
|
|
/* structure returned in the list of window properties */
|
|
|
|
typedef struct
|
|
|
|
{
|
|
|
|
atom_t atom; /* property atom */
|
|
|
|
short string; /* was atom a string originally? */
|
2002-05-30 22:12:58 +02:00
|
|
|
obj_handle_t handle; /* handle stored in property */
|
2001-10-12 21:10:26 +02:00
|
|
|
} property_data_t;
|
|
|
|
|
2001-10-16 23:55:37 +02:00
|
|
|
/* structure to specify window rectangles */
|
|
|
|
typedef struct
|
|
|
|
{
|
|
|
|
int left;
|
|
|
|
int top;
|
|
|
|
int right;
|
|
|
|
int bottom;
|
|
|
|
} rectangle_t;
|
|
|
|
|
2001-11-30 19:46:42 +01:00
|
|
|
/* structure for console char/attribute info */
|
|
|
|
typedef struct
|
|
|
|
{
|
|
|
|
WCHAR ch;
|
|
|
|
unsigned short attr;
|
|
|
|
} char_info_t;
|
|
|
|
|
2005-05-23 18:33:00 +02:00
|
|
|
#define MAX_ACL_LEN 65535
|
|
|
|
|
|
|
|
struct security_descriptor
|
|
|
|
{
|
|
|
|
unsigned int control; /* SE_ flags */
|
|
|
|
size_t owner_len;
|
|
|
|
size_t group_len;
|
|
|
|
size_t sacl_len;
|
|
|
|
size_t dacl_len;
|
|
|
|
/* VARARGS(owner,SID); */
|
|
|
|
/* VARARGS(group,SID); */
|
|
|
|
/* VARARGS(sacl,ACL); */
|
|
|
|
/* VARARGS(dacl,ACL); */
|
|
|
|
};
|
|
|
|
|
2001-07-19 02:35:37 +02:00
|
|
|
/****************************************************************/
|
|
|
|
/* Request declarations */
|
|
|
|
|
|
|
|
/* Create a new process from the context of the parent */
|
|
|
|
@REQ(new_process)
|
|
|
|
int inherit_all; /* inherit all handles from parent */
|
2005-07-12 22:27:09 +02:00
|
|
|
unsigned int create_flags; /* creation flags */
|
2003-02-24 21:51:50 +01:00
|
|
|
int unix_pid; /* Unix pid of new process */
|
2002-05-30 22:12:58 +02:00
|
|
|
obj_handle_t exe_file; /* file handle for main exe */
|
|
|
|
obj_handle_t hstdin; /* handle for stdin */
|
|
|
|
obj_handle_t hstdout; /* handle for stdout */
|
|
|
|
obj_handle_t hstderr; /* handle for stderr */
|
2002-03-29 19:28:56 +01:00
|
|
|
VARARG(info,startup_info); /* startup information */
|
2004-07-16 05:54:35 +02:00
|
|
|
VARARG(env,unicode_str); /* environment for new process */
|
2001-07-19 02:35:37 +02:00
|
|
|
@REPLY
|
2002-05-30 22:12:58 +02:00
|
|
|
obj_handle_t info; /* new process info handle */
|
2001-07-19 02:35:37 +02:00
|
|
|
@END
|
|
|
|
|
|
|
|
|
|
|
|
/* Retrieve information about a newly started process */
|
|
|
|
@REQ(get_new_process_info)
|
2005-12-09 12:13:11 +01:00
|
|
|
obj_handle_t info; /* info handle returned from new_process_request */
|
|
|
|
unsigned int process_access; /* access rights for process object */
|
|
|
|
unsigned int process_attr; /* attributes for process object */
|
|
|
|
unsigned int thread_access; /* access rights for thread object */
|
|
|
|
unsigned int thread_attr; /* attributes for thread object */
|
2001-07-19 02:35:37 +02:00
|
|
|
@REPLY
|
2002-10-03 21:54:57 +02:00
|
|
|
process_id_t pid; /* process id */
|
2002-05-30 22:12:58 +02:00
|
|
|
obj_handle_t phandle; /* process handle (in the current process) */
|
2002-10-03 21:54:57 +02:00
|
|
|
thread_id_t tid; /* thread id */
|
2002-05-30 22:12:58 +02:00
|
|
|
obj_handle_t thandle; /* thread handle (in the current process) */
|
2002-05-24 23:20:27 +02:00
|
|
|
int success; /* did the process start successfully? */
|
2001-07-19 02:35:37 +02:00
|
|
|
@END
|
|
|
|
|
|
|
|
|
|
|
|
/* Create a new thread from the context of the parent */
|
|
|
|
@REQ(new_thread)
|
2005-12-09 12:13:11 +01:00
|
|
|
unsigned int access; /* wanted access rights */
|
|
|
|
unsigned int attributes; /* object attributes */
|
2001-07-19 02:35:37 +02:00
|
|
|
int suspend; /* new thread should be suspended on creation */
|
|
|
|
int request_fd; /* fd for request pipe */
|
|
|
|
@REPLY
|
2002-10-03 21:54:57 +02:00
|
|
|
thread_id_t tid; /* thread id */
|
2002-05-30 22:12:58 +02:00
|
|
|
obj_handle_t handle; /* thread handle (in the current process) */
|
2001-07-19 02:35:37 +02:00
|
|
|
@END
|
|
|
|
|
|
|
|
|
2002-03-29 19:28:56 +01:00
|
|
|
/* Retrieve the new process startup info */
|
|
|
|
@REQ(get_startup_info)
|
|
|
|
@REPLY
|
2005-07-12 22:27:09 +02:00
|
|
|
obj_handle_t exe_file; /* file handle for main exe */
|
|
|
|
obj_handle_t hstdin; /* handle for stdin */
|
|
|
|
obj_handle_t hstdout; /* handle for stdout */
|
|
|
|
obj_handle_t hstderr; /* handle for stderr */
|
2002-03-29 19:28:56 +01:00
|
|
|
VARARG(info,startup_info); /* startup information */
|
2004-07-16 05:54:35 +02:00
|
|
|
VARARG(env,unicode_str); /* environment */
|
2001-07-19 02:35:37 +02:00
|
|
|
@END
|
|
|
|
|
|
|
|
|
|
|
|
/* Signal the end of the process initialization */
|
|
|
|
@REQ(init_process_done)
|
|
|
|
void* module; /* main module base address */
|
2002-03-22 01:21:23 +01:00
|
|
|
size_t module_size; /* main module size */
|
2001-07-19 02:35:37 +02:00
|
|
|
void* entry; /* process entry point */
|
|
|
|
void* name; /* ptr to ptr to name (in process addr space) */
|
2002-05-30 22:12:58 +02:00
|
|
|
obj_handle_t exe_file; /* file handle for main exe */
|
2001-07-19 02:35:37 +02:00
|
|
|
int gui; /* is it a GUI process? */
|
2003-09-30 03:04:19 +02:00
|
|
|
VARARG(filename,unicode_str); /* file name of main exe */
|
2001-07-19 02:35:37 +02:00
|
|
|
@END
|
|
|
|
|
|
|
|
|
|
|
|
/* Initialize a thread; called from the child after fork()/clone() */
|
|
|
|
@REQ(init_thread)
|
|
|
|
int unix_pid; /* Unix pid of new thread */
|
2003-03-22 22:00:09 +01:00
|
|
|
int unix_tid; /* Unix tid of new thread */
|
2001-07-19 02:35:37 +02:00
|
|
|
void* teb; /* TEB of new thread (in thread address space) */
|
2005-07-13 14:12:43 +02:00
|
|
|
void* peb; /* address of PEB (in thread address space) */
|
2001-07-19 02:35:37 +02:00
|
|
|
void* entry; /* thread entry point (in thread address space) */
|
2005-07-13 14:12:43 +02:00
|
|
|
void* ldt_copy; /* address of LDT copy (in thread address space) */
|
2001-07-19 02:35:37 +02:00
|
|
|
int reply_fd; /* fd for reply pipe */
|
|
|
|
int wait_fd; /* fd for blocking calls pipe */
|
2005-07-13 14:12:43 +02:00
|
|
|
int debug_level; /* new debug level */
|
2001-07-19 02:35:37 +02:00
|
|
|
@REPLY
|
2002-10-03 21:54:57 +02:00
|
|
|
process_id_t pid; /* process id of the new thread's process */
|
|
|
|
thread_id_t tid; /* thread id of the new thread */
|
2005-07-13 21:43:35 +02:00
|
|
|
size_t info_size; /* total size of startup info */
|
2005-07-14 12:32:46 +02:00
|
|
|
time_t server_start; /* server start time */
|
2001-07-19 02:35:37 +02:00
|
|
|
int version; /* protocol version */
|
|
|
|
@END
|
|
|
|
|
|
|
|
|
|
|
|
/* Terminate a process */
|
|
|
|
@REQ(terminate_process)
|
2002-05-30 22:12:58 +02:00
|
|
|
obj_handle_t handle; /* process handle to terminate */
|
2001-07-19 02:35:37 +02:00
|
|
|
int exit_code; /* process exit code */
|
|
|
|
@REPLY
|
|
|
|
int self; /* suicide? */
|
|
|
|
@END
|
|
|
|
|
|
|
|
|
|
|
|
/* Terminate a thread */
|
|
|
|
@REQ(terminate_thread)
|
2002-05-30 22:12:58 +02:00
|
|
|
obj_handle_t handle; /* thread handle to terminate */
|
2001-07-19 02:35:37 +02:00
|
|
|
int exit_code; /* thread exit code */
|
|
|
|
@REPLY
|
|
|
|
int self; /* suicide? */
|
|
|
|
int last; /* last thread in this process? */
|
|
|
|
@END
|
|
|
|
|
|
|
|
|
|
|
|
/* Retrieve information about a process */
|
|
|
|
@REQ(get_process_info)
|
2002-05-30 22:12:58 +02:00
|
|
|
obj_handle_t handle; /* process handle */
|
2001-07-19 02:35:37 +02:00
|
|
|
@REPLY
|
2002-10-03 21:54:57 +02:00
|
|
|
process_id_t pid; /* server process id */
|
2004-06-14 19:02:00 +02:00
|
|
|
process_id_t ppid; /* server process id of parent */
|
2001-07-19 02:35:37 +02:00
|
|
|
int exit_code; /* process exit code */
|
|
|
|
int priority; /* priority class */
|
2005-09-27 12:52:10 +02:00
|
|
|
int affinity; /* process affinity mask */
|
2004-06-14 19:02:00 +02:00
|
|
|
void* peb; /* PEB address in process address space */
|
2001-07-19 02:35:37 +02:00
|
|
|
@END
|
|
|
|
|
|
|
|
|
|
|
|
/* Set a process informations */
|
|
|
|
@REQ(set_process_info)
|
2002-05-30 22:12:58 +02:00
|
|
|
obj_handle_t handle; /* process handle */
|
2001-07-19 02:35:37 +02:00
|
|
|
int mask; /* setting mask (see below) */
|
|
|
|
int priority; /* priority class */
|
|
|
|
int affinity; /* affinity mask */
|
|
|
|
@END
|
|
|
|
#define SET_PROCESS_INFO_PRIORITY 0x01
|
|
|
|
#define SET_PROCESS_INFO_AFFINITY 0x02
|
|
|
|
|
|
|
|
|
|
|
|
/* Retrieve information about a thread */
|
|
|
|
@REQ(get_thread_info)
|
2002-11-25 02:33:38 +01:00
|
|
|
obj_handle_t handle; /* thread handle */
|
|
|
|
thread_id_t tid_in; /* thread id (optional) */
|
2001-07-19 02:35:37 +02:00
|
|
|
@REPLY
|
2003-07-09 04:57:57 +02:00
|
|
|
process_id_t pid; /* server process id */
|
2002-11-25 02:33:38 +01:00
|
|
|
thread_id_t tid; /* server thread id */
|
|
|
|
void* teb; /* thread teb pointer */
|
|
|
|
int exit_code; /* thread exit code */
|
|
|
|
int priority; /* thread priority level */
|
2003-07-09 04:57:57 +02:00
|
|
|
int affinity; /* thread affinity mask */
|
2002-11-25 02:33:38 +01:00
|
|
|
time_t creation_time; /* thread creation time */
|
|
|
|
time_t exit_time; /* thread exit time */
|
2001-07-19 02:35:37 +02:00
|
|
|
@END
|
|
|
|
|
|
|
|
|
|
|
|
/* Set a thread informations */
|
|
|
|
@REQ(set_thread_info)
|
2002-05-30 22:12:58 +02:00
|
|
|
obj_handle_t handle; /* thread handle */
|
2001-07-19 02:35:37 +02:00
|
|
|
int mask; /* setting mask (see below) */
|
|
|
|
int priority; /* priority class */
|
|
|
|
int affinity; /* affinity mask */
|
2005-06-20 15:18:38 +02:00
|
|
|
obj_handle_t token; /* impersonation token */
|
2001-07-19 02:35:37 +02:00
|
|
|
@END
|
|
|
|
#define SET_THREAD_INFO_PRIORITY 0x01
|
|
|
|
#define SET_THREAD_INFO_AFFINITY 0x02
|
2005-06-20 15:18:38 +02:00
|
|
|
#define SET_THREAD_INFO_TOKEN 0x04
|
2001-07-19 02:35:37 +02:00
|
|
|
|
|
|
|
|
2003-01-09 01:01:28 +01:00
|
|
|
/* Retrieve information about a module */
|
|
|
|
@REQ(get_dll_info)
|
|
|
|
obj_handle_t handle; /* process handle */
|
|
|
|
void* base_address; /* base address of module */
|
|
|
|
@REPLY
|
|
|
|
size_t size; /* module size */
|
|
|
|
void* entry_point;
|
2003-09-30 03:04:19 +02:00
|
|
|
VARARG(filename,unicode_str); /* file name of module */
|
2003-01-09 01:01:28 +01:00
|
|
|
@END
|
|
|
|
|
|
|
|
|
2001-07-19 02:35:37 +02:00
|
|
|
/* Suspend a thread */
|
|
|
|
@REQ(suspend_thread)
|
2002-05-30 22:12:58 +02:00
|
|
|
obj_handle_t handle; /* thread handle */
|
2001-07-19 02:35:37 +02:00
|
|
|
@REPLY
|
|
|
|
int count; /* new suspend count */
|
|
|
|
@END
|
|
|
|
|
|
|
|
|
|
|
|
/* Resume a thread */
|
|
|
|
@REQ(resume_thread)
|
2002-05-30 22:12:58 +02:00
|
|
|
obj_handle_t handle; /* thread handle */
|
2001-07-19 02:35:37 +02:00
|
|
|
@REPLY
|
|
|
|
int count; /* new suspend count */
|
|
|
|
@END
|
|
|
|
|
|
|
|
|
|
|
|
/* Notify the server that a dll has been loaded */
|
|
|
|
@REQ(load_dll)
|
2002-05-30 22:12:58 +02:00
|
|
|
obj_handle_t handle; /* file handle */
|
2001-07-19 02:35:37 +02:00
|
|
|
void* base; /* base address */
|
2002-03-22 01:21:23 +01:00
|
|
|
size_t size; /* dll size */
|
2001-07-19 02:35:37 +02:00
|
|
|
int dbg_offset; /* debug info offset */
|
|
|
|
int dbg_size; /* debug info size */
|
|
|
|
void* name; /* ptr to ptr to name (in process addr space) */
|
2003-09-30 03:04:19 +02:00
|
|
|
VARARG(filename,unicode_str); /* file name of dll */
|
2001-07-19 02:35:37 +02:00
|
|
|
@END
|
|
|
|
|
|
|
|
|
|
|
|
/* Notify the server that a dll is being unloaded */
|
|
|
|
@REQ(unload_dll)
|
|
|
|
void* base; /* base address */
|
|
|
|
@END
|
|
|
|
|
|
|
|
|
|
|
|
/* Queue an APC for a thread */
|
|
|
|
@REQ(queue_apc)
|
2002-05-30 22:12:58 +02:00
|
|
|
obj_handle_t handle; /* thread handle */
|
2001-07-19 02:35:37 +02:00
|
|
|
int user; /* user or system apc? */
|
|
|
|
void* func; /* function to call */
|
2003-04-05 00:26:34 +02:00
|
|
|
void* arg1; /* params for function to call */
|
|
|
|
void* arg2;
|
|
|
|
void* arg3;
|
2001-07-19 02:35:37 +02:00
|
|
|
@END
|
|
|
|
|
|
|
|
|
|
|
|
/* Get next APC to call */
|
|
|
|
@REQ(get_apc)
|
|
|
|
int alertable; /* is thread alertable? */
|
|
|
|
@REPLY
|
|
|
|
void* func; /* function to call */
|
|
|
|
int type; /* function type */
|
2003-04-05 00:26:34 +02:00
|
|
|
void* arg1; /* function arguments */
|
|
|
|
void* arg2;
|
|
|
|
void* arg3;
|
2001-07-19 02:35:37 +02:00
|
|
|
@END
|
2005-04-18 17:38:44 +02:00
|
|
|
enum apc_type { APC_NONE, APC_USER, APC_TIMER, APC_ASYNC_IO };
|
2001-07-19 02:35:37 +02:00
|
|
|
|
|
|
|
|
|
|
|
/* Close a handle for the current process */
|
|
|
|
@REQ(close_handle)
|
2002-05-30 22:12:58 +02:00
|
|
|
obj_handle_t handle; /* handle to close */
|
2001-07-19 02:35:37 +02:00
|
|
|
@REPLY
|
|
|
|
int fd; /* associated fd to close */
|
|
|
|
@END
|
|
|
|
|
|
|
|
|
|
|
|
/* Set a handle information */
|
|
|
|
@REQ(set_handle_info)
|
2002-05-30 22:12:58 +02:00
|
|
|
obj_handle_t handle; /* handle we are interested in */
|
2001-07-19 02:35:37 +02:00
|
|
|
int flags; /* new handle flags */
|
|
|
|
int mask; /* mask for flags to set */
|
|
|
|
@REPLY
|
|
|
|
int old_flags; /* old flag value */
|
2005-08-23 20:43:50 +02:00
|
|
|
@END
|
|
|
|
|
|
|
|
|
2001-07-19 02:35:37 +02:00
|
|
|
/* Duplicate a handle */
|
|
|
|
@REQ(dup_handle)
|
2002-05-30 22:12:58 +02:00
|
|
|
obj_handle_t src_process; /* src process handle */
|
|
|
|
obj_handle_t src_handle; /* src handle to duplicate */
|
|
|
|
obj_handle_t dst_process; /* dst process handle */
|
2001-07-19 02:35:37 +02:00
|
|
|
unsigned int access; /* wanted access rights */
|
2005-12-09 12:21:35 +01:00
|
|
|
unsigned int attributes; /* object attributes */
|
|
|
|
unsigned int options; /* duplicate options (see below) */
|
2001-07-19 02:35:37 +02:00
|
|
|
@REPLY
|
2002-05-30 22:12:58 +02:00
|
|
|
obj_handle_t handle; /* duplicated handle in dst process */
|
2001-07-19 02:35:37 +02:00
|
|
|
int fd; /* associated fd to close */
|
|
|
|
@END
|
|
|
|
#define DUP_HANDLE_CLOSE_SOURCE DUPLICATE_CLOSE_SOURCE
|
|
|
|
#define DUP_HANDLE_SAME_ACCESS DUPLICATE_SAME_ACCESS
|
|
|
|
#define DUP_HANDLE_MAKE_GLOBAL 0x80000000 /* Not a Windows flag */
|
|
|
|
|
|
|
|
|
|
|
|
/* Open a handle to a process */
|
|
|
|
@REQ(open_process)
|
2002-10-03 21:54:57 +02:00
|
|
|
process_id_t pid; /* process id to open */
|
2001-07-19 02:35:37 +02:00
|
|
|
unsigned int access; /* wanted access rights */
|
2005-12-09 12:13:11 +01:00
|
|
|
unsigned int attributes; /* object attributes */
|
2001-07-19 02:35:37 +02:00
|
|
|
@REPLY
|
2002-05-30 22:12:58 +02:00
|
|
|
obj_handle_t handle; /* handle to the process */
|
2001-07-19 02:35:37 +02:00
|
|
|
@END
|
|
|
|
|
|
|
|
|
2002-04-02 02:49:05 +02:00
|
|
|
/* Open a handle to a thread */
|
|
|
|
@REQ(open_thread)
|
2002-10-03 21:54:57 +02:00
|
|
|
thread_id_t tid; /* thread id to open */
|
2002-04-02 02:49:05 +02:00
|
|
|
unsigned int access; /* wanted access rights */
|
2005-12-09 12:13:11 +01:00
|
|
|
unsigned int attributes; /* object attributes */
|
2002-04-02 02:49:05 +02:00
|
|
|
@REPLY
|
2002-05-30 22:12:58 +02:00
|
|
|
obj_handle_t handle; /* handle to the thread */
|
2002-04-02 02:49:05 +02:00
|
|
|
@END
|
|
|
|
|
|
|
|
|
2001-07-19 02:35:37 +02:00
|
|
|
/* Wait for handles */
|
|
|
|
@REQ(select)
|
|
|
|
int flags; /* wait flags (see below) */
|
|
|
|
void* cookie; /* magic cookie to return to client */
|
2005-04-24 19:35:52 +02:00
|
|
|
obj_handle_t signal; /* object to signal (0 if none) */
|
2003-04-03 00:48:59 +02:00
|
|
|
abs_time_t timeout; /* absolute timeout */
|
2001-07-19 02:35:37 +02:00
|
|
|
VARARG(handles,handles); /* handles to select on */
|
|
|
|
@END
|
|
|
|
#define SELECT_ALL 1
|
|
|
|
#define SELECT_ALERTABLE 2
|
|
|
|
#define SELECT_INTERRUPTIBLE 4
|
|
|
|
#define SELECT_TIMEOUT 8
|
|
|
|
|
|
|
|
|
|
|
|
/* Create an event */
|
|
|
|
@REQ(create_event)
|
2004-12-02 19:05:37 +01:00
|
|
|
unsigned int access; /* wanted access rights */
|
2005-10-27 20:30:37 +02:00
|
|
|
unsigned int attributes; /* object attributes */
|
2005-12-02 15:55:48 +01:00
|
|
|
obj_handle_t rootdir; /* root directory */
|
2001-07-19 02:35:37 +02:00
|
|
|
int manual_reset; /* manual reset event */
|
|
|
|
int initial_state; /* initial state of the event */
|
|
|
|
VARARG(name,unicode_str); /* object name */
|
|
|
|
@REPLY
|
2002-05-30 22:12:58 +02:00
|
|
|
obj_handle_t handle; /* handle to the event */
|
2001-07-19 02:35:37 +02:00
|
|
|
@END
|
|
|
|
|
|
|
|
/* Event operation */
|
|
|
|
@REQ(event_op)
|
2002-05-30 22:12:58 +02:00
|
|
|
obj_handle_t handle; /* handle to event */
|
2001-07-19 02:35:37 +02:00
|
|
|
int op; /* event operation (see below) */
|
|
|
|
@END
|
|
|
|
enum event_op { PULSE_EVENT, SET_EVENT, RESET_EVENT };
|
|
|
|
|
|
|
|
|
|
|
|
/* Open an event */
|
|
|
|
@REQ(open_event)
|
|
|
|
unsigned int access; /* wanted access rights */
|
2005-10-27 20:30:37 +02:00
|
|
|
unsigned int attributes; /* object attributes */
|
2005-12-02 15:55:48 +01:00
|
|
|
obj_handle_t rootdir; /* root directory */
|
2001-07-19 02:35:37 +02:00
|
|
|
VARARG(name,unicode_str); /* object name */
|
|
|
|
@REPLY
|
2002-05-30 22:12:58 +02:00
|
|
|
obj_handle_t handle; /* handle to the event */
|
2001-07-19 02:35:37 +02:00
|
|
|
@END
|
|
|
|
|
|
|
|
|
|
|
|
/* Create a mutex */
|
|
|
|
@REQ(create_mutex)
|
2004-12-02 19:05:37 +01:00
|
|
|
unsigned int access; /* wanted access rights */
|
2005-10-27 20:30:37 +02:00
|
|
|
unsigned int attributes; /* object attributes */
|
2005-12-02 15:55:48 +01:00
|
|
|
obj_handle_t rootdir; /* root directory */
|
2001-07-19 02:35:37 +02:00
|
|
|
int owned; /* initially owned? */
|
|
|
|
VARARG(name,unicode_str); /* object name */
|
|
|
|
@REPLY
|
2002-05-30 22:12:58 +02:00
|
|
|
obj_handle_t handle; /* handle to the mutex */
|
2001-07-19 02:35:37 +02:00
|
|
|
@END
|
|
|
|
|
|
|
|
|
|
|
|
/* Release a mutex */
|
|
|
|
@REQ(release_mutex)
|
2002-05-30 22:12:58 +02:00
|
|
|
obj_handle_t handle; /* handle to the mutex */
|
2004-12-02 19:05:37 +01:00
|
|
|
@REPLY
|
|
|
|
unsigned int prev_count; /* value of internal counter, before release */
|
2001-07-19 02:35:37 +02:00
|
|
|
@END
|
|
|
|
|
|
|
|
|
|
|
|
/* Open a mutex */
|
|
|
|
@REQ(open_mutex)
|
|
|
|
unsigned int access; /* wanted access rights */
|
2005-10-27 20:30:37 +02:00
|
|
|
unsigned int attributes; /* object attributes */
|
2005-12-02 15:55:48 +01:00
|
|
|
obj_handle_t rootdir; /* root directory */
|
2001-07-19 02:35:37 +02:00
|
|
|
VARARG(name,unicode_str); /* object name */
|
|
|
|
@REPLY
|
2002-05-30 22:12:58 +02:00
|
|
|
obj_handle_t handle; /* handle to the mutex */
|
2001-07-19 02:35:37 +02:00
|
|
|
@END
|
|
|
|
|
|
|
|
|
|
|
|
/* Create a semaphore */
|
|
|
|
@REQ(create_semaphore)
|
2004-12-02 19:05:37 +01:00
|
|
|
unsigned int access; /* wanted access rights */
|
2005-10-27 20:30:37 +02:00
|
|
|
unsigned int attributes; /* object attributes */
|
2005-12-02 16:01:17 +01:00
|
|
|
obj_handle_t rootdir; /* root directory */
|
2001-07-19 02:35:37 +02:00
|
|
|
unsigned int initial; /* initial count */
|
|
|
|
unsigned int max; /* maximum count */
|
|
|
|
VARARG(name,unicode_str); /* object name */
|
|
|
|
@REPLY
|
2002-05-30 22:12:58 +02:00
|
|
|
obj_handle_t handle; /* handle to the semaphore */
|
2001-07-19 02:35:37 +02:00
|
|
|
@END
|
|
|
|
|
|
|
|
|
|
|
|
/* Release a semaphore */
|
|
|
|
@REQ(release_semaphore)
|
2002-05-30 22:12:58 +02:00
|
|
|
obj_handle_t handle; /* handle to the semaphore */
|
2001-07-19 02:35:37 +02:00
|
|
|
unsigned int count; /* count to add to semaphore */
|
|
|
|
@REPLY
|
|
|
|
unsigned int prev_count; /* previous semaphore count */
|
|
|
|
@END
|
|
|
|
|
|
|
|
|
|
|
|
/* Open a semaphore */
|
|
|
|
@REQ(open_semaphore)
|
|
|
|
unsigned int access; /* wanted access rights */
|
2005-10-27 20:30:37 +02:00
|
|
|
unsigned int attributes; /* object attributes */
|
2005-12-02 16:01:17 +01:00
|
|
|
obj_handle_t rootdir; /* root directory */
|
2001-07-19 02:35:37 +02:00
|
|
|
VARARG(name,unicode_str); /* object name */
|
|
|
|
@REPLY
|
2002-05-30 22:12:58 +02:00
|
|
|
obj_handle_t handle; /* handle to the semaphore */
|
2001-07-19 02:35:37 +02:00
|
|
|
@END
|
|
|
|
|
|
|
|
|
|
|
|
/* Create a file */
|
|
|
|
@REQ(create_file)
|
|
|
|
unsigned int access; /* wanted access rights */
|
2005-12-09 12:00:48 +01:00
|
|
|
unsigned int attributes; /* object attributes */
|
2001-07-19 02:35:37 +02:00
|
|
|
unsigned int sharing; /* sharing flags */
|
|
|
|
int create; /* file create action */
|
2004-03-12 02:56:49 +01:00
|
|
|
unsigned int options; /* file options */
|
2001-07-19 02:35:37 +02:00
|
|
|
unsigned int attrs; /* file attributes for creation */
|
|
|
|
VARARG(filename,string); /* file name */
|
|
|
|
@REPLY
|
2002-05-30 22:12:58 +02:00
|
|
|
obj_handle_t handle; /* handle to the file */
|
2001-07-19 02:35:37 +02:00
|
|
|
@END
|
|
|
|
|
|
|
|
|
2005-12-12 14:27:45 +01:00
|
|
|
/* Open a file object */
|
|
|
|
@REQ(open_file_object)
|
|
|
|
unsigned int access; /* wanted access rights */
|
|
|
|
unsigned int attributes; /* open attributes */
|
|
|
|
obj_handle_t rootdir; /* root directory */
|
|
|
|
unsigned int sharing; /* sharing flags */
|
|
|
|
VARARG(filename,unicode_str); /* file name */
|
|
|
|
@REPLY
|
|
|
|
obj_handle_t handle; /* handle to the file */
|
|
|
|
@END
|
|
|
|
|
|
|
|
|
2001-07-19 02:35:37 +02:00
|
|
|
/* Allocate a file handle for a Unix fd */
|
|
|
|
@REQ(alloc_file_handle)
|
|
|
|
unsigned int access; /* wanted access rights */
|
2005-12-09 12:00:48 +01:00
|
|
|
unsigned int attributes; /* object attributes */
|
2001-07-19 02:35:37 +02:00
|
|
|
int fd; /* file descriptor on the client side */
|
|
|
|
@REPLY
|
2002-05-30 22:12:58 +02:00
|
|
|
obj_handle_t handle; /* handle to the file */
|
2001-07-19 02:35:37 +02:00
|
|
|
@END
|
|
|
|
|
|
|
|
|
|
|
|
/* Get a Unix fd to access a file */
|
|
|
|
@REQ(get_handle_fd)
|
2002-05-30 22:12:58 +02:00
|
|
|
obj_handle_t handle; /* handle to the file */
|
2001-07-19 02:35:37 +02:00
|
|
|
unsigned int access; /* wanted access rights */
|
|
|
|
@REPLY
|
|
|
|
int fd; /* file descriptor */
|
2005-08-24 20:33:50 +02:00
|
|
|
int removable; /* is device removable? (-1 if unknown) */
|
2002-01-09 21:30:51 +01:00
|
|
|
int flags; /* file read/write flags (see below) */
|
2001-07-19 02:35:37 +02:00
|
|
|
@END
|
2004-08-18 01:37:55 +02:00
|
|
|
#define FD_FLAG_OVERLAPPED 0x01 /* fd opened in overlapped mode */
|
|
|
|
#define FD_FLAG_TIMEOUT 0x02 /* read/write is synchronous */
|
2002-04-25 23:31:11 +02:00
|
|
|
#define FD_FLAG_RECV_SHUTDOWN 0x04
|
|
|
|
#define FD_FLAG_SEND_SHUTDOWN 0x08
|
2004-08-18 01:37:55 +02:00
|
|
|
#define FD_FLAG_AVAILABLE 0x10 /* in overlap read/write operation,
|
|
|
|
* only handle available data (don't wait) */
|
2001-07-19 02:35:37 +02:00
|
|
|
|
2005-08-24 20:33:50 +02:00
|
|
|
/* Set the cached file descriptor of a handle */
|
|
|
|
@REQ(set_handle_fd)
|
|
|
|
obj_handle_t handle; /* handle we are interested in */
|
|
|
|
int fd; /* file descriptor */
|
|
|
|
int removable; /* is device removable? (-1 if unknown) */
|
|
|
|
@REPLY
|
|
|
|
int cur_fd; /* current file descriptor */
|
|
|
|
@END
|
|
|
|
|
2001-07-19 02:35:37 +02:00
|
|
|
|
|
|
|
/* Flush a file buffers */
|
|
|
|
@REQ(flush_file)
|
2002-05-30 22:12:58 +02:00
|
|
|
obj_handle_t handle; /* handle to the file */
|
2003-05-15 06:22:45 +02:00
|
|
|
@REPLY
|
|
|
|
obj_handle_t event; /* event set when finished */
|
2001-07-19 02:35:37 +02:00
|
|
|
@END
|
|
|
|
|
|
|
|
|
|
|
|
/* Lock a region of a file */
|
|
|
|
@REQ(lock_file)
|
2002-05-30 22:12:58 +02:00
|
|
|
obj_handle_t handle; /* handle to the file */
|
2001-07-19 02:35:37 +02:00
|
|
|
unsigned int offset_low; /* offset of start of lock */
|
|
|
|
unsigned int offset_high; /* offset of start of lock */
|
|
|
|
unsigned int count_low; /* count of bytes to lock */
|
|
|
|
unsigned int count_high; /* count of bytes to lock */
|
2003-03-18 06:04:33 +01:00
|
|
|
int shared; /* shared or exclusive lock? */
|
|
|
|
int wait; /* do we want to wait? */
|
|
|
|
@REPLY
|
|
|
|
obj_handle_t handle; /* handle to wait on */
|
|
|
|
int overlapped; /* is it an overlapped I/O handle? */
|
2001-07-19 02:35:37 +02:00
|
|
|
@END
|
|
|
|
|
|
|
|
|
|
|
|
/* Unlock a region of a file */
|
|
|
|
@REQ(unlock_file)
|
2002-05-30 22:12:58 +02:00
|
|
|
obj_handle_t handle; /* handle to the file */
|
2001-07-19 02:35:37 +02:00
|
|
|
unsigned int offset_low; /* offset of start of unlock */
|
|
|
|
unsigned int offset_high; /* offset of start of unlock */
|
|
|
|
unsigned int count_low; /* count of bytes to unlock */
|
|
|
|
unsigned int count_high; /* count of bytes to unlock */
|
|
|
|
@END
|
|
|
|
|
|
|
|
|
2005-08-08 17:11:03 +02:00
|
|
|
/* Get ready to unmount a Unix device */
|
|
|
|
@REQ(unmount_device)
|
|
|
|
obj_handle_t handle; /* handle to a file on the device */
|
|
|
|
@END
|
|
|
|
|
|
|
|
|
2001-07-19 02:35:37 +02:00
|
|
|
/* Create a socket */
|
|
|
|
@REQ(create_socket)
|
|
|
|
unsigned int access; /* wanted access rights */
|
2005-12-09 11:58:55 +01:00
|
|
|
unsigned int attributes; /* object attributes */
|
2001-07-19 02:35:37 +02:00
|
|
|
int family; /* family, see socket manpage */
|
|
|
|
int type; /* type, see socket manpage */
|
|
|
|
int protocol; /* protocol, see socket manpage */
|
2002-01-09 22:16:24 +01:00
|
|
|
unsigned int flags; /* socket flags */
|
2001-07-19 02:35:37 +02:00
|
|
|
@REPLY
|
2002-05-30 22:12:58 +02:00
|
|
|
obj_handle_t handle; /* handle to the new socket */
|
2001-07-19 02:35:37 +02:00
|
|
|
@END
|
|
|
|
|
|
|
|
|
|
|
|
/* Accept a socket */
|
|
|
|
@REQ(accept_socket)
|
2002-05-30 22:12:58 +02:00
|
|
|
obj_handle_t lhandle; /* handle to the listening socket */
|
2001-07-19 02:35:37 +02:00
|
|
|
unsigned int access; /* wanted access rights */
|
2005-12-09 11:58:55 +01:00
|
|
|
unsigned int attributes; /* object attributes */
|
2001-07-19 02:35:37 +02:00
|
|
|
@REPLY
|
2002-05-30 22:12:58 +02:00
|
|
|
obj_handle_t handle; /* handle to the new socket */
|
2001-07-19 02:35:37 +02:00
|
|
|
@END
|
|
|
|
|
|
|
|
|
|
|
|
/* Set socket event parameters */
|
|
|
|
@REQ(set_socket_event)
|
2002-05-30 22:12:58 +02:00
|
|
|
obj_handle_t handle; /* handle to the socket */
|
2002-03-23 21:43:52 +01:00
|
|
|
unsigned int mask; /* event mask */
|
2002-05-30 22:12:58 +02:00
|
|
|
obj_handle_t event; /* event object */
|
2002-03-23 21:43:52 +01:00
|
|
|
user_handle_t window; /* window to send the message to */
|
|
|
|
unsigned int msg; /* message to send */
|
2001-07-19 02:35:37 +02:00
|
|
|
@END
|
|
|
|
|
|
|
|
|
|
|
|
/* Get socket event parameters */
|
|
|
|
@REQ(get_socket_event)
|
2002-05-30 22:12:58 +02:00
|
|
|
obj_handle_t handle; /* handle to the socket */
|
2001-07-19 02:35:37 +02:00
|
|
|
int service; /* clear pending? */
|
2002-05-30 22:12:58 +02:00
|
|
|
obj_handle_t c_event; /* event to clear */
|
2001-07-19 02:35:37 +02:00
|
|
|
@REPLY
|
|
|
|
unsigned int mask; /* event mask */
|
|
|
|
unsigned int pmask; /* pending events */
|
|
|
|
unsigned int state; /* status bits */
|
|
|
|
VARARG(errors,ints); /* event errors */
|
|
|
|
@END
|
|
|
|
|
|
|
|
|
|
|
|
/* Reenable pending socket events */
|
|
|
|
@REQ(enable_socket_event)
|
2002-05-30 22:12:58 +02:00
|
|
|
obj_handle_t handle; /* handle to the socket */
|
2001-07-19 02:35:37 +02:00
|
|
|
unsigned int mask; /* events to re-enable */
|
|
|
|
unsigned int sstate; /* status bits to set */
|
|
|
|
unsigned int cstate; /* status bits to clear */
|
|
|
|
@END
|
|
|
|
|
2002-04-24 00:03:42 +02:00
|
|
|
@REQ(set_socket_deferred)
|
2002-05-30 22:12:58 +02:00
|
|
|
obj_handle_t handle; /* handle to the socket */
|
|
|
|
obj_handle_t deferred; /* handle to the socket for which accept() is deferred */
|
2002-04-24 00:03:42 +02:00
|
|
|
@END
|
2001-07-19 02:35:37 +02:00
|
|
|
|
2001-11-24 00:04:58 +01:00
|
|
|
/* Allocate a console (only used by a console renderer) */
|
2001-07-19 02:35:37 +02:00
|
|
|
@REQ(alloc_console)
|
|
|
|
unsigned int access; /* wanted access rights */
|
2005-12-09 12:05:20 +01:00
|
|
|
unsigned int attributes; /* object attributes */
|
2002-10-03 21:54:57 +02:00
|
|
|
process_id_t pid; /* pid of process which shall be attached to the console */
|
2001-07-19 02:35:37 +02:00
|
|
|
@REPLY
|
2002-05-30 22:12:58 +02:00
|
|
|
obj_handle_t handle_in; /* handle to console input */
|
|
|
|
obj_handle_t event; /* handle to renderer events change notification */
|
2001-07-19 02:35:37 +02:00
|
|
|
@END
|
|
|
|
|
|
|
|
|
|
|
|
/* Free the console of the current process */
|
|
|
|
@REQ(free_console)
|
|
|
|
@END
|
|
|
|
|
|
|
|
|
2001-11-24 00:04:58 +01:00
|
|
|
#define CONSOLE_RENDERER_NONE_EVENT 0x00
|
|
|
|
#define CONSOLE_RENDERER_TITLE_EVENT 0x01
|
|
|
|
#define CONSOLE_RENDERER_ACTIVE_SB_EVENT 0x02
|
|
|
|
#define CONSOLE_RENDERER_SB_RESIZE_EVENT 0x03
|
|
|
|
#define CONSOLE_RENDERER_UPDATE_EVENT 0x04
|
|
|
|
#define CONSOLE_RENDERER_CURSOR_POS_EVENT 0x05
|
|
|
|
#define CONSOLE_RENDERER_CURSOR_GEOM_EVENT 0x06
|
|
|
|
#define CONSOLE_RENDERER_DISPLAY_EVENT 0x07
|
|
|
|
#define CONSOLE_RENDERER_EXIT_EVENT 0x08
|
|
|
|
struct console_renderer_event
|
|
|
|
{
|
|
|
|
short event;
|
|
|
|
union
|
|
|
|
{
|
|
|
|
struct update
|
|
|
|
{
|
|
|
|
short top;
|
|
|
|
short bottom;
|
|
|
|
} update;
|
|
|
|
struct resize
|
|
|
|
{
|
|
|
|
short width;
|
|
|
|
short height;
|
|
|
|
} resize;
|
|
|
|
struct cursor_pos
|
|
|
|
{
|
|
|
|
short x;
|
|
|
|
short y;
|
|
|
|
} cursor_pos;
|
|
|
|
struct cursor_geom
|
|
|
|
{
|
|
|
|
short visible;
|
|
|
|
short size;
|
|
|
|
} cursor_geom;
|
|
|
|
struct display
|
|
|
|
{
|
|
|
|
short left;
|
|
|
|
short top;
|
|
|
|
short width;
|
|
|
|
short height;
|
|
|
|
} display;
|
|
|
|
} u;
|
|
|
|
};
|
|
|
|
|
|
|
|
/* retrieve console events for the renderer */
|
|
|
|
@REQ(get_console_renderer_events)
|
2002-05-30 22:12:58 +02:00
|
|
|
obj_handle_t handle; /* handle to console input events */
|
2001-11-24 00:04:58 +01:00
|
|
|
@REPLY
|
|
|
|
VARARG(data,bytes); /* the various console_renderer_events */
|
|
|
|
@END
|
|
|
|
|
|
|
|
|
2001-07-19 02:35:37 +02:00
|
|
|
/* Open a handle to the process console */
|
|
|
|
@REQ(open_console)
|
2001-11-24 00:04:58 +01:00
|
|
|
int from; /* 0 (resp 1) input (resp output) of current process console */
|
|
|
|
/* otherwise console_in handle to get active screen buffer? */
|
2001-07-19 02:35:37 +02:00
|
|
|
unsigned int access; /* wanted access rights */
|
2005-12-09 12:05:20 +01:00
|
|
|
unsigned int attributes; /* object attributes */
|
2001-11-24 00:04:58 +01:00
|
|
|
int share; /* share mask (only for output handles) */
|
2001-07-19 02:35:37 +02:00
|
|
|
@REPLY
|
2002-05-30 22:12:58 +02:00
|
|
|
obj_handle_t handle; /* handle to the console */
|
2001-07-19 02:35:37 +02:00
|
|
|
@END
|
|
|
|
|
|
|
|
|
2003-06-21 04:07:10 +02:00
|
|
|
/* Get the input queue wait event */
|
|
|
|
@REQ(get_console_wait_event)
|
|
|
|
@REPLY
|
|
|
|
obj_handle_t handle;
|
|
|
|
@END
|
|
|
|
|
2001-07-19 02:35:37 +02:00
|
|
|
/* Get a console mode (input or output) */
|
|
|
|
@REQ(get_console_mode)
|
2002-05-30 22:12:58 +02:00
|
|
|
obj_handle_t handle; /* handle to the console */
|
2001-07-19 02:35:37 +02:00
|
|
|
@REPLY
|
|
|
|
int mode; /* console mode */
|
|
|
|
@END
|
|
|
|
|
|
|
|
|
|
|
|
/* Set a console mode (input or output) */
|
|
|
|
@REQ(set_console_mode)
|
2002-05-30 22:12:58 +02:00
|
|
|
obj_handle_t handle; /* handle to the console */
|
2001-07-19 02:35:37 +02:00
|
|
|
int mode; /* console mode */
|
|
|
|
@END
|
|
|
|
|
|
|
|
|
2001-11-24 00:04:58 +01:00
|
|
|
/* Set info about a console (input only) */
|
|
|
|
@REQ(set_console_input_info)
|
2002-05-30 22:12:58 +02:00
|
|
|
obj_handle_t handle; /* handle to console input, or 0 for process' console */
|
2001-11-24 00:04:58 +01:00
|
|
|
int mask; /* setting mask (see below) */
|
2002-05-30 22:12:58 +02:00
|
|
|
obj_handle_t active_sb; /* active screen buffer */
|
2001-11-24 00:04:58 +01:00
|
|
|
int history_mode; /* whether we duplicate lines in history */
|
|
|
|
int history_size; /* number of lines in history */
|
2003-01-09 07:01:32 +01:00
|
|
|
int edition_mode; /* index to the edition mode flavors */
|
2001-11-24 00:04:58 +01:00
|
|
|
VARARG(title,unicode_str); /* console title */
|
|
|
|
@END
|
|
|
|
#define SET_CONSOLE_INPUT_INFO_ACTIVE_SB 0x01
|
|
|
|
#define SET_CONSOLE_INPUT_INFO_TITLE 0x02
|
|
|
|
#define SET_CONSOLE_INPUT_INFO_HISTORY_MODE 0x04
|
|
|
|
#define SET_CONSOLE_INPUT_INFO_HISTORY_SIZE 0x08
|
2003-01-09 07:01:32 +01:00
|
|
|
#define SET_CONSOLE_INPUT_INFO_EDITION_MODE 0x10
|
2001-11-24 00:04:58 +01:00
|
|
|
|
|
|
|
|
|
|
|
/* Get info about a console (input only) */
|
|
|
|
@REQ(get_console_input_info)
|
2002-05-30 22:12:58 +02:00
|
|
|
obj_handle_t handle; /* handle to console input, or 0 for process' console */
|
2001-11-24 00:04:58 +01:00
|
|
|
@REPLY
|
|
|
|
int history_mode; /* whether we duplicate lines in history */
|
|
|
|
int history_size; /* number of lines in history */
|
|
|
|
int history_index; /* number of used lines in history */
|
2003-01-09 07:01:32 +01:00
|
|
|
int edition_mode; /* index to the edition mode flavors */
|
2001-11-24 00:04:58 +01:00
|
|
|
VARARG(title,unicode_str); /* console title */
|
|
|
|
@END
|
|
|
|
|
|
|
|
|
|
|
|
/* appends a string to console's history */
|
|
|
|
@REQ(append_console_input_history)
|
2002-05-30 22:12:58 +02:00
|
|
|
obj_handle_t handle; /* handle to console input, or 0 for process' console */
|
2001-11-24 00:04:58 +01:00
|
|
|
VARARG(line,unicode_str); /* line to add */
|
|
|
|
@END
|
|
|
|
|
|
|
|
|
|
|
|
/* appends a string to console's history */
|
|
|
|
@REQ(get_console_input_history)
|
2002-05-30 22:12:58 +02:00
|
|
|
obj_handle_t handle; /* handle to console input, or 0 for process' console */
|
2001-11-24 00:04:58 +01:00
|
|
|
int index; /* index to get line from */
|
|
|
|
@REPLY
|
2001-11-30 19:46:42 +01:00
|
|
|
int total; /* total length of line in Unicode chars */
|
2001-11-24 00:04:58 +01:00
|
|
|
VARARG(line,unicode_str); /* line to add */
|
|
|
|
@END
|
|
|
|
|
|
|
|
|
|
|
|
/* creates a new screen buffer on process' console */
|
|
|
|
@REQ(create_console_output)
|
2002-05-30 22:12:58 +02:00
|
|
|
obj_handle_t handle_in; /* handle to console input, or 0 for process' console */
|
2005-12-09 12:05:20 +01:00
|
|
|
unsigned int access; /* wanted access rights */
|
|
|
|
unsigned int attributes; /* object attributes */
|
|
|
|
unsigned int share; /* sharing credentials */
|
2001-11-24 00:04:58 +01:00
|
|
|
@REPLY
|
2002-05-30 22:12:58 +02:00
|
|
|
obj_handle_t handle_out; /* handle to the screen buffer */
|
2001-11-24 00:04:58 +01:00
|
|
|
@END
|
|
|
|
|
|
|
|
|
2001-07-19 02:35:37 +02:00
|
|
|
/* Set info about a console (output only) */
|
2001-11-24 00:04:58 +01:00
|
|
|
@REQ(set_console_output_info)
|
2002-05-30 22:12:58 +02:00
|
|
|
obj_handle_t handle; /* handle to the console */
|
2001-07-19 02:35:37 +02:00
|
|
|
int mask; /* setting mask (see below) */
|
2001-11-24 00:04:58 +01:00
|
|
|
short int cursor_size; /* size of cursor (percentage filled) */
|
|
|
|
short int cursor_visible;/* cursor visibility flag */
|
|
|
|
short int cursor_x; /* position of cursor (x, y) */
|
|
|
|
short int cursor_y;
|
|
|
|
short int width; /* width of the screen buffer */
|
|
|
|
short int height; /* height of the screen buffer */
|
|
|
|
short int attr; /* default attribute */
|
|
|
|
short int win_left; /* window actually displayed by renderer */
|
|
|
|
short int win_top; /* the rect area is expressed withing the */
|
|
|
|
short int win_right; /* boundaries of the screen buffer */
|
|
|
|
short int win_bottom;
|
|
|
|
short int max_width; /* maximum size (width x height) for the window */
|
|
|
|
short int max_height;
|
|
|
|
@END
|
|
|
|
#define SET_CONSOLE_OUTPUT_INFO_CURSOR_GEOM 0x01
|
|
|
|
#define SET_CONSOLE_OUTPUT_INFO_CURSOR_POS 0x02
|
|
|
|
#define SET_CONSOLE_OUTPUT_INFO_SIZE 0x04
|
|
|
|
#define SET_CONSOLE_OUTPUT_INFO_ATTR 0x08
|
|
|
|
#define SET_CONSOLE_OUTPUT_INFO_DISPLAY_WINDOW 0x10
|
|
|
|
#define SET_CONSOLE_OUTPUT_INFO_MAX_SIZE 0x20
|
|
|
|
|
2001-07-19 02:35:37 +02:00
|
|
|
|
|
|
|
/* Get info about a console (output only) */
|
2001-11-24 00:04:58 +01:00
|
|
|
@REQ(get_console_output_info)
|
2002-05-30 22:12:58 +02:00
|
|
|
obj_handle_t handle; /* handle to the console */
|
2001-07-19 02:35:37 +02:00
|
|
|
@REPLY
|
2001-11-24 00:04:58 +01:00
|
|
|
short int cursor_size; /* size of cursor (percentage filled) */
|
|
|
|
short int cursor_visible;/* cursor visibility flag */
|
|
|
|
short int cursor_x; /* position of cursor (x, y) */
|
|
|
|
short int cursor_y;
|
|
|
|
short int width; /* width of the screen buffer */
|
|
|
|
short int height; /* height of the screen buffer */
|
|
|
|
short int attr; /* default attribute */
|
|
|
|
short int win_left; /* window actually displayed by renderer */
|
|
|
|
short int win_top; /* the rect area is expressed withing the */
|
|
|
|
short int win_right; /* boundaries of the screen buffer */
|
|
|
|
short int win_bottom;
|
|
|
|
short int max_width; /* maximum size (width x height) for the window */
|
|
|
|
short int max_height;
|
2001-07-19 02:35:37 +02:00
|
|
|
@END
|
|
|
|
|
|
|
|
/* Add input records to a console input queue */
|
|
|
|
@REQ(write_console_input)
|
2002-05-30 22:12:58 +02:00
|
|
|
obj_handle_t handle; /* handle to the console input */
|
2001-07-19 02:35:37 +02:00
|
|
|
VARARG(rec,input_records); /* input records */
|
|
|
|
@REPLY
|
|
|
|
int written; /* number of records written */
|
|
|
|
@END
|
|
|
|
|
2001-11-24 00:04:58 +01:00
|
|
|
|
2001-07-19 02:35:37 +02:00
|
|
|
/* Fetch input records from a console input queue */
|
|
|
|
@REQ(read_console_input)
|
2002-05-30 22:12:58 +02:00
|
|
|
obj_handle_t handle; /* handle to the console input */
|
2001-07-19 02:35:37 +02:00
|
|
|
int flush; /* flush the retrieved records from the queue? */
|
|
|
|
@REPLY
|
|
|
|
int read; /* number of records read */
|
|
|
|
VARARG(rec,input_records); /* input records */
|
|
|
|
@END
|
|
|
|
|
|
|
|
|
2001-11-24 00:04:58 +01:00
|
|
|
/* write data (chars and/or attributes) in a screen buffer */
|
|
|
|
@REQ(write_console_output)
|
2002-05-30 22:12:58 +02:00
|
|
|
obj_handle_t handle; /* handle to the console output */
|
2001-11-30 19:46:42 +01:00
|
|
|
int x; /* position where to start writing */
|
|
|
|
int y;
|
|
|
|
int mode; /* char info (see below) */
|
|
|
|
int wrap; /* wrap around at end of line? */
|
2001-11-24 00:04:58 +01:00
|
|
|
VARARG(data,bytes); /* info to write */
|
|
|
|
@REPLY
|
2001-11-30 19:46:42 +01:00
|
|
|
int written; /* number of char infos actually written */
|
|
|
|
int width; /* width of screen buffer */
|
|
|
|
int height; /* height of screen buffer */
|
2001-11-24 00:04:58 +01:00
|
|
|
@END
|
2001-11-30 19:46:42 +01:00
|
|
|
enum char_info_mode
|
|
|
|
{
|
|
|
|
CHAR_INFO_MODE_TEXT, /* characters only */
|
|
|
|
CHAR_INFO_MODE_ATTR, /* attributes only */
|
|
|
|
CHAR_INFO_MODE_TEXTATTR, /* both characters and attributes */
|
|
|
|
CHAR_INFO_MODE_TEXTSTDATTR /* characters but use standard attributes */
|
|
|
|
};
|
2001-11-24 00:04:58 +01:00
|
|
|
|
|
|
|
|
2001-11-30 19:46:42 +01:00
|
|
|
/* fill a screen buffer with constant data (chars and/or attributes) */
|
|
|
|
@REQ(fill_console_output)
|
2002-05-30 22:12:58 +02:00
|
|
|
obj_handle_t handle; /* handle to the console output */
|
2001-11-30 19:46:42 +01:00
|
|
|
int x; /* position where to start writing */
|
|
|
|
int y;
|
|
|
|
int mode; /* char info mode */
|
|
|
|
int count; /* number to write */
|
|
|
|
int wrap; /* wrap around at end of line? */
|
|
|
|
char_info_t data; /* data to write */
|
|
|
|
@REPLY
|
|
|
|
int written; /* number of char infos actually written */
|
|
|
|
@END
|
|
|
|
|
|
|
|
|
|
|
|
/* read data (chars and/or attributes) from a screen buffer */
|
2001-11-24 00:04:58 +01:00
|
|
|
@REQ(read_console_output)
|
2002-05-30 22:12:58 +02:00
|
|
|
obj_handle_t handle; /* handle to the console output */
|
2001-11-30 19:46:42 +01:00
|
|
|
int x; /* position (x,y) where to start reading */
|
|
|
|
int y;
|
|
|
|
int mode; /* char info mode */
|
|
|
|
int wrap; /* wrap around at end of line? */
|
2001-11-24 00:04:58 +01:00
|
|
|
@REPLY
|
2001-11-30 19:46:42 +01:00
|
|
|
int width; /* width of screen buffer */
|
|
|
|
int height; /* height of screen buffer */
|
2001-11-24 00:04:58 +01:00
|
|
|
VARARG(data,bytes);
|
|
|
|
@END
|
|
|
|
|
2002-06-02 23:22:22 +02:00
|
|
|
|
2001-11-24 00:04:58 +01:00
|
|
|
/* move a rect (of data) in screen buffer content */
|
|
|
|
@REQ(move_console_output)
|
2002-05-30 22:12:58 +02:00
|
|
|
obj_handle_t handle; /* handle to the console output */
|
2001-11-24 00:04:58 +01:00
|
|
|
short int x_src; /* position (x, y) of rect to start moving from */
|
|
|
|
short int y_src;
|
|
|
|
short int x_dst; /* position (x, y) of rect to move to */
|
|
|
|
short int y_dst;
|
|
|
|
short int w; /* size of the rect (width, height) to move */
|
|
|
|
short int h;
|
|
|
|
@END
|
|
|
|
|
|
|
|
|
2002-06-02 23:22:22 +02:00
|
|
|
/* Sends a signal to a process group */
|
|
|
|
@REQ(send_console_signal)
|
|
|
|
int signal; /* the signal to send */
|
2002-10-03 21:54:57 +02:00
|
|
|
process_id_t group_id; /* the group to send the signal to */
|
2002-06-02 23:22:22 +02:00
|
|
|
@END
|
|
|
|
|
|
|
|
|
2006-01-27 12:13:56 +01:00
|
|
|
/* enable directory change notifications */
|
|
|
|
@REQ(read_directory_changes)
|
2003-03-27 00:41:43 +01:00
|
|
|
obj_handle_t handle; /* handle to the directory */
|
2006-01-27 12:13:56 +01:00
|
|
|
obj_handle_t event; /* handle to the event */
|
2003-03-27 00:41:43 +01:00
|
|
|
unsigned int filter; /* notification filter */
|
2006-02-06 11:58:55 +01:00
|
|
|
void* io_apc; /* APC routine to queue upon end of async */
|
|
|
|
void* io_sb; /* I/O status block (unique across all async on this handle) */
|
|
|
|
void* io_user; /* data to pass back to caller */
|
|
|
|
@END
|
|
|
|
|
|
|
|
|
|
|
|
@REQ(read_change)
|
|
|
|
obj_handle_t handle;
|
|
|
|
@REPLY
|
|
|
|
int action; /* type of change */
|
|
|
|
VARARG(name,string); /* name of directory entry that changed */
|
2001-07-19 02:35:37 +02:00
|
|
|
@END
|
|
|
|
|
|
|
|
|
|
|
|
/* Create a file mapping */
|
|
|
|
@REQ(create_mapping)
|
2005-10-27 20:30:37 +02:00
|
|
|
unsigned int access; /* wanted access rights */
|
|
|
|
unsigned int attributes; /* object attributes */
|
2005-12-02 16:13:13 +01:00
|
|
|
obj_handle_t rootdir; /* root directory */
|
2001-07-19 02:35:37 +02:00
|
|
|
int size_high; /* mapping size */
|
|
|
|
int size_low; /* mapping size */
|
|
|
|
int protect; /* protection flags (see below) */
|
2002-05-30 22:12:58 +02:00
|
|
|
obj_handle_t file_handle; /* file handle */
|
2001-07-19 02:35:37 +02:00
|
|
|
VARARG(name,unicode_str); /* object name */
|
|
|
|
@REPLY
|
2002-05-30 22:12:58 +02:00
|
|
|
obj_handle_t handle; /* handle to the mapping */
|
2001-07-19 02:35:37 +02:00
|
|
|
@END
|
|
|
|
/* protection flags */
|
|
|
|
#define VPROT_READ 0x01
|
|
|
|
#define VPROT_WRITE 0x02
|
|
|
|
#define VPROT_EXEC 0x04
|
|
|
|
#define VPROT_WRITECOPY 0x08
|
|
|
|
#define VPROT_GUARD 0x10
|
|
|
|
#define VPROT_NOCACHE 0x20
|
|
|
|
#define VPROT_COMMITTED 0x40
|
|
|
|
#define VPROT_IMAGE 0x80
|
|
|
|
|
|
|
|
|
|
|
|
/* Open a mapping */
|
|
|
|
@REQ(open_mapping)
|
|
|
|
unsigned int access; /* wanted access rights */
|
2005-10-27 20:30:37 +02:00
|
|
|
unsigned int attributes; /* object attributes */
|
2005-12-02 16:13:13 +01:00
|
|
|
obj_handle_t rootdir; /* root directory */
|
2001-07-19 02:35:37 +02:00
|
|
|
VARARG(name,unicode_str); /* object name */
|
|
|
|
@REPLY
|
2002-05-30 22:12:58 +02:00
|
|
|
obj_handle_t handle; /* handle to the mapping */
|
2001-07-19 02:35:37 +02:00
|
|
|
@END
|
|
|
|
|
|
|
|
|
|
|
|
/* Get information about a file mapping */
|
|
|
|
@REQ(get_mapping_info)
|
2002-05-30 22:12:58 +02:00
|
|
|
obj_handle_t handle; /* handle to the mapping */
|
2001-07-19 02:35:37 +02:00
|
|
|
@REPLY
|
|
|
|
int size_high; /* mapping size */
|
|
|
|
int size_low; /* mapping size */
|
|
|
|
int protect; /* protection flags */
|
|
|
|
int header_size; /* header size (for VPROT_IMAGE mapping) */
|
|
|
|
void* base; /* default base addr (for VPROT_IMAGE mapping) */
|
2002-05-30 22:12:58 +02:00
|
|
|
obj_handle_t shared_file; /* shared mapping file handle */
|
2001-07-19 02:35:37 +02:00
|
|
|
int shared_size; /* shared mapping size */
|
|
|
|
@END
|
|
|
|
|
|
|
|
|
2003-01-09 01:01:28 +01:00
|
|
|
#define SNAP_HEAPLIST 0x00000001
|
|
|
|
#define SNAP_PROCESS 0x00000002
|
|
|
|
#define SNAP_THREAD 0x00000004
|
|
|
|
#define SNAP_MODULE 0x00000008
|
2001-07-19 02:35:37 +02:00
|
|
|
/* Create a snapshot */
|
|
|
|
@REQ(create_snapshot)
|
2005-12-09 12:09:44 +01:00
|
|
|
unsigned int attributes; /* object attributes */
|
2003-01-09 01:01:28 +01:00
|
|
|
int flags; /* snapshot flags (SNAP_*) */
|
2002-10-03 21:54:57 +02:00
|
|
|
process_id_t pid; /* process id */
|
2001-07-19 02:35:37 +02:00
|
|
|
@REPLY
|
2002-05-30 22:12:58 +02:00
|
|
|
obj_handle_t handle; /* handle to the snapshot */
|
2001-07-19 02:35:37 +02:00
|
|
|
@END
|
|
|
|
|
|
|
|
|
|
|
|
/* Get the next process from a snapshot */
|
|
|
|
@REQ(next_process)
|
2002-05-30 22:12:58 +02:00
|
|
|
obj_handle_t handle; /* handle to the snapshot */
|
2001-07-19 02:35:37 +02:00
|
|
|
int reset; /* reset snapshot position? */
|
|
|
|
@REPLY
|
|
|
|
int count; /* process usage count */
|
2002-10-03 21:54:57 +02:00
|
|
|
process_id_t pid; /* process id */
|
|
|
|
process_id_t ppid; /* parent process id */
|
2002-03-22 01:21:23 +01:00
|
|
|
void* heap; /* heap base */
|
|
|
|
void* module; /* main module */
|
2001-07-19 02:35:37 +02:00
|
|
|
int threads; /* number of threads */
|
|
|
|
int priority; /* process priority */
|
2003-09-16 03:07:21 +02:00
|
|
|
int handles; /* number of handles */
|
2003-09-30 03:04:19 +02:00
|
|
|
VARARG(filename,unicode_str); /* file name of main exe */
|
2001-07-19 02:35:37 +02:00
|
|
|
@END
|
|
|
|
|
|
|
|
|
|
|
|
/* Get the next thread from a snapshot */
|
|
|
|
@REQ(next_thread)
|
2002-05-30 22:12:58 +02:00
|
|
|
obj_handle_t handle; /* handle to the snapshot */
|
2001-07-19 02:35:37 +02:00
|
|
|
int reset; /* reset snapshot position? */
|
|
|
|
@REPLY
|
|
|
|
int count; /* thread usage count */
|
2002-10-03 21:54:57 +02:00
|
|
|
process_id_t pid; /* process id */
|
|
|
|
thread_id_t tid; /* thread id */
|
2001-07-19 02:35:37 +02:00
|
|
|
int base_pri; /* base priority */
|
|
|
|
int delta_pri; /* delta priority */
|
|
|
|
@END
|
|
|
|
|
|
|
|
|
|
|
|
/* Get the next module from a snapshot */
|
|
|
|
@REQ(next_module)
|
2002-05-30 22:12:58 +02:00
|
|
|
obj_handle_t handle; /* handle to the snapshot */
|
2001-07-19 02:35:37 +02:00
|
|
|
int reset; /* reset snapshot position? */
|
|
|
|
@REPLY
|
2002-10-03 21:54:57 +02:00
|
|
|
process_id_t pid; /* process id */
|
2001-07-19 02:35:37 +02:00
|
|
|
void* base; /* module base address */
|
2002-03-22 01:21:23 +01:00
|
|
|
size_t size; /* module size */
|
2003-09-30 03:04:19 +02:00
|
|
|
VARARG(filename,unicode_str); /* file name of module */
|
2001-07-19 02:35:37 +02:00
|
|
|
@END
|
|
|
|
|
|
|
|
|
|
|
|
/* Wait for a debug event */
|
|
|
|
@REQ(wait_debug_event)
|
|
|
|
int get_handle; /* should we alloc a handle for waiting? */
|
|
|
|
@REPLY
|
2002-10-03 21:54:57 +02:00
|
|
|
process_id_t pid; /* process id */
|
|
|
|
thread_id_t tid; /* thread id */
|
2002-05-30 22:12:58 +02:00
|
|
|
obj_handle_t wait; /* wait handle if no event ready */
|
2001-07-19 02:35:37 +02:00
|
|
|
VARARG(event,debug_event); /* debug event data */
|
|
|
|
@END
|
|
|
|
|
|
|
|
|
|
|
|
/* Queue an exception event */
|
|
|
|
@REQ(queue_exception_event)
|
|
|
|
int first; /* first chance exception? */
|
|
|
|
VARARG(record,exc_event); /* thread context followed by exception record */
|
|
|
|
@REPLY
|
2002-05-30 22:12:58 +02:00
|
|
|
obj_handle_t handle; /* handle to the queued event */
|
2001-07-19 02:35:37 +02:00
|
|
|
@END
|
|
|
|
|
|
|
|
|
|
|
|
/* Retrieve the status of an exception event */
|
|
|
|
@REQ(get_exception_status)
|
2002-05-30 22:12:58 +02:00
|
|
|
obj_handle_t handle; /* handle to the queued event */
|
2001-11-30 19:46:42 +01:00
|
|
|
@REPLY
|
2001-07-19 02:35:37 +02:00
|
|
|
VARARG(context,context); /* modified thread context */
|
|
|
|
@END
|
|
|
|
|
|
|
|
|
|
|
|
/* Send an output string to the debugger */
|
|
|
|
@REQ(output_debug_string)
|
|
|
|
void* string; /* string to display (in debugged process address space) */
|
|
|
|
int unicode; /* is it Unicode? */
|
|
|
|
int length; /* string length */
|
|
|
|
@END
|
|
|
|
|
|
|
|
|
|
|
|
/* Continue a debug event */
|
|
|
|
@REQ(continue_debug_event)
|
2002-10-03 21:54:57 +02:00
|
|
|
process_id_t pid; /* process id to continue */
|
|
|
|
thread_id_t tid; /* thread id to continue */
|
2001-07-19 02:35:37 +02:00
|
|
|
int status; /* continuation status */
|
|
|
|
@END
|
|
|
|
|
|
|
|
|
2002-02-27 02:28:30 +01:00
|
|
|
/* Start/stop debugging an existing process */
|
2001-07-19 02:35:37 +02:00
|
|
|
@REQ(debug_process)
|
2002-10-03 21:54:57 +02:00
|
|
|
process_id_t pid; /* id of the process to debug */
|
2002-02-27 02:28:30 +01:00
|
|
|
int attach; /* 1=attaching / 0=detaching from the process */
|
|
|
|
@END
|
|
|
|
|
|
|
|
|
2002-02-27 02:55:02 +01:00
|
|
|
/* Simulate a breakpoint in a process */
|
|
|
|
@REQ(debug_break)
|
2002-05-30 22:12:58 +02:00
|
|
|
obj_handle_t handle; /* process handle */
|
2002-02-27 02:55:02 +01:00
|
|
|
@REPLY
|
|
|
|
int self; /* was it the caller itself? */
|
|
|
|
@END
|
|
|
|
|
|
|
|
|
2002-02-27 02:28:30 +01:00
|
|
|
/* Set debugger kill on exit flag */
|
|
|
|
@REQ(set_debugger_kill_on_exit)
|
|
|
|
int kill_on_exit; /* 0=detach/1=kill debuggee when debugger dies */
|
2001-07-19 02:35:37 +02:00
|
|
|
@END
|
|
|
|
|
|
|
|
|
|
|
|
/* Read data from a process address space */
|
|
|
|
@REQ(read_process_memory)
|
2002-05-30 22:12:58 +02:00
|
|
|
obj_handle_t handle; /* process handle */
|
2001-11-30 19:46:42 +01:00
|
|
|
void* addr; /* addr to read from */
|
2001-07-19 02:35:37 +02:00
|
|
|
@REPLY
|
|
|
|
VARARG(data,bytes); /* result data */
|
|
|
|
@END
|
|
|
|
|
|
|
|
|
|
|
|
/* Write data to a process address space */
|
|
|
|
@REQ(write_process_memory)
|
2002-05-30 22:12:58 +02:00
|
|
|
obj_handle_t handle; /* process handle */
|
2001-07-19 02:35:37 +02:00
|
|
|
void* addr; /* addr to write to (must be int-aligned) */
|
|
|
|
unsigned int first_mask; /* mask for first word */
|
|
|
|
unsigned int last_mask; /* mask for last word */
|
2001-11-30 19:46:42 +01:00
|
|
|
VARARG(data,bytes); /* data to write */
|
2001-07-19 02:35:37 +02:00
|
|
|
@END
|
|
|
|
|
|
|
|
|
|
|
|
/* Create a registry key */
|
|
|
|
@REQ(create_key)
|
2002-05-30 22:12:58 +02:00
|
|
|
obj_handle_t parent; /* handle to the parent key */
|
2001-07-19 02:35:37 +02:00
|
|
|
unsigned int access; /* desired access rights */
|
2005-12-09 14:52:04 +01:00
|
|
|
unsigned int attributes; /* object attributes */
|
2001-07-19 02:35:37 +02:00
|
|
|
unsigned int options; /* creation options */
|
|
|
|
time_t modif; /* last modification time */
|
2001-11-30 19:46:42 +01:00
|
|
|
size_t namelen; /* length of key name in bytes */
|
|
|
|
VARARG(name,unicode_str,namelen); /* key name */
|
|
|
|
VARARG(class,unicode_str); /* class name */
|
2001-07-19 02:35:37 +02:00
|
|
|
@REPLY
|
2002-05-30 22:12:58 +02:00
|
|
|
obj_handle_t hkey; /* handle to the created key */
|
2001-07-19 02:35:37 +02:00
|
|
|
int created; /* has it been newly created? */
|
|
|
|
@END
|
|
|
|
|
|
|
|
/* Open a registry key */
|
|
|
|
@REQ(open_key)
|
2002-05-30 22:12:58 +02:00
|
|
|
obj_handle_t parent; /* handle to the parent key */
|
2001-07-19 02:35:37 +02:00
|
|
|
unsigned int access; /* desired access rights */
|
2005-12-09 14:52:04 +01:00
|
|
|
unsigned int attributes; /* object attributes */
|
2001-07-19 02:35:37 +02:00
|
|
|
VARARG(name,unicode_str); /* key name */
|
|
|
|
@REPLY
|
2002-05-30 22:12:58 +02:00
|
|
|
obj_handle_t hkey; /* handle to the open key */
|
2001-07-19 02:35:37 +02:00
|
|
|
@END
|
|
|
|
|
|
|
|
|
|
|
|
/* Delete a registry key */
|
|
|
|
@REQ(delete_key)
|
2002-05-30 22:12:58 +02:00
|
|
|
obj_handle_t hkey; /* handle to the key */
|
2001-07-19 02:35:37 +02:00
|
|
|
@END
|
|
|
|
|
|
|
|
|
2004-01-03 01:38:30 +01:00
|
|
|
/* Flush a registry key */
|
|
|
|
@REQ(flush_key)
|
|
|
|
obj_handle_t hkey; /* handle to the key */
|
|
|
|
@END
|
|
|
|
|
|
|
|
|
2001-07-19 02:35:37 +02:00
|
|
|
/* Enumerate registry subkeys */
|
|
|
|
@REQ(enum_key)
|
2002-05-30 22:12:58 +02:00
|
|
|
obj_handle_t hkey; /* handle to registry key */
|
2001-07-19 02:35:37 +02:00
|
|
|
int index; /* index of subkey (or -1 for current key) */
|
2001-11-30 19:46:42 +01:00
|
|
|
int info_class; /* requested information class */
|
2001-07-19 02:35:37 +02:00
|
|
|
@REPLY
|
|
|
|
int subkeys; /* number of subkeys */
|
|
|
|
int max_subkey; /* longest subkey name */
|
|
|
|
int max_class; /* longest class name */
|
|
|
|
int values; /* number of values */
|
|
|
|
int max_value; /* longest value name */
|
|
|
|
int max_data; /* longest value data */
|
|
|
|
time_t modif; /* last modification time */
|
2001-11-30 19:46:42 +01:00
|
|
|
size_t total; /* total length needed for full name and class */
|
|
|
|
size_t namelen; /* length of key name in bytes */
|
|
|
|
VARARG(name,unicode_str,namelen); /* key name */
|
|
|
|
VARARG(class,unicode_str); /* class name */
|
2001-07-19 02:35:37 +02:00
|
|
|
@END
|
|
|
|
|
|
|
|
|
|
|
|
/* Set a value of a registry key */
|
|
|
|
@REQ(set_key_value)
|
2002-05-30 22:12:58 +02:00
|
|
|
obj_handle_t hkey; /* handle to registry key */
|
2001-07-19 02:35:37 +02:00
|
|
|
int type; /* value type */
|
2001-11-30 19:46:42 +01:00
|
|
|
size_t namelen; /* length of value name in bytes */
|
|
|
|
VARARG(name,unicode_str,namelen); /* value name */
|
|
|
|
VARARG(data,bytes); /* value data */
|
2001-07-19 02:35:37 +02:00
|
|
|
@END
|
|
|
|
|
|
|
|
|
|
|
|
/* Retrieve the value of a registry key */
|
|
|
|
@REQ(get_key_value)
|
2002-05-30 22:12:58 +02:00
|
|
|
obj_handle_t hkey; /* handle to registry key */
|
2001-11-30 19:46:42 +01:00
|
|
|
VARARG(name,unicode_str); /* value name */
|
2001-07-19 02:35:37 +02:00
|
|
|
@REPLY
|
|
|
|
int type; /* value type */
|
2001-11-30 19:46:42 +01:00
|
|
|
size_t total; /* total length needed for data */
|
2001-07-19 02:35:37 +02:00
|
|
|
VARARG(data,bytes); /* value data */
|
|
|
|
@END
|
|
|
|
|
|
|
|
|
|
|
|
/* Enumerate a value of a registry key */
|
|
|
|
@REQ(enum_key_value)
|
2002-05-30 22:12:58 +02:00
|
|
|
obj_handle_t hkey; /* handle to registry key */
|
2001-07-19 02:35:37 +02:00
|
|
|
int index; /* value index */
|
2001-11-30 19:46:42 +01:00
|
|
|
int info_class; /* requested information class */
|
2001-07-19 02:35:37 +02:00
|
|
|
@REPLY
|
|
|
|
int type; /* value type */
|
2001-11-30 19:46:42 +01:00
|
|
|
size_t total; /* total length needed for full name and data */
|
|
|
|
size_t namelen; /* length of value name in bytes */
|
|
|
|
VARARG(name,unicode_str,namelen); /* value name */
|
|
|
|
VARARG(data,bytes); /* value data */
|
2001-07-19 02:35:37 +02:00
|
|
|
@END
|
|
|
|
|
|
|
|
|
|
|
|
/* Delete a value of a registry key */
|
|
|
|
@REQ(delete_key_value)
|
2002-05-30 22:12:58 +02:00
|
|
|
obj_handle_t hkey; /* handle to registry key */
|
2001-07-19 02:35:37 +02:00
|
|
|
VARARG(name,unicode_str); /* value name */
|
|
|
|
@END
|
|
|
|
|
|
|
|
|
|
|
|
/* Load a registry branch from a file */
|
|
|
|
@REQ(load_registry)
|
2002-05-30 22:12:58 +02:00
|
|
|
obj_handle_t hkey; /* root key to load to */
|
|
|
|
obj_handle_t file; /* file to load from */
|
2001-07-19 02:35:37 +02:00
|
|
|
VARARG(name,unicode_str); /* subkey name */
|
|
|
|
@END
|
|
|
|
|
|
|
|
|
2003-08-19 05:08:17 +02:00
|
|
|
/* UnLoad a registry branch from a file */
|
|
|
|
@REQ(unload_registry)
|
|
|
|
obj_handle_t hkey; /* root key to unload to */
|
|
|
|
@END
|
|
|
|
|
|
|
|
|
2001-07-19 02:35:37 +02:00
|
|
|
/* Save a registry branch to a file */
|
|
|
|
@REQ(save_registry)
|
2002-05-30 22:12:58 +02:00
|
|
|
obj_handle_t hkey; /* key to save */
|
|
|
|
obj_handle_t file; /* file to save to */
|
2001-07-19 02:35:37 +02:00
|
|
|
@END
|
|
|
|
|
|
|
|
|
2004-05-07 06:13:21 +02:00
|
|
|
/* Add a registry key change notification */
|
2002-11-25 03:47:32 +01:00
|
|
|
@REQ(set_registry_notification)
|
|
|
|
obj_handle_t hkey; /* key to watch for changes */
|
|
|
|
obj_handle_t event; /* event to set */
|
|
|
|
int subtree; /* should we watch the whole subtree? */
|
|
|
|
unsigned int filter; /* things to watch */
|
|
|
|
@END
|
|
|
|
|
|
|
|
|
2001-07-19 02:35:37 +02:00
|
|
|
/* Create a waitable timer */
|
|
|
|
@REQ(create_timer)
|
2004-12-02 19:05:37 +01:00
|
|
|
unsigned int access; /* wanted access rights */
|
2005-10-27 20:30:37 +02:00
|
|
|
unsigned int attributes; /* object attributes */
|
2005-12-02 16:05:54 +01:00
|
|
|
obj_handle_t rootdir; /* root directory */
|
2001-07-19 02:35:37 +02:00
|
|
|
int manual; /* manual reset */
|
|
|
|
VARARG(name,unicode_str); /* object name */
|
|
|
|
@REPLY
|
2002-05-30 22:12:58 +02:00
|
|
|
obj_handle_t handle; /* handle to the timer */
|
2001-07-19 02:35:37 +02:00
|
|
|
@END
|
|
|
|
|
|
|
|
|
|
|
|
/* Open a waitable timer */
|
|
|
|
@REQ(open_timer)
|
|
|
|
unsigned int access; /* wanted access rights */
|
2005-10-27 20:30:37 +02:00
|
|
|
unsigned int attributes; /* object attributes */
|
2005-12-02 16:05:54 +01:00
|
|
|
obj_handle_t rootdir; /* root directory */
|
2001-07-19 02:35:37 +02:00
|
|
|
VARARG(name,unicode_str); /* object name */
|
|
|
|
@REPLY
|
2002-05-30 22:12:58 +02:00
|
|
|
obj_handle_t handle; /* handle to the timer */
|
2001-07-19 02:35:37 +02:00
|
|
|
@END
|
|
|
|
|
|
|
|
/* Set a waitable timer */
|
|
|
|
@REQ(set_timer)
|
2002-05-30 22:12:58 +02:00
|
|
|
obj_handle_t handle; /* handle to the timer */
|
2003-04-03 00:48:59 +02:00
|
|
|
abs_time_t expire; /* next expiration absolute time */
|
2001-07-19 02:35:37 +02:00
|
|
|
int period; /* timer period in ms */
|
|
|
|
void* callback; /* callback function */
|
|
|
|
void* arg; /* callback argument */
|
2003-05-20 06:00:42 +02:00
|
|
|
@REPLY
|
|
|
|
int signaled; /* was the timer signaled before this call ? */
|
2001-07-19 02:35:37 +02:00
|
|
|
@END
|
|
|
|
|
|
|
|
/* Cancel a waitable timer */
|
|
|
|
@REQ(cancel_timer)
|
2002-05-30 22:12:58 +02:00
|
|
|
obj_handle_t handle; /* handle to the timer */
|
2003-05-20 06:00:42 +02:00
|
|
|
@REPLY
|
|
|
|
int signaled; /* was the timer signaled before this calltime ? */
|
2001-07-19 02:35:37 +02:00
|
|
|
@END
|
|
|
|
|
2004-12-13 22:10:58 +01:00
|
|
|
/* Get information on a waitable timer */
|
|
|
|
@REQ(get_timer_info)
|
|
|
|
obj_handle_t handle; /* handle to the timer */
|
|
|
|
@REPLY
|
|
|
|
abs_time_t when; /* absolute time when the timer next expires */
|
|
|
|
int signaled; /* is the timer signaled? */
|
|
|
|
@END
|
|
|
|
|
2001-07-19 02:35:37 +02:00
|
|
|
|
|
|
|
/* Retrieve the current context of a thread */
|
|
|
|
@REQ(get_thread_context)
|
2002-05-30 22:12:58 +02:00
|
|
|
obj_handle_t handle; /* thread handle */
|
2001-07-19 02:35:37 +02:00
|
|
|
unsigned int flags; /* context flags */
|
2005-11-02 21:54:12 +01:00
|
|
|
int suspend; /* if getting context during suspend */
|
2001-07-19 02:35:37 +02:00
|
|
|
@REPLY
|
2006-01-13 13:58:14 +01:00
|
|
|
int self; /* was it a handle to the current thread? */
|
2001-07-19 02:35:37 +02:00
|
|
|
VARARG(context,context); /* thread context */
|
|
|
|
@END
|
|
|
|
|
|
|
|
|
|
|
|
/* Set the current context of a thread */
|
|
|
|
@REQ(set_thread_context)
|
2002-05-30 22:12:58 +02:00
|
|
|
obj_handle_t handle; /* thread handle */
|
2001-07-19 02:35:37 +02:00
|
|
|
unsigned int flags; /* context flags */
|
2005-11-02 21:54:12 +01:00
|
|
|
int suspend; /* if setting context during suspend */
|
2001-07-19 02:35:37 +02:00
|
|
|
VARARG(context,context); /* thread context */
|
2006-01-11 20:20:32 +01:00
|
|
|
@REPLY
|
|
|
|
int self; /* was it a handle to the current thread? */
|
2001-07-19 02:35:37 +02:00
|
|
|
@END
|
|
|
|
|
|
|
|
|
|
|
|
/* Fetch a selector entry for a thread */
|
|
|
|
@REQ(get_selector_entry)
|
2002-05-30 22:12:58 +02:00
|
|
|
obj_handle_t handle; /* thread handle */
|
2001-07-19 02:35:37 +02:00
|
|
|
int entry; /* LDT entry */
|
|
|
|
@REPLY
|
|
|
|
unsigned int base; /* selector base */
|
|
|
|
unsigned int limit; /* selector limit */
|
|
|
|
unsigned char flags; /* selector flags */
|
|
|
|
@END
|
|
|
|
|
|
|
|
|
|
|
|
/* Add an atom */
|
|
|
|
@REQ(add_atom)
|
2005-05-10 17:15:50 +02:00
|
|
|
obj_handle_t table; /* which table to add atom to */
|
2001-07-19 02:35:37 +02:00
|
|
|
VARARG(name,unicode_str); /* atom name */
|
|
|
|
@REPLY
|
2001-10-12 20:45:29 +02:00
|
|
|
atom_t atom; /* resulting atom */
|
2001-07-19 02:35:37 +02:00
|
|
|
@END
|
|
|
|
|
|
|
|
|
|
|
|
/* Delete an atom */
|
|
|
|
@REQ(delete_atom)
|
2005-05-10 17:15:50 +02:00
|
|
|
obj_handle_t table; /* which table to delete atom from */
|
2001-10-12 20:45:29 +02:00
|
|
|
atom_t atom; /* atom handle */
|
2001-07-19 02:35:37 +02:00
|
|
|
@END
|
|
|
|
|
|
|
|
|
|
|
|
/* Find an atom */
|
|
|
|
@REQ(find_atom)
|
2005-05-10 17:15:50 +02:00
|
|
|
obj_handle_t table; /* which table to find atom from */
|
2001-07-19 02:35:37 +02:00
|
|
|
VARARG(name,unicode_str); /* atom name */
|
|
|
|
@REPLY
|
2001-10-12 20:45:29 +02:00
|
|
|
atom_t atom; /* atom handle */
|
2001-07-19 02:35:37 +02:00
|
|
|
@END
|
|
|
|
|
|
|
|
|
2005-05-10 17:15:50 +02:00
|
|
|
/* Get information about an atom */
|
|
|
|
@REQ(get_atom_information)
|
|
|
|
obj_handle_t table; /* which table to find atom from */
|
2001-10-12 20:45:29 +02:00
|
|
|
atom_t atom; /* atom handle */
|
2001-07-19 02:35:37 +02:00
|
|
|
@REPLY
|
|
|
|
int count; /* atom lock count */
|
2005-05-10 17:15:50 +02:00
|
|
|
int pinned; /* whether the atom has been pinned */
|
2006-01-03 17:34:43 +01:00
|
|
|
size_t total; /* actual length of atom name */
|
2001-07-19 02:35:37 +02:00
|
|
|
VARARG(name,unicode_str); /* atom name */
|
|
|
|
@END
|
|
|
|
|
|
|
|
|
2005-05-10 17:15:50 +02:00
|
|
|
/* Set information about an atom */
|
|
|
|
@REQ(set_atom_information)
|
|
|
|
obj_handle_t table; /* which table to find atom from */
|
|
|
|
atom_t atom; /* atom handle */
|
|
|
|
int pinned; /* whether to bump atom information */
|
|
|
|
@END
|
|
|
|
|
|
|
|
|
|
|
|
/* Empty an atom table */
|
|
|
|
@REQ(empty_atom_table)
|
|
|
|
obj_handle_t table; /* which table to find atom from */
|
|
|
|
int if_pinned; /* whether to delete pinned atoms */
|
|
|
|
@END
|
|
|
|
|
|
|
|
|
|
|
|
/* Init an atom table */
|
2001-07-19 02:35:37 +02:00
|
|
|
@REQ(init_atom_table)
|
2005-05-10 17:15:50 +02:00
|
|
|
int entries; /* number of entries (only for local) */
|
|
|
|
@REPLY
|
|
|
|
obj_handle_t table; /* handle to the atom table */
|
2001-07-19 02:35:37 +02:00
|
|
|
@END
|
|
|
|
|
|
|
|
|
|
|
|
/* Get the message queue of the current thread */
|
|
|
|
@REQ(get_msg_queue)
|
|
|
|
@REPLY
|
2002-05-30 22:12:58 +02:00
|
|
|
obj_handle_t handle; /* handle to the queue */
|
2001-07-19 02:35:37 +02:00
|
|
|
@END
|
|
|
|
|
|
|
|
|
|
|
|
/* Set the current message queue wakeup mask */
|
|
|
|
@REQ(set_queue_mask)
|
|
|
|
unsigned int wake_mask; /* wakeup bits mask */
|
|
|
|
unsigned int changed_mask; /* changed bits mask */
|
|
|
|
int skip_wait; /* will we skip waiting if signaled? */
|
|
|
|
@REPLY
|
|
|
|
unsigned int wake_bits; /* current wake bits */
|
|
|
|
unsigned int changed_bits; /* current changed bits */
|
|
|
|
@END
|
|
|
|
|
|
|
|
|
|
|
|
/* Get the current message queue status */
|
|
|
|
@REQ(get_queue_status)
|
|
|
|
int clear; /* should we clear the change bits? */
|
|
|
|
@REPLY
|
|
|
|
unsigned int wake_bits; /* wake bits */
|
|
|
|
unsigned int changed_bits; /* changed bits since last time */
|
|
|
|
@END
|
|
|
|
|
|
|
|
|
|
|
|
/* Wait for a process to start waiting on input */
|
|
|
|
@REQ(wait_input_idle)
|
2002-05-30 22:12:58 +02:00
|
|
|
obj_handle_t handle; /* process handle */
|
2001-07-19 02:35:37 +02:00
|
|
|
int timeout; /* timeout */
|
|
|
|
@REPLY
|
2002-05-30 22:12:58 +02:00
|
|
|
obj_handle_t event; /* handle to idle event */
|
2001-07-19 02:35:37 +02:00
|
|
|
@END
|
|
|
|
|
|
|
|
|
|
|
|
/* Send a message to a thread queue */
|
|
|
|
@REQ(send_message)
|
2002-10-03 21:54:57 +02:00
|
|
|
thread_id_t id; /* thread id */
|
2001-08-07 21:19:08 +02:00
|
|
|
int type; /* message type (see below) */
|
2003-07-11 06:09:42 +02:00
|
|
|
int flags; /* message flags (see below) */
|
2001-08-28 20:44:52 +02:00
|
|
|
user_handle_t win; /* window handle */
|
2001-07-19 02:35:37 +02:00
|
|
|
unsigned int msg; /* message code */
|
|
|
|
unsigned int wparam; /* parameters */
|
|
|
|
unsigned int lparam; /* parameters */
|
2001-08-07 21:19:08 +02:00
|
|
|
int x; /* x position */
|
|
|
|
int y; /* y position */
|
2001-07-19 02:35:37 +02:00
|
|
|
unsigned int time; /* message time */
|
|
|
|
unsigned int info; /* extra info */
|
2001-08-07 21:19:08 +02:00
|
|
|
int timeout; /* timeout for reply */
|
2003-07-26 22:36:43 +02:00
|
|
|
void* callback; /* callback address */
|
2001-08-07 21:19:08 +02:00
|
|
|
VARARG(data,bytes); /* message data for sent messages */
|
2001-07-19 02:35:37 +02:00
|
|
|
@END
|
2001-08-07 21:19:08 +02:00
|
|
|
|
2006-01-17 13:14:31 +01:00
|
|
|
@REQ(post_quit_message)
|
|
|
|
int exit_code; /* exit code to return */
|
|
|
|
@END
|
|
|
|
|
2001-08-07 21:19:08 +02:00
|
|
|
enum message_type
|
|
|
|
{
|
|
|
|
MSG_ASCII, /* Ascii message (from SendMessageA) */
|
|
|
|
MSG_UNICODE, /* Unicode message (from SendMessageW) */
|
|
|
|
MSG_NOTIFY, /* notify message (from SendNotifyMessageW), always Unicode */
|
|
|
|
MSG_CALLBACK, /* callback message (from SendMessageCallbackW), always Unicode */
|
2003-07-26 22:36:43 +02:00
|
|
|
MSG_CALLBACK_RESULT,/* result of a callback message */
|
2001-08-07 21:19:08 +02:00
|
|
|
MSG_OTHER_PROCESS, /* sent from other process, may include vararg data, always Unicode */
|
|
|
|
MSG_POSTED, /* posted message (from PostMessageW), always Unicode */
|
2005-02-03 17:40:20 +01:00
|
|
|
MSG_HARDWARE, /* hardware message */
|
|
|
|
MSG_WINEVENT /* winevent message */
|
2001-08-07 21:19:08 +02:00
|
|
|
};
|
2003-07-11 06:09:42 +02:00
|
|
|
#define SEND_MSG_ABORT_IF_HUNG 0x01
|
2001-07-19 02:35:37 +02:00
|
|
|
|
|
|
|
|
|
|
|
/* Get a message from the current queue */
|
|
|
|
@REQ(get_message)
|
|
|
|
int flags; /* see below */
|
2001-08-28 20:44:52 +02:00
|
|
|
user_handle_t get_win; /* window handle to get */
|
2001-07-19 02:35:37 +02:00
|
|
|
unsigned int get_first; /* first message code to get */
|
|
|
|
unsigned int get_last; /* last message code to get */
|
2005-04-20 15:03:59 +02:00
|
|
|
unsigned int hw_id; /* id of the previous hardware message (or 0) */
|
2001-07-19 02:35:37 +02:00
|
|
|
@REPLY
|
|
|
|
int type; /* message type */
|
2001-08-28 20:44:52 +02:00
|
|
|
user_handle_t win; /* window handle */
|
2001-07-19 02:35:37 +02:00
|
|
|
unsigned int msg; /* message code */
|
2003-07-26 22:36:43 +02:00
|
|
|
unsigned int wparam; /* parameters (callback function for MSG_CALLBACK_RESULT) */
|
|
|
|
unsigned int lparam; /* parameters (result for MSG_CALLBACK_RESULT) */
|
2001-08-07 21:19:08 +02:00
|
|
|
int x; /* x position */
|
|
|
|
int y; /* y position */
|
2005-02-03 17:40:20 +01:00
|
|
|
user_handle_t hook; /* winevent hook handle */
|
|
|
|
void* hook_proc; /* winevent hook proc address */
|
2001-07-19 02:35:37 +02:00
|
|
|
unsigned int time; /* message time */
|
2003-07-26 22:36:43 +02:00
|
|
|
unsigned int info; /* extra info (callback argument for MSG_CALLBACK_RESULT) */
|
2005-04-20 15:03:59 +02:00
|
|
|
unsigned int hw_id; /* id if hardware message */
|
2005-05-11 15:03:15 +02:00
|
|
|
unsigned int active_hooks; /* active hooks bitmap */
|
2001-11-30 19:46:42 +01:00
|
|
|
size_t total; /* total size of extra data */
|
2001-08-07 21:19:08 +02:00
|
|
|
VARARG(data,bytes); /* message data for sent messages */
|
2001-07-19 02:35:37 +02:00
|
|
|
@END
|
|
|
|
#define GET_MSG_REMOVE 1 /* remove the message */
|
|
|
|
#define GET_MSG_SENT_ONLY 2 /* only get sent messages */
|
|
|
|
|
|
|
|
/* Reply to a sent message */
|
|
|
|
@REQ(reply_message)
|
|
|
|
unsigned int result; /* message result */
|
|
|
|
int remove; /* should we remove the message? */
|
2001-08-07 21:19:08 +02:00
|
|
|
VARARG(data,bytes); /* message data for sent messages */
|
2001-07-19 02:35:37 +02:00
|
|
|
@END
|
|
|
|
|
|
|
|
|
2005-03-23 11:33:17 +01:00
|
|
|
/* Accept the current hardware message */
|
|
|
|
@REQ(accept_hardware_message)
|
2005-04-20 15:03:59 +02:00
|
|
|
unsigned int hw_id; /* id of the hardware message */
|
2005-03-23 11:33:17 +01:00
|
|
|
int remove; /* should we remove the message? */
|
|
|
|
user_handle_t new_win; /* new destination window for current message */
|
|
|
|
@END
|
|
|
|
|
|
|
|
|
2001-07-19 02:35:37 +02:00
|
|
|
/* Retrieve the reply for the last message sent */
|
|
|
|
@REQ(get_message_reply)
|
|
|
|
int cancel; /* cancel message if not ready? */
|
|
|
|
@REPLY
|
|
|
|
unsigned int result; /* message result */
|
2001-08-07 21:19:08 +02:00
|
|
|
VARARG(data,bytes); /* message data for sent messages */
|
2001-07-19 02:35:37 +02:00
|
|
|
@END
|
|
|
|
|
|
|
|
|
|
|
|
/* Set a window timer */
|
|
|
|
@REQ(set_win_timer)
|
2001-08-28 20:44:52 +02:00
|
|
|
user_handle_t win; /* window handle */
|
2001-07-19 02:35:37 +02:00
|
|
|
unsigned int msg; /* message to post */
|
|
|
|
unsigned int id; /* timer id */
|
|
|
|
unsigned int rate; /* timer rate in ms */
|
|
|
|
unsigned int lparam; /* message lparam (callback proc) */
|
2004-11-29 19:08:18 +01:00
|
|
|
@REPLY
|
|
|
|
unsigned int id; /* timer id */
|
2001-07-19 02:35:37 +02:00
|
|
|
@END
|
|
|
|
|
|
|
|
|
|
|
|
/* Kill a window timer */
|
|
|
|
@REQ(kill_win_timer)
|
2001-08-28 20:44:52 +02:00
|
|
|
user_handle_t win; /* window handle */
|
2001-07-19 02:35:37 +02:00
|
|
|
unsigned int msg; /* message to post */
|
|
|
|
unsigned int id; /* timer id */
|
|
|
|
@END
|
|
|
|
|
|
|
|
|
|
|
|
/* Retrieve info about a serial port */
|
|
|
|
@REQ(get_serial_info)
|
2002-05-30 22:12:58 +02:00
|
|
|
obj_handle_t handle; /* handle to comm port */
|
2001-07-19 02:35:37 +02:00
|
|
|
@REPLY
|
|
|
|
unsigned int readinterval;
|
|
|
|
unsigned int readconst;
|
|
|
|
unsigned int readmult;
|
|
|
|
unsigned int writeconst;
|
|
|
|
unsigned int writemult;
|
|
|
|
unsigned int eventmask;
|
|
|
|
unsigned int commerror;
|
|
|
|
@END
|
|
|
|
|
|
|
|
|
|
|
|
/* Set info about a serial port */
|
|
|
|
@REQ(set_serial_info)
|
2002-05-30 22:12:58 +02:00
|
|
|
obj_handle_t handle; /* handle to comm port */
|
2001-07-19 02:35:37 +02:00
|
|
|
int flags; /* bitmask to set values (see below) */
|
|
|
|
unsigned int readinterval;
|
|
|
|
unsigned int readconst;
|
|
|
|
unsigned int readmult;
|
|
|
|
unsigned int writeconst;
|
|
|
|
unsigned int writemult;
|
|
|
|
unsigned int eventmask;
|
|
|
|
unsigned int commerror;
|
|
|
|
@END
|
|
|
|
#define SERIALINFO_SET_TIMEOUTS 0x01
|
|
|
|
#define SERIALINFO_SET_MASK 0x02
|
|
|
|
#define SERIALINFO_SET_ERROR 0x04
|
|
|
|
|
|
|
|
|
2005-01-14 20:54:38 +01:00
|
|
|
/* Create an async I/O */
|
2001-12-20 01:07:05 +01:00
|
|
|
@REQ(register_async)
|
2005-01-14 20:54:38 +01:00
|
|
|
obj_handle_t handle; /* handle to comm port, socket or file */
|
|
|
|
int type; /* type of queue to look after */
|
|
|
|
void* io_apc; /* APC routine to queue upon end of async */
|
|
|
|
void* io_sb; /* I/O status block (unique across all async on this handle) */
|
|
|
|
void* io_user; /* data to pass back to caller */
|
|
|
|
int count; /* count - usually # of bytes to be read/written */
|
2001-07-19 02:35:37 +02:00
|
|
|
@END
|
|
|
|
#define ASYNC_TYPE_READ 0x01
|
|
|
|
#define ASYNC_TYPE_WRITE 0x02
|
|
|
|
#define ASYNC_TYPE_WAIT 0x03
|
|
|
|
|
|
|
|
|
2005-01-14 20:54:38 +01:00
|
|
|
/* Cancel all async op on a fd */
|
|
|
|
@REQ(cancel_async)
|
|
|
|
obj_handle_t handle; /* handle to comm port, socket or file */
|
|
|
|
@END
|
|
|
|
|
|
|
|
|
2001-07-19 02:35:37 +02:00
|
|
|
/* Create a named pipe */
|
|
|
|
@REQ(create_named_pipe)
|
2005-09-26 13:02:45 +02:00
|
|
|
unsigned int access;
|
2005-10-27 20:30:37 +02:00
|
|
|
unsigned int attributes; /* object attributes */
|
2005-12-05 13:09:35 +01:00
|
|
|
obj_handle_t rootdir; /* root directory */
|
2005-04-18 16:57:04 +02:00
|
|
|
unsigned int options;
|
|
|
|
unsigned int flags;
|
2001-07-19 02:35:37 +02:00
|
|
|
unsigned int maxinstances;
|
|
|
|
unsigned int outsize;
|
|
|
|
unsigned int insize;
|
|
|
|
unsigned int timeout;
|
2001-12-31 23:26:51 +01:00
|
|
|
VARARG(name,unicode_str); /* pipe name */
|
2001-07-19 02:35:37 +02:00
|
|
|
@REPLY
|
2002-05-30 22:12:58 +02:00
|
|
|
obj_handle_t handle; /* handle to the pipe */
|
2001-07-19 02:35:37 +02:00
|
|
|
@END
|
|
|
|
|
2005-04-18 16:57:04 +02:00
|
|
|
/* flags in create_named_pipe and get_named_pipe_info */
|
|
|
|
#define NAMED_PIPE_MESSAGE_STREAM_WRITE 0x0001
|
|
|
|
#define NAMED_PIPE_MESSAGE_STREAM_READ 0x0002
|
|
|
|
#define NAMED_PIPE_NONBLOCKING_MODE 0x0004
|
|
|
|
|
2001-07-19 02:35:37 +02:00
|
|
|
|
|
|
|
/* Open an existing named pipe */
|
|
|
|
@REQ(open_named_pipe)
|
|
|
|
unsigned int access;
|
2005-10-27 20:30:37 +02:00
|
|
|
unsigned int attributes; /* object attributes */
|
2005-12-05 13:09:35 +01:00
|
|
|
obj_handle_t rootdir; /* root directory */
|
2005-06-08 21:11:46 +02:00
|
|
|
unsigned int flags; /* file flags */
|
2001-12-31 23:26:51 +01:00
|
|
|
VARARG(name,unicode_str); /* pipe name */
|
2001-07-19 02:35:37 +02:00
|
|
|
@REPLY
|
2002-05-30 22:12:58 +02:00
|
|
|
obj_handle_t handle; /* handle to the pipe */
|
2001-07-19 02:35:37 +02:00
|
|
|
@END
|
|
|
|
|
|
|
|
|
|
|
|
/* Connect to a named pipe */
|
|
|
|
@REQ(connect_named_pipe)
|
2002-05-30 22:12:58 +02:00
|
|
|
obj_handle_t handle;
|
2005-09-06 16:09:42 +02:00
|
|
|
obj_handle_t event;
|
2001-11-07 21:14:45 +01:00
|
|
|
void* func;
|
2001-07-19 02:35:37 +02:00
|
|
|
@END
|
2001-08-24 01:29:20 +02:00
|
|
|
|
|
|
|
|
|
|
|
/* Wait for a named pipe */
|
|
|
|
@REQ(wait_named_pipe)
|
2005-12-14 11:14:02 +01:00
|
|
|
obj_handle_t handle;
|
2001-08-24 01:29:20 +02:00
|
|
|
unsigned int timeout;
|
2005-12-14 11:14:02 +01:00
|
|
|
obj_handle_t event;
|
2001-11-07 21:14:45 +01:00
|
|
|
void* func;
|
2001-12-31 23:26:51 +01:00
|
|
|
VARARG(name,unicode_str); /* pipe name */
|
2001-08-24 01:29:20 +02:00
|
|
|
@END
|
|
|
|
|
|
|
|
|
|
|
|
/* Disconnect a named pipe */
|
|
|
|
@REQ(disconnect_named_pipe)
|
2002-05-30 22:12:58 +02:00
|
|
|
obj_handle_t handle;
|
2003-05-15 06:22:45 +02:00
|
|
|
@REPLY
|
|
|
|
int fd; /* associated fd to close */
|
2001-08-24 01:29:20 +02:00
|
|
|
@END
|
2001-08-27 21:03:42 +02:00
|
|
|
|
2001-08-28 20:44:52 +02:00
|
|
|
|
2001-08-27 21:03:42 +02:00
|
|
|
@REQ(get_named_pipe_info)
|
2002-05-30 22:12:58 +02:00
|
|
|
obj_handle_t handle;
|
2001-08-27 21:03:42 +02:00
|
|
|
@REPLY
|
|
|
|
unsigned int flags;
|
|
|
|
unsigned int maxinstances;
|
|
|
|
unsigned int outsize;
|
|
|
|
unsigned int insize;
|
|
|
|
@END
|
|
|
|
|
2001-08-28 20:44:52 +02:00
|
|
|
|
|
|
|
/* Create a window */
|
|
|
|
@REQ(create_window)
|
2001-09-21 23:08:40 +02:00
|
|
|
user_handle_t parent; /* parent window */
|
|
|
|
user_handle_t owner; /* owner window */
|
2001-10-12 20:45:29 +02:00
|
|
|
atom_t atom; /* class atom */
|
2003-12-10 05:08:06 +01:00
|
|
|
void* instance; /* module instance */
|
2001-08-28 20:44:52 +02:00
|
|
|
@REPLY
|
2001-09-21 23:08:40 +02:00
|
|
|
user_handle_t handle; /* created window */
|
2003-12-11 06:34:53 +01:00
|
|
|
int extra; /* number of extra bytes */
|
|
|
|
void* class_ptr; /* pointer to class in client address space */
|
2001-08-28 20:44:52 +02:00
|
|
|
@END
|
|
|
|
|
|
|
|
|
|
|
|
/* Destroy a window */
|
|
|
|
@REQ(destroy_window)
|
|
|
|
user_handle_t handle; /* handle to the window */
|
|
|
|
@END
|
|
|
|
|
|
|
|
|
2005-07-08 13:37:40 +02:00
|
|
|
/* Retrieve the desktop window for the current thread */
|
|
|
|
@REQ(get_desktop_window)
|
|
|
|
@REPLY
|
|
|
|
user_handle_t handle; /* handle to the desktop window */
|
|
|
|
@END
|
|
|
|
|
|
|
|
|
2001-10-22 21:08:33 +02:00
|
|
|
/* Set a window owner */
|
|
|
|
@REQ(set_window_owner)
|
|
|
|
user_handle_t handle; /* handle to the window */
|
|
|
|
user_handle_t owner; /* new owner */
|
|
|
|
@REPLY
|
|
|
|
user_handle_t full_owner; /* full handle of new owner */
|
2002-09-25 02:21:56 +02:00
|
|
|
user_handle_t prev_owner; /* full handle of previous owner */
|
2001-10-22 21:08:33 +02:00
|
|
|
@END
|
|
|
|
|
|
|
|
|
2001-08-28 20:44:52 +02:00
|
|
|
/* Get information from a window handle */
|
|
|
|
@REQ(get_window_info)
|
|
|
|
user_handle_t handle; /* handle to the window */
|
|
|
|
@REPLY
|
|
|
|
user_handle_t full_handle; /* full 32-bit handle */
|
2002-10-12 01:41:06 +02:00
|
|
|
user_handle_t last_active; /* last active popup */
|
2002-10-03 21:54:57 +02:00
|
|
|
process_id_t pid; /* process owning the window */
|
|
|
|
thread_id_t tid; /* thread owning the window */
|
2001-10-22 21:08:33 +02:00
|
|
|
atom_t atom; /* class atom */
|
2005-07-07 14:02:31 +02:00
|
|
|
int is_unicode; /* ANSI or unicode */
|
2001-08-28 20:44:52 +02:00
|
|
|
@END
|
2001-09-21 23:08:40 +02:00
|
|
|
|
|
|
|
|
2001-10-22 21:08:33 +02:00
|
|
|
/* Set some information in a window */
|
|
|
|
@REQ(set_window_info)
|
|
|
|
user_handle_t handle; /* handle to the window */
|
|
|
|
unsigned int flags; /* flags for fields to set (see below) */
|
|
|
|
unsigned int style; /* window style */
|
|
|
|
unsigned int ex_style; /* window extended style */
|
|
|
|
unsigned int id; /* window id */
|
|
|
|
void* instance; /* creator instance */
|
2005-07-07 14:02:31 +02:00
|
|
|
int is_unicode; /* ANSI or unicode */
|
2001-10-22 21:08:33 +02:00
|
|
|
void* user_data; /* user-specific data */
|
2003-11-26 23:15:41 +01:00
|
|
|
int extra_offset; /* offset to set in extra bytes */
|
2003-12-10 02:34:51 +01:00
|
|
|
size_t extra_size; /* size to set in extra bytes */
|
2003-11-26 23:15:41 +01:00
|
|
|
unsigned int extra_value; /* value to set in extra bytes */
|
2001-10-22 21:08:33 +02:00
|
|
|
@REPLY
|
|
|
|
unsigned int old_style; /* old window style */
|
|
|
|
unsigned int old_ex_style; /* old window extended style */
|
|
|
|
unsigned int old_id; /* old window id */
|
|
|
|
void* old_instance; /* old creator instance */
|
|
|
|
void* old_user_data; /* old user-specific data */
|
2003-11-26 23:15:41 +01:00
|
|
|
unsigned int old_extra_value; /* old value in extra bytes */
|
2001-10-22 21:08:33 +02:00
|
|
|
@END
|
|
|
|
#define SET_WIN_STYLE 0x01
|
|
|
|
#define SET_WIN_EXSTYLE 0x02
|
|
|
|
#define SET_WIN_ID 0x04
|
|
|
|
#define SET_WIN_INSTANCE 0x08
|
|
|
|
#define SET_WIN_USERDATA 0x10
|
2003-12-10 02:34:51 +01:00
|
|
|
#define SET_WIN_EXTRA 0x20
|
2005-07-07 14:02:31 +02:00
|
|
|
#define SET_WIN_UNICODE 0x40
|
2001-10-22 21:08:33 +02:00
|
|
|
|
|
|
|
|
2005-03-25 11:38:56 +01:00
|
|
|
/* Set the parent of a window */
|
|
|
|
@REQ(set_parent)
|
|
|
|
user_handle_t handle; /* handle to the window */
|
|
|
|
user_handle_t parent; /* handle to the parent */
|
|
|
|
@REPLY
|
|
|
|
user_handle_t old_parent; /* old parent window */
|
|
|
|
user_handle_t full_parent; /* full handle of new parent */
|
|
|
|
@END
|
|
|
|
|
|
|
|
|
2001-09-21 23:08:40 +02:00
|
|
|
/* Get a list of the window parents, up to the root of the tree */
|
|
|
|
@REQ(get_window_parents)
|
|
|
|
user_handle_t handle; /* handle to the window */
|
|
|
|
@REPLY
|
|
|
|
int count; /* total count of parents */
|
|
|
|
VARARG(parents,user_handles); /* parent handles */
|
|
|
|
@END
|
|
|
|
|
|
|
|
|
|
|
|
/* Get a list of the window children */
|
|
|
|
@REQ(get_window_children)
|
|
|
|
user_handle_t parent; /* parent window */
|
2001-10-12 20:45:29 +02:00
|
|
|
atom_t atom; /* class atom for the listed children */
|
2002-10-03 21:54:57 +02:00
|
|
|
thread_id_t tid; /* thread owning the listed children */
|
2001-09-21 23:08:40 +02:00
|
|
|
@REPLY
|
|
|
|
int count; /* total count of children */
|
2001-09-24 03:19:59 +02:00
|
|
|
VARARG(children,user_handles); /* children handles */
|
2001-09-21 23:08:40 +02:00
|
|
|
@END
|
|
|
|
|
|
|
|
|
2004-07-21 00:17:38 +02:00
|
|
|
/* Get a list of the window children that contain a given point */
|
|
|
|
@REQ(get_window_children_from_point)
|
|
|
|
user_handle_t parent; /* parent window */
|
|
|
|
int x; /* point in parent coordinates */
|
|
|
|
int y;
|
|
|
|
@REPLY
|
|
|
|
int count; /* total count of children */
|
|
|
|
VARARG(children,user_handles); /* children handles */
|
|
|
|
@END
|
|
|
|
|
|
|
|
|
2001-09-21 23:08:40 +02:00
|
|
|
/* Get window tree information from a window handle */
|
|
|
|
@REQ(get_window_tree)
|
|
|
|
user_handle_t handle; /* handle to the window */
|
|
|
|
@REPLY
|
|
|
|
user_handle_t parent; /* parent window */
|
|
|
|
user_handle_t owner; /* owner window */
|
|
|
|
user_handle_t next_sibling; /* next sibling in Z-order */
|
|
|
|
user_handle_t prev_sibling; /* prev sibling in Z-order */
|
|
|
|
user_handle_t first_sibling; /* first sibling in Z-order */
|
|
|
|
user_handle_t last_sibling; /* last sibling in Z-order */
|
|
|
|
user_handle_t first_child; /* first child */
|
|
|
|
user_handle_t last_child; /* last child */
|
|
|
|
@END
|
2001-10-12 21:10:26 +02:00
|
|
|
|
2004-12-07 18:31:53 +01:00
|
|
|
/* Set the position and Z order of a window */
|
|
|
|
@REQ(set_window_pos)
|
2001-10-16 23:55:37 +02:00
|
|
|
user_handle_t handle; /* handle to the window */
|
2004-12-07 18:31:53 +01:00
|
|
|
user_handle_t previous; /* previous window in Z order */
|
|
|
|
unsigned int flags; /* SWP_* flags */
|
2001-10-16 23:55:37 +02:00
|
|
|
rectangle_t window; /* window rectangle */
|
|
|
|
rectangle_t client; /* client rectangle */
|
2005-02-03 14:40:12 +01:00
|
|
|
VARARG(valid,rectangles); /* valid rectangles from WM_NCCALCSIZE */
|
2004-12-07 18:31:53 +01:00
|
|
|
@REPLY
|
|
|
|
unsigned int new_style; /* new window style */
|
2001-10-16 23:55:37 +02:00
|
|
|
@END
|
|
|
|
|
|
|
|
|
|
|
|
/* Get the window and client rectangles of a window */
|
|
|
|
@REQ(get_window_rectangles)
|
|
|
|
user_handle_t handle; /* handle to the window */
|
|
|
|
@REPLY
|
|
|
|
rectangle_t window; /* window rectangle */
|
2005-03-17 20:10:41 +01:00
|
|
|
rectangle_t visible; /* visible part of the window rectangle */
|
2001-10-16 23:55:37 +02:00
|
|
|
rectangle_t client; /* client rectangle */
|
|
|
|
@END
|
|
|
|
|
|
|
|
|
2001-11-13 23:23:48 +01:00
|
|
|
/* Get the window text */
|
|
|
|
@REQ(get_window_text)
|
|
|
|
user_handle_t handle; /* handle to the window */
|
|
|
|
@REPLY
|
|
|
|
VARARG(text,unicode_str); /* window text */
|
|
|
|
@END
|
|
|
|
|
|
|
|
|
|
|
|
/* Set the window text */
|
|
|
|
@REQ(set_window_text)
|
|
|
|
user_handle_t handle; /* handle to the window */
|
|
|
|
VARARG(text,unicode_str); /* window text */
|
|
|
|
@END
|
|
|
|
|
|
|
|
|
2001-10-16 23:55:37 +02:00
|
|
|
/* Get the coordinates offset between two windows */
|
|
|
|
@REQ(get_windows_offset)
|
|
|
|
user_handle_t from; /* handle to the first window */
|
|
|
|
user_handle_t to; /* handle to the second window */
|
|
|
|
@REPLY
|
|
|
|
int x; /* x coordinate offset */
|
|
|
|
int y; /* y coordinate offset */
|
|
|
|
@END
|
|
|
|
|
2001-10-12 21:10:26 +02:00
|
|
|
|
2004-06-23 22:44:58 +02:00
|
|
|
/* Get the visible region of a window */
|
|
|
|
@REQ(get_visible_region)
|
|
|
|
user_handle_t window; /* handle to the window */
|
|
|
|
unsigned int flags; /* DCX flags */
|
|
|
|
@REPLY
|
2005-03-31 17:36:57 +02:00
|
|
|
user_handle_t top_win; /* top window to clip against */
|
|
|
|
int top_org_x; /* top window visible rect origin in screen coords */
|
|
|
|
int top_org_y;
|
|
|
|
int win_org_x; /* window rect origin in screen coords */
|
|
|
|
int win_org_y;
|
2004-06-23 22:44:58 +02:00
|
|
|
size_t total_size; /* total size of the resulting region */
|
2005-03-31 17:36:57 +02:00
|
|
|
VARARG(region,rectangles); /* list of rectangles for the region (in screen coords) */
|
2004-06-23 22:44:58 +02:00
|
|
|
@END
|
|
|
|
|
|
|
|
|
2004-06-29 05:53:25 +02:00
|
|
|
/* Get the window region */
|
|
|
|
@REQ(get_window_region)
|
|
|
|
user_handle_t window; /* handle to the window */
|
|
|
|
@REPLY
|
|
|
|
size_t total_size; /* total size of the resulting region */
|
|
|
|
VARARG(region,rectangles); /* list of rectangles for the region */
|
|
|
|
@END
|
|
|
|
|
|
|
|
|
|
|
|
/* Set the window region */
|
|
|
|
@REQ(set_window_region)
|
|
|
|
user_handle_t window; /* handle to the window */
|
|
|
|
VARARG(region,rectangles); /* list of rectangles for the region */
|
|
|
|
@END
|
|
|
|
|
|
|
|
|
2004-12-07 18:31:53 +01:00
|
|
|
/* Get the window update region */
|
|
|
|
@REQ(get_update_region)
|
|
|
|
user_handle_t window; /* handle to the window */
|
2005-05-31 15:37:16 +02:00
|
|
|
user_handle_t from_child; /* child to start searching from */
|
2004-12-07 18:31:53 +01:00
|
|
|
unsigned int flags; /* update flags (see below) */
|
|
|
|
@REPLY
|
|
|
|
user_handle_t child; /* child to repaint (or window itself) */
|
|
|
|
unsigned int flags; /* resulting update flags (see below) */
|
|
|
|
size_t total_size; /* total size of the resulting region */
|
|
|
|
VARARG(region,rectangles); /* list of rectangles for the region */
|
|
|
|
@END
|
|
|
|
#define UPDATE_NONCLIENT 0x01 /* get region for repainting non-client area */
|
|
|
|
#define UPDATE_ERASE 0x02 /* get region for erasing client area */
|
|
|
|
#define UPDATE_PAINT 0x04 /* get region for painting client area */
|
|
|
|
#define UPDATE_INTERNALPAINT 0x08 /* get region if internal paint is pending */
|
|
|
|
#define UPDATE_ALLCHILDREN 0x10 /* force repaint of all children */
|
|
|
|
#define UPDATE_NOCHILDREN 0x20 /* don't try to repaint any children */
|
|
|
|
#define UPDATE_NOREGION 0x40 /* don't return a region, only the flags */
|
|
|
|
|
|
|
|
|
2005-03-21 13:37:00 +01:00
|
|
|
/* Update the z order of a window so that a given rectangle is fully visible */
|
|
|
|
@REQ(update_window_zorder)
|
|
|
|
user_handle_t window; /* handle to the window */
|
|
|
|
rectangle_t rect; /* rectangle that must be visible */
|
|
|
|
@END
|
|
|
|
|
|
|
|
|
2004-12-07 18:31:53 +01:00
|
|
|
/* Mark parts of a window as needing a redraw */
|
|
|
|
@REQ(redraw_window)
|
|
|
|
user_handle_t window; /* handle to the window */
|
|
|
|
unsigned int flags; /* RDW_* flags */
|
|
|
|
VARARG(region,rectangles); /* list of rectangles for the region */
|
|
|
|
@END
|
|
|
|
|
|
|
|
|
2001-10-12 21:10:26 +02:00
|
|
|
/* Set a window property */
|
|
|
|
@REQ(set_window_property)
|
|
|
|
user_handle_t window; /* handle to the window */
|
2005-05-11 21:01:10 +02:00
|
|
|
atom_t atom; /* property atom (if no name specified) */
|
2002-05-30 22:12:58 +02:00
|
|
|
obj_handle_t handle; /* handle to store */
|
2005-05-11 21:01:10 +02:00
|
|
|
VARARG(name,unicode_str); /* property name */
|
2001-10-12 21:10:26 +02:00
|
|
|
@END
|
|
|
|
|
|
|
|
|
|
|
|
/* Remove a window property */
|
|
|
|
@REQ(remove_window_property)
|
|
|
|
user_handle_t window; /* handle to the window */
|
2005-05-11 21:01:10 +02:00
|
|
|
atom_t atom; /* property atom (if no name specified) */
|
|
|
|
VARARG(name,unicode_str); /* property name */
|
2001-10-12 21:10:26 +02:00
|
|
|
@REPLY
|
2002-05-30 22:12:58 +02:00
|
|
|
obj_handle_t handle; /* handle stored in property */
|
2001-10-12 21:10:26 +02:00
|
|
|
@END
|
|
|
|
|
|
|
|
|
|
|
|
/* Get a window property */
|
|
|
|
@REQ(get_window_property)
|
|
|
|
user_handle_t window; /* handle to the window */
|
2005-05-11 21:01:10 +02:00
|
|
|
atom_t atom; /* property atom (if no name specified) */
|
|
|
|
VARARG(name,unicode_str); /* property name */
|
2001-10-12 21:10:26 +02:00
|
|
|
@REPLY
|
2002-05-30 22:12:58 +02:00
|
|
|
obj_handle_t handle; /* handle stored in property */
|
2001-10-12 21:10:26 +02:00
|
|
|
@END
|
|
|
|
|
|
|
|
|
|
|
|
/* Get the list of properties of a window */
|
|
|
|
@REQ(get_window_properties)
|
|
|
|
user_handle_t window; /* handle to the window */
|
|
|
|
@REPLY
|
2001-11-30 19:46:42 +01:00
|
|
|
int total; /* total number of properties */
|
2001-10-12 21:10:26 +02:00
|
|
|
VARARG(props,properties); /* list of properties */
|
|
|
|
@END
|
2002-10-11 20:50:15 +02:00
|
|
|
|
|
|
|
|
2005-06-08 20:44:50 +02:00
|
|
|
/* Create a window station */
|
|
|
|
@REQ(create_winstation)
|
|
|
|
unsigned int flags; /* window station flags */
|
|
|
|
unsigned int access; /* wanted access rights */
|
2005-11-21 13:05:38 +01:00
|
|
|
unsigned int attributes; /* object attributes */
|
2005-06-08 20:44:50 +02:00
|
|
|
VARARG(name,unicode_str); /* object name */
|
|
|
|
@REPLY
|
|
|
|
obj_handle_t handle; /* handle to the window station */
|
|
|
|
@END
|
|
|
|
|
|
|
|
|
|
|
|
/* Open a handle to a window station */
|
|
|
|
@REQ(open_winstation)
|
|
|
|
unsigned int access; /* wanted access rights */
|
2005-11-21 13:05:38 +01:00
|
|
|
unsigned int attributes; /* object attributes */
|
2005-06-08 20:44:50 +02:00
|
|
|
VARARG(name,unicode_str); /* object name */
|
|
|
|
@REPLY
|
|
|
|
obj_handle_t handle; /* handle to the window station */
|
|
|
|
@END
|
|
|
|
|
|
|
|
|
|
|
|
/* Close a window station */
|
|
|
|
@REQ(close_winstation)
|
|
|
|
obj_handle_t handle; /* handle to the window station */
|
|
|
|
@END
|
|
|
|
|
|
|
|
|
|
|
|
/* Get the process current window station */
|
|
|
|
@REQ(get_process_winstation)
|
|
|
|
@REPLY
|
|
|
|
obj_handle_t handle; /* handle to the window station */
|
|
|
|
@END
|
|
|
|
|
|
|
|
|
|
|
|
/* Set the process current window station */
|
|
|
|
@REQ(set_process_winstation)
|
|
|
|
obj_handle_t handle; /* handle to the window station */
|
|
|
|
@END
|
|
|
|
|
|
|
|
|
|
|
|
/* Create a desktop */
|
|
|
|
@REQ(create_desktop)
|
|
|
|
unsigned int flags; /* desktop flags */
|
|
|
|
unsigned int access; /* wanted access rights */
|
2005-11-21 13:05:38 +01:00
|
|
|
unsigned int attributes; /* object attributes */
|
2005-06-08 20:44:50 +02:00
|
|
|
VARARG(name,unicode_str); /* object name */
|
|
|
|
@REPLY
|
|
|
|
obj_handle_t handle; /* handle to the desktop */
|
|
|
|
@END
|
|
|
|
|
|
|
|
|
|
|
|
/* Open a handle to a desktop */
|
|
|
|
@REQ(open_desktop)
|
|
|
|
unsigned int flags; /* desktop flags */
|
|
|
|
unsigned int access; /* wanted access rights */
|
2005-11-21 13:05:38 +01:00
|
|
|
unsigned int attributes; /* object attributes */
|
2005-06-08 20:44:50 +02:00
|
|
|
VARARG(name,unicode_str); /* object name */
|
|
|
|
@REPLY
|
|
|
|
obj_handle_t handle; /* handle to the desktop */
|
|
|
|
@END
|
|
|
|
|
|
|
|
|
|
|
|
/* Close a desktop */
|
|
|
|
@REQ(close_desktop)
|
|
|
|
obj_handle_t handle; /* handle to the desktop */
|
|
|
|
@END
|
|
|
|
|
|
|
|
|
|
|
|
/* Get the thread current desktop */
|
|
|
|
@REQ(get_thread_desktop)
|
|
|
|
thread_id_t tid; /* thread id */
|
|
|
|
@REPLY
|
|
|
|
obj_handle_t handle; /* handle to the desktop */
|
|
|
|
@END
|
|
|
|
|
|
|
|
|
|
|
|
/* Set the thread current desktop */
|
|
|
|
@REQ(set_thread_desktop)
|
|
|
|
obj_handle_t handle; /* handle to the desktop */
|
|
|
|
@END
|
|
|
|
|
|
|
|
|
|
|
|
/* Get/set information about a user object (window station or desktop) */
|
|
|
|
@REQ(set_user_object_info)
|
|
|
|
obj_handle_t handle; /* handle to the object */
|
|
|
|
unsigned int flags; /* information to set */
|
|
|
|
unsigned int obj_flags; /* new object flags */
|
|
|
|
@REPLY
|
|
|
|
int is_desktop; /* is object a desktop? */
|
|
|
|
unsigned int old_obj_flags; /* old object flags */
|
|
|
|
VARARG(name,unicode_str); /* object name */
|
|
|
|
@END
|
|
|
|
#define SET_USER_OBJECT_FLAGS 1
|
|
|
|
|
|
|
|
|
2002-10-11 20:50:15 +02:00
|
|
|
/* Attach (or detach) thread inputs */
|
|
|
|
@REQ(attach_thread_input)
|
|
|
|
thread_id_t tid_from; /* thread to be attached */
|
|
|
|
thread_id_t tid_to; /* thread to which tid_from should be attached */
|
|
|
|
int attach; /* is it an attach? */
|
|
|
|
@END
|
|
|
|
|
|
|
|
|
|
|
|
/* Get input data for a given thread */
|
|
|
|
@REQ(get_thread_input)
|
|
|
|
thread_id_t tid; /* id of thread */
|
|
|
|
@REPLY
|
|
|
|
user_handle_t focus; /* handle to the focus window */
|
|
|
|
user_handle_t capture; /* handle to the capture window */
|
|
|
|
user_handle_t active; /* handle to the active window */
|
|
|
|
user_handle_t foreground; /* handle to the global foreground window */
|
|
|
|
user_handle_t menu_owner; /* handle to the menu owner */
|
|
|
|
user_handle_t move_size; /* handle to the moving/resizing window */
|
|
|
|
user_handle_t caret; /* handle to the caret window */
|
|
|
|
rectangle_t rect; /* caret rectangle */
|
|
|
|
@END
|
2002-10-12 01:41:06 +02:00
|
|
|
|
2005-04-28 14:04:14 +02:00
|
|
|
|
|
|
|
/* Get the time of the last input event */
|
|
|
|
@REQ(get_last_input_time)
|
|
|
|
@REPLY
|
|
|
|
unsigned int time;
|
|
|
|
@END
|
|
|
|
|
|
|
|
|
2003-01-08 20:56:31 +01:00
|
|
|
/* Retrieve queue keyboard state for a given thread */
|
|
|
|
@REQ(get_key_state)
|
|
|
|
thread_id_t tid; /* id of thread */
|
|
|
|
int key; /* optional key code or -1 */
|
|
|
|
@REPLY
|
|
|
|
unsigned char state; /* state of specified key */
|
|
|
|
VARARG(keystate,bytes); /* state array for all the keys */
|
|
|
|
@END
|
|
|
|
|
|
|
|
/* Set queue keyboard state for a given thread */
|
|
|
|
@REQ(set_key_state)
|
|
|
|
thread_id_t tid; /* id of thread */
|
|
|
|
VARARG(keystate,bytes); /* state array for all the keys */
|
|
|
|
@END
|
|
|
|
|
2002-10-12 01:41:06 +02:00
|
|
|
/* Set the system foreground window */
|
|
|
|
@REQ(set_foreground_window)
|
|
|
|
user_handle_t handle; /* handle to the foreground window */
|
|
|
|
@REPLY
|
|
|
|
user_handle_t previous; /* handle to the previous foreground window */
|
|
|
|
int send_msg_old; /* whether we have to send a msg to the old window */
|
|
|
|
int send_msg_new; /* whether we have to send a msg to the new window */
|
|
|
|
@END
|
|
|
|
|
|
|
|
/* Set the current thread focus window */
|
|
|
|
@REQ(set_focus_window)
|
|
|
|
user_handle_t handle; /* handle to the focus window */
|
|
|
|
@REPLY
|
|
|
|
user_handle_t previous; /* handle to the previous focus window */
|
|
|
|
@END
|
|
|
|
|
|
|
|
/* Set the current thread active window */
|
|
|
|
@REQ(set_active_window)
|
|
|
|
user_handle_t handle; /* handle to the active window */
|
|
|
|
@REPLY
|
|
|
|
user_handle_t previous; /* handle to the previous active window */
|
|
|
|
@END
|
2002-10-12 03:24:37 +02:00
|
|
|
|
|
|
|
/* Set the current thread capture window */
|
|
|
|
@REQ(set_capture_window)
|
|
|
|
user_handle_t handle; /* handle to the capture window */
|
|
|
|
unsigned int flags; /* capture flags (see below) */
|
|
|
|
@REPLY
|
|
|
|
user_handle_t previous; /* handle to the previous capture window */
|
|
|
|
user_handle_t full_handle; /* full 32-bit handle of new capture window */
|
|
|
|
@END
|
|
|
|
#define CAPTURE_MENU 0x01 /* capture is for a menu */
|
|
|
|
#define CAPTURE_MOVESIZE 0x02 /* capture is for moving/resizing */
|
2002-10-17 03:24:33 +02:00
|
|
|
|
|
|
|
|
|
|
|
/* Set the current thread caret window */
|
|
|
|
@REQ(set_caret_window)
|
|
|
|
user_handle_t handle; /* handle to the caret window */
|
|
|
|
int width; /* caret width */
|
|
|
|
int height; /* caret height */
|
|
|
|
@REPLY
|
|
|
|
user_handle_t previous; /* handle to the previous caret window */
|
|
|
|
rectangle_t old_rect; /* previous caret rectangle */
|
|
|
|
int old_hide; /* previous hide count */
|
|
|
|
int old_state; /* previous caret state (1=on, 0=off) */
|
|
|
|
@END
|
|
|
|
|
|
|
|
|
|
|
|
/* Set the current thread caret information */
|
|
|
|
@REQ(set_caret_info)
|
|
|
|
unsigned int flags; /* caret flags (see below) */
|
|
|
|
user_handle_t handle; /* handle to the caret window */
|
|
|
|
int x; /* caret x position */
|
|
|
|
int y; /* caret y position */
|
|
|
|
int hide; /* increment for hide count (can be negative to show it) */
|
|
|
|
int state; /* caret state (1=on, 0=off, -1=toggle current state) */
|
|
|
|
@REPLY
|
|
|
|
user_handle_t full_handle; /* handle to the current caret window */
|
|
|
|
rectangle_t old_rect; /* previous caret rectangle */
|
|
|
|
int old_hide; /* previous hide count */
|
|
|
|
int old_state; /* previous caret state (1=on, 0=off) */
|
|
|
|
@END
|
|
|
|
#define SET_CARET_POS 0x01 /* set the caret position from x,y */
|
|
|
|
#define SET_CARET_HIDE 0x02 /* increment the caret hide count */
|
|
|
|
#define SET_CARET_STATE 0x04 /* set the caret on/off state */
|
2002-10-29 01:41:42 +01:00
|
|
|
|
|
|
|
|
|
|
|
/* Set a window hook */
|
|
|
|
@REQ(set_hook)
|
|
|
|
int id; /* id of the hook */
|
2005-02-03 17:40:20 +01:00
|
|
|
process_id_t pid; /* id of process to set the hook into */
|
2002-10-29 01:41:42 +01:00
|
|
|
thread_id_t tid; /* id of thread to set the hook into */
|
2005-02-03 17:40:20 +01:00
|
|
|
int event_min;
|
|
|
|
int event_max;
|
|
|
|
int flags;
|
2002-10-29 01:41:42 +01:00
|
|
|
void* proc; /* hook procedure */
|
|
|
|
int unicode; /* is it a unicode hook? */
|
2002-11-20 20:54:32 +01:00
|
|
|
VARARG(module,unicode_str); /* module name */
|
2002-10-29 01:41:42 +01:00
|
|
|
@REPLY
|
|
|
|
user_handle_t handle; /* handle to the hook */
|
2005-05-11 15:03:15 +02:00
|
|
|
unsigned int active_hooks; /* active hooks bitmap */
|
2002-10-29 01:41:42 +01:00
|
|
|
@END
|
|
|
|
|
|
|
|
|
|
|
|
/* Remove a window hook */
|
|
|
|
@REQ(remove_hook)
|
|
|
|
user_handle_t handle; /* handle to the hook */
|
|
|
|
int id; /* id of the hook if handle is 0 */
|
|
|
|
void* proc; /* hook procedure if handle is 0 */
|
2005-05-11 15:03:15 +02:00
|
|
|
@REPLY
|
|
|
|
unsigned int active_hooks; /* active hooks bitmap */
|
2002-10-29 01:41:42 +01:00
|
|
|
@END
|
|
|
|
|
|
|
|
|
|
|
|
/* Start calling a hook chain */
|
|
|
|
@REQ(start_hook_chain)
|
|
|
|
int id; /* id of the hook */
|
2005-02-03 17:40:20 +01:00
|
|
|
int event; /* signalled event */
|
|
|
|
user_handle_t window; /* handle to the event window */
|
|
|
|
int object_id; /* object id for out of context winevent */
|
|
|
|
int child_id; /* child id for out of context winevent */
|
2002-10-29 01:41:42 +01:00
|
|
|
@REPLY
|
|
|
|
user_handle_t handle; /* handle to the next hook */
|
2003-07-11 23:55:58 +02:00
|
|
|
process_id_t pid; /* process id for low-level keyboard/mouse hooks */
|
|
|
|
thread_id_t tid; /* thread id for low-level keyboard/mouse hooks */
|
2002-10-29 01:41:42 +01:00
|
|
|
void* proc; /* hook procedure */
|
|
|
|
int unicode; /* is it a unicode hook? */
|
2005-05-11 15:03:15 +02:00
|
|
|
unsigned int active_hooks; /* active hooks bitmap */
|
2002-11-20 20:54:32 +01:00
|
|
|
VARARG(module,unicode_str); /* module name */
|
2002-10-29 01:41:42 +01:00
|
|
|
@END
|
|
|
|
|
|
|
|
|
|
|
|
/* Finished calling a hook chain */
|
|
|
|
@REQ(finish_hook_chain)
|
|
|
|
int id; /* id of the hook */
|
|
|
|
@END
|
|
|
|
|
|
|
|
|
|
|
|
/* Get the next hook to call */
|
|
|
|
@REQ(get_next_hook)
|
|
|
|
user_handle_t handle; /* handle to the current hook */
|
2005-02-03 17:40:20 +01:00
|
|
|
int event; /* signalled event */
|
|
|
|
user_handle_t window; /* handle to the event window */
|
|
|
|
int object_id; /* object id for out of context winevent */
|
|
|
|
int child_id; /* child id for out of context winevent */
|
2002-10-29 01:41:42 +01:00
|
|
|
@REPLY
|
|
|
|
user_handle_t next; /* handle to the next hook */
|
|
|
|
int id; /* id of the next hook */
|
2003-07-11 23:55:58 +02:00
|
|
|
process_id_t pid; /* process id for low-level keyboard/mouse hooks */
|
|
|
|
thread_id_t tid; /* thread id for low-level keyboard/mouse hooks */
|
2002-10-29 01:41:42 +01:00
|
|
|
void* proc; /* next hook procedure */
|
|
|
|
int prev_unicode; /* was the previous a unicode hook? */
|
|
|
|
int next_unicode; /* is the next a unicode hook? */
|
2002-11-20 20:54:32 +01:00
|
|
|
VARARG(module,unicode_str); /* module name */
|
2002-10-29 01:41:42 +01:00
|
|
|
@END
|
2003-06-24 01:02:02 +02:00
|
|
|
|
|
|
|
|
2003-12-10 05:08:06 +01:00
|
|
|
/* Create a window class */
|
|
|
|
@REQ(create_class)
|
|
|
|
int local; /* is it a local class? */
|
|
|
|
atom_t atom; /* class atom */
|
|
|
|
unsigned int style; /* class style */
|
|
|
|
void* instance; /* module instance */
|
|
|
|
int extra; /* number of extra class bytes */
|
|
|
|
int win_extra; /* number of window extra bytes */
|
2003-12-11 06:34:53 +01:00
|
|
|
void* client_ptr; /* pointer to class in client address space */
|
2003-12-10 05:08:06 +01:00
|
|
|
@END
|
|
|
|
|
|
|
|
|
|
|
|
/* Destroy a window class */
|
|
|
|
@REQ(destroy_class)
|
|
|
|
atom_t atom; /* class atom */
|
|
|
|
void* instance; /* module instance */
|
2003-12-11 06:34:53 +01:00
|
|
|
@REPLY
|
|
|
|
void* client_ptr; /* pointer to class in client address space */
|
2003-12-10 05:08:06 +01:00
|
|
|
@END
|
|
|
|
|
|
|
|
|
|
|
|
/* Set some information in a class */
|
|
|
|
@REQ(set_class_info)
|
|
|
|
user_handle_t window; /* handle to the window */
|
|
|
|
unsigned int flags; /* flags for info to set (see below) */
|
|
|
|
atom_t atom; /* class atom */
|
|
|
|
unsigned int style; /* class style */
|
|
|
|
int win_extra; /* number of window extra bytes */
|
|
|
|
void* instance; /* module instance */
|
|
|
|
int extra_offset; /* offset to set in extra bytes */
|
|
|
|
size_t extra_size; /* size to set in extra bytes */
|
|
|
|
unsigned int extra_value; /* value to set in extra bytes */
|
|
|
|
@REPLY
|
|
|
|
atom_t old_atom; /* previous class atom */
|
|
|
|
unsigned int old_style; /* previous class style */
|
|
|
|
int old_extra; /* previous number of class extra bytes */
|
|
|
|
int old_win_extra; /* previous number of window extra bytes */
|
|
|
|
void* old_instance; /* previous module instance */
|
|
|
|
unsigned int old_extra_value; /* old value in extra bytes */
|
|
|
|
@END
|
|
|
|
#define SET_CLASS_ATOM 0x0001
|
|
|
|
#define SET_CLASS_STYLE 0x0002
|
|
|
|
#define SET_CLASS_WINEXTRA 0x0004
|
|
|
|
#define SET_CLASS_INSTANCE 0x0008
|
|
|
|
#define SET_CLASS_EXTRA 0x0010
|
|
|
|
|
|
|
|
|
2003-06-24 01:02:02 +02:00
|
|
|
/* Set/get clipboard information */
|
|
|
|
@REQ(set_clipboard_info)
|
|
|
|
unsigned int flags; /* flags for fields to set (see below) */
|
|
|
|
user_handle_t clipboard; /* clipboard window */
|
|
|
|
user_handle_t owner; /* clipboard owner */
|
|
|
|
user_handle_t viewer; /* first clipboard viewer */
|
|
|
|
unsigned int seqno; /* change sequence number */
|
|
|
|
@REPLY
|
|
|
|
unsigned int flags; /* status flags (see below) */
|
|
|
|
user_handle_t old_clipboard; /* old clipboard window */
|
|
|
|
user_handle_t old_owner; /* old clipboard owner */
|
|
|
|
user_handle_t old_viewer; /* old clipboard viewer */
|
|
|
|
unsigned int seqno; /* current sequence number */
|
|
|
|
@END
|
|
|
|
|
|
|
|
#define SET_CB_OPEN 0x001
|
|
|
|
#define SET_CB_OWNER 0x002
|
|
|
|
#define SET_CB_VIEWER 0x004
|
|
|
|
#define SET_CB_SEQNO 0x008
|
|
|
|
#define SET_CB_RELOWNER 0x010
|
|
|
|
#define SET_CB_CLOSE 0x020
|
|
|
|
#define CB_OPEN 0x040
|
|
|
|
#define CB_OWNER 0x080
|
2005-03-07 20:31:46 +01:00
|
|
|
#define CB_PROCESS 0x100
|
2003-07-24 02:07:00 +02:00
|
|
|
|
|
|
|
|
|
|
|
/* Open a security token */
|
|
|
|
@REQ(open_token)
|
|
|
|
obj_handle_t handle; /* handle to the thread or process */
|
2005-12-09 12:17:19 +01:00
|
|
|
unsigned int access; /* access rights to the new token */
|
|
|
|
unsigned int attributes;/* object attributes */
|
2003-07-24 02:07:00 +02:00
|
|
|
unsigned int flags; /* flags (see below) */
|
|
|
|
@REPLY
|
|
|
|
obj_handle_t token; /* handle to the token */
|
|
|
|
@END
|
|
|
|
#define OPEN_TOKEN_THREAD 1
|
|
|
|
#define OPEN_TOKEN_AS_SELF 2
|
2003-10-07 05:40:23 +02:00
|
|
|
|
|
|
|
|
|
|
|
/* Set/get the global windows */
|
|
|
|
@REQ(set_global_windows)
|
|
|
|
unsigned int flags; /* flags for fields to set (see below) */
|
|
|
|
user_handle_t shell_window; /* handle to the new shell window */
|
|
|
|
user_handle_t shell_listview; /* handle to the new shell listview window */
|
|
|
|
user_handle_t progman_window; /* handle to the new program manager window */
|
|
|
|
user_handle_t taskman_window; /* handle to the new task manager window */
|
|
|
|
@REPLY
|
|
|
|
user_handle_t old_shell_window; /* handle to the shell window */
|
|
|
|
user_handle_t old_shell_listview; /* handle to the shell listview window */
|
|
|
|
user_handle_t old_progman_window; /* handle to the new program manager window */
|
|
|
|
user_handle_t old_taskman_window; /* handle to the new task manager window */
|
|
|
|
@END
|
|
|
|
#define SET_GLOBAL_SHELL_WINDOWS 0x01 /* set both main shell and listview windows */
|
|
|
|
#define SET_GLOBAL_PROGMAN_WINDOW 0x02
|
|
|
|
#define SET_GLOBAL_TASKMAN_WINDOW 0x04
|
2005-02-11 12:52:06 +01:00
|
|
|
|
|
|
|
/* Adjust the privileges held by a token */
|
|
|
|
@REQ(adjust_token_privileges)
|
|
|
|
obj_handle_t handle; /* handle to the token */
|
|
|
|
int disable_all; /* disable all privileges? */
|
|
|
|
int get_modified_state; /* get modified privileges? */
|
|
|
|
VARARG(privileges,LUID_AND_ATTRIBUTES); /* privileges to enable/disable/remove */
|
|
|
|
@REPLY
|
|
|
|
unsigned int len; /* total length in bytes required to store token privileges */
|
|
|
|
VARARG(privileges,LUID_AND_ATTRIBUTES); /* modified privileges */
|
|
|
|
@END
|
|
|
|
|
|
|
|
/* Retrieves the set of privileges held by or available to a token */
|
|
|
|
@REQ(get_token_privileges)
|
|
|
|
obj_handle_t handle; /* handle to the token */
|
|
|
|
@REPLY
|
|
|
|
unsigned int len; /* total length in bytes required to store token privileges */
|
|
|
|
VARARG(privileges,LUID_AND_ATTRIBUTES); /* privileges held by or available to a token */
|
|
|
|
@END
|
|
|
|
|
2005-04-22 23:17:15 +02:00
|
|
|
/* Check the token has the required privileges */
|
|
|
|
@REQ(check_token_privileges)
|
|
|
|
obj_handle_t handle; /* handle to the token */
|
|
|
|
int all_required; /* are all the privileges required for the check to succeed? */
|
|
|
|
VARARG(privileges,LUID_AND_ATTRIBUTES); /* privileges to check */
|
|
|
|
@REPLY
|
|
|
|
int has_privileges; /* does the token have the required privileges? */
|
|
|
|
VARARG(privileges,LUID_AND_ATTRIBUTES); /* privileges held by or available to a token */
|
|
|
|
@END
|
|
|
|
|
2005-02-11 12:52:06 +01:00
|
|
|
@REQ(duplicate_token)
|
2005-12-09 12:17:19 +01:00
|
|
|
obj_handle_t handle; /* handle to the token to duplicate */
|
|
|
|
unsigned int access; /* access rights to the new token */
|
|
|
|
unsigned int attributes; /* object attributes */
|
|
|
|
int primary; /* is the new token to be a primary one? */
|
2005-02-11 12:52:06 +01:00
|
|
|
int impersonation_level; /* impersonation level of the new token */
|
|
|
|
@REPLY
|
|
|
|
obj_handle_t new_handle; /* duplicated handle */
|
|
|
|
@END
|
2005-03-30 21:02:15 +02:00
|
|
|
|
2005-05-24 14:32:18 +02:00
|
|
|
@REQ(access_check)
|
|
|
|
obj_handle_t handle; /* handle to the token */
|
|
|
|
unsigned int desired_access; /* desired access to the object */
|
|
|
|
unsigned int mapping_read; /* mapping from generic read to specific rights */
|
|
|
|
unsigned int mapping_write; /* mapping from generic write to specific rights */
|
|
|
|
unsigned int mapping_execute; /* mapping from generic execute to specific rights */
|
|
|
|
unsigned int mapping_all; /* mapping from generic all to specific rights */
|
|
|
|
VARARG(sd,security_descriptor); /* security descriptor to check */
|
|
|
|
@REPLY
|
|
|
|
unsigned int access_granted; /* access rights actually granted */
|
|
|
|
unsigned int access_status; /* was access granted? */
|
|
|
|
unsigned int privileges_len; /* length needed to store privileges */
|
|
|
|
VARARG(privileges,LUID_AND_ATTRIBUTES); /* privileges used during access check */
|
|
|
|
@END
|
2005-03-30 21:02:15 +02:00
|
|
|
|
2005-07-18 15:22:55 +02:00
|
|
|
@REQ(get_token_user)
|
|
|
|
obj_handle_t handle; /* handle to the token */
|
|
|
|
@REPLY
|
|
|
|
size_t user_len; /* length needed to store user */
|
|
|
|
VARARG(user,SID); /* sid of the user the token represents */
|
|
|
|
@END
|
|
|
|
|
2005-03-30 21:02:15 +02:00
|
|
|
/* Create a mailslot */
|
|
|
|
@REQ(create_mailslot)
|
2005-10-27 20:30:37 +02:00
|
|
|
unsigned int access; /* wanted access rights */
|
|
|
|
unsigned int attributes; /* object attributes */
|
2005-12-05 13:30:26 +01:00
|
|
|
obj_handle_t rootdir; /* root directory */
|
2005-03-30 21:02:15 +02:00
|
|
|
unsigned int max_msgsize;
|
2005-11-21 16:23:49 +01:00
|
|
|
int read_timeout;
|
2005-03-30 21:02:15 +02:00
|
|
|
VARARG(name,unicode_str); /* mailslot name */
|
|
|
|
@REPLY
|
|
|
|
obj_handle_t handle; /* handle to the mailslot */
|
|
|
|
@END
|
|
|
|
|
|
|
|
|
|
|
|
/* Open an existing mailslot */
|
|
|
|
@REQ(open_mailslot)
|
|
|
|
unsigned int access;
|
2005-10-27 20:30:37 +02:00
|
|
|
unsigned int attributes; /* object attributes */
|
2005-12-05 13:30:26 +01:00
|
|
|
obj_handle_t rootdir; /* root directory */
|
2005-03-30 21:02:15 +02:00
|
|
|
unsigned int sharing; /* sharing mode */
|
|
|
|
VARARG(name,unicode_str); /* mailslot name */
|
|
|
|
@REPLY
|
|
|
|
obj_handle_t handle; /* handle to the mailslot */
|
|
|
|
@END
|
|
|
|
|
|
|
|
|
|
|
|
/* Set mailslot information */
|
|
|
|
@REQ(set_mailslot_info)
|
|
|
|
obj_handle_t handle; /* handle to the mailslot */
|
|
|
|
unsigned int flags;
|
2005-11-21 16:23:49 +01:00
|
|
|
int read_timeout;
|
2005-03-30 21:02:15 +02:00
|
|
|
@REPLY
|
|
|
|
unsigned int max_msgsize;
|
2005-11-21 16:23:49 +01:00
|
|
|
int read_timeout;
|
2005-03-30 21:02:15 +02:00
|
|
|
unsigned int msg_count;
|
|
|
|
unsigned int next_msgsize;
|
|
|
|
@END
|
|
|
|
#define MAILSLOT_SET_READ_TIMEOUT 1
|
2005-11-29 17:21:05 +01:00
|
|
|
|
|
|
|
|
|
|
|
/* Create a directory object */
|
|
|
|
@REQ(create_directory)
|
|
|
|
unsigned int access; /* access flags */
|
|
|
|
unsigned int attributes; /* object attributes */
|
|
|
|
obj_handle_t rootdir; /* root directory */
|
|
|
|
VARARG(directory_name,unicode_str); /* Directory name */
|
|
|
|
@REPLY
|
|
|
|
obj_handle_t handle; /* handle to the directory */
|
|
|
|
@END
|
|
|
|
|
|
|
|
|
|
|
|
/* Open a directory object */
|
|
|
|
@REQ(open_directory)
|
|
|
|
unsigned int access; /* access flags */
|
|
|
|
unsigned int attributes; /* object attributes */
|
|
|
|
obj_handle_t rootdir; /* root directory */
|
|
|
|
VARARG(directory_name,unicode_str); /* Directory name */
|
|
|
|
@REPLY
|
|
|
|
obj_handle_t handle; /* handle to the directory */
|
|
|
|
@END
|
2005-11-30 19:22:57 +01:00
|
|
|
|
|
|
|
|
|
|
|
/* Create a symbolic link object */
|
|
|
|
@REQ(create_symlink)
|
|
|
|
unsigned int access; /* access flags */
|
|
|
|
unsigned int attributes; /* object attributes */
|
|
|
|
obj_handle_t rootdir; /* root directory */
|
|
|
|
size_t name_len; /* length of the symlink name in bytes */
|
|
|
|
VARARG(name,unicode_str,name_len); /* symlink name */
|
|
|
|
VARARG(target_name,unicode_str); /* target name */
|
|
|
|
@REPLY
|
|
|
|
obj_handle_t handle; /* handle to the symlink */
|
|
|
|
@END
|
|
|
|
|
|
|
|
|
|
|
|
/* Open a symbolic link object */
|
|
|
|
@REQ(open_symlink)
|
|
|
|
unsigned int access; /* access flags */
|
|
|
|
unsigned int attributes; /* object attributes */
|
|
|
|
obj_handle_t rootdir; /* root directory */
|
|
|
|
VARARG(name,unicode_str); /* symlink name */
|
|
|
|
@REPLY
|
|
|
|
obj_handle_t handle; /* handle to the symlink */
|
|
|
|
@END
|
|
|
|
|
|
|
|
|
|
|
|
/* Query a symbolic link object */
|
|
|
|
@REQ(query_symlink)
|
|
|
|
obj_handle_t handle; /* handle to the symlink */
|
|
|
|
@REPLY
|
|
|
|
VARARG(target_name,unicode_str); /* target name */
|
|
|
|
@END
|