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
];
38 BOOL FullScreen
; /* Whether the console is displayed in full-screen or windowed mode */
39 // ULONG HardwareState; /* _GDI_MANAGED, _DIRECT */
44 } GUI_CONSOLE_INFO
, *PGUI_CONSOLE_INFO
;
47 * Undocumented structure used by Windows' console.dll for setting console info.
48 * See http://www.catch22.net/sites/default/source/files/setconsoleinfo.c
49 * and http://www.scn.rain.com/~neighorn/PDF/MSBugPaper.pdf
50 * for more information.
53 typedef struct _CONSOLE_STATE_INFO
56 COORD ScreenBufferSize
;
58 POINT WindowPosition
; // WindowPosX and Y
63 WCHAR FaceName
[LF_FACESIZE
];
71 USHORT ScreenColors
; // ScreenAttributes
72 USHORT PopupColors
; // PopupAttributes
74 ULONG HistoryBufferSize
;
75 ULONG NumberOfHistoryBuffers
;
77 COLORREF ColorTable
[16];
82 WCHAR ConsoleTitle
[256];
83 } CONSOLE_STATE_INFO
, *PCONSOLE_STATE_INFO
;
86 #ifndef CONSOLE_H__ // If we aren't included by console.dll
90 /* FUNCTIONS ******************************************************************/
93 GuiConsoleReadUserSettings(IN OUT PGUI_CONSOLE_INFO TermInfo
,
94 IN LPCWSTR ConsoleTitle
,
97 GuiConsoleWriteUserSettings(IN OUT PGUI_CONSOLE_INFO TermInfo
,
98 IN LPCWSTR ConsoleTitle
,
101 GuiConsoleGetDefaultSettings(IN OUT PGUI_CONSOLE_INFO TermInfo
,
104 GuiConsoleShowConsoleProperties(PGUI_CONSOLE_DATA GuiData
,
107 GuiApplyUserSettings(PGUI_CONSOLE_DATA GuiData
,
108 HANDLE hClientSection
,
111 GuiApplyWindowsConsoleSettings(PGUI_CONSOLE_DATA GuiData
,
112 HANDLE hClientSection
);