2 * COPYRIGHT: See COPYING in the top level directory
3 * PROJECT: ReactOS Console Server DLL
4 * FILE: win32ss/user/winsrv/consrv/guisettings.h
5 * PURPOSE: GUI front-end settings management
6 * PROGRAMMERS: Johannes Anderwald
7 * Hermes Belusca-Maito (hermes.belusca@sfr.fr)
9 * NOTE: Also used by console.dll
17 /* Message sent by ReactOS' console.dll for applying console info */
18 #define PM_APPLY_CONSOLE_INFO (WM_APP + 100)
21 * Undocumented message sent by Windows' console.dll for applying console info.
22 * See http://www.catch22.net/sites/default/source/files/setconsoleinfo.c
23 * and http://www.scn.rain.com/~neighorn/PDF/MSBugPaper.pdf
24 * for more information.
26 #define WM_SETCONSOLEINFO (WM_USER + 201)
28 /* STRUCTURES *****************************************************************/
30 typedef struct _GUI_CONSOLE_INFO
32 // FONTSIGNATURE FontSignature;
33 WCHAR FaceName
[LF_FACESIZE
];
39 BOOL FullScreen
; /* Whether the console is displayed in full-screen or windowed mode */
40 // ULONG HardwareState; /* _GDI_MANAGED, _DIRECT */
45 } GUI_CONSOLE_INFO
, *PGUI_CONSOLE_INFO
;
48 * Undocumented structure used by Windows' console.dll for setting console info.
49 * See http://www.catch22.net/sites/default/source/files/setconsoleinfo.c
50 * and http://www.scn.rain.com/~neighorn/PDF/MSBugPaper.pdf
51 * for more information.
54 typedef struct _CONSOLE_STATE_INFO
57 COORD ScreenBufferSize
;
59 POINT WindowPosition
; // WindowPosX and Y
64 WCHAR FaceName
[LF_FACESIZE
];
72 USHORT ScreenColors
; // ScreenAttributes
73 USHORT PopupColors
; // PopupAttributes
75 ULONG HistoryBufferSize
;
76 ULONG NumberOfHistoryBuffers
;
78 COLORREF ColorTable
[16];
83 WCHAR ConsoleTitle
[256];
84 } CONSOLE_STATE_INFO
, *PCONSOLE_STATE_INFO
;
87 #ifndef CONSOLE_H__ // If we aren't included by console.dll
91 /* FUNCTIONS ******************************************************************/
94 GuiConsoleReadUserSettings(IN OUT PGUI_CONSOLE_INFO TermInfo
,
95 IN LPCWSTR ConsoleTitle
,
98 GuiConsoleWriteUserSettings(IN OUT PGUI_CONSOLE_INFO TermInfo
,
99 IN LPCWSTR ConsoleTitle
,
102 GuiConsoleGetDefaultSettings(IN OUT PGUI_CONSOLE_INFO TermInfo
,
105 GuiConsoleShowConsoleProperties(PGUI_CONSOLE_DATA GuiData
,
108 GuiApplyUserSettings(PGUI_CONSOLE_DATA GuiData
,
109 HANDLE hClientSection
,
112 GuiApplyWindowsConsoleSettings(PGUI_CONSOLE_DATA GuiData
,
113 HANDLE hClientSection
);