ReactOS  0.4.13-dev-52-g0efcfec
sysparams.h
Go to the documentation of this file.
1 #pragma once
2 
3 // Create one struct
4 // Make usable for different users (multiple structs!)
5 
6 #define SPI_TABLE1_MIN 1
7 #define SPI_TABLE1_MAX 119
8 #define SPI_TABLE2_MIN 4096
9 #define SPI_TABLE2_MAX 4171
10 #define SPI_TABLE3_MIN 8192
11 #define SPI_TABLE3_MAX 8215
12 
13 #define SPIF_PROTECT 0x80000
14 
15 typedef enum _USERPREFMASKS
16 {
25  UPM_RESERVED = 0x100,
26  UPM_MENUFADE = 0x200,
29  UPM_TOOLTIPFADE = 0x1000,
30  UPM_CURSORSHADOW = 0x2000,
31  UPM_CLICKLOCK = 0x8000,
32  UPM_FLATMENU = 0x20000,
33  UPM_DROPSHADOW = 0x40000,
34  // room for more
35  UPM_UIEFFECTS = 0x80000000,
36  UPM_DEFAULT = 0x80003E9E
38 
39 typedef enum
40 {
41  wmCenter = 0,
47 
48 typedef struct _SPIVALUES
49 {
50  /* Metrics */
51  NONCLIENTMETRICSW ncm;
53  ICONMETRICSW im;
56 
57  /* Accessability */
61 #if(WINVER >= 0x0600)
62  AUDIODESCRIPTION audiodescription;
63  BOOL bClientAreaAnimation;
64  BOOL bDisableOverlappedContent;
65  ULONG ulMsgDuration;
66  BOOL bSpeechRecognition;
67 #endif
68 
69  /* Sound */
73 
74  /* Mouse */
95 #if (_WIN32_WINNT >= 0x0600)
96  UINT uiWheelScrollChars;
97 #endif
98 
99  /* Keyboard */
108 
109  /* Screen saver */
113 #if(WINVER >= 0x0600)
114  BOOL bScrSaverSecure;
115 #endif
116 
117  /* Power */
122 
123  /* UI Effects */
133 #if(_WIN32_WINNT >= 0x0600)
134  BOOL bClearType;
135 #endif
136 
137  /* Text metrics */
140 
141  /* Wallpaper */
147 
151 
159 
160 // SPI_LANGDRIVER
161 // SPI_SETDESKPATTERN
162 // SPI_SETPENWINDOWS
163 // SPI_SETCURSORS
164 // SPI_SETICONS
165 // SPI_SETLANGTOGGLE
166 // SPI_GETWINDOWSEXTENSION
167 
169 
170 typedef union _SPIBUFFER
171 {
172  char ach[1];
181  NONCLIENTMETRICSW ncmetrics;
183  ICONMETRICSW iconmetrics;
186 #if(WINVER >= 0x0600)
187  AUDIODESCRIPTION audiodescription;
188 #endif
189 } SPIBUFFER;
190 
191 extern SPIVALUES gspv;
193 
195 #define SPITESTPREF(x) (gspv.dwUserPrefMask & x ? 1 : 0)
SOUNDSENTRYW soundsentry
Definition: sysparams.h:70
HANDLE hbmWallpaper
Definition: sysparams.h:142
SPIVALUES gspv
Definition: sysparams.c:17
MOUSEKEYS mousekeys
Definition: sysparams.h:76
ULONG cyWallpaper
Definition: sysparams.h:143
UINT uiFocusBorderHeight
Definition: sysparams.h:55
struct _SPIVALUES * PSPIVALUES
DWORD dwMenuShowDelay
Definition: sysparams.h:131
FILTERKEYS filterkeys
Definition: sysparams.h:100
enum _USERPREFMASKS USERPREFMASKS
DWORD dwKbdSpeed
Definition: sysparams.h:104
DWORD dwCaretWidth
Definition: sysparams.h:158
HIGHCONTRASTW highcontrast
Definition: sysparams.h:184
WCHAR awcWallpaper[MAX_PATH+1]
Definition: sysparams.h:146
BOOL bMouseBtnSwap
Definition: sysparams.h:82
BOOL bDragFullWindows
Definition: sysparams.h:129
DWORD dwForegroundFlashCount
Definition: sysparams.h:157
INT iMouseSpeed
Definition: sysparams.h:84
UINT uiFontSmoothingType
Definition: sysparams.h:126
NONCLIENTMETRICSW ncm
Definition: sysparams.h:51
ANIMATIONINFO animationinfo
Definition: sysparams.h:152
INT iScrSaverTimeout
Definition: sysparams.h:110
STICKYKEYS stickykeys
Definition: sysparams.h:177
BOOL bPwrOffActive
Definition: sysparams.h:121
INT iWheelScrollLines
Definition: sysparams.h:94
DWORD dwMouseClickLockTime
Definition: sysparams.h:79
ACCESSTIMEOUT accesstimeout
Definition: sysparams.h:58
DWORD dwForegroundLockTimeout
Definition: sysparams.h:155
BOOL bScrSaverActive
Definition: sysparams.h:111
INT iLowPwrTimeout
Definition: sysparams.h:118
INT iMouseHoverHeight
Definition: sysparams.h:86
UINT uiFontSmoothingContrast
Definition: sysparams.h:127
BOOL bScrSaverRunning
Definition: sysparams.h:112
int32_t INT
Definition: typedefs.h:56
UINT uiFocusBorderWidth
Definition: sysparams.h:54
INT iKbdDelay
Definition: sysparams.h:107
SERIALKEYS serialkeys
Definition: sysparams.h:179
INT iMouseHoverWidth
Definition: sysparams.h:85
BOOL bMouseClickLock
Definition: sysparams.h:77
BOOL bSmoothScrolling
Definition: sysparams.h:83
ACCESSTIMEOUT accesstimeout
Definition: sysparams.h:178
INT iDblClickTime
Definition: sysparams.h:90
INT iDragHeight
Definition: sysparams.h:92
unsigned int BOOL
Definition: ntddk_ex.h:94
BOOL bSnapToDefBtn
Definition: sysparams.h:153
BOOL InitSysParams()
SERIALKEYS serialkeys
Definition: sysparams.h:101
BOOL bShowImeUi
Definition: sysparams.h:154
INT iDragWidth
Definition: sysparams.h:91
TEXTMETRICW tmCaptionFont
Definition: sysparams.h:139
BOOL bMouseCursorShadow
Definition: sysparams.h:78
WALLPAPER_MODE
Definition: sysparams.h:39
HKL hklDefInputLang
Definition: sysparams.h:106
BOOL bBlockSendInputResets
Definition: sysparams.h:132
struct _SPIVALUES SPIVALUES
MINIMIZEDMETRICS mmmetrics
Definition: sysparams.h:182
__wchar_t WCHAR
Definition: xmlstorage.h:180
UINT uiFontSmoothingOrientation
Definition: sysparams.h:128
BOOL bMouseVanish
Definition: sysparams.h:81
union _SPIBUFFER SPIBUFFER
#define MAX_PATH
Definition: compat.h:26
DWORD dwActiveTrackingTimeout
Definition: sysparams.h:156
BOOL bMouseSonar
Definition: sysparams.h:80
BOOL bShowSounds
Definition: sysparams.h:71
unsigned long DWORD
Definition: ntddk_ex.h:95
TOGGLEKEYS togglekeys
Definition: sysparams.h:103
INT iMouseHoverTime
Definition: sysparams.h:87
UNICODE_STRING ustrWallpaper
Definition: sysparams.h:145
ICONMETRICSW iconmetrics
Definition: sysparams.h:183
BOOL bMenuDropAlign
Definition: sysparams.h:130
UINT_PTR HKL
Definition: msctf.idl:101
BOOL bScreenReader
Definition: sysparams.h:60
BOOL bHandHeld
Definition: sysparams.h:148
BOOL bKbdPref
Definition: sysparams.h:105
STICKYKEYS stickykeys
Definition: sysparams.h:102
INT iDblClickHeight
Definition: sysparams.h:89
ICONMETRICSW im
Definition: sysparams.h:53
BOOL bFontSmoothing
Definition: sysparams.h:125
NONCLIENTMETRICSW ncmetrics
Definition: sysparams.h:181
unsigned int UINT
Definition: ndis.h:50
BOOL bFastTaskSwitch
Definition: sysparams.h:149
TEXTMETRICW tmMenuFont
Definition: sysparams.h:138
SOUNDSENTRYW soundsentry
Definition: sysparams.h:180
_USERPREFMASKS
Definition: sysparams.h:15
MOUSEKEYS mousekeys
Definition: sysparams.h:176
HIGHCONTRASTW highcontrast
Definition: sysparams.h:59
FILTERKEYS fiterkeys
Definition: sysparams.h:174
unsigned int ULONG
Definition: retypes.h:1
INT iMouseTrails
Definition: sysparams.h:93
INT iDblClickWidth
Definition: sysparams.h:88
WCHAR awcWallpaper[MAX_PATH+1]
Definition: sysparams.h:173
char ach[1]
Definition: sysparams.h:172
INT iPwrOffTimeout
Definition: sysparams.h:119
TOGGLEKEYS togglekeys
Definition: sysparams.h:175
BOOL bBeep
Definition: sysparams.h:72
ULONG cxWallpaper
Definition: sysparams.h:143
BOOL bLowPwrActive
Definition: sysparams.h:120
UINT uiGridGranularity
Definition: sysparams.h:150
WALLPAPER_MODE WallpaperMode
Definition: sysparams.h:144
DWORD dwUserPrefMask
Definition: sysparams.h:124
MINIMIZEDMETRICS mm
Definition: sysparams.h:52
CURSORACCELERATION_INFO caiMouse
Definition: sysparams.h:75
ANIMATIONINFO animationinfo
Definition: sysparams.h:185
BOOL g_PaintDesktopVersion
Definition: sysparams.c:19