ReactOS  0.4.14-dev-833-g5f692ed
guisettings.h
Go to the documentation of this file.
1 /*
2  * COPYRIGHT: See COPYING in the top level directory
3  * PROJECT: ReactOS Console Server DLL
4  * FILE: win32ss/user/winsrv/consrv_new/frontends/gui/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;
29 
30  BOOL FullScreen; /* Whether the console is displayed in full-screen or windowed mode */
31 // ULONG HardwareState; /* _GDI_MANAGED, _DIRECT */
32 
37 
38 #ifndef CONSOLE_H__ // If we aren't included by console.dll
39 
40 typedef struct _GUI_CONSOLE_DATA
41 {
46 
47  HWND hWindow; /* Handle to the console's window */
48  HICON hIcon; /* Handle to the console's icon (big) */
49  HICON hIconSm; /* Handle to the console's icon (small) */
50 
51  HCURSOR hCursor; /* Handle to the mouse cursor */
52  INT MouseCursorRefCount; /* The reference counter associated with the mouse cursor. >= 0 and the cursor is shown; < 0 and the cursor is hidden. */
53  BOOL IgnoreNextMouseSignal; /* Used in cases where we don't want to treat a mouse signal */
54 
55  BOOL IsCloseButtonEnabled; /* TRUE if the Close button and the corresponding system menu item are enabled (default), FALSE otherwise */
56  UINT cmdIdLow ; /* Lowest menu id of the user-reserved menu id range */
57  UINT cmdIdHigh; /* Highest menu id of the user-reserved menu id range */
58 
59 // COLORREF Colors[16];
60 
61 // PVOID ScreenBuffer; /* Hardware screen buffer */
62 
63  HFONT Font;
66 
67  PCONSOLE Console; /* Pointer to the owned console */
68  GUI_CONSOLE_INFO GuiInfo; /* GUI terminal settings */
70 
71 /* FUNCTIONS ******************************************************************/
72 
73 BOOL
75  IN LPCWSTR ConsoleTitle,
77 BOOL
79  IN LPCWSTR ConsoleTitle,
81 VOID
84 VOID
86  BOOL Defaults);
89  HANDLE hClientSection,
91 
92 #endif
93 
94 /* EOF */
#define IN
Definition: typedefs.h:38
IN PLARGE_INTEGER IN PLARGE_INTEGER PEPROCESS ProcessId
Definition: fatprocs.h:2697
static HICON
Definition: imagelist.c:84
#define LF_FACESIZE
Definition: dimm.idl:39
INT MouseCursorRefCount
Definition: conwnd.h:71
HANDLE hGuiInitEvent
Definition: conwnd.h:44
BOOL IsCloseButtonEnabled
Definition: conwnd.h:77
struct _GUI_CONSOLE_DATA GUI_CONSOLE_DATA
const WCHAR * LPCWSTR
Definition: xmlstorage.h:185
LONG NTSTATUS
Definition: precomp.h:26
BOOL IgnoreNextMouseSignal
Definition: conwnd.h:72
HICON HCURSOR
Definition: windef.h:299
struct _GUI_CONSOLE_INFO GUI_CONSOLE_INFO
int32_t INT
Definition: typedefs.h:56
void SaveSettings(void)
Definition: settings.c:115
BOOL WindowSizeLock
Definition: conwnd.h:43
UINT CharHeight
Definition: conwnd.h:87
PCONSOLE Console
Definition: guisettings.h:67
BOOL GuiConsoleReadUserSettings(IN OUT PGUI_CONSOLE_INFO TermInfo)
Definition: guisettings.c:24
unsigned int BOOL
Definition: ntddk_ex.h:94
HICON hIconSm
Definition: conwnd.h:67
VOID GuiConsoleGetDefaultSettings(IN OUT PGUI_CONSOLE_INFO TermInfo)
Definition: guisettings.c:38
VOID GuiApplyUserSettings(PGUI_CONSOLE_DATA GuiData, HANDLE hClientSection)
Definition: guisettings.c:258
BOOL GuiConsoleWriteUserSettings(IN OUT PGUI_CONSOLE_INFO TermInfo)
Definition: guisettings.c:31
HFONT Font[FONT_MAXNO]
Definition: conwnd.h:85
__wchar_t WCHAR
Definition: xmlstorage.h:180
POINT OldCursor
Definition: conwnd.h:54
unsigned short WORD
Definition: ntddk_ex.h:93
unsigned long DWORD
Definition: ntddk_ex.h:95
CRITICAL_SECTION Lock
Definition: conwnd.h:42
struct _GUI_CONSOLE_INFO * PGUI_CONSOLE_INFO
VOID GuiConsoleShowConsoleProperties(PGUI_CONSOLE_DATA GuiData, BOOL Defaults)
Definition: guisettings.c:44
unsigned int UINT
Definition: ndis.h:50
WCHAR FaceName[LF_FACESIZE]
Definition: guisettings.h:18
UINT CharWidth
Definition: conwnd.h:86
HCURSOR hCursor
Definition: conwnd.h:70
GUI_CONSOLE_INFO GuiInfo
Definition: conwnd.h:96
static DWORD *static HFONT(WINAPI *pCreateFontIndirectExA)(const ENUMLOGFONTEXDVA *)
#define OUT
Definition: typedefs.h:39
struct _GUI_CONSOLE_DATA * PGUI_CONSOLE_DATA