ReactOS
0.4.16-dev-2-g02a6913
settings.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/include/settings.h
5
* PURPOSE: Public Console Settings Management Interface
6
* PROGRAMMERS: Johannes Anderwald
7
* Hermes Belusca-Maito (hermes.belusca@sfr.fr)
8
*/
9
10
#pragma once
11
12
#include "
concfg/settings.h
"
13
14
/* MACROS *********************************************************************/
15
16
// WARNING! Redefinitions of macros from concfg/settings.h
17
18
/*
19
* BYTE Foreground = LOBYTE(Attributes) & 0x0F;
20
* BYTE Background = (LOBYTE(Attributes) & 0xF0) >> 4;
21
*/
22
#define RGBFromAttrib(Console, Attribute) ((Console)->Colors[(Attribute) & 0xF])
23
#define TextAttribFromAttrib(Attribute) ( !((Attribute) & COMMON_LVB_REVERSE_VIDEO) ? (Attribute) & 0xF : ((Attribute) >> 4) & 0xF )
24
#define BkgdAttribFromAttrib(Attribute) ( !((Attribute) & COMMON_LVB_REVERSE_VIDEO) ? ((Attribute) >> 4) & 0xF : (Attribute) & 0xF )
25
#define MakeAttrib(TextAttrib, BkgdAttrib) (USHORT)((((BkgdAttrib) & 0xF) << 4) | ((TextAttrib) & 0xF))
26
27
/* FUNCTIONS ******************************************************************/
28
29
VOID
30
ConSrvApplyUserSettings
(
31
IN
PCONSRV_CONSOLE
Console
,
32
IN
PCONSOLE_STATE_INFO
ConsoleInfo
);
33
34
/* EOF */
Console
CConsole Console
Definition:
RegistryExplorer.cpp:54
void
Definition:
nsiface.idl:2307
_CONSOLE_STATE_INFO
Definition:
settings.h:28
_CONSRV_CONSOLE
Definition:
conio_winsrv.h:114
ConsoleInfo
static CONSOLE_SCREEN_BUFFER_INFO ConsoleInfo
Definition:
video.c:47
IN
#define IN
Definition:
typedefs.h:39
settings.h
ConSrvApplyUserSettings
VOID ConSrvApplyUserSettings(IN PCONSRV_CONSOLE Console, IN PCONSOLE_STATE_INFO ConsoleInfo)
Definition:
settings.c:36
win32ss
user
winsrv
consrv
include
settings.h
Generated on Thu Sep 12 2024 06:15:37 for ReactOS by
1.9.6