Set Console Info

 

WM_SETCONSOLEINFO

 

lParam = 0

wParam = pointer to CONSOLE_INFO structure

 

 

#pragma pack(push, 1)

 

typedef struct _CONSOLE_INFO

{

ULONG           Length;

COORD          ScreenBufferSize;

COORD          WindowSize;

ULONG           WindowPosX;

ULONG           WindowPosY;

COORD          FontSize;

ULONG           FontFamily;

ULONG           FontWeight;

WCHAR          FaceName[32];

ULONG           CursorSize;

ULONG           FullScreen;

ULONG           QuickEdit;

ULONG           AutoPosition;

ULONG           InsertMode;

USHORT          ScreenColors;

USHORT          PopupColors;

ULONG           HistoryNoDup;

ULONG           HistoryBufferSize;

ULONG           NumberOfHistoryBuffers;

COLORREF          ColorTable[16]; 

ULONG           CodePage;

HWND            Hwnd; 

WCHAR          ConsoleTitle[0x100];

 } CONSOLE_INFO;

 

#pragma pack(pop)