Update for rapps database.
[reactos.git] / reactos / 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 typedef struct _GUI_CONSOLE_DATA
41 {
42 CRITICAL_SECTION Lock;
43 BOOL WindowSizeLock;
44
45 HANDLE hGuiInitEvent;
46 POINT OldCursor;
47
48 HWND hWindow; /* Handle to the console's window */
49 HICON hIcon; /* Handle to the console's icon (big) */
50 HICON hIconSm; /* Handle to the console's icon (small) */
51
52 HPALETTE hSysPalette; /* Handle to the original system palette */
53
54 /*** The following may be put per-screen-buffer !! ***/
55 HCURSOR hCursor; /* Handle to the mouse cursor */
56 INT MouseCursorRefCount; /* The reference counter associated with the mouse cursor. >= 0 and the cursor is shown; < 0 and the cursor is hidden. */
57 BOOL IgnoreNextMouseSignal; /* Used in cases where we don't want to treat a mouse signal */
58
59 BOOL IsCloseButtonEnabled; /* TRUE if the Close button and the corresponding system menu item are enabled (default), FALSE otherwise */
60 UINT cmdIdLow ; /* Lowest menu id of the user-reserved menu id range */
61 UINT cmdIdHigh; /* Highest menu id of the user-reserved menu id range */
62
63 // COLORREF Colors[16];
64
65 // PVOID ScreenBuffer; /* Hardware screen buffer */
66
67 HFONT Font;
68 UINT CharWidth;
69 UINT CharHeight;
70 /*****************************************************/
71
72 PCONSOLE Console; /* Pointer to the owned console */
73 PCONSOLE_SCREEN_BUFFER ActiveBuffer; /* Pointer to the active screen buffer (then maybe the previous Console member is redundant?? Or not...) */
74
75 GUI_CONSOLE_INFO GuiInfo; /* GUI terminal settings */
76 } GUI_CONSOLE_DATA, *PGUI_CONSOLE_DATA;
77
78 /* FUNCTIONS ******************************************************************/
79
80 BOOL
81 GuiConsoleReadUserSettings(IN OUT PGUI_CONSOLE_INFO TermInfo,
82 IN LPCWSTR ConsoleTitle,
83 IN DWORD ProcessId);
84 BOOL
85 GuiConsoleWriteUserSettings(IN OUT PGUI_CONSOLE_INFO TermInfo,
86 IN LPCWSTR ConsoleTitle,
87 IN DWORD ProcessId);
88 VOID
89 GuiConsoleGetDefaultSettings(IN OUT PGUI_CONSOLE_INFO TermInfo,
90 IN DWORD ProcessId);
91 VOID
92 GuiConsoleShowConsoleProperties(PGUI_CONSOLE_DATA GuiData,
93 BOOL Defaults);
94 NTSTATUS
95 GuiApplyUserSettings(PGUI_CONSOLE_DATA GuiData,
96 HANDLE hClientSection,
97 BOOL SaveSettings);
98
99 #endif
100
101 /* EOF */