2 * COPYRIGHT: See COPYING in the top level directory
3 * PROJECT: ReactOS Console Server DLL
4 * FILE: consrv/include/settings.h
5 * PURPOSE: Public Console Settings Management Interface
6 * PROGRAMMERS: Johannes Anderwald
7 * Hermes Belusca-Maito (hermes.belusca@sfr.fr)
12 #include "concfg/settings.h"
14 /* MACROS *********************************************************************/
16 // WARNING! Redefinitions of macros from concfg/settings.h
19 * BYTE Foreground = LOBYTE(Attributes) & 0x0F;
20 * BYTE Background = (LOBYTE(Attributes) & 0xF0) >> 4;
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))
27 /* FUNCTIONS ******************************************************************/
29 VOID
ConSrvApplyUserSettings(IN PCONSOLE Console
,
30 IN PCONSOLE_STATE_INFO ConsoleInfo
);