From ccc0f92d334fa45eb37b0f08eed0bb52be022bf4 Mon Sep 17 00:00:00 2001 From: midipix Date: Mon, 13 May 2019 08:54:51 +0000 Subject: tty API: defined enum _nt_tty_log_info_type, struct _nt_tty_log_msg. --- include/ntapi/nt_tty.h | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) (limited to 'include') diff --git a/include/ntapi/nt_tty.h b/include/ntapi/nt_tty.h index 9be8e8e..fc4702a 100644 --- a/include/ntapi/nt_tty.h +++ b/include/ntapi/nt_tty.h @@ -172,6 +172,16 @@ typedef enum _nt_pty_info_class { } nt_pty_info_class; +typedef enum _nt_tty_log_info_type { + NT_TTY_LOG_INFO_BINARY_DATA, + NT_TTY_LOG_INFO_STRING_DATA, + NT_TTY_LOG_INFO_INTEGER_ARRAY, + NT_TTY_LOG_INFO_POINTER_ARRAY, + NT_TTY_LOG_INFO_EXCEPTION_RECORD, + NT_TTY_LOG_INFO_CAP, +} nt_tty_log_info_type; + + /* client process registration flags */ #define NT_TTY_INHERIT_HANDLES 0x0001 @@ -262,6 +272,12 @@ typedef struct __attr_ptr_size_aligned__ _nt_tty_sigctl_info { } nt_tty_sigctl_info; +typedef struct __attr_ptr_size_aligned__ _nt_tty_log_info { + int32_t type; + uint32_t data[0x30]; +} nt_tty_log_info; + + typedef struct __attr_ptr_size_aligned__ _nt_pty_fd_info { void * hpty; void * section; @@ -450,6 +466,15 @@ typedef struct __attr_ptr_size_aligned__ _nt_tty_transfer_msg { } nt_tty_transfer_msg; +typedef struct __attr_ptr_size_aligned__ _nt_tty_log_msg { + nt_port_message header; + struct { + nt_tty_msg_info ttyinfo; + nt_tty_log_info loginfo; + } data; +} nt_tty_log_msg; + + typedef struct __attr_ptr_size_aligned__ _nt_pty_fd_msg { nt_port_message header; struct { @@ -523,6 +548,7 @@ typedef struct __attr_ptr_size_aligned__ _nt_tty_port_msg { nt_tty_sigctl_info ctlinfo; nt_tty_ipc_info ipcinfo; nt_tty_sync_info syncinfo; + nt_tty_log_info loginfo; nt_user_process_info pidinfo; nt_tty_transfer_info transferinfo; nt_pty_fd_info fdinfo; -- cgit v1.2.3