ReactOS 0.4.15-dev-5896-g3f5bcf5
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
15typedef enum _USERPREFMASKS
16{
25 UPM_RESERVED = 0x100,
26 UPM_MENUFADE = 0x200,
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
39typedef enum
40{
45 wmFill
47
48typedef 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
170typedef union _SPIBUFFER
171{
172 char ach[1];
181 NONCLIENTMETRICSW ncmetrics;
183 ICONMETRICSW iconmetrics;
186#if(WINVER >= 0x0600)
187 AUDIODESCRIPTION audiodescription;
188#endif
190
191extern SPIVALUES gspv;
193
195#define SPITESTPREF(x) (gspv.dwUserPrefMask & x ? 1 : 0)
#define MAX_PATH
Definition: compat.h:34
unsigned int BOOL
Definition: ntddk_ex.h:94
unsigned long DWORD
Definition: ntddk_ex.h:95
UINT_PTR HKL
Definition: msctf.idl:104
unsigned int UINT
Definition: ndis.h:50
INT iMouseHoverWidth
Definition: sysparams.h:85
INT iDragHeight
Definition: sysparams.h:92
MINIMIZEDMETRICS mm
Definition: sysparams.h:52
BOOL bFontSmoothing
Definition: sysparams.h:125
WALLPAPER_MODE WallpaperMode
Definition: sysparams.h:144
BOOL bScreenReader
Definition: sysparams.h:60
FILTERKEYS filterkeys
Definition: sysparams.h:100
UINT uiFocusBorderHeight
Definition: sysparams.h:55
UINT uiFocusBorderWidth
Definition: sysparams.h:54
TEXTMETRICW tmCaptionFont
Definition: sysparams.h:139
NONCLIENTMETRICSW ncm
Definition: sysparams.h:51
DWORD dwMenuShowDelay
Definition: sysparams.h:131
MOUSEKEYS mousekeys
Definition: sysparams.h:76
BOOL bHandHeld
Definition: sysparams.h:148
INT iWheelScrollLines
Definition: sysparams.h:94
INT iKbdDelay
Definition: sysparams.h:107
INT iDblClickHeight
Definition: sysparams.h:89
BOOL bMouseBtnSwap
Definition: sysparams.h:82
SOUNDSENTRYW soundsentry
Definition: sysparams.h:70
UNICODE_STRING ustrWallpaper
Definition: sysparams.h:145
ULONG cxWallpaper
Definition: sysparams.h:143
SERIALKEYS serialkeys
Definition: sysparams.h:101
DWORD dwForegroundLockTimeout
Definition: sysparams.h:155
INT iDblClickTime
Definition: sysparams.h:90
STICKYKEYS stickykeys
Definition: sysparams.h:102
INT iLowPwrTimeout
Definition: sysparams.h:118
INT iScrSaverTimeout
Definition: sysparams.h:110
TEXTMETRICW tmMenuFont
Definition: sysparams.h:138
BOOL bSnapToDefBtn
Definition: sysparams.h:153
ICONMETRICSW im
Definition: sysparams.h:53
DWORD dwMouseClickLockTime
Definition: sysparams.h:79
BOOL bMouseClickLock
Definition: sysparams.h:77
BOOL bBeep
Definition: sysparams.h:72
DWORD dwKbdSpeed
Definition: sysparams.h:104
BOOL bMenuDropAlign
Definition: sysparams.h:130
DWORD dwUserPrefMask
Definition: sysparams.h:124
ULONG cyWallpaper
Definition: sysparams.h:143
INT iMouseHoverHeight
Definition: sysparams.h:86
ANIMATIONINFO animationinfo
Definition: sysparams.h:152
BOOL bLowPwrActive
Definition: sysparams.h:120
HIGHCONTRASTW highcontrast
Definition: sysparams.h:59
BOOL bMouseCursorShadow
Definition: sysparams.h:78
DWORD dwCaretWidth
Definition: sysparams.h:158
BOOL bShowSounds
Definition: sysparams.h:71
INT iDragWidth
Definition: sysparams.h:91
HANDLE hbmWallpaper
Definition: sysparams.h:142
WCHAR awcWallpaper[MAX_PATH+1]
Definition: sysparams.h:146
HKL hklDefInputLang
Definition: sysparams.h:106
INT iDblClickWidth
Definition: sysparams.h:88
BOOL bScrSaverRunning
Definition: sysparams.h:112
ACCESSTIMEOUT accesstimeout
Definition: sysparams.h:58
DWORD dwActiveTrackingTimeout
Definition: sysparams.h:156
UINT uiFontSmoothingContrast
Definition: sysparams.h:127
UINT uiGridGranularity
Definition: sysparams.h:150
BOOL bKbdPref
Definition: sysparams.h:105
DWORD dwForegroundFlashCount
Definition: sysparams.h:157
INT iMouseSpeed
Definition: sysparams.h:84
BOOL bSmoothScrolling
Definition: sysparams.h:83
UINT uiFontSmoothingType
Definition: sysparams.h:126
CURSORACCELERATION_INFO caiMouse
Definition: sysparams.h:75
BOOL bMouseVanish
Definition: sysparams.h:81
BOOL bScrSaverActive
Definition: sysparams.h:111
BOOL bBlockSendInputResets
Definition: sysparams.h:132
BOOL bPwrOffActive
Definition: sysparams.h:121
UINT uiFontSmoothingOrientation
Definition: sysparams.h:128
BOOL bDragFullWindows
Definition: sysparams.h:129
BOOL bMouseSonar
Definition: sysparams.h:80
INT iMouseTrails
Definition: sysparams.h:93
TOGGLEKEYS togglekeys
Definition: sysparams.h:103
INT iMouseHoverTime
Definition: sysparams.h:87
BOOL bFastTaskSwitch
Definition: sysparams.h:149
INT iPwrOffTimeout
Definition: sysparams.h:119
BOOL bShowImeUi
Definition: sysparams.h:154
BOOL InitSysParams()
enum _USERPREFMASKS USERPREFMASKS
BOOL g_PaintDesktopVersion
Definition: sysparams.c:19
union _SPIBUFFER SPIBUFFER
WALLPAPER_MODE
Definition: sysparams.h:40
@ wmCenter
Definition: sysparams.h:41
@ wmFill
Definition: sysparams.h:45
@ wmTile
Definition: sysparams.h:42
@ wmStretch
Definition: sysparams.h:43
@ wmFit
Definition: sysparams.h:44
struct _SPIVALUES SPIVALUES
_USERPREFMASKS
Definition: sysparams.h:16
@ UPM_MENUANIMATION
Definition: sysparams.h:18
@ UPM_TOOLTIPANIMATION
Definition: sysparams.h:28
@ UPM_COMBOBOXANIMATION
Definition: sysparams.h:19
@ UPM_CLICKLOCK
Definition: sysparams.h:31
@ UPM_DEFAULT
Definition: sysparams.h:36
@ UPM_TOOLTIPFADE
Definition: sysparams.h:29
@ UPM_RESERVED
Definition: sysparams.h:25
@ UPM_FLATMENU
Definition: sysparams.h:32
@ UPM_ACTIVEWINDOWTRACKING
Definition: sysparams.h:17
@ UPM_CURSORSHADOW
Definition: sysparams.h:30
@ UPM_DROPSHADOW
Definition: sysparams.h:33
@ UPM_GRADIENTCAPTIONS
Definition: sysparams.h:21
@ UPM_KEYBOARDCUES
Definition: sysparams.h:22
@ UPM_MENUFADE
Definition: sysparams.h:26
@ UPM_UIEFFECTS
Definition: sysparams.h:35
@ UPM_SELECTIONFADE
Definition: sysparams.h:27
@ UPM_HOTTRACKING
Definition: sysparams.h:24
@ UPM_LISTBOXSMOOTHSCROLLING
Definition: sysparams.h:20
@ UPM_ACTIVEWNDTRKZORDER
Definition: sysparams.h:23
SPIVALUES gspv
Definition: sysparams.c:17
struct _SPIVALUES * PSPIVALUES
int32_t INT
Definition: typedefs.h:58
uint32_t ULONG
Definition: typedefs.h:59
SOUNDSENTRYW soundsentry
Definition: sysparams.h:180
SERIALKEYS serialkeys
Definition: sysparams.h:179
MINIMIZEDMETRICS mmmetrics
Definition: sysparams.h:182
WCHAR awcWallpaper[MAX_PATH+1]
Definition: sysparams.h:173
ANIMATIONINFO animationinfo
Definition: sysparams.h:185
MOUSEKEYS mousekeys
Definition: sysparams.h:176
char ach[1]
Definition: sysparams.h:172
ACCESSTIMEOUT accesstimeout
Definition: sysparams.h:178
HIGHCONTRASTW highcontrast
Definition: sysparams.h:184
FILTERKEYS fiterkeys
Definition: sysparams.h:174
ICONMETRICSW iconmetrics
Definition: sysparams.h:183
STICKYKEYS stickykeys
Definition: sysparams.h:177
TOGGLEKEYS togglekeys
Definition: sysparams.h:175
NONCLIENTMETRICSW ncmetrics
Definition: sysparams.h:181
__wchar_t WCHAR
Definition: xmlstorage.h:180