Source code of Windows XP (NT5)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

27 lines
653 B

#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);