Sync with trunk r63383 .
[reactos.git] / win32ss / user / winsrv / consrv / frontends / gui / guisettings.h
1 /*
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)
8 *
9 * NOTE: Also used by console.dll
10 */
11
12 #pragma once
13
14 #ifndef WM_APP
15 #define WM_APP 0x8000
16 #endif
17 #define PM_APPLY_CONSOLE_INFO (WM_APP + 100)
18
19 /* STRUCTURES *****************************************************************/
20
21 typedef struct _GUI_CONSOLE_INFO
22 {
23 // FONTSIGNATURE FontSignature;
24 WCHAR FaceName[LF_FACESIZE];
25 UINT FontFamily;
26 DWORD FontSize;
27 DWORD FontWeight;
28 BOOL UseRasterFonts;
29
30 BOOL FullScreen; /* Whether the console is displayed in full-screen or windowed mode */
31 // ULONG HardwareState; /* _GDI_MANAGED, _DIRECT */
32
33 WORD ShowWindow;
34 BOOL AutoPosition;
35 POINT WindowOrigin;
36 } GUI_CONSOLE_INFO, *PGUI_CONSOLE_INFO;
37
38 #ifndef CONSOLE_H__ // If we aren't included by console.dll
39
40 #include "conwnd.h"
41
42 /* FUNCTIONS ******************************************************************/
43
44 BOOL
45 GuiConsoleReadUserSettings(IN OUT PGUI_CONSOLE_INFO TermInfo,
46 IN LPCWSTR ConsoleTitle,
47 IN DWORD ProcessId);
48 BOOL
49 GuiConsoleWriteUserSettings(IN OUT PGUI_CONSOLE_INFO TermInfo,
50 IN LPCWSTR ConsoleTitle,
51 IN DWORD ProcessId);
52 VOID
53 GuiConsoleGetDefaultSettings(IN OUT PGUI_CONSOLE_INFO TermInfo,
54 IN DWORD ProcessId);
55 VOID
56 GuiConsoleShowConsoleProperties(PGUI_CONSOLE_DATA GuiData,
57 BOOL Defaults);
58 VOID
59 GuiApplyUserSettings(PGUI_CONSOLE_DATA GuiData,
60 HANDLE hClientSection,
61 BOOL SaveSettings);
62
63 #endif
64
65 /* EOF */