From ec0b962a70d7ffe8606d2fa553c328aa43186a1d Mon Sep 17 00:00:00 2001 From: midipix Date: Sun, 29 Oct 2017 18:11:14 +0000 Subject: __ntapi_tt_spawn_foreign_process(): optionally use kernel32 as the backend. --- include/ntapi/nt_process.h | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'include') diff --git a/include/ntapi/nt_process.h b/include/ntapi/nt_process.h index facd639..1e2c630 100644 --- a/include/ntapi/nt_process.h +++ b/include/ntapi/nt_process.h @@ -185,6 +185,11 @@ typedef enum _nt_process_opcode_idx { #define NT_CREATE_PROCESS_EXT_CONSOLE_FLAG_INHERIT_STDOUT (0x08) #define NT_CREATE_PROCESS_EXT_CONSOLE_FLAG_INHERIT_STDERR (0x10) +/* tt_spawn_native_process / tt_spawn_foreign_process flags */ +#define NT_PROCESS_CREATE_FLAGS_DELEGATE_TO_SYSTEM_LIBRARY (0x00000001) +#define NT_PROCESS_CREATE_FLAGS_DELEGATE_TO_PTY_SERVER (0x00000002) +#define NT_PROCESS_CREATE_FLAGS_DELEGATE_TO_BRIDGE_PROCESS (0x00000004) + /* nt_runtime_data_block flag bits */ #define NT_RUNTIME_DATA_DUPLICATE_SESSION_HANDLES (0x01) @@ -659,7 +664,10 @@ typedef struct _nt_spawn_process_params { __in char ** envp; __in void * hready; __in nt_timeout * timeout; - __in int fsuspended; + __in uint32_t processflags; + __in uint32_t threadflags; + __in uint32_t spawnflags; + __in uint32_t reserved; __in nt_process_startup_info * startupinfo; } nt_spawn_process_params; -- cgit v1.2.3