windows-nt/Source/XPSP1/NT/drivers/sac/uterm/common/inc/term.h

28 lines
653 B
C
Raw Normal View History

2020-09-26 03:20:57 -05:00
#pragma once
#define MAX_ESCAPE_PARAMS 32
typedef BOOL (*TERMTXPROC)(PCWSTR, DWORD);
typedef struct __TERMINAL
{
HANDLE hSavedBuffer;
HANDLE hNewBuffer;
HANDLE hInput;
HANDLE hOutput;
WORD wAttributes;
BOOL fInverse;
BOOL fBold;
BOOL fEscapeValid;
BOOL fEscapeInvalid;
WORD wEscapeParamCount;
WORD wEscapeParams[MAX_ESCAPE_PARAMS];
WCHAR chEscapeCommand;
WCHAR chEscapeFirstChar;
TERMTXPROC pTxProc;
} TERMINAL, *PTERMINAL;
PTERMINAL termInitialize(TERMTXPROC pTxProc);
void termFinalize(PTERMINAL pTerminal);