ReactOS  0.4.13-dev-544-gede3fdd
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 
31 
32 /* EOF */
#define IN
Definition: typedefs.h:38
VOID ConSrvApplyUserSettings(IN PCONSOLE Console, IN PCONSOLE_STATE_INFO ConsoleInfo)
Definition: settings.c:34
static CONSOLE_SCREEN_BUFFER_INFO ConsoleInfo
Definition: video.c:47
CConsole Console