From 5ea20e26018754a34c7f535ec6d6d8ba5d190583 Mon Sep 17 00:00:00 2001 From: midipix Date: Sun, 21 Aug 2016 07:53:10 -0400 Subject: pty layer: __ntapi_pty_inherit_runtime_ctty(): implementation and integration. --- include/ntapi/nt_process.h | 7 +++++-- include/ntapi/nt_tty.h | 6 ++++++ include/ntapi/ntapi.h | 1 + 3 files changed, 12 insertions(+), 2 deletions(-) (limited to 'include') diff --git a/include/ntapi/nt_process.h b/include/ntapi/nt_process.h index a1ef3a2..e03dec0 100644 --- a/include/ntapi/nt_process.h +++ b/include/ntapi/nt_process.h @@ -451,9 +451,9 @@ typedef struct _nt_runtime_data { void * hstdin; void * hstdout; void * hstderr; + void * hctty; void * hjob; void * hsession; - void * hpty; void * hdebug; void * hlog; void * hready; @@ -498,7 +498,10 @@ typedef struct _nt_runtime_data { int32_t peb_argc; wchar16_t ** peb_wargv; wchar16_t ** peb_wenvp; - uintptr_t ptyany[4]; + uintptr_t ptyin [4]; + uintptr_t ptyout[4]; + uintptr_t ptyerr[4]; + uintptr_t ptyctl[4]; uint32_t sa_queue [2]; uint32_t sa_block [2]; void * sa_handler[64]; diff --git a/include/ntapi/nt_tty.h b/include/ntapi/nt_tty.h index 16fd43b..7dd3baf 100644 --- a/include/ntapi/nt_tty.h +++ b/include/ntapi/nt_tty.h @@ -11,6 +11,7 @@ #include #include "nt_object.h" +#include "nt_process.h" #include "nt_port.h" #include "nt_termios.h" @@ -394,6 +395,11 @@ typedef int32_t __stdcall ntapi_pty_inherit( __in nt_pty_client_info * client_info); +typedef int32_t __stdcall ntapi_pty_inherit_runtime_ctty( + __in void * hport, + __in_out nt_runtime_data * rtdata); + + typedef int32_t __stdcall ntapi_pty_close( __in nt_pty * pty); diff --git a/include/ntapi/ntapi.h b/include/ntapi/ntapi.h index 0af598a..22db615 100644 --- a/include/ntapi/ntapi.h +++ b/include/ntapi/ntapi.h @@ -535,6 +535,7 @@ typedef struct _ntapi_vtbl { ntapi_pty_open * pty_open; ntapi_pty_reopen * pty_reopen; ntapi_pty_inherit * pty_inherit; + ntapi_pty_inherit_runtime_ctty * pty_inherit_runtime_ctty; ntapi_pty_close * pty_close; ntapi_pty_read * pty_read; ntapi_pty_write * pty_write; -- cgit v1.2.3