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
|
2006-05-18 14:49:52 +02:00
|
|
|
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, 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
|
|
|
|
2008-12-08 16:04:20 +01:00
|
|
|
typedef unsigned int obj_handle_t;
|
2008-12-08 16:57:38 +01:00
|
|
|
typedef unsigned int user_handle_t;
|
2008-12-30 23:17:52 +01:00
|
|
|
typedef unsigned int atom_t;
|
2006-07-26 10:43:25 +02:00
|
|
|
typedef unsigned int process_id_t;
|
|
|
|
typedef unsigned int thread_id_t;
|
|
|
|
typedef unsigned int data_size_t;
|
2007-04-17 22:06:13 +02:00
|
|
|
typedef unsigned int ioctl_code_t;
|
2008-12-24 12:06:18 +01:00
|
|
|
typedef unsigned __int64 lparam_t;
|
2008-12-17 19:43:40 +01:00
|
|
|
typedef unsigned __int64 apc_param_t;
|
2008-12-17 19:25:09 +01:00
|
|
|
typedef unsigned __int64 mem_size_t;
|
2007-10-10 14:06:25 +02:00
|
|
|
typedef unsigned __int64 file_pos_t;
|
2008-12-29 16:47:51 +01:00
|
|
|
typedef unsigned __int64 client_ptr_t;
|
2009-01-19 14:15:51 +01:00
|
|
|
typedef unsigned __int64 affinity_t;
|
2008-12-29 16:41:44 +01:00
|
|
|
typedef client_ptr_t mod_handle_t;
|
2006-07-26 10:43:25 +02:00
|
|
|
|
2001-07-19 02:35:37 +02:00
|
|
|
struct request_header
|
|
|
|
{
|
2001-11-30 19:46:42 +01:00
|
|
|
int req; /* request code */
|
2006-07-26 10:43:25 +02:00
|
|
|
data_size_t request_size; /* request variable part size */
|
|
|
|
data_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 */
|
2006-07-26 10:43:25 +02:00
|
|
|
data_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 */
|
|
|
|
};
|
|
|
|
|
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
|
|
|
/* debug event data */
|
2009-01-02 20:09:25 +01:00
|
|
|
typedef union
|
|
|
|
{
|
|
|
|
int code; /* event code */
|
|
|
|
struct
|
|
|
|
{
|
2021-02-01 11:45:29 +01:00
|
|
|
int code; /* DbgExceptionStateChange */
|
2009-01-02 20:12:46 +01:00
|
|
|
int first; /* first chance exception? */
|
|
|
|
unsigned int exc_code; /* exception code */
|
|
|
|
unsigned int flags; /* exception flags */
|
|
|
|
client_ptr_t record; /* exception record */
|
|
|
|
client_ptr_t address; /* exception address */
|
|
|
|
int nb_params; /* number of parameters */
|
|
|
|
int __pad;
|
|
|
|
client_ptr_t params[15]; /* parameters */
|
2009-01-02 20:09:25 +01:00
|
|
|
} exception;
|
|
|
|
struct
|
|
|
|
{
|
2021-02-01 11:45:29 +01:00
|
|
|
int code; /* DbgCreateThreadStateChange */
|
2009-01-02 20:09:25 +01:00
|
|
|
obj_handle_t handle; /* handle to the new thread */
|
|
|
|
client_ptr_t start; /* thread startup routine */
|
|
|
|
} create_thread;
|
|
|
|
struct
|
|
|
|
{
|
2021-02-01 11:45:29 +01:00
|
|
|
int code; /* DbgCreateProcessStateChange */
|
2009-01-02 20:09:25 +01: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 */
|
|
|
|
mod_handle_t base; /* base of executable image */
|
|
|
|
int dbg_offset; /* offset of debug info in file */
|
|
|
|
int dbg_size; /* size of debug info */
|
|
|
|
client_ptr_t start; /* thread startup routine */
|
|
|
|
} create_process;
|
|
|
|
struct
|
|
|
|
{
|
2021-02-01 11:45:29 +01:00
|
|
|
int code; /* DbgExitThreadStateChange/DbgExitProcessStateChange */
|
2009-01-02 20:09:25 +01:00
|
|
|
int exit_code; /* thread or process exit code */
|
|
|
|
} exit;
|
|
|
|
struct
|
|
|
|
{
|
2021-02-01 11:45:29 +01:00
|
|
|
int code; /* DbgLoadDllStateChange */
|
2009-01-02 20:09:25 +01:00
|
|
|
obj_handle_t handle; /* file handle for the dll */
|
|
|
|
mod_handle_t base; /* base address of the dll */
|
|
|
|
int dbg_offset; /* offset of debug info in file */
|
|
|
|
int dbg_size; /* size of debug info */
|
|
|
|
client_ptr_t name; /* image name (optional) */
|
|
|
|
} load_dll;
|
|
|
|
struct
|
|
|
|
{
|
2021-02-01 11:45:29 +01:00
|
|
|
int code; /* DbgUnloadDllStateChange */
|
2009-01-02 20:09:25 +01:00
|
|
|
int __pad;
|
|
|
|
mod_handle_t base; /* base address of the dll */
|
|
|
|
} unload_dll;
|
2001-07-19 02:35:37 +02:00
|
|
|
} debug_event_t;
|
|
|
|
|
2009-04-08 19:38:02 +02:00
|
|
|
/* context data */
|
|
|
|
typedef struct
|
|
|
|
{
|
2021-04-27 10:40:53 +02:00
|
|
|
unsigned int machine; /* machine type */
|
2009-04-08 19:38:02 +02:00
|
|
|
unsigned int flags; /* SERVER_CTX_* flags */
|
|
|
|
union
|
|
|
|
{
|
|
|
|
struct { unsigned int eip, ebp, esp, eflags, cs, ss; } i386_regs;
|
|
|
|
struct { unsigned __int64 rip, rbp, rsp;
|
2010-04-01 19:56:09 +02:00
|
|
|
unsigned int cs, ss, flags, __pad; } x86_64_regs;
|
2010-09-18 18:03:56 +02:00
|
|
|
struct { unsigned int sp, lr, pc, cpsr; } arm_regs;
|
2013-01-16 00:49:36 +01:00
|
|
|
struct { unsigned __int64 sp, pc, pstate; } arm64_regs;
|
2009-04-08 19:38:02 +02:00
|
|
|
} ctl; /* selected by SERVER_CTX_CONTROL */
|
|
|
|
union
|
|
|
|
{
|
|
|
|
struct { unsigned int eax, ebx, ecx, edx, esi, edi; } i386_regs;
|
|
|
|
struct { unsigned __int64 rax,rbx, rcx, rdx, rsi, rdi,
|
|
|
|
r8, r9, r10, r11, r12, r13, r14, r15; } x86_64_regs;
|
2010-09-18 18:03:56 +02:00
|
|
|
struct { unsigned int r[13]; } arm_regs;
|
2013-01-16 00:49:36 +01:00
|
|
|
struct { unsigned __int64 x[31]; } arm64_regs;
|
2009-04-08 19:38:02 +02:00
|
|
|
} integer; /* selected by SERVER_CTX_INTEGER */
|
|
|
|
union
|
|
|
|
{
|
|
|
|
struct { unsigned int ds, es, fs, gs; } i386_regs;
|
|
|
|
struct { unsigned int ds, es, fs, gs; } x86_64_regs;
|
|
|
|
} seg; /* selected by SERVER_CTX_SEGMENTS */
|
|
|
|
union
|
|
|
|
{
|
|
|
|
struct { unsigned int ctrl, status, tag, err_off, err_sel, data_off, data_sel, cr0npx;
|
|
|
|
unsigned char regs[80]; } i386_regs;
|
|
|
|
struct { struct { unsigned __int64 low, high; } fpregs[32]; } x86_64_regs;
|
2017-12-05 10:30:28 +01:00
|
|
|
struct { unsigned __int64 d[32]; unsigned int fpscr; } arm_regs;
|
2019-11-04 09:45:04 +01:00
|
|
|
struct { struct { unsigned __int64 low, high; } q[32]; unsigned int fpcr, fpsr; } arm64_regs;
|
2009-04-08 19:38:02 +02:00
|
|
|
} fp; /* selected by SERVER_CTX_FLOATING_POINT */
|
|
|
|
union
|
|
|
|
{
|
|
|
|
struct { unsigned int dr0, dr1, dr2, dr3, dr6, dr7; } i386_regs;
|
|
|
|
struct { unsigned __int64 dr0, dr1, dr2, dr3, dr6, dr7; } x86_64_regs;
|
2017-12-05 10:30:28 +01:00
|
|
|
struct { unsigned int bvr[8], bcr[8], wvr[1], wcr[1]; } arm_regs;
|
2017-12-05 13:33:38 +01:00
|
|
|
struct { unsigned __int64 bvr[8], wvr[2]; unsigned int bcr[8], wcr[2]; } arm64_regs;
|
2009-04-08 19:38:02 +02:00
|
|
|
} debug; /* selected by SERVER_CTX_DEBUG_REGISTERS */
|
|
|
|
union
|
|
|
|
{
|
|
|
|
unsigned char i386_regs[512];
|
|
|
|
} ext; /* selected by SERVER_CTX_EXTENDED_REGISTERS */
|
2020-10-09 15:03:54 +02:00
|
|
|
union
|
|
|
|
{
|
2021-06-24 21:40:21 +02:00
|
|
|
struct { struct { unsigned __int64 low, high; } ymm_high[16]; } regs;
|
2020-10-09 15:03:54 +02:00
|
|
|
} ymm; /* selected by SERVER_CTX_YMM_REGISTERS */
|
2009-04-08 19:38:02 +02:00
|
|
|
} context_t;
|
|
|
|
|
|
|
|
#define SERVER_CTX_CONTROL 0x01
|
|
|
|
#define SERVER_CTX_INTEGER 0x02
|
|
|
|
#define SERVER_CTX_SEGMENTS 0x04
|
|
|
|
#define SERVER_CTX_FLOATING_POINT 0x08
|
|
|
|
#define SERVER_CTX_DEBUG_REGISTERS 0x10
|
|
|
|
#define SERVER_CTX_EXTENDED_REGISTERS 0x20
|
2020-10-09 15:03:54 +02:00
|
|
|
#define SERVER_CTX_YMM_REGISTERS 0x40
|
2009-04-08 19:38:02 +02:00
|
|
|
|
2001-07-19 02:35:37 +02:00
|
|
|
/* 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
|
|
|
|
{
|
2008-12-29 17:19:26 +01:00
|
|
|
client_ptr_t cookie; /* magic cookie that was passed in select_request */
|
|
|
|
int signaled; /* wait result */
|
2008-12-30 15:15:06 +01:00
|
|
|
int __pad;
|
2001-07-19 02:35:37 +02:00
|
|
|
};
|
|
|
|
|
2007-04-17 20:08:59 +02:00
|
|
|
/* NT-style timeout, in 100ns units, negative means relative timeout */
|
|
|
|
typedef __int64 timeout_t;
|
|
|
|
#define TIMEOUT_INFINITE (((timeout_t)0x7fffffff) << 32 | 0xffffffff)
|
2003-04-03 00:48:59 +02:00
|
|
|
|
2020-04-06 17:21:03 +02:00
|
|
|
/* absolute timeout, negative means that monotonic clock is used */
|
|
|
|
typedef __int64 abstime_t;
|
|
|
|
|
2009-08-20 20:05:21 +02:00
|
|
|
/* structure for process startup info */
|
|
|
|
typedef struct
|
|
|
|
{
|
|
|
|
unsigned int debug_flags;
|
|
|
|
unsigned int console_flags;
|
|
|
|
obj_handle_t console;
|
|
|
|
obj_handle_t hstdin;
|
|
|
|
obj_handle_t hstdout;
|
|
|
|
obj_handle_t hstderr;
|
|
|
|
unsigned int x;
|
|
|
|
unsigned int y;
|
|
|
|
unsigned int xsize;
|
|
|
|
unsigned int ysize;
|
|
|
|
unsigned int xchars;
|
|
|
|
unsigned int ychars;
|
|
|
|
unsigned int attribute;
|
|
|
|
unsigned int flags;
|
|
|
|
unsigned int show;
|
|
|
|
data_size_t curdir_len;
|
|
|
|
data_size_t dllpath_len;
|
|
|
|
data_size_t imagepath_len;
|
|
|
|
data_size_t cmdline_len;
|
|
|
|
data_size_t title_len;
|
|
|
|
data_size_t desktop_len;
|
|
|
|
data_size_t shellinfo_len;
|
|
|
|
data_size_t runtime_len;
|
|
|
|
/* VARARG(curdir,unicode_str,curdir_len); */
|
|
|
|
/* VARARG(dllpath,unicode_str,dllpath_len); */
|
|
|
|
/* VARARG(imagepath,unicode_str,imagepath_len); */
|
|
|
|
/* VARARG(cmdline,unicode_str,cmdline_len); */
|
|
|
|
/* VARARG(title,unicode_str,title_len); */
|
|
|
|
/* VARARG(desktop,unicode_str,desktop_len); */
|
|
|
|
/* VARARG(shellinfo,unicode_str,shellinfo_len); */
|
|
|
|
/* VARARG(runtime,unicode_str,runtime_len); */
|
|
|
|
} startup_info_t;
|
|
|
|
|
2001-10-12 21:10:26 +02:00
|
|
|
/* structure returned in the list of window properties */
|
|
|
|
typedef struct
|
|
|
|
{
|
|
|
|
atom_t atom; /* property atom */
|
2008-12-30 23:17:52 +01:00
|
|
|
int string; /* was atom a string originally? */
|
2008-12-10 16:21:32 +01:00
|
|
|
lparam_t data; /* data 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;
|
|
|
|
|
2007-03-20 20:21:12 +01:00
|
|
|
/* structure for parameters of async I/O calls */
|
|
|
|
typedef struct
|
|
|
|
{
|
2008-12-26 12:17:20 +01:00
|
|
|
obj_handle_t handle; /* object to perform I/O on */
|
|
|
|
obj_handle_t event; /* event to signal when done */
|
2008-12-30 21:09:41 +01:00
|
|
|
client_ptr_t iosb; /* I/O status block in client addr space */
|
2017-04-10 13:21:31 +02:00
|
|
|
client_ptr_t user; /* opaque user data containing callback pointer and async-specific data */
|
|
|
|
client_ptr_t apc; /* user APC to call */
|
|
|
|
apc_param_t apc_context; /* user APC context or completion value */
|
2007-03-20 20:21:12 +01:00
|
|
|
} async_data_t;
|
|
|
|
|
2006-10-04 16:04:53 +02:00
|
|
|
/* structures for extra message data */
|
2006-10-04 16:29:45 +02:00
|
|
|
|
2018-11-05 13:01:08 +01:00
|
|
|
struct hw_msg_source
|
|
|
|
{
|
|
|
|
unsigned int device; /* source device (IMDT_* values) */
|
|
|
|
unsigned int origin; /* source origin (IMO_* values) */
|
|
|
|
};
|
|
|
|
|
2021-05-06 12:57:31 +02:00
|
|
|
union rawinput
|
|
|
|
{
|
|
|
|
int type;
|
|
|
|
struct
|
|
|
|
{
|
|
|
|
int type; /* RIM_TYPEKEYBOARD */
|
|
|
|
unsigned int message; /* message generated by this rawinput event */
|
|
|
|
unsigned short vkey; /* virtual key code */
|
|
|
|
unsigned short scan; /* scan code */
|
|
|
|
} kbd;
|
|
|
|
struct
|
|
|
|
{
|
|
|
|
int type; /* RIM_TYPEMOUSE */
|
|
|
|
int x; /* x coordinate */
|
|
|
|
int y; /* y coordinate */
|
|
|
|
unsigned int data; /* mouse data */
|
|
|
|
} mouse;
|
2021-05-06 12:57:32 +02:00
|
|
|
struct
|
|
|
|
{
|
|
|
|
int type; /* RIM_TYPEHID */
|
|
|
|
unsigned int device; /* rawinput device index */
|
|
|
|
unsigned int param; /* rawinput message param */
|
|
|
|
unsigned short usage_page;/* HID usage page */
|
|
|
|
unsigned short usage; /* HID usage */
|
2021-05-28 16:12:21 +02:00
|
|
|
unsigned int count; /* HID report count */
|
|
|
|
unsigned int length; /* HID report length */
|
2021-05-06 12:57:32 +02:00
|
|
|
} hid;
|
2021-05-06 12:57:31 +02:00
|
|
|
};
|
|
|
|
|
2008-12-24 11:59:09 +01:00
|
|
|
struct hardware_msg_data
|
|
|
|
{
|
2018-11-05 13:01:08 +01:00
|
|
|
lparam_t info; /* extra info */
|
2021-05-28 16:12:17 +02:00
|
|
|
data_size_t size; /* size of hardware message data */
|
|
|
|
int __pad;
|
2018-11-05 13:01:08 +01:00
|
|
|
unsigned int hw_id; /* unique id */
|
|
|
|
unsigned int flags; /* hook flags */
|
|
|
|
struct hw_msg_source source; /* message source */
|
2021-05-06 12:57:31 +02:00
|
|
|
union rawinput rawinput; /* rawinput message data */
|
2008-12-24 11:59:09 +01:00
|
|
|
};
|
|
|
|
|
2006-10-04 16:29:45 +02:00
|
|
|
struct callback_msg_data
|
|
|
|
{
|
2008-12-30 14:02:07 +01:00
|
|
|
client_ptr_t callback; /* callback function */
|
2008-12-10 16:01:50 +01:00
|
|
|
lparam_t data; /* user data for callback */
|
|
|
|
lparam_t result; /* message result */
|
2006-10-04 16:29:45 +02:00
|
|
|
};
|
|
|
|
|
2006-10-04 16:04:53 +02:00
|
|
|
struct winevent_msg_data
|
|
|
|
{
|
|
|
|
user_handle_t hook; /* hook handle */
|
|
|
|
thread_id_t tid; /* thread id */
|
2008-12-29 17:35:35 +01:00
|
|
|
client_ptr_t hook_proc; /* hook proc address */
|
2006-10-04 16:04:53 +02:00
|
|
|
/* followed by module name if any */
|
|
|
|
};
|
|
|
|
|
2011-03-01 20:33:15 +01:00
|
|
|
typedef union
|
|
|
|
{
|
|
|
|
int type;
|
|
|
|
struct
|
|
|
|
{
|
|
|
|
int type; /* INPUT_KEYBOARD */
|
|
|
|
unsigned short vkey; /* virtual key code */
|
|
|
|
unsigned short scan; /* scan code */
|
|
|
|
unsigned int flags; /* event flags */
|
|
|
|
unsigned int time; /* event time */
|
|
|
|
lparam_t info; /* extra info */
|
|
|
|
} kbd;
|
|
|
|
struct
|
|
|
|
{
|
|
|
|
int type; /* INPUT_MOUSE */
|
|
|
|
int x; /* coordinates */
|
|
|
|
int y;
|
|
|
|
unsigned int data; /* mouse data */
|
|
|
|
unsigned int flags; /* event flags */
|
|
|
|
unsigned int time; /* event time */
|
|
|
|
lparam_t info; /* extra info */
|
|
|
|
} mouse;
|
|
|
|
struct
|
|
|
|
{
|
|
|
|
int type; /* INPUT_HARDWARE */
|
|
|
|
unsigned int msg; /* message code */
|
|
|
|
lparam_t lparam; /* message param */
|
2021-05-06 12:57:31 +02:00
|
|
|
union rawinput rawinput;/* rawinput message data */
|
2011-03-01 20:33:15 +01:00
|
|
|
} hw;
|
|
|
|
} hw_input_t;
|
|
|
|
|
2006-10-04 16:04:53 +02:00
|
|
|
typedef union
|
|
|
|
{
|
|
|
|
unsigned char bytes[1]; /* raw data for sent messages */
|
2009-01-15 12:50:59 +01:00
|
|
|
struct hardware_msg_data hardware;
|
2006-10-04 16:29:45 +02:00
|
|
|
struct callback_msg_data callback;
|
2006-10-04 16:04:53 +02:00
|
|
|
struct winevent_msg_data winevent;
|
|
|
|
} message_data_t;
|
|
|
|
|
2011-01-18 11:24:33 +01:00
|
|
|
/* structure returned in filesystem events */
|
|
|
|
struct filesystem_event
|
|
|
|
{
|
|
|
|
int action;
|
|
|
|
data_size_t len;
|
|
|
|
char name[1];
|
|
|
|
};
|
|
|
|
|
2007-03-07 01:33:26 +01:00
|
|
|
typedef struct
|
|
|
|
{
|
|
|
|
unsigned int low_part;
|
|
|
|
int high_part;
|
|
|
|
} luid_t;
|
|
|
|
|
2021-02-04 13:21:49 +01:00
|
|
|
typedef struct
|
|
|
|
{
|
|
|
|
unsigned int read;
|
|
|
|
unsigned int write;
|
|
|
|
unsigned int exec;
|
|
|
|
unsigned int all;
|
|
|
|
} generic_map_t;
|
|
|
|
|
2005-05-23 18:33:00 +02:00
|
|
|
#define MAX_ACL_LEN 65535
|
|
|
|
|
|
|
|
struct security_descriptor
|
|
|
|
{
|
|
|
|
unsigned int control; /* SE_ flags */
|
2006-07-26 10:43:25 +02:00
|
|
|
data_size_t owner_len;
|
|
|
|
data_size_t group_len;
|
|
|
|
data_size_t sacl_len;
|
|
|
|
data_size_t dacl_len;
|
2007-10-24 17:04:42 +02:00
|
|
|
/* VARARG(owner,SID); */
|
|
|
|
/* VARARG(group,SID); */
|
|
|
|
/* VARARG(sacl,ACL); */
|
|
|
|
/* VARARG(dacl,ACL); */
|
|
|
|
};
|
|
|
|
|
|
|
|
struct object_attributes
|
|
|
|
{
|
2016-01-15 09:53:34 +01:00
|
|
|
obj_handle_t rootdir; /* root directory */
|
|
|
|
unsigned int attributes; /* object attributes */
|
|
|
|
data_size_t sd_len; /* length of security_descriptor data. may be 0 */
|
|
|
|
data_size_t name_len; /* length of the name string. may be 0 */
|
2007-10-24 17:04:42 +02:00
|
|
|
/* VARARG(sd,security_descriptor); */
|
|
|
|
/* VARARG(name,unicode_str); */
|
2005-05-23 18:33:00 +02:00
|
|
|
};
|
|
|
|
|
2021-02-04 14:08:23 +01:00
|
|
|
struct object_type_info
|
|
|
|
{
|
|
|
|
data_size_t name_len; /* length of the name string */
|
|
|
|
unsigned int index; /* type index in global table */
|
|
|
|
unsigned int obj_count; /* count of objects of this type */
|
|
|
|
unsigned int handle_count; /* count of handles of this type */
|
|
|
|
unsigned int obj_max; /* max count of objects of this type */
|
|
|
|
unsigned int handle_max; /* max count of handles of this type */
|
2021-02-05 12:08:42 +01:00
|
|
|
unsigned int valid_access; /* mask for valid access bits */
|
|
|
|
generic_map_t mapping; /* generic access mappings */
|
2021-02-04 14:08:23 +01:00
|
|
|
/* VARARG(name,unicode_str); */
|
|
|
|
};
|
|
|
|
|
2006-05-13 17:58:19 +02:00
|
|
|
struct token_groups
|
|
|
|
{
|
|
|
|
unsigned int count;
|
|
|
|
/* unsigned int attributes[count]; */
|
2007-10-24 17:04:42 +02:00
|
|
|
/* VARARG(sids,SID); */
|
2006-05-13 17:58:19 +02:00
|
|
|
};
|
|
|
|
|
2013-08-22 10:34:11 +02:00
|
|
|
enum select_op
|
|
|
|
{
|
|
|
|
SELECT_NONE,
|
2013-08-22 10:43:36 +02:00
|
|
|
SELECT_WAIT,
|
2013-08-22 11:15:44 +02:00
|
|
|
SELECT_WAIT_ALL,
|
2013-08-22 17:53:15 +02:00
|
|
|
SELECT_SIGNAL_AND_WAIT,
|
|
|
|
SELECT_KEYED_EVENT_WAIT,
|
|
|
|
SELECT_KEYED_EVENT_RELEASE
|
2013-08-22 10:34:11 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
typedef union
|
|
|
|
{
|
|
|
|
enum select_op op;
|
|
|
|
struct
|
|
|
|
{
|
2013-08-22 10:43:36 +02:00
|
|
|
enum select_op op; /* SELECT_WAIT or SELECT_WAIT_ALL */
|
2013-08-22 10:34:11 +02:00
|
|
|
obj_handle_t handles[MAXIMUM_WAIT_OBJECTS];
|
|
|
|
} wait;
|
2013-08-22 11:15:44 +02:00
|
|
|
struct
|
|
|
|
{
|
|
|
|
enum select_op op; /* SELECT_SIGNAL_AND_WAIT */
|
|
|
|
obj_handle_t wait;
|
|
|
|
obj_handle_t signal; /* must be last in the structure so we can remove it on retries */
|
|
|
|
} signal_and_wait;
|
2013-08-22 17:53:15 +02:00
|
|
|
struct
|
|
|
|
{
|
|
|
|
enum select_op op; /* SELECT_KEYED_EVENT_WAIT or SELECT_KEYED_EVENT_RELEASE */
|
|
|
|
obj_handle_t handle;
|
|
|
|
client_ptr_t key;
|
|
|
|
} keyed_event;
|
2013-08-22 10:34:11 +02:00
|
|
|
} select_op_t;
|
|
|
|
|
2007-01-15 22:24:40 +01:00
|
|
|
enum apc_type
|
|
|
|
{
|
|
|
|
APC_NONE,
|
|
|
|
APC_USER,
|
|
|
|
APC_ASYNC_IO,
|
|
|
|
APC_VIRTUAL_ALLOC,
|
2007-01-15 22:28:42 +01:00
|
|
|
APC_VIRTUAL_FREE,
|
2007-01-15 22:30:04 +01:00
|
|
|
APC_VIRTUAL_QUERY,
|
2007-01-15 22:31:07 +01:00
|
|
|
APC_VIRTUAL_PROTECT,
|
2007-01-16 09:50:08 +01:00
|
|
|
APC_VIRTUAL_FLUSH,
|
|
|
|
APC_VIRTUAL_LOCK,
|
2007-01-18 15:02:55 +01:00
|
|
|
APC_VIRTUAL_UNLOCK,
|
2007-01-18 15:17:51 +01:00
|
|
|
APC_MAP_VIEW,
|
|
|
|
APC_UNMAP_VIEW,
|
2019-07-05 13:21:14 +02:00
|
|
|
APC_CREATE_THREAD,
|
2021-03-23 05:04:27 +01:00
|
|
|
APC_DUP_HANDLE,
|
2019-07-05 13:21:14 +02:00
|
|
|
APC_BREAK_PROCESS
|
2007-01-15 22:24:40 +01:00
|
|
|
};
|
2007-01-04 13:40:09 +01:00
|
|
|
|
2021-05-25 13:03:49 +02:00
|
|
|
typedef struct
|
2007-01-04 13:40:09 +01:00
|
|
|
{
|
2021-05-25 13:03:49 +02:00
|
|
|
enum apc_type type; /* APC_USER */
|
|
|
|
int __pad;
|
|
|
|
client_ptr_t func; /* void (__stdcall *func)(ULONG_PTR,ULONG_PTR,ULONG_PTR); */
|
|
|
|
apc_param_t args[3]; /* arguments for user function */
|
2020-04-10 01:05:04 +02:00
|
|
|
} user_apc_t;
|
|
|
|
|
|
|
|
typedef union
|
|
|
|
{
|
|
|
|
enum apc_type type;
|
|
|
|
user_apc_t user;
|
2007-01-04 13:40:09 +01:00
|
|
|
struct
|
|
|
|
{
|
|
|
|
enum apc_type type; /* APC_ASYNC_IO */
|
|
|
|
unsigned int status; /* I/O status */
|
2008-12-30 21:09:41 +01:00
|
|
|
client_ptr_t user; /* user pointer */
|
|
|
|
client_ptr_t sb; /* status block */
|
2021-09-14 08:02:43 +02:00
|
|
|
data_size_t result; /* result size */
|
2007-01-04 13:40:09 +01:00
|
|
|
} async_io;
|
2007-01-15 22:24:40 +01:00
|
|
|
struct
|
|
|
|
{
|
2019-08-01 10:07:44 +02:00
|
|
|
enum apc_type type; /* APC_VIRTUAL_ALLOC */
|
|
|
|
unsigned int op_type; /* type of operation */
|
|
|
|
client_ptr_t addr; /* requested address */
|
|
|
|
mem_size_t size; /* allocation size */
|
2020-06-01 13:27:40 +02:00
|
|
|
mem_size_t zero_bits; /* number of zero high bits */
|
2019-08-01 10:07:44 +02:00
|
|
|
unsigned int prot; /* memory protection flags */
|
2007-01-15 22:24:40 +01:00
|
|
|
} virtual_alloc;
|
|
|
|
struct
|
|
|
|
{
|
|
|
|
enum apc_type type; /* APC_VIRTUAL_FREE */
|
|
|
|
unsigned int op_type; /* type of operation */
|
2008-12-30 15:05:38 +01:00
|
|
|
client_ptr_t addr; /* requested address */
|
|
|
|
mem_size_t size; /* allocation size */
|
2007-01-15 22:24:40 +01:00
|
|
|
} virtual_free;
|
2007-01-15 22:28:42 +01:00
|
|
|
struct
|
|
|
|
{
|
|
|
|
enum apc_type type; /* APC_VIRTUAL_QUERY */
|
2008-12-30 15:05:38 +01:00
|
|
|
int __pad;
|
|
|
|
client_ptr_t addr; /* requested address */
|
2007-01-15 22:28:42 +01:00
|
|
|
} virtual_query;
|
2007-01-15 22:30:04 +01:00
|
|
|
struct
|
|
|
|
{
|
|
|
|
enum apc_type type; /* APC_VIRTUAL_PROTECT */
|
|
|
|
unsigned int prot; /* new protection flags */
|
2008-12-30 15:05:38 +01:00
|
|
|
client_ptr_t addr; /* requested address */
|
|
|
|
mem_size_t size; /* requested size */
|
2007-01-15 22:30:04 +01:00
|
|
|
} virtual_protect;
|
2007-01-15 22:31:07 +01:00
|
|
|
struct
|
|
|
|
{
|
|
|
|
enum apc_type type; /* APC_VIRTUAL_FLUSH */
|
2008-12-30 15:05:38 +01:00
|
|
|
int __pad;
|
|
|
|
client_ptr_t addr; /* requested address */
|
2008-12-17 19:24:33 +01:00
|
|
|
mem_size_t size; /* requested size */
|
2007-01-15 22:31:07 +01:00
|
|
|
} virtual_flush;
|
2007-01-16 09:50:08 +01:00
|
|
|
struct
|
|
|
|
{
|
|
|
|
enum apc_type type; /* APC_VIRTUAL_LOCK */
|
2008-12-30 15:05:38 +01:00
|
|
|
int __pad;
|
|
|
|
client_ptr_t addr; /* requested address */
|
2008-12-17 19:24:33 +01:00
|
|
|
mem_size_t size; /* requested size */
|
2007-01-16 09:50:08 +01:00
|
|
|
} virtual_lock;
|
|
|
|
struct
|
|
|
|
{
|
|
|
|
enum apc_type type; /* APC_VIRTUAL_UNLOCK */
|
2008-12-30 15:05:38 +01:00
|
|
|
int __pad;
|
|
|
|
client_ptr_t addr; /* requested address */
|
2008-12-17 19:24:33 +01:00
|
|
|
mem_size_t size; /* requested size */
|
2007-01-16 09:50:08 +01:00
|
|
|
} virtual_unlock;
|
2007-01-18 15:02:55 +01:00
|
|
|
struct
|
2007-01-18 15:17:51 +01:00
|
|
|
{
|
2019-08-01 10:07:44 +02:00
|
|
|
enum apc_type type; /* APC_MAP_VIEW */
|
|
|
|
obj_handle_t handle; /* mapping handle */
|
|
|
|
client_ptr_t addr; /* requested address */
|
|
|
|
mem_size_t size; /* allocation size */
|
|
|
|
file_pos_t offset; /* file offset */
|
2020-06-01 13:27:40 +02:00
|
|
|
mem_size_t zero_bits; /* number of zero high bits */
|
2019-08-01 10:07:44 +02:00
|
|
|
unsigned int alloc_type; /* allocation type */
|
2020-06-01 13:27:40 +02:00
|
|
|
unsigned int prot; /* memory protection flags */
|
2007-01-18 15:17:51 +01:00
|
|
|
} map_view;
|
|
|
|
struct
|
|
|
|
{
|
|
|
|
enum apc_type type; /* APC_UNMAP_VIEW */
|
2008-12-30 15:05:38 +01:00
|
|
|
int __pad;
|
|
|
|
client_ptr_t addr; /* view address */
|
2007-01-18 15:17:51 +01:00
|
|
|
} unmap_view;
|
|
|
|
struct
|
2007-01-18 15:02:55 +01:00
|
|
|
{
|
|
|
|
enum apc_type type; /* APC_CREATE_THREAD */
|
2020-06-05 15:23:37 +02:00
|
|
|
unsigned int flags; /* creation flags */
|
2008-12-30 15:30:11 +01:00
|
|
|
client_ptr_t func; /* void (__stdcall *func)(void*); start function */
|
|
|
|
client_ptr_t arg; /* argument for start function */
|
2021-05-07 16:01:45 +02:00
|
|
|
mem_size_t zero_bits; /* number of zero high bits for thread stack */
|
2008-12-17 19:24:33 +01:00
|
|
|
mem_size_t reserve; /* reserve size for thread stack */
|
|
|
|
mem_size_t commit; /* commit size for thread stack */
|
2007-01-18 15:02:55 +01:00
|
|
|
} create_thread;
|
2021-03-23 05:04:27 +01:00
|
|
|
struct
|
|
|
|
{
|
|
|
|
enum apc_type type; /* APC_DUP_HANDLE */
|
|
|
|
obj_handle_t src_handle; /* src handle to duplicate */
|
|
|
|
obj_handle_t dst_process; /* dst process handle */
|
|
|
|
unsigned int access; /* wanted access rights */
|
|
|
|
unsigned int attributes; /* object attributes */
|
|
|
|
unsigned int options; /* duplicate options */
|
|
|
|
} dup_handle;
|
2007-01-04 13:40:09 +01:00
|
|
|
} apc_call_t;
|
|
|
|
|
2007-01-15 22:24:40 +01:00
|
|
|
typedef union
|
|
|
|
{
|
|
|
|
enum apc_type type;
|
|
|
|
struct
|
2007-03-20 19:27:10 +01:00
|
|
|
{
|
|
|
|
enum apc_type type; /* APC_ASYNC_IO */
|
|
|
|
unsigned int status; /* new status of async operation */
|
2008-12-15 13:30:25 +01:00
|
|
|
unsigned int total; /* bytes transferred */
|
2007-03-20 19:27:10 +01:00
|
|
|
} async_io;
|
|
|
|
struct
|
2007-01-15 22:24:40 +01:00
|
|
|
{
|
|
|
|
enum apc_type type; /* APC_VIRTUAL_ALLOC */
|
|
|
|
unsigned int status; /* status returned by call */
|
2008-12-30 15:05:38 +01:00
|
|
|
client_ptr_t addr; /* resulting address */
|
2008-12-17 19:24:33 +01:00
|
|
|
mem_size_t size; /* resulting size */
|
2007-01-15 22:24:40 +01:00
|
|
|
} virtual_alloc;
|
|
|
|
struct
|
|
|
|
{
|
|
|
|
enum apc_type type; /* APC_VIRTUAL_FREE */
|
|
|
|
unsigned int status; /* status returned by call */
|
2008-12-30 15:05:38 +01:00
|
|
|
client_ptr_t addr; /* resulting address */
|
2008-12-17 19:24:33 +01:00
|
|
|
mem_size_t size; /* resulting size */
|
2007-01-15 22:24:40 +01:00
|
|
|
} virtual_free;
|
2007-01-15 22:28:42 +01:00
|
|
|
struct
|
|
|
|
{
|
|
|
|
enum apc_type type; /* APC_VIRTUAL_QUERY */
|
|
|
|
unsigned int status; /* status returned by call */
|
2008-12-30 15:05:38 +01:00
|
|
|
client_ptr_t base; /* resulting base address */
|
|
|
|
client_ptr_t alloc_base;/* resulting allocation base */
|
2008-12-17 19:24:33 +01:00
|
|
|
mem_size_t size; /* resulting region size */
|
2008-12-30 15:22:45 +01:00
|
|
|
unsigned short state; /* resulting region state */
|
|
|
|
unsigned short prot; /* resulting region protection */
|
|
|
|
unsigned short alloc_prot;/* resulting allocation protection */
|
|
|
|
unsigned short alloc_type;/* resulting region allocation type */
|
2007-01-15 22:28:42 +01:00
|
|
|
} virtual_query;
|
2007-01-15 22:30:04 +01:00
|
|
|
struct
|
|
|
|
{
|
|
|
|
enum apc_type type; /* APC_VIRTUAL_PROTECT */
|
|
|
|
unsigned int status; /* status returned by call */
|
2008-12-30 15:05:38 +01:00
|
|
|
client_ptr_t addr; /* resulting address */
|
2008-12-17 19:24:33 +01:00
|
|
|
mem_size_t size; /* resulting size */
|
2007-01-15 22:30:04 +01:00
|
|
|
unsigned int prot; /* old protection flags */
|
|
|
|
} virtual_protect;
|
2007-01-15 22:31:07 +01:00
|
|
|
struct
|
|
|
|
{
|
|
|
|
enum apc_type type; /* APC_VIRTUAL_FLUSH */
|
|
|
|
unsigned int status; /* status returned by call */
|
2008-12-30 15:05:38 +01:00
|
|
|
client_ptr_t addr; /* resulting address */
|
2008-12-17 19:24:33 +01:00
|
|
|
mem_size_t size; /* resulting size */
|
2007-01-15 22:31:07 +01:00
|
|
|
} virtual_flush;
|
2007-01-16 09:50:08 +01:00
|
|
|
struct
|
|
|
|
{
|
|
|
|
enum apc_type type; /* APC_VIRTUAL_LOCK */
|
|
|
|
unsigned int status; /* status returned by call */
|
2008-12-30 15:05:38 +01:00
|
|
|
client_ptr_t addr; /* resulting address */
|
2008-12-17 19:24:33 +01:00
|
|
|
mem_size_t size; /* resulting size */
|
2007-01-16 09:50:08 +01:00
|
|
|
} virtual_lock;
|
|
|
|
struct
|
|
|
|
{
|
|
|
|
enum apc_type type; /* APC_VIRTUAL_UNLOCK */
|
|
|
|
unsigned int status; /* status returned by call */
|
2008-12-30 15:05:38 +01:00
|
|
|
client_ptr_t addr; /* resulting address */
|
2008-12-17 19:24:33 +01:00
|
|
|
mem_size_t size; /* resulting size */
|
2007-01-16 09:50:08 +01:00
|
|
|
} virtual_unlock;
|
2007-01-18 15:02:55 +01:00
|
|
|
struct
|
2007-01-18 15:17:51 +01:00
|
|
|
{
|
|
|
|
enum apc_type type; /* APC_MAP_VIEW */
|
|
|
|
unsigned int status; /* status returned by call */
|
2008-12-30 15:05:38 +01:00
|
|
|
client_ptr_t addr; /* resulting address */
|
2008-12-17 19:24:33 +01:00
|
|
|
mem_size_t size; /* resulting size */
|
2007-01-18 15:17:51 +01:00
|
|
|
} map_view;
|
|
|
|
struct
|
|
|
|
{
|
2021-03-18 06:41:26 +01:00
|
|
|
enum apc_type type; /* APC_UNMAP_VIEW */
|
2007-01-18 15:17:51 +01:00
|
|
|
unsigned int status; /* status returned by call */
|
|
|
|
} unmap_view;
|
|
|
|
struct
|
2007-01-18 15:02:55 +01:00
|
|
|
{
|
|
|
|
enum apc_type type; /* APC_CREATE_THREAD */
|
|
|
|
unsigned int status; /* status returned by call */
|
2020-06-05 15:23:37 +02:00
|
|
|
process_id_t pid; /* process id */
|
2007-01-18 15:02:55 +01:00
|
|
|
thread_id_t tid; /* thread id */
|
2020-07-13 18:36:56 +02:00
|
|
|
client_ptr_t teb; /* thread teb (in process address space) */
|
2007-01-18 15:02:55 +01:00
|
|
|
obj_handle_t handle; /* handle to new thread */
|
|
|
|
} create_thread;
|
2019-07-05 13:21:14 +02:00
|
|
|
struct
|
2021-03-23 05:04:27 +01:00
|
|
|
{
|
|
|
|
enum apc_type type; /* APC_DUP_HANDLE */
|
|
|
|
unsigned int status; /* status returned by call */
|
|
|
|
obj_handle_t handle; /* duplicated handle in dst process */
|
|
|
|
} dup_handle;
|
|
|
|
struct
|
2019-07-05 13:21:14 +02:00
|
|
|
{
|
|
|
|
enum apc_type type; /* APC_BREAK_PROCESS */
|
|
|
|
unsigned int status; /* status returned by call */
|
|
|
|
} break_process;
|
2007-01-15 22:24:40 +01:00
|
|
|
} apc_result_t;
|
|
|
|
|
2019-05-03 15:40:05 +02:00
|
|
|
enum irp_type
|
|
|
|
{
|
|
|
|
IRP_CALL_NONE,
|
|
|
|
IRP_CALL_CREATE,
|
|
|
|
IRP_CALL_CLOSE,
|
|
|
|
IRP_CALL_READ,
|
|
|
|
IRP_CALL_WRITE,
|
|
|
|
IRP_CALL_FLUSH,
|
|
|
|
IRP_CALL_IOCTL,
|
2020-10-28 20:39:50 +01:00
|
|
|
IRP_CALL_VOLUME,
|
2019-05-28 14:10:20 +02:00
|
|
|
IRP_CALL_FREE,
|
|
|
|
IRP_CALL_CANCEL
|
2019-05-03 15:40:05 +02:00
|
|
|
};
|
|
|
|
|
2015-05-06 04:21:40 +02:00
|
|
|
typedef union
|
|
|
|
{
|
2019-05-03 15:40:05 +02:00
|
|
|
enum irp_type type; /* irp call type */
|
2015-05-06 04:21:40 +02:00
|
|
|
struct
|
2015-07-08 10:55:14 +02:00
|
|
|
{
|
2019-05-03 15:40:05 +02:00
|
|
|
enum irp_type type; /* IRP_CALL_CREATE */
|
2015-07-08 10:55:14 +02:00
|
|
|
unsigned int access; /* access rights */
|
|
|
|
unsigned int sharing; /* sharing flags */
|
|
|
|
unsigned int options; /* file options */
|
|
|
|
client_ptr_t device; /* opaque ptr for the device */
|
2019-05-03 15:40:40 +02:00
|
|
|
obj_handle_t file; /* file handle */
|
2015-07-08 10:55:14 +02:00
|
|
|
} create;
|
|
|
|
struct
|
2015-07-08 11:05:04 +02:00
|
|
|
{
|
2019-05-03 15:40:05 +02:00
|
|
|
enum irp_type type; /* IRP_CALL_CLOSE */
|
2015-07-08 11:05:04 +02:00
|
|
|
int __pad;
|
2015-07-08 11:56:01 +02:00
|
|
|
client_ptr_t file; /* opaque ptr for the file object */
|
2015-07-08 11:05:04 +02:00
|
|
|
} close;
|
|
|
|
struct
|
2015-05-06 04:21:40 +02:00
|
|
|
{
|
2019-05-03 15:40:05 +02:00
|
|
|
enum irp_type type; /* IRP_CALL_READ */
|
2015-05-06 04:21:40 +02:00
|
|
|
unsigned int key; /* driver key */
|
2019-05-03 15:39:27 +02:00
|
|
|
data_size_t out_size; /* needed output size */
|
|
|
|
int __pad;
|
2015-07-08 12:04:32 +02:00
|
|
|
client_ptr_t file; /* opaque ptr for the file object */
|
2015-05-06 04:21:40 +02:00
|
|
|
file_pos_t pos; /* file position */
|
|
|
|
} read;
|
|
|
|
struct
|
|
|
|
{
|
2019-05-03 15:40:05 +02:00
|
|
|
enum irp_type type; /* IRP_CALL_WRITE */
|
2015-05-06 04:21:40 +02:00
|
|
|
unsigned int key; /* driver key */
|
2015-07-08 12:04:32 +02:00
|
|
|
client_ptr_t file; /* opaque ptr for the file object */
|
2015-05-06 04:21:40 +02:00
|
|
|
file_pos_t pos; /* file position */
|
|
|
|
} write;
|
|
|
|
struct
|
2015-07-08 10:50:00 +02:00
|
|
|
{
|
2019-05-03 15:40:05 +02:00
|
|
|
enum irp_type type; /* IRP_CALL_FLUSH */
|
2015-07-08 10:50:00 +02:00
|
|
|
int __pad;
|
2015-07-08 12:04:32 +02:00
|
|
|
client_ptr_t file; /* opaque ptr for the file object */
|
2015-07-08 10:50:00 +02:00
|
|
|
} flush;
|
|
|
|
struct
|
2015-05-06 04:21:40 +02:00
|
|
|
{
|
2019-05-03 15:40:05 +02:00
|
|
|
enum irp_type type; /* IRP_CALL_IOCTL */
|
2015-05-06 04:21:40 +02:00
|
|
|
ioctl_code_t code; /* ioctl code */
|
2019-05-03 15:39:27 +02:00
|
|
|
data_size_t out_size; /* needed output size */
|
|
|
|
int __pad;
|
2015-07-08 12:04:32 +02:00
|
|
|
client_ptr_t file; /* opaque ptr for the file object */
|
2015-05-06 04:21:40 +02:00
|
|
|
} ioctl;
|
2019-03-25 14:38:30 +01:00
|
|
|
struct
|
2020-10-28 20:39:50 +01:00
|
|
|
{
|
|
|
|
enum irp_type type; /* IRP_CALL_VOLUME */
|
|
|
|
unsigned int info_class;/* information class */
|
|
|
|
data_size_t out_size; /* needed output size */
|
|
|
|
int __pad;
|
|
|
|
client_ptr_t file; /* opaque ptr for the file object */
|
|
|
|
} volume;
|
|
|
|
struct
|
2019-03-25 14:38:30 +01:00
|
|
|
{
|
2019-05-03 15:40:05 +02:00
|
|
|
enum irp_type type; /* IRP_CALL_FREE */
|
2019-03-25 14:38:30 +01:00
|
|
|
int __pad;
|
|
|
|
client_ptr_t obj; /* opaque ptr for the freed object */
|
2019-05-03 15:40:05 +02:00
|
|
|
} free;
|
2019-05-28 14:10:20 +02:00
|
|
|
struct
|
|
|
|
{
|
|
|
|
enum irp_type type; /* IRP_CALL_CANCEL */
|
|
|
|
int __pad;
|
|
|
|
client_ptr_t irp; /* opaque ptr for canceled irp */
|
|
|
|
} cancel;
|
2015-05-06 04:21:40 +02:00
|
|
|
} irp_params_t;
|
|
|
|
|
2016-07-26 12:38:50 +02:00
|
|
|
/* information about a PE image mapping, roughly equivalent to SECTION_IMAGE_INFORMATION */
|
|
|
|
typedef struct
|
|
|
|
{
|
|
|
|
client_ptr_t base;
|
|
|
|
mem_size_t stack_size;
|
|
|
|
mem_size_t stack_commit;
|
2021-07-30 12:14:30 +02:00
|
|
|
unsigned int entry_point;
|
|
|
|
unsigned int map_size;
|
2016-07-26 12:38:50 +02:00
|
|
|
unsigned int zerobits;
|
|
|
|
unsigned int subsystem;
|
2021-01-22 17:21:13 +01:00
|
|
|
unsigned short subsystem_minor;
|
|
|
|
unsigned short subsystem_major;
|
|
|
|
unsigned short osversion_major;
|
|
|
|
unsigned short osversion_minor;
|
2016-07-26 12:38:50 +02:00
|
|
|
unsigned short image_charact;
|
|
|
|
unsigned short dll_charact;
|
|
|
|
unsigned short machine;
|
|
|
|
unsigned char contains_code;
|
|
|
|
unsigned char image_flags;
|
|
|
|
unsigned int loader_flags;
|
|
|
|
unsigned int header_size;
|
|
|
|
unsigned int file_size;
|
|
|
|
unsigned int checksum;
|
2021-02-02 10:12:56 +01:00
|
|
|
unsigned int dbg_offset;
|
|
|
|
unsigned int dbg_size;
|
2016-07-26 12:38:50 +02:00
|
|
|
} pe_image_info_t;
|
2018-02-13 10:37:28 +01:00
|
|
|
#define IMAGE_FLAGS_ComPlusNativeReady 0x01
|
|
|
|
#define IMAGE_FLAGS_ComPlusILOnly 0x02
|
|
|
|
#define IMAGE_FLAGS_ImageDynamicallyRelocated 0x04
|
|
|
|
#define IMAGE_FLAGS_ImageMappedFlat 0x08
|
|
|
|
#define IMAGE_FLAGS_BaseBelow4gb 0x10
|
2021-01-22 17:21:13 +01:00
|
|
|
#define IMAGE_FLAGS_ComPlusPrefer32bit 0x20
|
2019-04-22 11:34:25 +02:00
|
|
|
#define IMAGE_FLAGS_WineBuiltin 0x40
|
2019-02-09 15:23:47 +01:00
|
|
|
#define IMAGE_FLAGS_WineFakeDll 0x80
|
2016-07-26 12:38:50 +02:00
|
|
|
|
2012-09-08 11:26:26 +02:00
|
|
|
struct rawinput_device
|
|
|
|
{
|
|
|
|
unsigned short usage_page;
|
|
|
|
unsigned short usage;
|
|
|
|
unsigned int flags;
|
|
|
|
user_handle_t target;
|
|
|
|
};
|
|
|
|
|
2020-10-03 01:44:16 +02:00
|
|
|
typedef struct
|
|
|
|
{
|
|
|
|
int x;
|
|
|
|
int y;
|
|
|
|
unsigned int time;
|
|
|
|
int __pad;
|
|
|
|
lparam_t info;
|
|
|
|
} cursor_pos_t;
|
|
|
|
|
2001-07-19 02:35:37 +02:00
|
|
|
/****************************************************************/
|
|
|
|
/* Request declarations */
|
|
|
|
|
|
|
|
/* Create a new process from the context of the parent */
|
|
|
|
@REQ(new_process)
|
2020-09-24 06:44:55 +02:00
|
|
|
obj_handle_t token; /* process token */
|
2021-02-01 11:08:44 +01:00
|
|
|
obj_handle_t debug; /* process debug object */
|
2019-12-12 12:18:31 +01:00
|
|
|
obj_handle_t parent_process; /* parent process */
|
2021-04-16 11:43:14 +02:00
|
|
|
unsigned int flags; /* process creation flags */
|
2006-07-19 14:00:10 +02:00
|
|
|
int socket_fd; /* file descriptor for process socket */
|
2018-09-20 13:26:35 +02:00
|
|
|
unsigned int access; /* access rights for process object */
|
2021-04-27 10:42:04 +02:00
|
|
|
unsigned short machine; /* architecture that the new process will use */
|
2009-08-20 20:05:21 +02:00
|
|
|
data_size_t info_size; /* size of startup info */
|
2020-09-22 12:24:21 +02:00
|
|
|
data_size_t handles_size; /* length of explicit handles list */
|
2021-05-20 02:29:03 +02:00
|
|
|
data_size_t jobs_size; /* length of jobs list */
|
2018-09-20 13:39:28 +02:00
|
|
|
VARARG(objattr,object_attributes); /* object attributes */
|
2020-09-22 12:24:21 +02:00
|
|
|
VARARG(handles,uints,handles_size); /* handles list */
|
2021-05-20 02:29:03 +02:00
|
|
|
VARARG(jobs,uints,jobs_size); /* jobs list */
|
2009-08-20 20:05:21 +02:00
|
|
|
VARARG(info,startup_info,info_size); /* startup information */
|
2006-07-19 14:00:10 +02:00
|
|
|
VARARG(env,unicode_str); /* environment for new process */
|
2001-07-19 02:35:37 +02:00
|
|
|
@REPLY
|
2006-07-19 14:00:10 +02:00
|
|
|
obj_handle_t info; /* new process info handle */
|
|
|
|
process_id_t pid; /* process id */
|
2018-09-20 13:26:35 +02:00
|
|
|
obj_handle_t handle; /* process handle (in the current process) */
|
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 */
|
2001-07-19 02:35:37 +02:00
|
|
|
@REPLY
|
2002-05-24 23:20:27 +02:00
|
|
|
int success; /* did the process start successfully? */
|
2006-07-19 14:00:10 +02:00
|
|
|
int exit_code; /* process exit code if failed */
|
2001-07-19 02:35:37 +02:00
|
|
|
@END
|
|
|
|
|
|
|
|
|
2018-09-20 13:19:49 +02:00
|
|
|
/* Create a new thread */
|
2001-07-19 02:35:37 +02:00
|
|
|
@REQ(new_thread)
|
2018-09-20 13:19:49 +02:00
|
|
|
obj_handle_t process; /* process in which to create thread */
|
2005-12-09 12:13:11 +01:00
|
|
|
unsigned int access; /* wanted access rights */
|
2001-07-19 02:35:37 +02:00
|
|
|
int suspend; /* new thread should be suspended on creation */
|
|
|
|
int request_fd; /* fd for request pipe */
|
2018-09-20 13:06:12 +02:00
|
|
|
VARARG(objattr,object_attributes); /* object attributes */
|
2001-07-19 02:35:37 +02:00
|
|
|
@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
|
2009-08-20 20:05:21 +02:00
|
|
|
data_size_t info_size; /* size of startup info */
|
|
|
|
VARARG(info,startup_info,info_size); /* 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)
|
2021-05-13 15:21:06 +02:00
|
|
|
client_ptr_t teb; /* TEB of new thread (in process address space) */
|
|
|
|
client_ptr_t peb; /* PEB of new process (in process address space) */
|
|
|
|
client_ptr_t ldt_copy; /* address of LDT copy (in process address space) */
|
2017-09-19 12:26:06 +02:00
|
|
|
@REPLY
|
2021-02-08 12:10:49 +01:00
|
|
|
client_ptr_t entry; /* process entry point */
|
2017-09-19 12:26:06 +02:00
|
|
|
int suspend; /* is process suspended? */
|
2001-07-19 02:35:37 +02:00
|
|
|
@END
|
|
|
|
|
|
|
|
|
2021-02-02 10:18:26 +01:00
|
|
|
/* Initialize the first thread of a new process */
|
|
|
|
@REQ(init_first_thread)
|
|
|
|
int unix_pid; /* Unix pid of new process */
|
2003-03-22 22:00:09 +01:00
|
|
|
int unix_tid; /* Unix tid of new thread */
|
2006-10-04 21:41:32 +02:00
|
|
|
int debug_level; /* new debug level */
|
2001-07-19 02:35:37 +02:00
|
|
|
int reply_fd; /* fd for reply pipe */
|
|
|
|
int wait_fd; /* fd for blocking calls pipe */
|
|
|
|
@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 */
|
2007-04-17 20:08:59 +02:00
|
|
|
timeout_t server_start; /* server start time */
|
2021-07-01 15:26:47 +02:00
|
|
|
unsigned int session_id; /* process session id */
|
2008-12-31 15:14:29 +01:00
|
|
|
data_size_t info_size; /* total size of startup info */
|
2021-04-23 11:58:32 +02:00
|
|
|
VARARG(machines,ushorts); /* array of supported machines */
|
2021-02-02 10:18:26 +01:00
|
|
|
@END
|
|
|
|
|
|
|
|
|
|
|
|
/* Initialize a new thread; called from the child after pthread_create() */
|
|
|
|
@REQ(init_thread)
|
|
|
|
int unix_tid; /* Unix tid of new thread */
|
|
|
|
int reply_fd; /* fd for reply pipe */
|
|
|
|
int wait_fd; /* fd for blocking calls pipe */
|
|
|
|
client_ptr_t teb; /* TEB of new thread (in thread address space) */
|
|
|
|
client_ptr_t entry; /* entry point (in thread address space) */
|
|
|
|
@REPLY
|
2017-11-30 11:01:47 +01:00
|
|
|
int suspend; /* is thread suspended? */
|
2001-07-19 02:35:37 +02:00
|
|
|
@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? */
|
|
|
|
@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 */
|
2009-01-19 14:15:51 +01:00
|
|
|
affinity_t affinity; /* process affinity mask */
|
2008-12-30 23:02:33 +01:00
|
|
|
client_ptr_t peb; /* PEB address in process address space */
|
2007-04-17 20:08:59 +02:00
|
|
|
timeout_t start_time; /* process start time */
|
|
|
|
timeout_t end_time; /* process end time */
|
2021-07-01 15:29:55 +02:00
|
|
|
unsigned int session_id; /* process session id */
|
2008-12-30 23:02:33 +01:00
|
|
|
int exit_code; /* process exit code */
|
2009-01-19 14:15:51 +01:00
|
|
|
int priority; /* priority class */
|
2021-04-23 12:14:04 +02:00
|
|
|
unsigned short machine; /* process architecture */
|
2021-02-08 12:09:44 +01:00
|
|
|
VARARG(image,pe_image_info); /* image info for main exe */
|
|
|
|
@END
|
|
|
|
|
|
|
|
|
|
|
|
/* Retrieve debug information about a process */
|
|
|
|
@REQ(get_process_debug_info)
|
|
|
|
obj_handle_t handle; /* process handle */
|
|
|
|
@REPLY
|
|
|
|
obj_handle_t debug; /* handle to debug port */
|
|
|
|
int debug_children; /* inherit debugger to child processes */
|
2020-05-26 13:23:21 +02:00
|
|
|
VARARG(image,pe_image_info); /* image info for main exe */
|
2001-07-19 02:35:37 +02:00
|
|
|
@END
|
|
|
|
|
|
|
|
|
2021-02-09 16:14:27 +01:00
|
|
|
/* Fetch the name of the process image */
|
|
|
|
@REQ(get_process_image_name)
|
|
|
|
obj_handle_t handle; /* process handle */
|
|
|
|
int win32; /* return a win32 filename? */
|
|
|
|
@REPLY
|
|
|
|
data_size_t len; /* len in bytes required to store filename */
|
|
|
|
VARARG(name,unicode_str); /* image name for main exe */
|
|
|
|
@END
|
|
|
|
|
|
|
|
|
2017-05-08 06:32:43 +02:00
|
|
|
/* Retrieve information about a process memory usage */
|
|
|
|
@REQ(get_process_vm_counters)
|
|
|
|
obj_handle_t handle; /* process handle */
|
|
|
|
@REPLY
|
|
|
|
mem_size_t peak_virtual_size; /* peak virtual memory in bytes */
|
|
|
|
mem_size_t virtual_size; /* virtual memory in bytes */
|
|
|
|
mem_size_t peak_working_set_size; /* peak real memory in bytes */
|
|
|
|
mem_size_t working_set_size; /* real memory in bytes */
|
2017-05-17 04:32:44 +02:00
|
|
|
mem_size_t pagefile_usage; /* commit charge in bytes */
|
|
|
|
mem_size_t peak_pagefile_usage; /* peak commit charge in bytes */
|
2017-05-08 06:32:43 +02:00
|
|
|
@END
|
|
|
|
|
|
|
|
|
2012-05-15 10:15:32 +02:00
|
|
|
/* Set a process information */
|
2001-07-19 02:35:37 +02:00
|
|
|
@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 */
|
2009-01-19 14:15:51 +01:00
|
|
|
affinity_t affinity; /* affinity mask */
|
2001-07-19 02:35:37 +02:00
|
|
|
@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 */
|
2020-06-26 11:27:29 +02:00
|
|
|
unsigned int access; /* required access rights */
|
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 */
|
2008-12-30 23:02:33 +01:00
|
|
|
client_ptr_t teb; /* thread teb pointer */
|
2015-07-27 18:31:33 +02:00
|
|
|
client_ptr_t entry_point; /* thread entry point */
|
2009-01-19 14:15:51 +01:00
|
|
|
affinity_t affinity; /* thread affinity mask */
|
2008-12-30 23:02:33 +01:00
|
|
|
int exit_code; /* thread exit code */
|
2009-01-19 14:15:51 +01:00
|
|
|
int priority; /* thread priority level */
|
2006-10-01 08:17:27 +02:00
|
|
|
int last; /* last thread in process */
|
2019-12-03 10:05:22 +01:00
|
|
|
int suspend_count; /* thread suspend count */
|
2020-06-26 11:27:29 +02:00
|
|
|
int dbg_hidden; /* thread hidden from debugger */
|
2019-11-26 07:48:10 +01:00
|
|
|
data_size_t desc_len; /* description length in bytes */
|
|
|
|
VARARG(desc,unicode_str); /* description string */
|
2001-07-19 02:35:37 +02:00
|
|
|
@END
|
|
|
|
|
|
|
|
|
2015-07-27 18:30:53 +02:00
|
|
|
/* Retrieve information about thread times */
|
|
|
|
@REQ(get_thread_times)
|
|
|
|
obj_handle_t handle; /* thread handle */
|
|
|
|
@REPLY
|
|
|
|
timeout_t creation_time; /* thread creation time */
|
|
|
|
timeout_t exit_time; /* thread exit time */
|
2020-06-29 03:43:17 +02:00
|
|
|
int unix_pid; /* thread native pid */
|
|
|
|
int unix_tid; /* thread native pid */
|
2015-07-27 18:30:53 +02:00
|
|
|
@END
|
|
|
|
|
|
|
|
|
2012-05-15 10:15:32 +02:00
|
|
|
/* Set a thread information */
|
2001-07-19 02:35:37 +02:00
|
|
|
@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 */
|
2009-01-19 14:15:51 +01:00
|
|
|
affinity_t affinity; /* affinity mask */
|
2015-07-27 18:31:11 +02:00
|
|
|
client_ptr_t entry_point; /* thread entry point */
|
2005-06-20 15:18:38 +02:00
|
|
|
obj_handle_t token; /* impersonation token */
|
2019-11-26 07:48:10 +01:00
|
|
|
VARARG(desc,unicode_str); /* description string */
|
2001-07-19 02:35:37 +02:00
|
|
|
@END
|
2019-11-26 07:48:10 +01:00
|
|
|
#define SET_THREAD_INFO_PRIORITY 0x01
|
|
|
|
#define SET_THREAD_INFO_AFFINITY 0x02
|
|
|
|
#define SET_THREAD_INFO_TOKEN 0x04
|
|
|
|
#define SET_THREAD_INFO_ENTRYPOINT 0x08
|
|
|
|
#define SET_THREAD_INFO_DESCRIPTION 0x10
|
2020-06-26 11:27:29 +02:00
|
|
|
#define SET_THREAD_INFO_DBG_HIDDEN 0x20
|
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
|
|
|
|
|
|
|
|
|
2007-01-15 22:26:32 +01:00
|
|
|
/* Queue an APC for a thread or process */
|
2001-07-19 02:35:37 +02:00
|
|
|
@REQ(queue_apc)
|
2008-12-26 12:19:41 +01:00
|
|
|
obj_handle_t handle; /* thread or process handle */
|
2007-01-04 13:40:09 +01:00
|
|
|
apc_call_t call; /* call arguments */
|
2007-01-15 22:26:32 +01:00
|
|
|
@REPLY
|
|
|
|
obj_handle_t handle; /* APC handle */
|
2007-01-18 15:41:05 +01:00
|
|
|
int self; /* run APC in caller itself? */
|
2001-07-19 02:35:37 +02:00
|
|
|
@END
|
|
|
|
|
|
|
|
|
2007-01-15 22:24:40 +01:00
|
|
|
/* Get the result of an APC call */
|
|
|
|
@REQ(get_apc_result)
|
|
|
|
obj_handle_t handle; /* handle to the APC */
|
|
|
|
@REPLY
|
|
|
|
apc_result_t result; /* result of the APC */
|
|
|
|
@END
|
|
|
|
|
|
|
|
|
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
|
|
|
@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 */
|
2021-03-18 06:41:27 +01:00
|
|
|
unsigned int options; /* duplicate options */
|
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
|
|
|
@END
|
|
|
|
|
|
|
|
|
2020-07-16 03:27:55 +02:00
|
|
|
/* Make an object temporary */
|
|
|
|
@REQ(make_temporary)
|
|
|
|
obj_handle_t handle; /* handle to the object */
|
|
|
|
@END
|
|
|
|
|
|
|
|
|
2001-07-19 02:35:37 +02:00
|
|
|
/* 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) */
|
2008-12-29 17:19:26 +01:00
|
|
|
client_ptr_t cookie; /* magic cookie to return to client */
|
2020-04-06 17:21:19 +02:00
|
|
|
abstime_t timeout; /* timeout */
|
2020-04-15 14:55:03 +02:00
|
|
|
data_size_t size; /* size of select_op */
|
2013-08-22 11:15:44 +02:00
|
|
|
obj_handle_t prev_apc; /* handle to previous APC */
|
2007-07-16 16:14:45 +02:00
|
|
|
VARARG(result,apc_result); /* result of previous APC */
|
2020-04-15 14:55:03 +02:00
|
|
|
VARARG(data,select_op,size); /* operation-specific data */
|
2021-06-26 11:13:05 +02:00
|
|
|
VARARG(contexts,contexts); /* suspend context(s) */
|
2007-04-17 20:08:59 +02:00
|
|
|
@REPLY
|
2007-07-16 16:14:45 +02:00
|
|
|
apc_call_t call; /* APC call arguments */
|
2008-12-30 15:05:38 +01:00
|
|
|
obj_handle_t apc_handle; /* handle to next APC */
|
2021-07-05 18:20:01 +02:00
|
|
|
int signaled; /* were the handles immediately signaled? */
|
2021-06-26 11:13:05 +02:00
|
|
|
VARARG(contexts,contexts); /* suspend context(s) */
|
2001-07-19 02:35:37 +02:00
|
|
|
@END
|
2013-08-22 10:43:36 +02:00
|
|
|
#define SELECT_ALERTABLE 1
|
|
|
|
#define SELECT_INTERRUPTIBLE 2
|
2001-07-19 02:35:37 +02:00
|
|
|
|
|
|
|
|
|
|
|
/* Create an event */
|
|
|
|
@REQ(create_event)
|
2004-12-02 19:05:37 +01:00
|
|
|
unsigned int access; /* wanted access rights */
|
2001-07-19 02:35:37 +02:00
|
|
|
int manual_reset; /* manual reset event */
|
|
|
|
int initial_state; /* initial state of the event */
|
2007-10-24 17:04:42 +02:00
|
|
|
VARARG(objattr,object_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 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) */
|
2019-03-11 18:06:39 +01:00
|
|
|
@REPLY
|
|
|
|
int state; /* previous state */
|
2001-07-19 02:35:37 +02:00
|
|
|
@END
|
|
|
|
enum event_op { PULSE_EVENT, SET_EVENT, RESET_EVENT };
|
|
|
|
|
2013-08-26 11:52:51 +02:00
|
|
|
@REQ(query_event)
|
|
|
|
obj_handle_t handle; /* handle to event */
|
|
|
|
@REPLY
|
|
|
|
int manual_reset; /* manual reset event */
|
|
|
|
int state; /* current state of the event */
|
|
|
|
@END
|
2001-07-19 02:35:37 +02:00
|
|
|
|
|
|
|
/* 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
|
|
|
|
|
|
|
|
|
2013-08-21 12:54:17 +02:00
|
|
|
/* Create a keyed event */
|
|
|
|
@REQ(create_keyed_event)
|
|
|
|
unsigned int access; /* wanted access rights */
|
|
|
|
VARARG(objattr,object_attributes); /* object attributes */
|
|
|
|
@REPLY
|
|
|
|
obj_handle_t handle; /* handle to the event */
|
|
|
|
@END
|
|
|
|
|
|
|
|
/* Open a keyed event */
|
|
|
|
@REQ(open_keyed_event)
|
|
|
|
unsigned int access; /* wanted access rights */
|
|
|
|
unsigned int attributes; /* object attributes */
|
|
|
|
obj_handle_t rootdir; /* root directory */
|
|
|
|
VARARG(name,unicode_str); /* object name */
|
|
|
|
@REPLY
|
|
|
|
obj_handle_t handle; /* handle to the event */
|
|
|
|
@END
|
|
|
|
|
|
|
|
|
2001-07-19 02:35:37 +02:00
|
|
|
/* Create a mutex */
|
|
|
|
@REQ(create_mutex)
|
2004-12-02 19:05:37 +01:00
|
|
|
unsigned int access; /* wanted access rights */
|
2001-07-19 02:35:37 +02:00
|
|
|
int owned; /* initially owned? */
|
2007-10-25 16:43:05 +02:00
|
|
|
VARARG(objattr,object_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 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
|
|
|
|
|
|
|
|
|
2016-05-03 02:55:34 +02:00
|
|
|
/* Query a mutex */
|
|
|
|
@REQ(query_mutex)
|
|
|
|
obj_handle_t handle; /* handle to mutex */
|
|
|
|
@REPLY
|
|
|
|
unsigned int count; /* current count of mutex */
|
|
|
|
int owned; /* true if owned by current thread */
|
|
|
|
int abandoned; /* true if abandoned */
|
|
|
|
@END
|
|
|
|
|
|
|
|
|
2001-07-19 02:35:37 +02:00
|
|
|
/* Create a semaphore */
|
|
|
|
@REQ(create_semaphore)
|
2004-12-02 19:05:37 +01:00
|
|
|
unsigned int access; /* wanted access rights */
|
2001-07-19 02:35:37 +02:00
|
|
|
unsigned int initial; /* initial count */
|
|
|
|
unsigned int max; /* maximum count */
|
2007-10-25 16:42:53 +02:00
|
|
|
VARARG(objattr,object_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 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
|
|
|
|
|
2013-12-25 05:28:36 +01:00
|
|
|
@REQ(query_semaphore)
|
|
|
|
obj_handle_t handle; /* handle to the semaphore */
|
|
|
|
@REPLY
|
|
|
|
unsigned int current; /* current count */
|
|
|
|
unsigned int max; /* maximum count */
|
|
|
|
@END
|
2001-07-19 02:35:37 +02:00
|
|
|
|
|
|
|
/* 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 */
|
|
|
|
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 */
|
2007-10-26 18:02:16 +02:00
|
|
|
VARARG(objattr,object_attributes); /* object attributes */
|
2001-07-19 02:35:37 +02:00
|
|
|
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 */
|
2007-03-22 11:52:40 +01:00
|
|
|
unsigned int options; /* file options */
|
2005-12-12 14:27:45 +01:00
|
|
|
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
|
|
|
|
|
|
|
|
|
2009-11-12 15:10:12 +01:00
|
|
|
/* Get the Unix name from a file handle */
|
|
|
|
@REQ(get_handle_unix_name)
|
|
|
|
obj_handle_t handle; /* file handle */
|
|
|
|
@REPLY
|
|
|
|
data_size_t name_len; /* unix name length */
|
|
|
|
VARARG(name,string); /* unix name */
|
|
|
|
@END
|
|
|
|
|
|
|
|
|
2001-07-19 02:35:37 +02:00
|
|
|
/* 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
|
|
|
@REPLY
|
2006-11-20 14:14:04 +01:00
|
|
|
int type; /* file type (see below) */
|
2010-08-23 17:09:45 +02:00
|
|
|
int cacheable; /* can fd be cached in the client? */
|
2007-04-10 22:32:46 +02:00
|
|
|
unsigned int access; /* file access rights */
|
|
|
|
unsigned int options; /* file open options */
|
2001-07-19 02:35:37 +02:00
|
|
|
@END
|
2006-11-20 14:14:04 +01:00
|
|
|
enum server_fd_type
|
|
|
|
{
|
|
|
|
FD_TYPE_INVALID, /* invalid file (no associated fd) */
|
|
|
|
FD_TYPE_FILE, /* regular file */
|
|
|
|
FD_TYPE_DIR, /* directory */
|
|
|
|
FD_TYPE_SOCKET, /* socket */
|
|
|
|
FD_TYPE_SERIAL, /* serial port */
|
|
|
|
FD_TYPE_PIPE, /* named pipe */
|
|
|
|
FD_TYPE_MAILSLOT, /* mailslot */
|
2007-04-23 15:13:22 +02:00
|
|
|
FD_TYPE_CHAR, /* unspecified char device */
|
2006-11-20 14:14:04 +01:00
|
|
|
FD_TYPE_DEVICE, /* Windows device file */
|
|
|
|
FD_TYPE_NB_TYPES
|
|
|
|
};
|
2007-04-10 22:32:46 +02:00
|
|
|
|
2001-07-19 02:35:37 +02:00
|
|
|
|
2016-05-02 07:39:16 +02:00
|
|
|
/* Retrieve (or allocate) the client-side directory cache entry */
|
|
|
|
@REQ(get_directory_cache_entry)
|
|
|
|
obj_handle_t handle; /* handle to the directory */
|
|
|
|
@REPLY
|
|
|
|
int entry; /* cache entry on the client side */
|
|
|
|
VARARG(free,ints); /* entries that can be freed */
|
|
|
|
@END
|
|
|
|
|
|
|
|
|
2001-07-19 02:35:37 +02:00
|
|
|
/* Flush a file buffers */
|
2015-05-05 05:23:08 +02:00
|
|
|
@REQ(flush)
|
|
|
|
async_data_t async; /* async I/O parameters */
|
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
|
|
|
|
|
2017-12-21 16:12:01 +01:00
|
|
|
/* Query file information */
|
|
|
|
@REQ(get_file_info)
|
|
|
|
obj_handle_t handle; /* handle to the file */
|
|
|
|
unsigned int info_class; /* queried information class */
|
|
|
|
@REPLY
|
|
|
|
VARARG(data,bytes); /* file info data */
|
|
|
|
@END
|
|
|
|
|
|
|
|
/* Query volume information */
|
2017-10-02 16:42:16 +02:00
|
|
|
@REQ(get_volume_info)
|
|
|
|
obj_handle_t handle; /* handle to the file */
|
2020-05-24 05:39:41 +02:00
|
|
|
async_data_t async; /* async I/O parameters */
|
2017-10-02 16:42:16 +02:00
|
|
|
unsigned int info_class; /* queried information class */
|
|
|
|
@REPLY
|
2020-05-24 05:39:41 +02:00
|
|
|
obj_handle_t wait; /* handle to wait on for blocking read */
|
2017-10-02 16:42:16 +02:00
|
|
|
VARARG(data,bytes); /* volume info data */
|
|
|
|
@END
|
2001-07-19 02:35:37 +02:00
|
|
|
|
|
|
|
/* 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 */
|
2007-10-10 14:06:25 +02:00
|
|
|
file_pos_t offset; /* offset of start of lock */
|
|
|
|
file_pos_t count; /* 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 */
|
2007-10-10 14:06:25 +02:00
|
|
|
file_pos_t offset; /* offset of start of unlock */
|
|
|
|
file_pos_t count; /* count of bytes to unlock */
|
2001-07-19 02:35:37 +02:00
|
|
|
@END
|
|
|
|
|
|
|
|
|
2021-05-22 05:08:48 +02:00
|
|
|
/* Perform a recv on a socket */
|
|
|
|
@REQ(recv_socket)
|
2021-05-27 06:36:49 +02:00
|
|
|
int oob; /* are we receiving OOB data? */
|
2021-05-22 05:08:48 +02:00
|
|
|
async_data_t async; /* async I/O parameters */
|
|
|
|
unsigned int status; /* status of initial call */
|
|
|
|
unsigned int total; /* number of bytes already read */
|
|
|
|
@REPLY
|
|
|
|
obj_handle_t wait; /* handle to wait on for blocking recv */
|
|
|
|
unsigned int options; /* device open options */
|
|
|
|
@END
|
|
|
|
|
|
|
|
|
2021-05-25 06:13:41 +02:00
|
|
|
struct poll_socket_input
|
|
|
|
{
|
|
|
|
obj_handle_t socket; /* socket handle */
|
|
|
|
int flags; /* events to poll for */
|
|
|
|
};
|
|
|
|
|
|
|
|
struct poll_socket_output
|
|
|
|
{
|
|
|
|
int flags; /* events signaled */
|
|
|
|
unsigned int status; /* socket status */
|
|
|
|
};
|
|
|
|
|
|
|
|
/* Perform an async poll on a socket */
|
|
|
|
@REQ(poll_socket)
|
2021-09-23 07:48:03 +02:00
|
|
|
int exclusive; /* is the poll exclusive? */
|
2021-05-25 06:13:41 +02:00
|
|
|
async_data_t async; /* async I/O parameters */
|
|
|
|
timeout_t timeout; /* timeout */
|
|
|
|
VARARG(sockets,poll_socket_input); /* list of sockets to poll */
|
|
|
|
@REPLY
|
|
|
|
obj_handle_t wait; /* handle to wait on for blocking poll */
|
|
|
|
unsigned int options; /* file open options */
|
|
|
|
VARARG(sockets,poll_socket_output); /* data returned */
|
|
|
|
@END
|
|
|
|
|
|
|
|
|
2021-05-27 06:36:53 +02:00
|
|
|
/* Perform a send on a socket */
|
|
|
|
@REQ(send_socket)
|
|
|
|
async_data_t async; /* async I/O parameters */
|
|
|
|
unsigned int status; /* status of initial call */
|
|
|
|
unsigned int total; /* number of bytes already sent */
|
|
|
|
@REPLY
|
|
|
|
obj_handle_t wait; /* handle to wait on for blocking send */
|
|
|
|
unsigned int options; /* device open options */
|
|
|
|
@END
|
|
|
|
|
|
|
|
|
2020-08-20 23:50:47 +02:00
|
|
|
/* Retrieve the next pending console ioctl request */
|
|
|
|
@REQ(get_next_console_request)
|
|
|
|
obj_handle_t handle; /* console server handle */
|
|
|
|
int signal; /* server signal state */
|
2020-08-25 14:52:48 +02:00
|
|
|
int read; /* 1 if reporting result of blocked read ioctl */
|
2020-08-20 23:50:47 +02:00
|
|
|
unsigned int status; /* status of previous ioctl */
|
|
|
|
VARARG(out_data,bytes); /* out_data of previous ioctl */
|
|
|
|
@REPLY
|
|
|
|
unsigned int code; /* ioctl code */
|
2020-08-27 15:04:27 +02:00
|
|
|
unsigned int output; /* output id or 0 for input */
|
2020-08-20 23:50:47 +02:00
|
|
|
data_size_t out_size; /* ioctl output size */
|
|
|
|
VARARG(in_data,bytes); /* ioctl in_data */
|
|
|
|
@END
|
|
|
|
|
|
|
|
|
2006-01-27 12:13:56 +01:00
|
|
|
/* enable directory change notifications */
|
|
|
|
@REQ(read_directory_changes)
|
2006-10-04 21:41:32 +02:00
|
|
|
unsigned int filter; /* notification filter */
|
2006-02-21 08:58:19 +01:00
|
|
|
int subtree; /* watch the subtree? */
|
2006-02-07 16:50:36 +01:00
|
|
|
int want_data; /* flag indicating whether change data should be collected */
|
2007-03-20 20:21:12 +01:00
|
|
|
async_data_t async; /* async I/O parameters */
|
2006-02-06 11:58:55 +01:00
|
|
|
@END
|
|
|
|
|
|
|
|
|
|
|
|
@REQ(read_change)
|
|
|
|
obj_handle_t handle;
|
|
|
|
@REPLY
|
2011-01-18 11:24:33 +01:00
|
|
|
VARARG(events,filesystem_event); /* collected filesystem events */
|
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 */
|
2016-07-26 07:20:02 +02:00
|
|
|
unsigned int flags; /* SEC_* flags */
|
2017-09-12 11:42:04 +02:00
|
|
|
unsigned int file_access; /* file access rights */
|
2008-12-31 15:14:29 +01:00
|
|
|
mem_size_t size; /* mapping size */
|
2002-05-30 22:12:58 +02:00
|
|
|
obj_handle_t file_handle; /* file handle */
|
2007-10-25 20:09:54 +02:00
|
|
|
VARARG(objattr,object_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 mapping */
|
2001-07-19 02:35:37 +02:00
|
|
|
@END
|
|
|
|
|
|
|
|
|
|
|
|
/* 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 */
|
2008-11-05 20:32:32 +01:00
|
|
|
unsigned int access; /* wanted access rights */
|
2001-07-19 02:35:37 +02:00
|
|
|
@REPLY
|
2008-12-17 19:25:49 +01:00
|
|
|
mem_size_t size; /* mapping size */
|
2016-07-26 07:20:02 +02:00
|
|
|
unsigned int flags; /* SEC_* flags */
|
2002-05-30 22:12:58 +02:00
|
|
|
obj_handle_t shared_file; /* shared mapping file handle */
|
2021-03-11 14:56:57 +01:00
|
|
|
data_size_t total; /* total required buffer size in bytes */
|
2016-07-26 12:38:50 +02:00
|
|
|
VARARG(image,pe_image_info);/* image info for SEC_IMAGE mappings */
|
2021-03-11 14:56:57 +01:00
|
|
|
VARARG(name,unicode_str); /* filename for SEC_IMAGE mappings */
|
2001-07-19 02:35:37 +02:00
|
|
|
@END
|
|
|
|
|
|
|
|
|
2017-09-26 14:11:49 +02:00
|
|
|
/* Add a memory view in the current process */
|
|
|
|
@REQ(map_view)
|
2021-01-26 11:55:37 +01:00
|
|
|
obj_handle_t mapping; /* file mapping handle, or 0 for .so builtin */
|
2017-09-26 14:11:49 +02:00
|
|
|
unsigned int access; /* wanted access rights */
|
|
|
|
client_ptr_t base; /* view base address (page-aligned) */
|
|
|
|
mem_size_t size; /* view size */
|
|
|
|
file_pos_t start; /* start offset in mapping */
|
2021-01-26 11:55:37 +01:00
|
|
|
VARARG(image,pe_image_info);/* image info for .so builtins */
|
2021-02-15 12:24:15 +01:00
|
|
|
VARARG(name,unicode_str); /* image filename for .so builtins */
|
2017-09-26 14:11:49 +02:00
|
|
|
@END
|
|
|
|
|
|
|
|
|
|
|
|
/* Unmap a memory view from the current process */
|
|
|
|
@REQ(unmap_view)
|
|
|
|
client_ptr_t base; /* view base address */
|
|
|
|
@END
|
|
|
|
|
|
|
|
|
2008-11-05 12:24:05 +01:00
|
|
|
/* Get a range of committed pages in a file mapping */
|
|
|
|
@REQ(get_mapping_committed_range)
|
2017-09-26 14:38:46 +02:00
|
|
|
client_ptr_t base; /* view base address */
|
2008-11-05 12:24:05 +01:00
|
|
|
file_pos_t offset; /* starting offset (page-aligned, in bytes) */
|
|
|
|
@REPLY
|
2008-12-17 19:25:49 +01:00
|
|
|
mem_size_t size; /* size of range starting at offset (page-aligned, in bytes) */
|
2008-11-05 12:24:05 +01:00
|
|
|
int committed; /* whether it is a committed range */
|
|
|
|
@END
|
|
|
|
|
|
|
|
|
|
|
|
/* Add a range to the committed pages in a file mapping */
|
|
|
|
@REQ(add_mapping_committed_range)
|
2017-09-26 14:38:46 +02:00
|
|
|
client_ptr_t base; /* view base address */
|
2008-11-05 12:24:05 +01:00
|
|
|
file_pos_t offset; /* starting offset (page-aligned, in bytes) */
|
2008-12-17 19:25:49 +01:00
|
|
|
mem_size_t size; /* size to set (page-aligned, in bytes) or 0 if only retrieving */
|
2008-11-05 12:24:05 +01:00
|
|
|
@END
|
|
|
|
|
|
|
|
|
2017-09-26 14:55:13 +02:00
|
|
|
/* Check if two memory maps are for the same file */
|
|
|
|
@REQ(is_same_mapping)
|
|
|
|
client_ptr_t base1; /* first view base address */
|
|
|
|
client_ptr_t base2; /* second view base address */
|
|
|
|
@END
|
|
|
|
|
|
|
|
|
2021-02-10 16:09:49 +01:00
|
|
|
/* Get the filename of a mapping */
|
|
|
|
@REQ(get_mapping_filename)
|
|
|
|
obj_handle_t process; /* process handle */
|
|
|
|
client_ptr_t addr; /* address inside mapped view (in process address space) */
|
|
|
|
@REPLY
|
|
|
|
data_size_t len; /* total filename length in bytes */
|
|
|
|
VARARG(filename,unicode_str); /* filename in NT format */
|
|
|
|
@END
|
|
|
|
|
|
|
|
|
2020-07-07 04:06:00 +02:00
|
|
|
struct thread_info
|
|
|
|
{
|
2020-07-08 01:58:34 +02:00
|
|
|
timeout_t start_time;
|
2020-07-07 04:06:00 +02:00
|
|
|
thread_id_t tid;
|
|
|
|
int base_priority;
|
|
|
|
int current_priority;
|
|
|
|
int unix_tid;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct process_info
|
|
|
|
{
|
2020-07-08 01:58:33 +02:00
|
|
|
timeout_t start_time;
|
2020-07-07 04:06:00 +02:00
|
|
|
data_size_t name_len;
|
|
|
|
int thread_count;
|
|
|
|
int priority;
|
|
|
|
process_id_t pid;
|
|
|
|
process_id_t parent_pid;
|
2021-07-01 16:15:26 +02:00
|
|
|
unsigned int session_id;
|
2020-07-07 04:06:00 +02:00
|
|
|
int handle_count;
|
|
|
|
int unix_pid;
|
|
|
|
/* VARARG(name,unicode_str,name_len); */
|
|
|
|
/* VARARG(threads,struct thread_info,thread_count); */
|
|
|
|
};
|
|
|
|
|
|
|
|
/* Get a list of processes and threads currently running */
|
|
|
|
@REQ(list_processes)
|
|
|
|
@REPLY
|
|
|
|
data_size_t info_size;
|
|
|
|
int process_count;
|
|
|
|
VARARG(data,process_info,info_size);
|
|
|
|
@END
|
|
|
|
|
|
|
|
|
2021-01-27 10:43:30 +01:00
|
|
|
/* Create a debug object */
|
|
|
|
@REQ(create_debug_obj)
|
|
|
|
unsigned int access; /* wanted access rights */
|
2021-01-29 12:26:17 +01:00
|
|
|
unsigned int flags; /* object flags */
|
2021-01-27 10:43:30 +01:00
|
|
|
VARARG(objattr,object_attributes); /* object attributes */
|
|
|
|
@REPLY
|
|
|
|
obj_handle_t handle; /* handle to the debug object */
|
|
|
|
@END
|
|
|
|
|
|
|
|
|
2001-07-19 02:35:37 +02:00
|
|
|
/* Wait for a debug event */
|
|
|
|
@REQ(wait_debug_event)
|
2021-02-01 11:45:29 +01:00
|
|
|
obj_handle_t debug; /* debug object */
|
2001-07-19 02:35:37 +02:00
|
|
|
@REPLY
|
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
|
|
|
VARARG(event,debug_event); /* debug event data */
|
|
|
|
@END
|
|
|
|
|
|
|
|
|
|
|
|
/* Queue an exception event */
|
|
|
|
@REQ(queue_exception_event)
|
2009-01-02 20:12:46 +01:00
|
|
|
int first; /* first chance exception? */
|
|
|
|
unsigned int code; /* exception code */
|
|
|
|
unsigned int flags; /* exception flags */
|
|
|
|
client_ptr_t record; /* exception record */
|
|
|
|
client_ptr_t address; /* exception address */
|
|
|
|
data_size_t len; /* size of parameters */
|
|
|
|
VARARG(params,uints64,len);/* exception parameters */
|
2001-07-19 02:35:37 +02:00
|
|
|
@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-07-19 02:35:37 +02:00
|
|
|
@END
|
|
|
|
|
|
|
|
|
|
|
|
/* Continue a debug event */
|
|
|
|
@REQ(continue_debug_event)
|
2021-02-01 11:22:23 +01:00
|
|
|
obj_handle_t debug; /* debug object */
|
2002-10-03 21:54:57 +02:00
|
|
|
process_id_t pid; /* process id to continue */
|
|
|
|
thread_id_t tid; /* thread id to continue */
|
2021-02-01 11:22:23 +01:00
|
|
|
unsigned int status; /* continuation status */
|
2001-07-19 02:35:37 +02:00
|
|
|
@END
|
|
|
|
|
|
|
|
|
2021-02-01 11:09:01 +01:00
|
|
|
/* Start or stop debugging an existing process */
|
2001-07-19 02:35:37 +02:00
|
|
|
@REQ(debug_process)
|
2021-02-01 11:09:01 +01:00
|
|
|
obj_handle_t handle; /* process handle */
|
|
|
|
obj_handle_t debug; /* debug object to attach to the process */
|
2002-02-27 02:28:30 +01:00
|
|
|
int attach; /* 1=attaching / 0=detaching from the process */
|
|
|
|
@END
|
|
|
|
|
|
|
|
|
2021-02-01 11:10:06 +01:00
|
|
|
/* Set debug object information */
|
|
|
|
@REQ(set_debug_obj_info)
|
|
|
|
obj_handle_t debug; /* debug object */
|
|
|
|
unsigned int flags; /* object flags */
|
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 */
|
2008-12-30 14:11:58 +01:00
|
|
|
client_ptr_t 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 */
|
2008-12-30 14:11:58 +01:00
|
|
|
client_ptr_t addr; /* addr to write to */
|
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)
|
|
|
|
unsigned int access; /* desired access rights */
|
|
|
|
unsigned int options; /* creation options */
|
2016-01-19 07:03:37 +01:00
|
|
|
VARARG(objattr,object_attributes); /* object attributes */
|
2001-11-30 19:46:42 +01:00
|
|
|
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 */
|
2008-12-06 17:29:01 +01:00
|
|
|
timeout_t modif; /* last modification time */
|
2006-07-26 10:43:25 +02:00
|
|
|
data_size_t total; /* total length needed for full name and class */
|
|
|
|
data_size_t namelen; /* length of key name in bytes */
|
2001-11-30 19:46:42 +01:00
|
|
|
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 */
|
2006-07-26 10:43:25 +02:00
|
|
|
data_size_t namelen; /* length of value name in bytes */
|
2001-11-30 19:46:42 +01:00
|
|
|
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 */
|
2006-07-26 10:43:25 +02:00
|
|
|
data_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 */
|
2006-07-26 10:43:25 +02:00
|
|
|
data_size_t total; /* total length needed for full name and data */
|
|
|
|
data_size_t namelen; /* length of value name in bytes */
|
2001-11-30 19:46:42 +01:00
|
|
|
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 file; /* file to load from */
|
2016-01-19 07:17:00 +01:00
|
|
|
VARARG(objattr,object_attributes); /* object attributes */
|
2001-07-19 02:35:37 +02:00
|
|
|
@END
|
|
|
|
|
|
|
|
|
2003-08-19 05:08:17 +02:00
|
|
|
/* UnLoad a registry branch from a file */
|
|
|
|
@REQ(unload_registry)
|
2021-02-12 12:30:12 +01:00
|
|
|
obj_handle_t parent; /* handle to the parent key */
|
|
|
|
unsigned int attributes; /* object attributes */
|
|
|
|
VARARG(name,unicode_str); /* key name */
|
2003-08-19 05:08:17 +02:00
|
|
|
@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 */
|
2001-07-19 02:35:37 +02:00
|
|
|
int manual; /* manual reset */
|
2016-01-15 10:47:06 +01:00
|
|
|
VARARG(objattr,object_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 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 */
|
2007-04-17 20:08:59 +02:00
|
|
|
timeout_t expire; /* next expiration absolute time */
|
2008-12-29 17:43:01 +01:00
|
|
|
client_ptr_t callback; /* callback function */
|
|
|
|
client_ptr_t arg; /* callback argument */
|
2001-07-19 02:35:37 +02:00
|
|
|
int period; /* timer period in ms */
|
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
|
2007-04-17 20:08:59 +02:00
|
|
|
timeout_t when; /* absolute time when the timer next expires */
|
2004-12-13 22:10:58 +01:00
|
|
|
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)
|
2021-06-23 11:41:21 +02:00
|
|
|
obj_handle_t handle; /* thread handle */
|
|
|
|
obj_handle_t context; /* context handle */
|
2001-07-19 02:35:37 +02:00
|
|
|
unsigned int flags; /* context flags */
|
2021-06-26 11:13:05 +02:00
|
|
|
unsigned short machine; /* context architecture */
|
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? */
|
2020-04-22 14:33:23 +02:00
|
|
|
obj_handle_t handle; /* pending context handle */
|
2021-06-26 11:13:05 +02:00
|
|
|
VARARG(contexts,contexts); /* thread context(s) */
|
2001-07-19 02:35:37 +02:00
|
|
|
@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 */
|
2021-06-26 11:13:05 +02:00
|
|
|
VARARG(contexts,contexts); /* thread context(s) */
|
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)
|
|
|
|
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)
|
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)
|
|
|
|
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)
|
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-07-26 10:43:25 +02:00
|
|
|
data_size_t total; /* actual length of atom name */
|
2001-07-19 02:35:37 +02:00
|
|
|
VARARG(name,unicode_str); /* atom name */
|
|
|
|
@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
|
|
|
|
|
|
|
|
|
2007-04-04 18:02:01 +02:00
|
|
|
/* Set the file descriptor associated to the current thread queue */
|
|
|
|
@REQ(set_queue_fd)
|
|
|
|
obj_handle_t handle; /* handle to the file descriptor */
|
|
|
|
@END
|
|
|
|
|
|
|
|
|
2001-07-19 02:35:37 +02:00
|
|
|
/* 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)
|
2015-04-21 10:01:37 +02:00
|
|
|
unsigned int clear_bits; /* should we clear the change bits? */
|
2001-07-19 02:35:37 +02:00
|
|
|
@REPLY
|
|
|
|
unsigned int wake_bits; /* wake bits */
|
|
|
|
unsigned int changed_bits; /* changed bits since last time */
|
|
|
|
@END
|
|
|
|
|
|
|
|
|
2006-07-26 11:48:25 +02:00
|
|
|
/* Retrieve the process idle event */
|
|
|
|
@REQ(get_process_idle_event)
|
2002-05-30 22:12:58 +02:00
|
|
|
obj_handle_t handle; /* process handle */
|
2001-07-19 02:35:37 +02:00
|
|
|
@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 */
|
2008-12-10 16:01:50 +01:00
|
|
|
lparam_t wparam; /* parameters */
|
|
|
|
lparam_t lparam; /* parameters */
|
2007-04-17 20:08:59 +02:00
|
|
|
timeout_t timeout; /* timeout for reply */
|
2006-10-04 20:25:42 +02:00
|
|
|
VARARG(data,message_data); /* 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 */
|
2011-03-02 19:53:03 +01:00
|
|
|
MSG_WINEVENT, /* winevent message */
|
|
|
|
MSG_HOOK_LL /* low-level hardware hook */
|
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
|
|
|
|
|
|
|
|
2006-08-09 16:45:26 +02:00
|
|
|
/* Send a hardware message to a thread queue */
|
|
|
|
@REQ(send_hardware_message)
|
|
|
|
user_handle_t win; /* window handle */
|
2011-03-01 20:33:15 +01:00
|
|
|
hw_input_t input; /* input data */
|
|
|
|
unsigned int flags; /* flags (see below) */
|
2021-05-28 16:12:21 +02:00
|
|
|
VARARG(report,bytes); /* HID report data */
|
2011-03-02 19:53:03 +01:00
|
|
|
@REPLY
|
|
|
|
int wait; /* do we need to wait for a reply? */
|
2012-01-07 20:29:29 +01:00
|
|
|
int prev_x; /* previous cursor position */
|
|
|
|
int prev_y;
|
|
|
|
int new_x; /* new cursor position */
|
|
|
|
int new_y;
|
2011-12-15 14:29:46 +01:00
|
|
|
VARARG(keystate,bytes); /* global state array for all the keys */
|
2006-08-09 16:45:26 +02:00
|
|
|
@END
|
2011-03-01 20:33:15 +01:00
|
|
|
#define SEND_HWMSG_INJECTED 0x01
|
2006-08-09 16:45:26 +02:00
|
|
|
|
|
|
|
|
2001-07-19 02:35:37 +02:00
|
|
|
/* Get a message from the current queue */
|
|
|
|
@REQ(get_message)
|
2007-02-21 15:21:05 +01:00
|
|
|
unsigned int flags; /* PM_* flags */
|
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) */
|
2007-08-29 18:13:13 +02:00
|
|
|
unsigned int wake_mask; /* wakeup bits mask */
|
|
|
|
unsigned int changed_mask; /* changed bits mask */
|
2001-07-19 02:35:37 +02:00
|
|
|
@REPLY
|
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 */
|
2008-12-10 16:01:50 +01:00
|
|
|
lparam_t wparam; /* parameters */
|
|
|
|
lparam_t lparam; /* parameters */
|
2008-12-24 11:59:09 +01:00
|
|
|
int type; /* message type */
|
2015-04-27 10:24:15 +02:00
|
|
|
int x; /* message x position */
|
|
|
|
int y; /* message y position */
|
2001-07-19 02:35:37 +02:00
|
|
|
unsigned int time; /* message time */
|
2005-05-11 15:03:15 +02:00
|
|
|
unsigned int active_hooks; /* active hooks bitmap */
|
2006-07-26 10:43:25 +02:00
|
|
|
data_size_t total; /* total size of extra data */
|
2006-10-04 16:04:53 +02:00
|
|
|
VARARG(data,message_data); /* message data for sent messages */
|
2001-07-19 02:35:37 +02:00
|
|
|
@END
|
2007-02-21 15:21:05 +01:00
|
|
|
|
2001-07-19 02:35:37 +02:00
|
|
|
|
|
|
|
/* Reply to a sent message */
|
|
|
|
@REQ(reply_message)
|
|
|
|
int remove; /* should we remove the message? */
|
2008-12-24 12:06:18 +01:00
|
|
|
lparam_t 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
|
|
|
|
|
|
|
|
|
2020-07-07 12:21:50 +02:00
|
|
|
/* Accept and remove the current hardware message */
|
2005-03-23 11:33:17 +01:00
|
|
|
@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
|
|
|
@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
|
2008-12-10 16:01:50 +01:00
|
|
|
lparam_t 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 rate; /* timer rate in ms */
|
2008-12-10 16:01:50 +01:00
|
|
|
lparam_t id; /* timer id */
|
|
|
|
lparam_t lparam; /* message lparam (callback proc) */
|
2004-11-29 19:08:18 +01:00
|
|
|
@REPLY
|
2008-12-10 16:01:50 +01:00
|
|
|
lparam_t 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 */
|
2008-12-10 16:01:50 +01:00
|
|
|
lparam_t id; /* timer id */
|
2008-12-24 12:06:18 +01:00
|
|
|
unsigned int msg; /* message to post */
|
2001-07-19 02:35:37 +02:00
|
|
|
@END
|
|
|
|
|
|
|
|
|
2007-12-28 03:59:13 +01:00
|
|
|
/* check if the thread owning the window is hung */
|
|
|
|
@REQ(is_window_hung)
|
|
|
|
user_handle_t win; /* window handle */
|
|
|
|
@REPLY
|
|
|
|
int is_hung;
|
|
|
|
@END
|
|
|
|
|
|
|
|
|
2001-07-19 02:35:37 +02:00
|
|
|
/* 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 */
|
2013-10-25 05:14:42 +02:00
|
|
|
int flags;
|
2001-07-19 02:35:37 +02:00
|
|
|
@REPLY
|
|
|
|
unsigned int eventmask;
|
2013-09-10 04:29:57 +02:00
|
|
|
unsigned int cookie;
|
2013-10-25 05:14:42 +02:00
|
|
|
unsigned int pending_write;
|
2001-07-19 02:35:37 +02:00
|
|
|
@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) */
|
|
|
|
@END
|
2013-10-25 05:14:42 +02:00
|
|
|
#define SERIALINFO_PENDING_WRITE 0x04
|
2013-10-31 08:58:19 +01:00
|
|
|
#define SERIALINFO_PENDING_WAIT 0x08
|
2001-07-19 02:35:37 +02:00
|
|
|
|
|
|
|
|
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
|
|
|
int type; /* type of queue to look after */
|
2007-03-20 20:21:12 +01:00
|
|
|
async_data_t async; /* async I/O parameters */
|
2008-12-31 15:14:29 +01:00
|
|
|
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 */
|
2009-08-09 06:08:27 +02:00
|
|
|
client_ptr_t iosb; /* I/O status block (NULL=all) */
|
|
|
|
int only_thread; /* cancel matching this thread */
|
2005-01-14 20:54:38 +01:00
|
|
|
@END
|
|
|
|
|
|
|
|
|
2016-12-04 21:22:05 +01:00
|
|
|
/* Retrieve results of an async */
|
|
|
|
@REQ(get_async_result)
|
|
|
|
client_ptr_t user_arg; /* user arg used to identify async */
|
|
|
|
@REPLY
|
|
|
|
VARARG(out_data,bytes); /* iosb output data */
|
|
|
|
@END
|
|
|
|
|
|
|
|
|
2015-05-05 05:50:51 +02:00
|
|
|
/* Perform a read on a file object */
|
|
|
|
@REQ(read)
|
|
|
|
async_data_t async; /* async I/O parameters */
|
|
|
|
file_pos_t pos; /* read position */
|
|
|
|
@REPLY
|
|
|
|
obj_handle_t wait; /* handle to wait on for blocking read */
|
|
|
|
unsigned int options; /* device open options */
|
|
|
|
VARARG(data,bytes); /* read data */
|
|
|
|
@END
|
|
|
|
|
|
|
|
|
|
|
|
/* Perform a write on a file object */
|
|
|
|
@REQ(write)
|
|
|
|
async_data_t async; /* async I/O parameters */
|
|
|
|
file_pos_t pos; /* write position */
|
|
|
|
VARARG(data,bytes); /* write data */
|
|
|
|
@REPLY
|
|
|
|
obj_handle_t wait; /* handle to wait on for blocking write */
|
|
|
|
unsigned int options; /* device open options */
|
|
|
|
data_size_t size; /* size written */
|
|
|
|
@END
|
|
|
|
|
|
|
|
|
2007-04-16 14:45:03 +02:00
|
|
|
/* Perform an ioctl on a file */
|
|
|
|
@REQ(ioctl)
|
2007-04-17 22:06:13 +02:00
|
|
|
ioctl_code_t code; /* ioctl code */
|
2007-04-16 14:45:03 +02:00
|
|
|
async_data_t async; /* async I/O parameters */
|
|
|
|
VARARG(in_data,bytes); /* ioctl input data */
|
|
|
|
@REPLY
|
2007-05-03 17:43:18 +02:00
|
|
|
obj_handle_t wait; /* handle to wait on for blocking ioctl */
|
|
|
|
unsigned int options; /* device open options */
|
2007-04-16 14:45:03 +02:00
|
|
|
VARARG(out_data,bytes); /* ioctl output data */
|
|
|
|
@END
|
|
|
|
|
|
|
|
|
2015-05-05 04:34:15 +02:00
|
|
|
/* Store results of an async irp */
|
|
|
|
@REQ(set_irp_result)
|
|
|
|
obj_handle_t handle; /* handle to the irp */
|
|
|
|
unsigned int status; /* status of the irp */
|
2015-05-05 06:35:27 +02:00
|
|
|
data_size_t size; /* result size (input or output depending on the operation) */
|
2015-05-05 04:34:15 +02:00
|
|
|
VARARG(data,bytes); /* output data of the irp */
|
2015-03-11 14:45:51 +01:00
|
|
|
@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-04-18 16:57:04 +02:00
|
|
|
unsigned int options;
|
2011-09-26 13:57:15 +02:00
|
|
|
unsigned int sharing;
|
2001-07-19 02:35:37 +02:00
|
|
|
unsigned int maxinstances;
|
|
|
|
unsigned int outsize;
|
|
|
|
unsigned int insize;
|
2007-04-17 20:08:59 +02:00
|
|
|
timeout_t timeout;
|
2008-12-31 15:14:29 +01:00
|
|
|
unsigned int flags;
|
2014-11-12 11:25:23 +01:00
|
|
|
VARARG(objattr,object_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 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
|
2006-05-26 12:10:11 +02:00
|
|
|
#define NAMED_PIPE_SERVER_END 0x8000
|
2001-07-19 02:35:37 +02:00
|
|
|
|
2014-08-11 17:06:49 +02:00
|
|
|
/* Set named pipe information by handle */
|
|
|
|
@REQ(set_named_pipe_info)
|
|
|
|
obj_handle_t handle;
|
|
|
|
unsigned int flags;
|
|
|
|
@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 */
|
2008-12-29 16:41:44 +01:00
|
|
|
mod_handle_t instance; /* module instance */
|
2018-05-17 13:56:26 +02:00
|
|
|
int dpi; /* system DPI */
|
2018-05-15 16:18:16 +02:00
|
|
|
int awareness; /* thread DPI awareness */
|
2021-10-07 16:34:11 +02:00
|
|
|
unsigned int style; /* window style */
|
|
|
|
unsigned int ex_style; /* window extended style */
|
2007-11-02 15:16:25 +01:00
|
|
|
VARARG(class,unicode_str); /* class name */
|
2001-08-28 20:44:52 +02:00
|
|
|
@REPLY
|
2001-09-21 23:08:40 +02:00
|
|
|
user_handle_t handle; /* created window */
|
2006-03-06 15:00:37 +01:00
|
|
|
user_handle_t parent; /* full handle of parent */
|
|
|
|
user_handle_t owner; /* full handle of owner */
|
2003-12-11 06:34:53 +01:00
|
|
|
int extra; /* number of extra bytes */
|
2008-12-29 17:24:33 +01:00
|
|
|
client_ptr_t class_ptr; /* pointer to class in client address space */
|
2018-05-17 13:56:26 +02:00
|
|
|
int dpi; /* window DPI if not per-monitor aware */
|
2018-05-15 16:18:16 +02:00
|
|
|
int awareness; /* window DPI awareness */
|
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)
|
2006-03-07 11:42:35 +01:00
|
|
|
int force; /* force creation if it doesn't exist */
|
2005-07-08 13:37:40 +02:00
|
|
|
@REPLY
|
2008-06-25 14:26:14 +02:00
|
|
|
user_handle_t top_window; /* handle to the desktop window */
|
|
|
|
user_handle_t msg_window; /* handle to the top-level HWND_MESSAGE parent */
|
2005-07-08 13:37:40 +02:00
|
|
|
@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 */
|
2008-12-30 23:17:52 +01:00
|
|
|
int is_unicode; /* ANSI or unicode */
|
2018-05-17 13:56:26 +02:00
|
|
|
int dpi; /* window DPI */
|
2018-05-15 16:18:16 +02:00
|
|
|
int awareness; /* DPI awareness */
|
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)
|
2008-12-29 16:47:51 +01:00
|
|
|
unsigned short flags; /* flags for fields to set (see below) */
|
|
|
|
short int is_unicode; /* ANSI or unicode */
|
2006-10-04 21:41:32 +02:00
|
|
|
user_handle_t handle; /* handle to the window */
|
2001-10-22 21:08:33 +02:00
|
|
|
unsigned int style; /* window style */
|
|
|
|
unsigned int ex_style; /* window extended style */
|
|
|
|
unsigned int id; /* window id */
|
2008-12-29 16:41:44 +01:00
|
|
|
mod_handle_t instance; /* creator instance */
|
2008-12-10 16:01:50 +01:00
|
|
|
lparam_t user_data; /* user-specific data */
|
2003-11-26 23:15:41 +01:00
|
|
|
int extra_offset; /* offset to set in extra bytes */
|
2006-07-26 10:43:25 +02:00
|
|
|
data_size_t extra_size; /* size to set in extra bytes */
|
2008-12-10 16:01:50 +01:00
|
|
|
lparam_t 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 */
|
2008-12-29 16:41:44 +01:00
|
|
|
mod_handle_t old_instance; /* old creator instance */
|
2008-12-10 16:01:50 +01:00
|
|
|
lparam_t old_user_data; /* old user-specific data */
|
|
|
|
lparam_t old_extra_value; /* old value in extra bytes */
|
2008-12-29 16:47:51 +01:00
|
|
|
unsigned int old_id; /* old window id */
|
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 */
|
2018-05-17 13:56:26 +02:00
|
|
|
int dpi; /* new window DPI if not per-monitor aware */
|
2018-05-15 16:21:36 +02:00
|
|
|
int awareness; /* new DPI awareness */
|
2005-03-25 11:38:56 +01:00
|
|
|
@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)
|
2008-03-18 15:17:40 +01:00
|
|
|
obj_handle_t desktop; /* handle to desktop */
|
2001-09-21 23:08:40 +02:00
|
|
|
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 */
|
2007-11-02 15:26:49 +01:00
|
|
|
VARARG(class,unicode_str); /* class name */
|
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;
|
2018-08-27 13:32:57 +02:00
|
|
|
int dpi; /* dpi for the point coordinates */
|
2004-07-21 00:17:38 +02:00
|
|
|
@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)
|
2012-10-09 11:32:38 +02:00
|
|
|
unsigned short swp_flags; /* SWP_* flags */
|
|
|
|
unsigned short paint_flags; /* paint flags (see below) */
|
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 */
|
2010-09-23 15:47:46 +02:00
|
|
|
rectangle_t window; /* window rectangle (in parent coords) */
|
|
|
|
rectangle_t client; /* client rectangle (in parent coords) */
|
2010-10-07 14:43:29 +02:00
|
|
|
VARARG(valid,rectangles); /* valid rectangles from WM_NCCALCSIZE (in parent coords) */
|
2004-12-07 18:31:53 +01:00
|
|
|
@REPLY
|
|
|
|
unsigned int new_style; /* new window style */
|
2007-10-31 17:51:05 +01:00
|
|
|
unsigned int new_ex_style; /* new window extended style */
|
2017-07-13 10:59:38 +02:00
|
|
|
user_handle_t surface_win; /* parent window that holds the surface */
|
|
|
|
int needs_update; /* whether the surface region needs an update */
|
2001-10-16 23:55:37 +02:00
|
|
|
@END
|
2012-10-09 11:32:38 +02:00
|
|
|
#define SET_WINPOS_PAINT_SURFACE 0x01 /* window has a paintable surface */
|
|
|
|
#define SET_WINPOS_PIXEL_FORMAT 0x02 /* window has a custom pixel format */
|
2001-10-16 23:55:37 +02:00
|
|
|
|
|
|
|
/* Get the window and client rectangles of a window */
|
|
|
|
@REQ(get_window_rectangles)
|
|
|
|
user_handle_t handle; /* handle to the window */
|
2010-09-07 14:31:30 +02:00
|
|
|
int relative; /* coords relative to (see below) */
|
2018-08-24 12:06:45 +02:00
|
|
|
int dpi; /* DPI to map to, or zero for per-monitor DPI */
|
2001-10-16 23:55:37 +02:00
|
|
|
@REPLY
|
|
|
|
rectangle_t window; /* window rectangle */
|
|
|
|
rectangle_t client; /* client rectangle */
|
|
|
|
@END
|
2010-09-07 14:31:30 +02:00
|
|
|
enum coords_relative
|
|
|
|
{
|
|
|
|
COORDS_CLIENT, /* relative to client area */
|
|
|
|
COORDS_WINDOW, /* relative to whole window area */
|
|
|
|
COORDS_PARENT, /* relative to parent's client area */
|
|
|
|
COORDS_SCREEN /* relative to screen origin */
|
|
|
|
};
|
2001-10-16 23:55:37 +02:00
|
|
|
|
|
|
|
|
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
|
2018-05-22 13:00:34 +02:00
|
|
|
data_size_t length; /* total length in WCHARs */
|
2001-11-13 23:23:48 +01:00
|
|
|
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 */
|
2018-08-24 12:12:44 +02:00
|
|
|
int dpi; /* DPI to map to, or zero for per-monitor DPI */
|
2001-10-16 23:55:37 +02:00
|
|
|
@REPLY
|
|
|
|
int x; /* x coordinate offset */
|
|
|
|
int y; /* y coordinate offset */
|
2010-09-22 20:27:52 +02:00
|
|
|
int mirror; /* whether to mirror the x coordinate */
|
2001-10-16 23:55:37 +02:00
|
|
|
@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 */
|
2006-12-07 16:43:59 +01:00
|
|
|
rectangle_t top_rect; /* top window visible rect with screen coords */
|
|
|
|
rectangle_t win_rect; /* window rect in screen coords */
|
2013-02-11 17:14:17 +01:00
|
|
|
unsigned int paint_flags; /* paint flags (from SET_WINPOS_* flags) */
|
2006-07-26 10:43:25 +02:00
|
|
|
data_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
|
|
|
|
|
|
|
|
|
2012-10-09 11:47:50 +02:00
|
|
|
/* Get the visible surface region of a window */
|
|
|
|
@REQ(get_surface_region)
|
|
|
|
user_handle_t window; /* handle to the window */
|
|
|
|
@REPLY
|
|
|
|
rectangle_t visible_rect; /* window visible rect in screen coords */
|
|
|
|
data_size_t total_size; /* total size of the resulting region */
|
|
|
|
VARARG(region,rectangles); /* list of rectangles for the region (in screen coords) */
|
|
|
|
@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
|
2006-07-26 10:43:25 +02:00
|
|
|
data_size_t total_size; /* total size of the resulting region */
|
2010-09-27 20:46:41 +02:00
|
|
|
VARARG(region,rectangles); /* list of rectangles for the region (in window coords) */
|
2004-06-29 05:53:25 +02:00
|
|
|
@END
|
|
|
|
|
|
|
|
|
|
|
|
/* Set the window region */
|
|
|
|
@REQ(set_window_region)
|
|
|
|
user_handle_t window; /* handle to the window */
|
2007-03-05 16:43:09 +01:00
|
|
|
int redraw; /* redraw the window? */
|
2010-09-27 20:46:41 +02:00
|
|
|
VARARG(region,rectangles); /* list of rectangles for the region (in window coords) */
|
2004-06-29 05:53:25 +02:00
|
|
|
@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) */
|
2006-07-26 10:43:25 +02:00
|
|
|
data_size_t total_size; /* total size of the resulting region */
|
2010-09-23 15:47:46 +02:00
|
|
|
VARARG(region,rectangles); /* list of rectangles for the region (in screen coords) */
|
2004-12-07 18:31:53 +01:00
|
|
|
@END
|
2017-07-20 10:41:43 +02:00
|
|
|
#define UPDATE_NONCLIENT 0x001 /* get region for repainting non-client area */
|
|
|
|
#define UPDATE_ERASE 0x002 /* get region for erasing client area */
|
|
|
|
#define UPDATE_PAINT 0x004 /* get region for painting client area */
|
|
|
|
#define UPDATE_INTERNALPAINT 0x008 /* get region if internal paint is pending */
|
|
|
|
#define UPDATE_ALLCHILDREN 0x010 /* force repaint of all children */
|
|
|
|
#define UPDATE_NOCHILDREN 0x020 /* don't try to repaint any children */
|
|
|
|
#define UPDATE_NOREGION 0x040 /* don't return a region, only the flags */
|
|
|
|
#define UPDATE_DELAYED_ERASE 0x080 /* still needs erase after BeginPaint */
|
|
|
|
#define UPDATE_CLIPCHILDREN 0x100 /* remove clipped children from the update region */
|
2004-12-07 18:31:53 +01:00
|
|
|
|
|
|
|
|
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 */
|
2010-09-27 21:12:49 +02:00
|
|
|
rectangle_t rect; /* rectangle that must be visible (in client coords) */
|
2005-03-21 13:37:00 +01:00
|
|
|
@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 */
|
2010-09-27 20:46:41 +02:00
|
|
|
VARARG(region,rectangles); /* list of rectangles for the region (in window coords) */
|
2004-12-07 18:31:53 +01:00
|
|
|
@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 */
|
2008-12-10 16:21:32 +01:00
|
|
|
lparam_t data; /* data to store */
|
2008-12-24 12:06:18 +01:00
|
|
|
atom_t atom; /* property atom (if no name specified) */
|
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
|
2008-12-10 16:21:32 +01:00
|
|
|
lparam_t data; /* data 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
|
2008-12-10 16:21:32 +01:00
|
|
|
lparam_t data; /* data 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 */
|
2016-01-20 14:02:03 +01:00
|
|
|
obj_handle_t rootdir; /* root directory */
|
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 */
|
2016-01-20 14:02:03 +01:00
|
|
|
obj_handle_t rootdir; /* root directory */
|
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
|
|
|
|
|
|
|
|
|
2007-12-05 16:45:32 +01:00
|
|
|
/* Enumerate window stations */
|
|
|
|
@REQ(enum_winstation)
|
|
|
|
unsigned int index; /* current index */
|
|
|
|
@REPLY
|
|
|
|
unsigned int next; /* next index */
|
|
|
|
VARARG(name,unicode_str); /* window station name */
|
|
|
|
@END
|
|
|
|
|
|
|
|
|
2005-06-08 20:44:50 +02:00
|
|
|
/* 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)
|
2008-04-01 21:15:55 +02:00
|
|
|
obj_handle_t winsta; /* window station to open (null allowed) */
|
2005-06-08 20:44:50 +02:00
|
|
|
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
|
|
|
|
|
|
|
|
|
2013-11-08 10:10:24 +01:00
|
|
|
/* Open a handle to current input desktop */
|
|
|
|
@REQ(open_input_desktop)
|
|
|
|
unsigned int flags; /* desktop flags */
|
|
|
|
unsigned int access; /* wanted access rights */
|
|
|
|
unsigned int attributes; /* object attributes */
|
|
|
|
@REPLY
|
|
|
|
obj_handle_t handle; /* handle to the desktop */
|
|
|
|
@END
|
|
|
|
|
|
|
|
|
2005-06-08 20:44:50 +02:00
|
|
|
/* 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
|
|
|
|
|
|
|
|
|
2007-12-05 16:45:32 +01:00
|
|
|
/* Enumerate desktops */
|
|
|
|
@REQ(enum_desktop)
|
|
|
|
obj_handle_t winstation; /* handle to the window station */
|
|
|
|
unsigned int index; /* current index */
|
|
|
|
@REPLY
|
|
|
|
unsigned int next; /* next index */
|
|
|
|
VARARG(name,unicode_str); /* window station name */
|
|
|
|
@END
|
|
|
|
|
|
|
|
|
2005-06-08 20:44:50 +02:00
|
|
|
/* Get/set information about a user object (window station or desktop) */
|
|
|
|
@REQ(set_user_object_info)
|
|
|
|
obj_handle_t handle; /* handle to the object */
|
2015-12-04 01:19:58 +01:00
|
|
|
unsigned int flags; /* information to set/get */
|
2005-06-08 20:44:50 +02:00
|
|
|
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
|
2015-12-04 01:19:58 +01:00
|
|
|
#define SET_USER_OBJECT_SET_FLAGS 1
|
|
|
|
#define SET_USER_OBJECT_GET_FULL_NAME 2
|
2005-06-08 20:44:50 +02:00
|
|
|
|
|
|
|
|
2011-05-26 22:52:17 +02:00
|
|
|
/* Register a hotkey */
|
|
|
|
@REQ(register_hotkey)
|
|
|
|
user_handle_t window; /* handle to the window */
|
|
|
|
int id; /* hotkey identifier */
|
|
|
|
unsigned int flags; /* modifier keys */
|
|
|
|
unsigned int vkey; /* virtual key code */
|
|
|
|
@REPLY
|
|
|
|
int replaced; /* did we replace an existing hotkey? */
|
|
|
|
unsigned int flags; /* flags of replaced hotkey */
|
|
|
|
unsigned int vkey; /* virtual key code of replaced hotkey */
|
|
|
|
@END
|
|
|
|
|
|
|
|
|
|
|
|
/* Unregister a hotkey */
|
|
|
|
@REQ(unregister_hotkey)
|
|
|
|
user_handle_t window; /* handle to the window */
|
|
|
|
int id; /* hotkey identifier */
|
|
|
|
@REPLY
|
|
|
|
unsigned int flags; /* flags of removed hotkey */
|
|
|
|
unsigned int vkey; /* virtual key code of removed hotkey */
|
|
|
|
@END
|
|
|
|
|
|
|
|
|
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 */
|
2010-05-11 11:21:03 +02:00
|
|
|
user_handle_t cursor; /* handle to the cursor */
|
|
|
|
int show_count; /* cursor show count */
|
2002-10-11 20:50:15 +02:00
|
|
|
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
|
|
|
|
|
|
|
|
|
2021-04-02 10:07:59 +02:00
|
|
|
/* Retrieve queue keyboard state for current thread or global async state */
|
2003-01-08 20:56:31 +01:00
|
|
|
@REQ(get_key_state)
|
2021-04-02 10:07:59 +02:00
|
|
|
int async; /* whether to query the async state */
|
2003-01-08 20:56:31 +01:00
|
|
|
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
|
|
|
|
|
2021-04-02 10:08:00 +02:00
|
|
|
/* Set queue keyboard state for current thread */
|
2003-01-08 20:56:31 +01:00
|
|
|
@REQ(set_key_state)
|
2012-02-02 17:19:34 +01:00
|
|
|
int async; /* whether to change the async state too */
|
2003-01-08 20:56:31 +01:00
|
|
|
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) */
|
2015-12-31 17:39:02 +01:00
|
|
|
int state; /* caret state (see below) */
|
2002-10-17 03:24:33 +02:00
|
|
|
@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 */
|
2015-12-31 17:39:02 +01:00
|
|
|
enum caret_state
|
|
|
|
{
|
|
|
|
CARET_STATE_OFF, /* off */
|
|
|
|
CARET_STATE_ON, /* on */
|
|
|
|
CARET_STATE_TOGGLE, /* toggle current state */
|
|
|
|
CARET_STATE_ON_IF_MOVED /* on if the position differs, unchanged otherwise */
|
|
|
|
};
|
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;
|
2008-12-29 17:35:35 +01:00
|
|
|
client_ptr_t proc; /* hook procedure */
|
2005-02-03 17:40:20 +01:00
|
|
|
int flags;
|
2002-10-29 01:41:42 +01:00
|
|
|
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 */
|
2008-12-29 17:35:35 +01:00
|
|
|
client_ptr_t proc; /* hook procedure if handle is 0 */
|
2002-10-29 01:41:42 +01:00
|
|
|
int id; /* id of the hook 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
|
|
|
int unicode; /* is it a unicode hook? */
|
2008-12-29 17:35:35 +01:00
|
|
|
client_ptr_t proc; /* hook procedure */
|
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
|
|
|
|
|
|
|
|
|
2006-10-05 14:05:48 +02:00
|
|
|
/* Get the hook information */
|
|
|
|
@REQ(get_hook_info)
|
2002-10-29 01:41:42 +01:00
|
|
|
user_handle_t handle; /* handle to the current hook */
|
2006-10-05 14:05:48 +02:00
|
|
|
int get_next; /* do we want info about current or next 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
|
2006-10-05 14:05:48 +02:00
|
|
|
user_handle_t handle; /* handle to the hook */
|
|
|
|
int id; /* id of the 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 */
|
2008-12-29 17:35:35 +01:00
|
|
|
client_ptr_t proc; /* hook procedure */
|
2006-10-05 14:04:25 +02:00
|
|
|
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
|
|
|
@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 */
|
2008-12-29 16:41:44 +01:00
|
|
|
mod_handle_t instance; /* module instance */
|
2003-12-10 05:08:06 +01:00
|
|
|
int extra; /* number of extra class bytes */
|
|
|
|
int win_extra; /* number of window extra bytes */
|
2008-12-29 17:24:33 +01:00
|
|
|
client_ptr_t client_ptr; /* pointer to class in client address space */
|
2018-06-11 09:42:34 +02:00
|
|
|
data_size_t name_offset; /* base class name offset for specified atom */
|
2007-11-01 13:02:01 +01:00
|
|
|
VARARG(name,unicode_str); /* class name */
|
|
|
|
@REPLY
|
|
|
|
atom_t atom; /* resulting class atom */
|
2003-12-10 05:08:06 +01:00
|
|
|
@END
|
|
|
|
|
|
|
|
|
|
|
|
/* Destroy a window class */
|
|
|
|
@REQ(destroy_class)
|
|
|
|
atom_t atom; /* class atom */
|
2008-12-29 16:41:44 +01:00
|
|
|
mod_handle_t instance; /* module instance */
|
2007-11-01 15:28:30 +01:00
|
|
|
VARARG(name,unicode_str); /* class name */
|
2003-12-11 06:34:53 +01:00
|
|
|
@REPLY
|
2008-12-29 17:24:33 +01:00
|
|
|
client_ptr_t 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 */
|
2008-12-29 16:41:44 +01:00
|
|
|
mod_handle_t instance; /* module instance */
|
2003-12-10 05:08:06 +01:00
|
|
|
int extra_offset; /* offset to set in extra bytes */
|
2006-07-26 10:43:25 +02:00
|
|
|
data_size_t extra_size; /* size to set in extra bytes */
|
2008-12-10 16:01:50 +01:00
|
|
|
lparam_t extra_value; /* value to set in extra bytes */
|
2003-12-10 05:08:06 +01:00
|
|
|
@REPLY
|
|
|
|
atom_t old_atom; /* previous class atom */
|
2018-06-13 12:47:41 +02:00
|
|
|
atom_t base_atom; /* base class atom */
|
|
|
|
mod_handle_t old_instance; /* previous module instance */
|
|
|
|
lparam_t old_extra_value; /* old value in extra bytes */
|
2003-12-10 05:08:06 +01:00
|
|
|
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 */
|
|
|
|
@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
|
|
|
|
|
|
|
|
|
2016-08-22 08:31:21 +02:00
|
|
|
/* Open the clipboard */
|
|
|
|
@REQ(open_clipboard)
|
|
|
|
user_handle_t window; /* clipboard window */
|
|
|
|
@REPLY
|
2016-09-26 08:09:27 +02:00
|
|
|
user_handle_t owner; /* current clipboard owner */
|
2016-08-22 08:31:21 +02:00
|
|
|
@END
|
|
|
|
|
|
|
|
|
|
|
|
/* Close the clipboard */
|
|
|
|
@REQ(close_clipboard)
|
|
|
|
@REPLY
|
|
|
|
user_handle_t viewer; /* first clipboard viewer */
|
2016-09-14 08:29:03 +02:00
|
|
|
user_handle_t owner; /* current clipboard owner */
|
2016-08-22 08:31:21 +02:00
|
|
|
@END
|
|
|
|
|
|
|
|
|
2015-06-09 09:53:30 +02:00
|
|
|
/* Empty the clipboard and grab ownership */
|
|
|
|
@REQ(empty_clipboard)
|
|
|
|
@END
|
|
|
|
|
|
|
|
|
2016-09-26 04:48:32 +02:00
|
|
|
/* Add a data format to the clipboard */
|
|
|
|
@REQ(set_clipboard_data)
|
|
|
|
unsigned int format; /* clipboard format of the data */
|
2016-09-26 08:00:22 +02:00
|
|
|
unsigned int lcid; /* locale id to use for synthesizing text formats */
|
2016-09-26 04:48:32 +02:00
|
|
|
VARARG(data,bytes); /* data contents */
|
2016-09-26 08:09:27 +02:00
|
|
|
@REPLY
|
|
|
|
unsigned int seqno; /* sequence number for the set data */
|
2016-09-26 04:48:32 +02:00
|
|
|
@END
|
|
|
|
|
|
|
|
|
2016-09-26 07:19:28 +02:00
|
|
|
/* Fetch a data format from the clipboard */
|
|
|
|
@REQ(get_clipboard_data)
|
|
|
|
unsigned int format; /* clipboard format of the data */
|
2017-05-24 13:03:39 +02:00
|
|
|
int render; /* will we try to render it if missing? */
|
2016-09-26 08:09:27 +02:00
|
|
|
int cached; /* do we already have it in the client-side cache? */
|
|
|
|
unsigned int seqno; /* sequence number for the data in the cache */
|
2016-09-26 07:19:28 +02:00
|
|
|
@REPLY
|
2016-09-26 08:00:22 +02:00
|
|
|
unsigned int from; /* for synthesized data, format to generate it from */
|
2016-09-26 07:19:28 +02:00
|
|
|
user_handle_t owner; /* clipboard owner for delayed-rendered formats */
|
2016-09-26 08:09:27 +02:00
|
|
|
unsigned int seqno; /* sequence number for the originally set data */
|
2016-09-26 07:19:28 +02:00
|
|
|
data_size_t total; /* total data size */
|
|
|
|
VARARG(data,bytes); /* data contents */
|
|
|
|
@END
|
|
|
|
|
|
|
|
|
2016-09-26 06:55:09 +02:00
|
|
|
/* Retrieve a list of available formats */
|
|
|
|
@REQ(get_clipboard_formats)
|
|
|
|
unsigned int format; /* specific format to query, return all if 0 */
|
|
|
|
@REPLY
|
|
|
|
unsigned int count; /* count of available formats */
|
|
|
|
VARARG(formats,uints); /* array of available formats */
|
|
|
|
@END
|
|
|
|
|
|
|
|
|
|
|
|
/* Retrieve the next available format */
|
|
|
|
@REQ(enum_clipboard_formats)
|
|
|
|
unsigned int previous; /* previous format, or first if 0 */
|
|
|
|
@REPLY
|
|
|
|
unsigned int format; /* next format */
|
|
|
|
@END
|
|
|
|
|
|
|
|
|
2016-09-01 13:06:09 +02:00
|
|
|
/* Release ownership of the clipboard */
|
|
|
|
@REQ(release_clipboard)
|
|
|
|
user_handle_t owner; /* clipboard owner to release */
|
|
|
|
@REPLY
|
|
|
|
user_handle_t viewer; /* first clipboard viewer */
|
2016-09-14 08:20:54 +02:00
|
|
|
user_handle_t owner; /* current clipboard owner */
|
2016-09-01 13:06:09 +02:00
|
|
|
@END
|
|
|
|
|
|
|
|
|
2016-08-23 09:29:00 +02:00
|
|
|
/* Get clipboard information */
|
|
|
|
@REQ(get_clipboard_info)
|
|
|
|
@REPLY
|
|
|
|
user_handle_t window; /* clipboard window */
|
|
|
|
user_handle_t owner; /* clipboard owner */
|
|
|
|
user_handle_t viewer; /* clipboard viewer */
|
|
|
|
unsigned int seqno; /* current sequence number */
|
|
|
|
@END
|
|
|
|
|
|
|
|
|
2016-08-22 12:26:55 +02:00
|
|
|
/* Set the clipboard viewer window */
|
|
|
|
@REQ(set_clipboard_viewer)
|
|
|
|
user_handle_t viewer; /* clipboard viewer */
|
|
|
|
user_handle_t previous; /* if non-zero, check that this was the previous viewer */
|
|
|
|
@REPLY
|
|
|
|
user_handle_t old_viewer; /* previous clipboard viewer */
|
|
|
|
user_handle_t owner; /* clipboard owner */
|
|
|
|
@END
|
|
|
|
|
|
|
|
|
2016-08-29 13:55:52 +02:00
|
|
|
/* Add a clipboard listener window */
|
|
|
|
@REQ(add_clipboard_listener)
|
|
|
|
user_handle_t window; /* clipboard listener window */
|
|
|
|
@END
|
|
|
|
|
|
|
|
|
|
|
|
/* Remove a clipboard listener window */
|
|
|
|
@REQ(remove_clipboard_listener)
|
|
|
|
user_handle_t window; /* clipboard listener window */
|
|
|
|
@END
|
|
|
|
|
|
|
|
|
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 */
|
|
|
|
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 */
|
2017-06-14 20:20:43 +02:00
|
|
|
VARARG(objattr,object_attributes); /* object attributes */
|
2005-02-11 12:52:06 +01:00
|
|
|
@REPLY
|
|
|
|
obj_handle_t new_handle; /* duplicated handle */
|
|
|
|
@END
|
2005-03-30 21:02:15 +02:00
|
|
|
|
2020-09-23 00:31:15 +02:00
|
|
|
@REQ(filter_token)
|
|
|
|
obj_handle_t handle; /* handle to the token to duplicate */
|
|
|
|
unsigned int flags; /* flags */
|
|
|
|
data_size_t privileges_size; /* size of privileges */
|
|
|
|
VARARG(privileges,LUID_AND_ATTRIBUTES,privileges_size); /* privileges to remove from new token */
|
|
|
|
VARARG(disable_sids,SID); /* array of groups to remove from new token */
|
|
|
|
@REPLY
|
|
|
|
obj_handle_t new_handle; /* filtered handle */
|
|
|
|
@END
|
|
|
|
|
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 */
|
2021-02-04 13:21:49 +01:00
|
|
|
generic_map_t mapping; /* mapping to specific rights */
|
2005-05-24 14:32:18 +02:00
|
|
|
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
|
|
|
|
2009-11-16 21:11:06 +01:00
|
|
|
@REQ(get_token_sid)
|
2005-07-18 15:22:55 +02:00
|
|
|
obj_handle_t handle; /* handle to the token */
|
2009-11-16 21:11:06 +01:00
|
|
|
unsigned int which_sid; /* which SID to retrieve from the token */
|
2005-07-18 15:22:55 +02:00
|
|
|
@REPLY
|
2009-11-16 21:11:06 +01:00
|
|
|
data_size_t sid_len; /* length needed to store sid */
|
|
|
|
VARARG(sid,SID); /* the sid specified by which_sid from the token */
|
2005-07-18 15:22:55 +02:00
|
|
|
@END
|
|
|
|
|
2006-05-13 17:58:19 +02:00
|
|
|
@REQ(get_token_groups)
|
|
|
|
obj_handle_t handle; /* handle to the token */
|
|
|
|
@REPLY
|
2006-07-26 10:43:25 +02:00
|
|
|
data_size_t user_len; /* length needed to store user */
|
2009-11-16 21:11:06 +01:00
|
|
|
VARARG(user,token_groups); /* groups the token's user belongs to */
|
2006-05-13 17:58:19 +02:00
|
|
|
@END
|
|
|
|
|
2009-04-21 09:53:16 +02:00
|
|
|
@REQ(get_token_default_dacl)
|
|
|
|
obj_handle_t handle; /* handle to the token */
|
|
|
|
@REPLY
|
|
|
|
data_size_t acl_len; /* length needed to store access control list */
|
|
|
|
VARARG(acl,ACL); /* access control list */
|
|
|
|
@END
|
|
|
|
|
|
|
|
@REQ(set_token_default_dacl)
|
|
|
|
obj_handle_t handle; /* handle to the token */
|
|
|
|
VARARG(acl,ACL); /* default dacl to set */
|
|
|
|
@END
|
|
|
|
|
2007-02-08 05:43:11 +01:00
|
|
|
@REQ(set_security_object)
|
|
|
|
obj_handle_t handle; /* handle to the object */
|
|
|
|
unsigned int security_info; /* which parts of security descriptor to set */
|
|
|
|
VARARG(sd,security_descriptor); /* security descriptor to set */
|
|
|
|
@END
|
|
|
|
|
2007-10-02 16:55:13 +02:00
|
|
|
@REQ(get_security_object)
|
|
|
|
obj_handle_t handle; /* handle to the object */
|
|
|
|
unsigned int security_info; /* which parts of security descriptor to get */
|
|
|
|
@REPLY
|
|
|
|
unsigned int sd_len; /* buffer size needed for sd */
|
|
|
|
VARARG(sd,security_descriptor); /* retrieved security descriptor */
|
|
|
|
@END
|
|
|
|
|
2015-12-24 13:08:50 +01:00
|
|
|
|
|
|
|
struct handle_info
|
|
|
|
{
|
|
|
|
process_id_t owner;
|
|
|
|
obj_handle_t handle;
|
|
|
|
unsigned int access;
|
2021-02-18 05:59:16 +01:00
|
|
|
unsigned int attributes;
|
2021-02-18 05:59:17 +01:00
|
|
|
unsigned int type;
|
2015-12-24 13:08:50 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
/* Return a list of all opened handles */
|
|
|
|
@REQ(get_system_handles)
|
|
|
|
@REPLY
|
|
|
|
unsigned int count; /* number of handles */
|
|
|
|
VARARG(data,handle_infos); /* array of handle_infos */
|
|
|
|
@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 */
|
2007-04-17 20:08:59 +02:00
|
|
|
timeout_t read_timeout;
|
2008-12-31 15:14:29 +01:00
|
|
|
unsigned int max_msgsize;
|
2016-01-15 10:57:02 +01:00
|
|
|
VARARG(objattr,object_attributes); /* object attributes */
|
2005-03-30 21:02:15 +02:00
|
|
|
@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 */
|
2007-04-17 20:08:59 +02:00
|
|
|
timeout_t read_timeout;
|
2008-12-31 15:14:29 +01:00
|
|
|
unsigned int flags;
|
2005-03-30 21:02:15 +02:00
|
|
|
@REPLY
|
2007-04-17 20:08:59 +02:00
|
|
|
timeout_t read_timeout;
|
2008-12-31 15:14:29 +01:00
|
|
|
unsigned int max_msgsize;
|
2005-03-30 21:02:15 +02:00
|
|
|
@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 */
|
2016-01-15 11:02:18 +01:00
|
|
|
VARARG(objattr,object_attributes); /* object attributes */
|
2005-11-29 17:21:05 +01:00
|
|
|
@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
|
|
|
|
|
|
|
|
2007-12-05 16:57:41 +01:00
|
|
|
/* Get a directory entry by index */
|
|
|
|
@REQ(get_directory_entry)
|
|
|
|
obj_handle_t handle; /* handle to the directory */
|
|
|
|
unsigned int index; /* entry index */
|
|
|
|
@REPLY
|
2008-12-06 17:29:31 +01:00
|
|
|
data_size_t name_len; /* length of the entry name in bytes */
|
2007-12-05 16:57:41 +01:00
|
|
|
VARARG(name,unicode_str,name_len); /* entry name */
|
|
|
|
VARARG(type,unicode_str); /* entry type */
|
|
|
|
@END
|
|
|
|
|
|
|
|
|
2005-11-30 19:22:57 +01:00
|
|
|
/* Create a symbolic link object */
|
|
|
|
@REQ(create_symlink)
|
|
|
|
unsigned int access; /* access flags */
|
2016-01-15 12:33:20 +01:00
|
|
|
VARARG(objattr,object_attributes); /* object attributes */
|
2005-11-30 19:22:57 +01:00
|
|
|
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
|
2010-06-30 16:11:03 +02:00
|
|
|
data_size_t total; /* total needed size for name */
|
2005-11-30 19:22:57 +01:00
|
|
|
VARARG(target_name,unicode_str); /* target name */
|
|
|
|
@END
|
2007-01-25 07:43:04 +01:00
|
|
|
|
|
|
|
|
|
|
|
/* Query basic object information */
|
|
|
|
@REQ(get_object_info)
|
|
|
|
obj_handle_t handle; /* handle to the object */
|
|
|
|
@REPLY
|
|
|
|
unsigned int access; /* granted access mask */
|
|
|
|
unsigned int ref_count; /* object ref count */
|
2015-04-02 01:24:24 +02:00
|
|
|
unsigned int handle_count; /* object handle count */
|
2021-07-01 05:08:08 +02:00
|
|
|
@END
|
|
|
|
|
|
|
|
|
|
|
|
/* Query the full name of an object */
|
|
|
|
@REQ(get_object_name)
|
|
|
|
obj_handle_t handle; /* handle to the object */
|
|
|
|
@REPLY
|
2010-01-08 13:01:50 +01:00
|
|
|
data_size_t total; /* total needed size for name */
|
|
|
|
VARARG(name,unicode_str); /* object name */
|
2007-01-25 07:43:04 +01:00
|
|
|
@END
|
2007-02-21 18:10:45 +01:00
|
|
|
|
2008-10-20 16:21:06 +02:00
|
|
|
|
2015-06-02 16:09:48 +02:00
|
|
|
/* Query object type name information */
|
|
|
|
@REQ(get_object_type)
|
|
|
|
obj_handle_t handle; /* handle to the object */
|
|
|
|
@REPLY
|
2021-02-04 14:08:23 +01:00
|
|
|
VARARG(info,object_type_info); /* type information */
|
2015-06-02 16:09:48 +02:00
|
|
|
@END
|
|
|
|
|
|
|
|
|
2021-02-05 12:14:51 +01:00
|
|
|
/* Query type information for all types */
|
|
|
|
@REQ(get_object_types)
|
|
|
|
@REPLY
|
|
|
|
int count; /* total count of object types */
|
|
|
|
VARARG(info,object_types_info); /* type information */
|
|
|
|
@END
|
|
|
|
|
|
|
|
|
2007-03-07 01:33:26 +01:00
|
|
|
/* Allocate a locally-unique identifier */
|
|
|
|
@REQ(allocate_locally_unique_id)
|
|
|
|
@REPLY
|
|
|
|
luid_t luid;
|
|
|
|
@END
|
2007-05-08 20:28:37 +02:00
|
|
|
|
|
|
|
|
|
|
|
/* Create a device manager */
|
|
|
|
@REQ(create_device_manager)
|
|
|
|
unsigned int access; /* wanted access rights */
|
|
|
|
unsigned int attributes; /* object attributes */
|
|
|
|
@REPLY
|
|
|
|
obj_handle_t handle; /* handle to the device */
|
|
|
|
@END
|
|
|
|
|
|
|
|
|
|
|
|
/* Create a device */
|
|
|
|
@REQ(create_device)
|
|
|
|
obj_handle_t rootdir; /* root directory */
|
2008-12-29 17:28:40 +01:00
|
|
|
client_ptr_t user_ptr; /* opaque ptr for use by client */
|
2008-12-31 15:14:29 +01:00
|
|
|
obj_handle_t manager; /* device manager */
|
2007-05-08 20:28:37 +02:00
|
|
|
VARARG(name,unicode_str); /* object name */
|
|
|
|
@END
|
|
|
|
|
|
|
|
|
|
|
|
/* Delete a device */
|
|
|
|
@REQ(delete_device)
|
2019-03-27 17:43:27 +01:00
|
|
|
obj_handle_t manager; /* handle to the device manager */
|
|
|
|
client_ptr_t device; /* pointer to the device */
|
2007-05-08 20:28:37 +02:00
|
|
|
@END
|
2007-05-08 20:40:26 +02:00
|
|
|
|
|
|
|
|
2015-05-05 04:34:15 +02:00
|
|
|
/* Retrieve the next pending device irp request */
|
2007-05-08 20:40:26 +02:00
|
|
|
@REQ(get_next_device_request)
|
|
|
|
obj_handle_t manager; /* handle to the device manager */
|
2015-05-05 04:34:15 +02:00
|
|
|
obj_handle_t prev; /* handle to the previous irp */
|
|
|
|
unsigned int status; /* status of the previous irp */
|
2019-05-28 14:09:47 +02:00
|
|
|
client_ptr_t user_ptr; /* user pointer of the previous irp */
|
2021-09-12 23:07:52 +02:00
|
|
|
int pending; /* was the previous irp marked pending? */
|
2021-09-12 23:07:51 +02:00
|
|
|
unsigned int iosb_status; /* IOSB status of the previous irp */
|
2021-09-12 23:07:50 +02:00
|
|
|
data_size_t result; /* IOSB result of the previous irp */
|
|
|
|
VARARG(data,bytes); /* output data of the previous irp */
|
2007-05-08 20:40:26 +02:00
|
|
|
@REPLY
|
2015-05-06 04:21:40 +02:00
|
|
|
irp_params_t params; /* irp parameters */
|
|
|
|
obj_handle_t next; /* handle to the next irp */
|
2015-05-05 04:34:15 +02:00
|
|
|
thread_id_t client_tid; /* tid of thread calling irp */
|
2019-04-08 14:04:43 +02:00
|
|
|
client_ptr_t client_thread; /* pointer to thread object of calling irp */
|
2007-05-08 20:40:26 +02:00
|
|
|
data_size_t in_size; /* total needed input size */
|
2015-05-05 04:34:15 +02:00
|
|
|
VARARG(next_data,bytes); /* input data of the next irp */
|
2007-05-08 20:40:26 +02:00
|
|
|
@END
|
2007-06-06 20:33:13 +02:00
|
|
|
|
|
|
|
|
2019-03-25 14:37:39 +01:00
|
|
|
/* Get kernel pointer from server object */
|
|
|
|
@REQ(get_kernel_object_ptr)
|
|
|
|
obj_handle_t manager; /* handle to the device manager */
|
|
|
|
obj_handle_t handle; /* object handle */
|
|
|
|
@REPLY
|
|
|
|
client_ptr_t user_ptr; /* kernel object pointer */
|
|
|
|
@END
|
|
|
|
|
|
|
|
|
|
|
|
/* Associate kernel pointer with server object */
|
|
|
|
@REQ(set_kernel_object_ptr)
|
|
|
|
obj_handle_t manager; /* handle to the device manager */
|
|
|
|
obj_handle_t handle; /* object handle */
|
|
|
|
client_ptr_t user_ptr; /* kernel object pointer */
|
|
|
|
@END
|
|
|
|
|
|
|
|
|
2019-03-25 14:37:57 +01:00
|
|
|
/* Grab server object reference from kernel object pointer */
|
|
|
|
@REQ(grab_kernel_object)
|
|
|
|
obj_handle_t manager; /* handle to the device manager */
|
|
|
|
client_ptr_t user_ptr; /* kernel object pointer */
|
|
|
|
@END
|
|
|
|
|
|
|
|
|
|
|
|
/* Release server object reference from kernel object pointer */
|
|
|
|
@REQ(release_kernel_object)
|
|
|
|
obj_handle_t manager; /* handle to the device manager */
|
|
|
|
client_ptr_t user_ptr; /* kernel object pointer */
|
|
|
|
@END
|
|
|
|
|
|
|
|
|
2019-03-25 14:38:57 +01:00
|
|
|
/* Get handle from kernel object pointer */
|
|
|
|
@REQ(get_kernel_object_handle)
|
|
|
|
obj_handle_t manager; /* handle to the device manager */
|
|
|
|
client_ptr_t user_ptr; /* kernel object pointer */
|
|
|
|
unsigned int access; /* wanted access rights */
|
|
|
|
@REPLY
|
|
|
|
obj_handle_t handle; /* kernel object handle */
|
|
|
|
@END
|
|
|
|
|
|
|
|
|
2007-06-06 20:33:13 +02:00
|
|
|
/* Make the current process a system process */
|
|
|
|
@REQ(make_process_system)
|
2021-05-24 15:56:26 +02:00
|
|
|
obj_handle_t handle; /* handle to the process */
|
2007-06-06 20:33:13 +02:00
|
|
|
@REPLY
|
|
|
|
obj_handle_t event; /* event signaled when all user processes have exited */
|
|
|
|
@END
|
2007-09-13 17:47:56 +02:00
|
|
|
|
|
|
|
|
|
|
|
/* Get detailed fixed-size information about a token */
|
2021-02-17 17:10:15 +01:00
|
|
|
@REQ(get_token_info)
|
2007-09-13 17:47:56 +02:00
|
|
|
obj_handle_t handle; /* handle to the object */
|
|
|
|
@REPLY
|
|
|
|
luid_t token_id; /* locally-unique identifier of the token */
|
|
|
|
luid_t modified_id; /* locally-unique identifier of the modified version of the token */
|
2021-07-01 16:22:26 +02:00
|
|
|
unsigned int session_id; /* token session id */
|
2007-09-13 17:47:56 +02:00
|
|
|
int primary; /* is the token primary or impersonation? */
|
|
|
|
int impersonation_level; /* level of impersonation */
|
2021-02-17 17:10:15 +01:00
|
|
|
int elevation; /* elevation type */
|
2007-09-13 17:47:56 +02:00
|
|
|
int group_count; /* the number of groups the token is a member of */
|
|
|
|
int privilege_count; /* the number of privileges the token has */
|
|
|
|
@END
|
2007-09-17 22:00:45 +02:00
|
|
|
|
|
|
|
|
2021-02-17 06:31:12 +01:00
|
|
|
/* Create a token which is an elevation counterpart to this token */
|
|
|
|
@REQ(create_linked_token)
|
|
|
|
obj_handle_t handle; /* handle to the token */
|
|
|
|
@REPLY
|
|
|
|
obj_handle_t linked; /* handle to the linked token */
|
|
|
|
@END
|
|
|
|
|
|
|
|
|
2007-09-17 22:00:45 +02:00
|
|
|
/* Create I/O completion port */
|
|
|
|
@REQ(create_completion)
|
|
|
|
unsigned int access; /* desired access to a port */
|
|
|
|
unsigned int concurrent; /* max number of concurrent active threads */
|
2016-01-15 12:49:38 +01:00
|
|
|
VARARG(objattr,object_attributes); /* object attributes */
|
2007-09-17 22:00:45 +02:00
|
|
|
@REPLY
|
|
|
|
obj_handle_t handle; /* port handle */
|
|
|
|
@END
|
|
|
|
|
|
|
|
|
|
|
|
/* Open I/O completion port */
|
|
|
|
@REQ(open_completion)
|
|
|
|
unsigned int access; /* desired access to a port */
|
|
|
|
unsigned int attributes; /* object attributes */
|
|
|
|
obj_handle_t rootdir; /* root directory */
|
2015-03-25 12:30:30 +01:00
|
|
|
VARARG(filename,unicode_str); /* port name */
|
2007-09-17 22:00:45 +02:00
|
|
|
@REPLY
|
|
|
|
obj_handle_t handle; /* port handle */
|
|
|
|
@END
|
|
|
|
|
|
|
|
|
|
|
|
/* add completion to completion port */
|
|
|
|
@REQ(add_completion)
|
|
|
|
obj_handle_t handle; /* port handle */
|
2008-12-15 13:29:38 +01:00
|
|
|
apc_param_t ckey; /* completion key */
|
|
|
|
apc_param_t cvalue; /* completion value */
|
2013-08-23 12:37:51 +02:00
|
|
|
apc_param_t information; /* IO_STATUS_BLOCK Information */
|
2007-09-17 22:00:45 +02:00
|
|
|
unsigned int status; /* completion result */
|
|
|
|
@END
|
|
|
|
|
|
|
|
|
|
|
|
/* get completion from completion port queue */
|
|
|
|
@REQ(remove_completion)
|
|
|
|
obj_handle_t handle; /* port handle */
|
|
|
|
@REPLY
|
2008-12-15 13:29:38 +01:00
|
|
|
apc_param_t ckey; /* completion key */
|
|
|
|
apc_param_t cvalue; /* completion value */
|
2013-08-23 12:37:51 +02:00
|
|
|
apc_param_t information; /* IO_STATUS_BLOCK Information */
|
2007-09-17 22:00:45 +02:00
|
|
|
unsigned int status; /* completion result */
|
|
|
|
@END
|
|
|
|
|
|
|
|
|
|
|
|
/* get completion queue depth */
|
|
|
|
@REQ(query_completion)
|
|
|
|
obj_handle_t handle; /* port handle */
|
|
|
|
@REPLY
|
|
|
|
unsigned int depth; /* completion queue depth */
|
|
|
|
@END
|
2007-09-27 22:03:39 +02:00
|
|
|
|
|
|
|
|
|
|
|
/* associate object with completion port */
|
|
|
|
@REQ(set_completion_info)
|
|
|
|
obj_handle_t handle; /* object handle */
|
2008-12-15 13:29:38 +01:00
|
|
|
apc_param_t ckey; /* completion key */
|
2008-12-31 15:14:29 +01:00
|
|
|
obj_handle_t chandle; /* port handle */
|
2007-09-27 22:03:39 +02:00
|
|
|
@END
|
2007-11-09 23:11:58 +01:00
|
|
|
|
|
|
|
|
|
|
|
/* check for associated completion and push msg */
|
|
|
|
@REQ(add_fd_completion)
|
|
|
|
obj_handle_t handle; /* async' object */
|
2008-12-15 13:29:38 +01:00
|
|
|
apc_param_t cvalue; /* completion value */
|
2013-08-23 12:37:51 +02:00
|
|
|
apc_param_t information; /* IO_STATUS_BLOCK Information */
|
2007-11-09 23:11:58 +01:00
|
|
|
unsigned int status; /* completion status */
|
2018-10-25 14:56:24 +02:00
|
|
|
int async; /* completion is an async result */
|
2007-11-09 23:11:58 +01:00
|
|
|
@END
|
2008-09-12 15:30:47 +02:00
|
|
|
|
|
|
|
|
2018-10-25 14:55:24 +02:00
|
|
|
/* set fd completion information */
|
|
|
|
@REQ(set_fd_completion_mode)
|
|
|
|
obj_handle_t handle; /* handle to a file or directory */
|
|
|
|
unsigned int flags; /* completion notification flags */
|
|
|
|
@END
|
|
|
|
|
|
|
|
|
2015-08-20 10:25:15 +02:00
|
|
|
/* set fd disposition information */
|
|
|
|
@REQ(set_fd_disp_info)
|
2015-08-19 11:18:01 +02:00
|
|
|
obj_handle_t handle; /* handle to a file or directory */
|
|
|
|
int unlink; /* whether to unlink file on close */
|
|
|
|
@END
|
|
|
|
|
|
|
|
|
2015-08-20 10:25:15 +02:00
|
|
|
/* set fd name information */
|
|
|
|
@REQ(set_fd_name_info)
|
|
|
|
obj_handle_t handle; /* handle to a file or directory */
|
|
|
|
obj_handle_t rootdir; /* root directory */
|
2021-02-09 13:31:26 +01:00
|
|
|
data_size_t namelen; /* length of NT name in bytes */
|
2015-08-21 07:25:12 +02:00
|
|
|
int link; /* link instead of renaming */
|
2020-03-11 04:38:23 +01:00
|
|
|
int replace; /* replace an existing file? */
|
2021-02-09 13:31:26 +01:00
|
|
|
VARARG(name,unicode_str,namelen); /* NT name */
|
2015-08-20 10:25:15 +02:00
|
|
|
VARARG(filename,string); /* new file name */
|
|
|
|
@END
|
|
|
|
|
|
|
|
|
2021-06-25 07:28:51 +02:00
|
|
|
/* set fd eof information */
|
|
|
|
@REQ(set_fd_eof_info)
|
|
|
|
obj_handle_t handle; /* handle to a file or directory */
|
|
|
|
file_pos_t eof; /* offset of eof of file */
|
|
|
|
@END
|
|
|
|
|
|
|
|
|
2008-09-12 15:30:47 +02:00
|
|
|
/* Retrieve layered info for a window */
|
|
|
|
@REQ(get_window_layered_info)
|
|
|
|
user_handle_t handle; /* handle to the window */
|
|
|
|
@REPLY
|
|
|
|
unsigned int color_key; /* color key */
|
|
|
|
unsigned int alpha; /* alpha (0..255) */
|
|
|
|
unsigned int flags; /* LWA_* flags */
|
|
|
|
@END
|
|
|
|
|
|
|
|
|
|
|
|
/* Set layered info for a window */
|
|
|
|
@REQ(set_window_layered_info)
|
|
|
|
user_handle_t handle; /* handle to the window */
|
|
|
|
unsigned int color_key; /* color key */
|
|
|
|
unsigned int alpha; /* alpha (0..255) */
|
|
|
|
unsigned int flags; /* LWA_* flags */
|
|
|
|
@END
|
2009-10-12 14:25:01 +02:00
|
|
|
|
|
|
|
|
|
|
|
/* Allocate an arbitrary user handle */
|
|
|
|
@REQ(alloc_user_handle)
|
|
|
|
@REPLY
|
|
|
|
user_handle_t handle; /* allocated handle */
|
|
|
|
@END
|
|
|
|
|
|
|
|
|
|
|
|
/* Free an arbitrary user handle */
|
|
|
|
@REQ(free_user_handle)
|
|
|
|
user_handle_t handle; /* handle to free*/
|
|
|
|
@END
|
2010-03-22 17:52:23 +01:00
|
|
|
|
|
|
|
|
|
|
|
/* Set/get the current cursor */
|
|
|
|
@REQ(set_cursor)
|
|
|
|
unsigned int flags; /* flags for fields to set (see below) */
|
|
|
|
user_handle_t handle; /* handle to the cursor */
|
|
|
|
int show_count; /* show count increment/decrement */
|
2011-02-24 17:47:59 +01:00
|
|
|
int x; /* cursor position */
|
|
|
|
int y;
|
2011-02-25 11:31:47 +01:00
|
|
|
rectangle_t clip; /* cursor clip rectangle */
|
2011-03-31 20:27:29 +02:00
|
|
|
unsigned int clip_msg; /* message to post on cursor clip changes */
|
2010-03-22 17:52:23 +01:00
|
|
|
@REPLY
|
|
|
|
user_handle_t prev_handle; /* previous handle */
|
|
|
|
int prev_count; /* previous show count */
|
2011-04-20 20:29:16 +02:00
|
|
|
int prev_x; /* previous position */
|
|
|
|
int prev_y;
|
2011-02-24 17:47:59 +01:00
|
|
|
int new_x; /* new position */
|
|
|
|
int new_y;
|
2011-02-25 11:31:47 +01:00
|
|
|
rectangle_t new_clip; /* new clip rectangle */
|
2011-03-31 20:15:56 +02:00
|
|
|
unsigned int last_change; /* time of last position change */
|
2010-03-22 17:52:23 +01:00
|
|
|
@END
|
|
|
|
#define SET_CURSOR_HANDLE 0x01
|
|
|
|
#define SET_CURSOR_COUNT 0x02
|
2011-02-24 17:47:59 +01:00
|
|
|
#define SET_CURSOR_POS 0x04
|
2011-02-25 11:31:47 +01:00
|
|
|
#define SET_CURSOR_CLIP 0x08
|
2011-06-21 14:50:23 +02:00
|
|
|
#define SET_CURSOR_NOCLIP 0x10
|
2011-05-06 12:25:34 +02:00
|
|
|
|
2020-10-03 01:44:16 +02:00
|
|
|
/* Get the history of the 64 last cursor positions */
|
|
|
|
@REQ(get_cursor_history)
|
|
|
|
@REPLY
|
|
|
|
VARARG(history,cursor_positions);
|
|
|
|
@END
|
|
|
|
|
2011-05-06 12:25:34 +02:00
|
|
|
|
2020-06-25 19:08:43 +02:00
|
|
|
/* Batch read rawinput message data */
|
|
|
|
@REQ(get_rawinput_buffer)
|
|
|
|
data_size_t rawinput_size; /* size of RAWINPUT structure */
|
|
|
|
data_size_t buffer_size; /* size of output buffer */
|
|
|
|
@REPLY
|
|
|
|
data_size_t next_size; /* minimum size to get next message data */
|
|
|
|
unsigned int count;
|
|
|
|
VARARG(data,bytes);
|
|
|
|
@END
|
|
|
|
|
2012-09-08 11:26:26 +02:00
|
|
|
/* Modify the list of registered rawinput devices */
|
|
|
|
@REQ(update_rawinput_devices)
|
|
|
|
VARARG(devices,rawinput_devices);
|
|
|
|
@END
|
|
|
|
|
2020-08-10 11:04:13 +02:00
|
|
|
/* Retrieve the list of registered rawinput devices */
|
|
|
|
@REQ(get_rawinput_devices)
|
|
|
|
@REPLY
|
|
|
|
unsigned int device_count;
|
|
|
|
VARARG(devices,rawinput_devices);
|
|
|
|
@END
|
2012-09-08 11:26:26 +02:00
|
|
|
|
2015-02-26 02:25:23 +01:00
|
|
|
/* Create a new job object */
|
|
|
|
@REQ(create_job)
|
|
|
|
unsigned int access; /* wanted access rights */
|
|
|
|
VARARG(objattr,object_attributes); /* object attributes */
|
|
|
|
@REPLY
|
|
|
|
obj_handle_t handle; /* handle to the job */
|
|
|
|
@END
|
2015-04-01 00:10:16 +02:00
|
|
|
|
|
|
|
|
2016-01-28 17:32:22 +01:00
|
|
|
/* Open a job object */
|
|
|
|
@REQ(open_job)
|
|
|
|
unsigned int access; /* wanted access rights */
|
|
|
|
unsigned int attributes; /* object attributes */
|
|
|
|
obj_handle_t rootdir; /* root directory */
|
|
|
|
VARARG(name,unicode_str); /* object name */
|
|
|
|
@REPLY
|
|
|
|
obj_handle_t handle; /* handle to the job */
|
|
|
|
@END
|
|
|
|
|
|
|
|
|
2015-04-01 00:10:16 +02:00
|
|
|
/* Assign a job object to a process */
|
|
|
|
@REQ(assign_job)
|
|
|
|
obj_handle_t job; /* handle to the job */
|
|
|
|
obj_handle_t process; /* handle to the process */
|
|
|
|
@END
|
2015-04-01 00:27:34 +02:00
|
|
|
|
|
|
|
|
|
|
|
/* Check if a process is associated with a job */
|
|
|
|
@REQ(process_in_job)
|
|
|
|
obj_handle_t job; /* handle to the job */
|
|
|
|
obj_handle_t process; /* handle to the process */
|
|
|
|
@END
|
2015-04-02 11:40:15 +02:00
|
|
|
|
|
|
|
|
|
|
|
/* Set limit flags on a job */
|
|
|
|
@REQ(set_job_limits)
|
|
|
|
obj_handle_t handle; /* handle to the job */
|
|
|
|
unsigned int limit_flags; /* new limit flags */
|
|
|
|
@END
|
2015-04-01 23:56:55 +02:00
|
|
|
|
|
|
|
|
|
|
|
/* Set new completion port for a job */
|
|
|
|
@REQ(set_job_completion_port)
|
|
|
|
obj_handle_t job; /* handle to the job */
|
|
|
|
obj_handle_t port; /* handle to the completion port */
|
|
|
|
client_ptr_t key; /* key to send with completion messages */
|
|
|
|
@END
|
2015-04-03 08:19:45 +02:00
|
|
|
|
|
|
|
|
2020-05-18 15:20:37 +02:00
|
|
|
/* Retrieve information about a job */
|
|
|
|
@REQ(get_job_info)
|
|
|
|
obj_handle_t handle; /* handle to the job */
|
|
|
|
@REPLY
|
|
|
|
int total_processes; /* total count of processes */
|
|
|
|
int active_processes; /* count of running processes */
|
2021-09-14 15:07:38 +02:00
|
|
|
VARARG(pids,uints); /* list of active pids */
|
2020-05-18 15:20:37 +02:00
|
|
|
@END
|
|
|
|
|
|
|
|
|
2015-04-03 08:19:45 +02:00
|
|
|
/* Terminate all processes associated with the job */
|
|
|
|
@REQ(terminate_job)
|
|
|
|
obj_handle_t handle; /* handle to the job */
|
|
|
|
int status; /* process exit code */
|
|
|
|
@END
|
2019-04-18 09:41:48 +02:00
|
|
|
|
|
|
|
|
|
|
|
/* Suspend a process */
|
|
|
|
@REQ(suspend_process)
|
|
|
|
obj_handle_t handle; /* process handle */
|
|
|
|
@END
|
|
|
|
|
|
|
|
|
|
|
|
/* Resume a process */
|
|
|
|
@REQ(resume_process)
|
|
|
|
obj_handle_t handle; /* process handle */
|
|
|
|
@END
|
2021-04-28 17:21:21 +02:00
|
|
|
|
|
|
|
|
|
|
|
/* Iterate thread list for process */
|
|
|
|
@REQ(get_next_thread)
|
|
|
|
obj_handle_t process; /* process handle */
|
|
|
|
obj_handle_t last; /* thread handle to start with */
|
|
|
|
unsigned int access; /* desired access for returned handle */
|
|
|
|
unsigned int attributes; /* returned handle attributes */
|
|
|
|
unsigned int flags; /* controls iteration direction */
|
|
|
|
@REPLY
|
|
|
|
obj_handle_t handle; /* next thread handle */
|
|
|
|
@END
|