Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
6456973f
Commit
6456973f
authored
Sep 21, 2020
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
user32: Use wide character string literals for system parameter entries.
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
5ad25c29
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
160 additions
and
272 deletions
+160
-272
sysparams.c
dlls/user32/sysparams.c
+160
-272
No files found.
dlls/user32/sysparams.c
View file @
6456973f
...
...
@@ -95,120 +95,6 @@ static const WCHAR *parameter_key_names[NB_PARAM_KEYS] =
L"Control Panel
\\
Accessibility
\\
AudioDescription"
,
};
/* parameter key values; the first char is actually an enum parameter_key to specify the key */
static
const
WCHAR
BEEP_VALNAME
[]
=
{
SOUND_KEY
,
'B'
,
'e'
,
'e'
,
'p'
,
0
};
static
const
WCHAR
MOUSETHRESHOLD1_VALNAME
[]
=
{
MOUSE_KEY
,
'M'
,
'o'
,
'u'
,
's'
,
'e'
,
'T'
,
'h'
,
'r'
,
'e'
,
's'
,
'h'
,
'o'
,
'l'
,
'd'
,
'1'
,
0
};
static
const
WCHAR
MOUSETHRESHOLD2_VALNAME
[]
=
{
MOUSE_KEY
,
'M'
,
'o'
,
'u'
,
's'
,
'e'
,
'T'
,
'h'
,
'r'
,
'e'
,
's'
,
'h'
,
'o'
,
'l'
,
'd'
,
'2'
,
0
};
static
const
WCHAR
MOUSEACCELERATION_VALNAME
[]
=
{
MOUSE_KEY
,
'M'
,
'o'
,
'u'
,
's'
,
'e'
,
'S'
,
'p'
,
'e'
,
'e'
,
'd'
,
0
};
static
const
WCHAR
BORDER_VALNAME
[]
=
{
METRICS_KEY
,
'B'
,
'o'
,
'r'
,
'd'
,
'e'
,
'r'
,
'W'
,
'i'
,
'd'
,
't'
,
'h'
,
0
};
static
const
WCHAR
KEYBOARDSPEED_VALNAME
[]
=
{
KEYBOARD_KEY
,
'K'
,
'e'
,
'y'
,
'b'
,
'o'
,
'a'
,
'r'
,
'd'
,
'S'
,
'p'
,
'e'
,
'e'
,
'd'
,
0
};
static
const
WCHAR
ICONHORIZONTALSPACING_VALNAME
[]
=
{
METRICS_KEY
,
'I'
,
'c'
,
'o'
,
'n'
,
'S'
,
'p'
,
'a'
,
'c'
,
'i'
,
'n'
,
'g'
,
0
};
static
const
WCHAR
SCREENSAVETIMEOUT_VALNAME
[]
=
{
DESKTOP_KEY
,
'S'
,
'c'
,
'r'
,
'e'
,
'e'
,
'n'
,
'S'
,
'a'
,
'v'
,
'e'
,
'T'
,
'i'
,
'm'
,
'e'
,
'O'
,
'u'
,
't'
,
0
};
static
const
WCHAR
SCREENSAVEACTIVE_VALNAME
[]
=
{
DESKTOP_KEY
,
'S'
,
'c'
,
'r'
,
'e'
,
'e'
,
'n'
,
'S'
,
'a'
,
'v'
,
'e'
,
'A'
,
'c'
,
't'
,
'i'
,
'v'
,
'e'
,
0
};
static
const
WCHAR
GRIDGRANULARITY_VALNAME
[]
=
{
DESKTOP_KEY
,
'G'
,
'r'
,
'i'
,
'd'
,
'G'
,
'r'
,
'a'
,
'n'
,
'u'
,
'l'
,
'a'
,
'r'
,
'i'
,
't'
,
'y'
,
0
};
static
const
WCHAR
KEYBOARDDELAY_VALNAME
[]
=
{
KEYBOARD_KEY
,
'K'
,
'e'
,
'y'
,
'b'
,
'o'
,
'a'
,
'r'
,
'd'
,
'D'
,
'e'
,
'l'
,
'a'
,
'y'
,
0
};
static
const
WCHAR
ICONVERTICALSPACING_VALNAME
[]
=
{
METRICS_KEY
,
'I'
,
'c'
,
'o'
,
'n'
,
'V'
,
'e'
,
'r'
,
't'
,
'i'
,
'c'
,
'a'
,
'l'
,
'S'
,
'p'
,
'a'
,
'c'
,
'i'
,
'n'
,
'g'
,
0
};
static
const
WCHAR
ICONTITLEWRAP_VALNAME
[]
=
{
DESKTOP_KEY
,
'I'
,
'c'
,
'o'
,
'n'
,
'T'
,
'i'
,
't'
,
'l'
,
'e'
,
'W'
,
'r'
,
'a'
,
'p'
,
0
};
static
const
WCHAR
ICONTITLEWRAP_MIRROR
[]
=
{
METRICS_KEY
,
'I'
,
'c'
,
'o'
,
'n'
,
'T'
,
'i'
,
't'
,
'l'
,
'e'
,
'W'
,
'r'
,
'a'
,
'p'
,
0
};
static
const
WCHAR
ICONTITLELOGFONT_VALNAME
[]
=
{
METRICS_KEY
,
'I'
,
'c'
,
'o'
,
'n'
,
'F'
,
'o'
,
'n'
,
't'
,
0
};
static
const
WCHAR
MENUDROPALIGNMENT_VALNAME
[]
=
{
DESKTOP_KEY
,
'M'
,
'e'
,
'n'
,
'u'
,
'D'
,
'r'
,
'o'
,
'p'
,
'A'
,
'l'
,
'i'
,
'g'
,
'n'
,
'm'
,
'e'
,
'n'
,
't'
,
0
};
static
const
WCHAR
MENUDROPALIGNMENT_MIRROR
[]
=
{
VERSION_KEY
,
'M'
,
'e'
,
'n'
,
'u'
,
'D'
,
'r'
,
'o'
,
'p'
,
'A'
,
'l'
,
'i'
,
'g'
,
'n'
,
'm'
,
'e'
,
'n'
,
't'
,
0
};
static
const
WCHAR
MOUSETRAILS_VALNAME
[]
=
{
MOUSE_KEY
,
'M'
,
'o'
,
'u'
,
's'
,
'e'
,
'T'
,
'r'
,
'a'
,
'i'
,
'l'
,
's'
,
0
};
static
const
WCHAR
SNAPTODEFBUTTON_VALNAME
[]
=
{
MOUSE_KEY
,
'S'
,
'n'
,
'a'
,
'p'
,
'T'
,
'o'
,
'D'
,
'e'
,
'f'
,
'a'
,
'u'
,
'l'
,
't'
,
'B'
,
'u'
,
't'
,
't'
,
'o'
,
'n'
,
0
};
static
const
WCHAR
DOUBLECLKWIDTH_VALNAME
[]
=
{
MOUSE_KEY
,
'D'
,
'o'
,
'u'
,
'b'
,
'l'
,
'e'
,
'C'
,
'l'
,
'i'
,
'c'
,
'k'
,
'W'
,
'i'
,
'd'
,
't'
,
'h'
,
0
};
static
const
WCHAR
DOUBLECLKWIDTH_MIRROR
[]
=
{
DESKTOP_KEY
,
'D'
,
'o'
,
'u'
,
'b'
,
'l'
,
'e'
,
'C'
,
'l'
,
'i'
,
'c'
,
'k'
,
'W'
,
'i'
,
'd'
,
't'
,
'h'
,
0
};
static
const
WCHAR
DOUBLECLKHEIGHT_VALNAME
[]
=
{
MOUSE_KEY
,
'D'
,
'o'
,
'u'
,
'b'
,
'l'
,
'e'
,
'C'
,
'l'
,
'i'
,
'c'
,
'k'
,
'H'
,
'e'
,
'i'
,
'g'
,
'h'
,
't'
,
0
};
static
const
WCHAR
DOUBLECLKHEIGHT_MIRROR
[]
=
{
DESKTOP_KEY
,
'D'
,
'o'
,
'u'
,
'b'
,
'l'
,
'e'
,
'C'
,
'l'
,
'i'
,
'c'
,
'k'
,
'H'
,
'e'
,
'i'
,
'g'
,
'h'
,
't'
,
0
};
static
const
WCHAR
DOUBLECLICKTIME_VALNAME
[]
=
{
MOUSE_KEY
,
'D'
,
'o'
,
'u'
,
'b'
,
'l'
,
'e'
,
'C'
,
'l'
,
'i'
,
'c'
,
'k'
,
'S'
,
'p'
,
'e'
,
'e'
,
'd'
,
0
};
static
const
WCHAR
MOUSEBUTTONSWAP_VALNAME
[]
=
{
MOUSE_KEY
,
'S'
,
'w'
,
'a'
,
'p'
,
'M'
,
'o'
,
'u'
,
's'
,
'e'
,
'B'
,
'u'
,
't'
,
't'
,
'o'
,
'n'
,
's'
,
0
};
static
const
WCHAR
DRAGFULLWINDOWS_VALNAME
[]
=
{
DESKTOP_KEY
,
'D'
,
'r'
,
'a'
,
'g'
,
'F'
,
'u'
,
'l'
,
'l'
,
'W'
,
'i'
,
'n'
,
'd'
,
'o'
,
'w'
,
's'
,
0
};
static
const
WCHAR
SHOWSOUNDS_VALNAME
[]
=
{
SHOWSOUNDS_KEY
,
'O'
,
'n'
,
0
};
static
const
WCHAR
KEYBOARDPREF_VALNAME
[]
=
{
KEYBOARDPREF_KEY
,
'O'
,
'n'
,
0
};
static
const
WCHAR
SCREENREADER_VALNAME
[]
=
{
SCREENREADER_KEY
,
'O'
,
'n'
,
0
};
static
const
WCHAR
DESKWALLPAPER_VALNAME
[]
=
{
DESKTOP_KEY
,
'W'
,
'a'
,
'l'
,
'l'
,
'p'
,
'a'
,
'p'
,
'e'
,
'r'
,
0
};
static
const
WCHAR
DESKPATTERN_VALNAME
[]
=
{
DESKTOP_KEY
,
'P'
,
'a'
,
't'
,
't'
,
'e'
,
'r'
,
'n'
,
0
};
static
const
WCHAR
FONTSMOOTHING_VALNAME
[]
=
{
DESKTOP_KEY
,
'F'
,
'o'
,
'n'
,
't'
,
'S'
,
'm'
,
'o'
,
'o'
,
't'
,
'h'
,
'i'
,
'n'
,
'g'
,
0
};
static
const
WCHAR
DRAGWIDTH_VALNAME
[]
=
{
DESKTOP_KEY
,
'D'
,
'r'
,
'a'
,
'g'
,
'W'
,
'i'
,
'd'
,
't'
,
'h'
,
0
};
static
const
WCHAR
DRAGHEIGHT_VALNAME
[]
=
{
DESKTOP_KEY
,
'D'
,
'r'
,
'a'
,
'g'
,
'H'
,
'e'
,
'i'
,
'g'
,
'h'
,
't'
,
0
};
static
const
WCHAR
DPISCALINGVER_VALNAME
[]
=
{
DESKTOP_KEY
,
'D'
,
'p'
,
'i'
,
'S'
,
'c'
,
'a'
,
'l'
,
'i'
,
'n'
,
'g'
,
'V'
,
'e'
,
'r'
,
0
};
static
const
WCHAR
LOGPIXELS_VALNAME
[]
=
{
DESKTOP_KEY
,
'L'
,
'o'
,
'g'
,
'P'
,
'i'
,
'x'
,
'e'
,
'l'
,
's'
,
0
};
static
const
WCHAR
LOWPOWERACTIVE_VALNAME
[]
=
{
DESKTOP_KEY
,
'L'
,
'o'
,
'w'
,
'P'
,
'o'
,
'w'
,
'e'
,
'r'
,
'A'
,
'c'
,
't'
,
'i'
,
'v'
,
'e'
,
0
};
static
const
WCHAR
POWEROFFACTIVE_VALNAME
[]
=
{
DESKTOP_KEY
,
'P'
,
'o'
,
'w'
,
'e'
,
'r'
,
'O'
,
'f'
,
'f'
,
'A'
,
'c'
,
't'
,
'i'
,
'v'
,
'e'
,
0
};
static
const
WCHAR
USERPREFERENCESMASK_VALNAME
[]
=
{
DESKTOP_KEY
,
'U'
,
's'
,
'e'
,
'r'
,
'P'
,
'r'
,
'e'
,
'f'
,
'e'
,
'r'
,
'e'
,
'n'
,
'c'
,
'e'
,
's'
,
'M'
,
'a'
,
's'
,
'k'
,
0
};
static
const
WCHAR
MOUSEHOVERWIDTH_VALNAME
[]
=
{
MOUSE_KEY
,
'M'
,
'o'
,
'u'
,
's'
,
'e'
,
'H'
,
'o'
,
'v'
,
'e'
,
'r'
,
'W'
,
'i'
,
'd'
,
't'
,
'h'
,
0
};
static
const
WCHAR
MOUSEHOVERHEIGHT_VALNAME
[]
=
{
MOUSE_KEY
,
'M'
,
'o'
,
'u'
,
's'
,
'e'
,
'H'
,
'o'
,
'v'
,
'e'
,
'r'
,
'H'
,
'e'
,
'i'
,
'g'
,
'h'
,
't'
,
0
};
static
const
WCHAR
MOUSEHOVERTIME_VALNAME
[]
=
{
MOUSE_KEY
,
'M'
,
'o'
,
'u'
,
's'
,
'e'
,
'H'
,
'o'
,
'v'
,
'e'
,
'r'
,
'T'
,
'i'
,
'm'
,
'e'
,
0
};
static
const
WCHAR
WHEELSCROLLCHARS_VALNAME
[]
=
{
DESKTOP_KEY
,
'W'
,
'h'
,
'e'
,
'e'
,
'l'
,
'S'
,
'c'
,
'r'
,
'o'
,
'l'
,
'l'
,
'C'
,
'h'
,
'a'
,
'r'
,
's'
,
0
};
static
const
WCHAR
WHEELSCROLLLINES_VALNAME
[]
=
{
DESKTOP_KEY
,
'W'
,
'h'
,
'e'
,
'e'
,
'l'
,
'S'
,
'c'
,
'r'
,
'o'
,
'l'
,
'l'
,
'L'
,
'i'
,
'n'
,
'e'
,
's'
,
0
};
static
const
WCHAR
ACTIVEWINDOWTRACKING_VALNAME
[]
=
{
MOUSE_KEY
,
'A'
,
'c'
,
't'
,
'i'
,
'v'
,
'e'
,
'W'
,
'i'
,
'n'
,
'd'
,
'o'
,
'w'
,
'T'
,
'r'
,
'a'
,
'c'
,
'k'
,
'i'
,
'n'
,
'g'
,
0
};
static
const
WCHAR
MENUSHOWDELAY_VALNAME
[]
=
{
DESKTOP_KEY
,
'M'
,
'e'
,
'n'
,
'u'
,
'S'
,
'h'
,
'o'
,
'w'
,
'D'
,
'e'
,
'l'
,
'a'
,
'y'
,
0
};
static
const
WCHAR
BLOCKSENDINPUTRESETS_VALNAME
[]
=
{
DESKTOP_KEY
,
'B'
,
'l'
,
'o'
,
'c'
,
'k'
,
'S'
,
'e'
,
'n'
,
'd'
,
'I'
,
'n'
,
'p'
,
'u'
,
't'
,
'R'
,
'e'
,
's'
,
'e'
,
't'
,
's'
,
0
};
static
const
WCHAR
FOREGROUNDLOCKTIMEOUT_VALNAME
[]
=
{
DESKTOP_KEY
,
'F'
,
'o'
,
'r'
,
'e'
,
'g'
,
'r'
,
'o'
,
'u'
,
'n'
,
'd'
,
'L'
,
'o'
,
'c'
,
'k'
,
'T'
,
'i'
,
'm'
,
'e'
,
'o'
,
'u'
,
't'
,
0
};
static
const
WCHAR
ACTIVEWNDTRKTIMEOUT_VALNAME
[]
=
{
DESKTOP_KEY
,
'A'
,
'c'
,
't'
,
'i'
,
'v'
,
'e'
,
'W'
,
'n'
,
'd'
,
'T'
,
'r'
,
'a'
,
'c'
,
'k'
,
'T'
,
'i'
,
'm'
,
'e'
,
'o'
,
'u'
,
't'
,
0
};
static
const
WCHAR
FOREGROUNDFLASHCOUNT_VALNAME
[]
=
{
DESKTOP_KEY
,
'F'
,
'o'
,
'r'
,
'e'
,
'g'
,
'r'
,
'o'
,
'u'
,
'n'
,
'd'
,
'F'
,
'l'
,
'a'
,
's'
,
'h'
,
'C'
,
'o'
,
'u'
,
'n'
,
't'
,
0
};
static
const
WCHAR
CARETWIDTH_VALNAME
[]
=
{
DESKTOP_KEY
,
'C'
,
'a'
,
'r'
,
'e'
,
't'
,
'W'
,
'i'
,
'd'
,
't'
,
'h'
,
0
};
static
const
WCHAR
MOUSECLICKLOCKTIME_VALNAME
[]
=
{
DESKTOP_KEY
,
'C'
,
'l'
,
'i'
,
'c'
,
'k'
,
'L'
,
'o'
,
'c'
,
'k'
,
'T'
,
'i'
,
'm'
,
'e'
,
0
};
static
const
WCHAR
MOUSESPEED_VALNAME
[]
=
{
MOUSE_KEY
,
'M'
,
'o'
,
'u'
,
's'
,
'e'
,
'S'
,
'e'
,
'n'
,
's'
,
'i'
,
't'
,
'i'
,
'v'
,
'i'
,
't'
,
'y'
,
0
};
static
const
WCHAR
FONTSMOOTHINGTYPE_VALNAME
[]
=
{
DESKTOP_KEY
,
'F'
,
'o'
,
'n'
,
't'
,
'S'
,
'm'
,
'o'
,
'o'
,
't'
,
'h'
,
'i'
,
'n'
,
'g'
,
'T'
,
'y'
,
'p'
,
'e'
,
0
};
static
const
WCHAR
FONTSMOOTHINGCONTRAST_VALNAME
[]
=
{
DESKTOP_KEY
,
'F'
,
'o'
,
'n'
,
't'
,
'S'
,
'm'
,
'o'
,
'o'
,
't'
,
'h'
,
'i'
,
'n'
,
'g'
,
'G'
,
'a'
,
'm'
,
'm'
,
'a'
,
0
};
static
const
WCHAR
FONTSMOOTHINGORIENTATION_VALNAME
[]
=
{
DESKTOP_KEY
,
'F'
,
'o'
,
'n'
,
't'
,
'S'
,
'm'
,
'o'
,
'o'
,
't'
,
'h'
,
'i'
,
'n'
,
'g'
,
'O'
,
'r'
,
'i'
,
'e'
,
'n'
,
't'
,
'a'
,
't'
,
'i'
,
'o'
,
'n'
,
0
};
static
const
WCHAR
FOCUSBORDERWIDTH_VALNAME
[]
=
{
DESKTOP_KEY
,
'F'
,
'o'
,
'c'
,
'u'
,
's'
,
'B'
,
'o'
,
'r'
,
'd'
,
'e'
,
'r'
,
'W'
,
'i'
,
'd'
,
't'
,
'h'
,
0
};
static
const
WCHAR
FOCUSBORDERHEIGHT_VALNAME
[]
=
{
DESKTOP_KEY
,
'F'
,
'o'
,
'c'
,
'u'
,
's'
,
'B'
,
'o'
,
'r'
,
'd'
,
'e'
,
'r'
,
'H'
,
'e'
,
'i'
,
'g'
,
'h'
,
't'
,
0
};
static
const
WCHAR
SCROLLWIDTH_VALNAME
[]
=
{
METRICS_KEY
,
'S'
,
'c'
,
'r'
,
'o'
,
'l'
,
'l'
,
'W'
,
'i'
,
'd'
,
't'
,
'h'
,
0
};
static
const
WCHAR
SCROLLHEIGHT_VALNAME
[]
=
{
METRICS_KEY
,
'S'
,
'c'
,
'r'
,
'o'
,
'l'
,
'l'
,
'H'
,
'e'
,
'i'
,
'g'
,
'h'
,
't'
,
0
};
static
const
WCHAR
CAPTIONWIDTH_VALNAME
[]
=
{
METRICS_KEY
,
'C'
,
'a'
,
'p'
,
't'
,
'i'
,
'o'
,
'n'
,
'W'
,
'i'
,
'd'
,
't'
,
'h'
,
0
};
static
const
WCHAR
CAPTIONHEIGHT_VALNAME
[]
=
{
METRICS_KEY
,
'C'
,
'a'
,
'p'
,
't'
,
'i'
,
'o'
,
'n'
,
'H'
,
'e'
,
'i'
,
'g'
,
'h'
,
't'
,
0
};
static
const
WCHAR
SMCAPTIONWIDTH_VALNAME
[]
=
{
METRICS_KEY
,
'S'
,
'm'
,
'C'
,
'a'
,
'p'
,
't'
,
'i'
,
'o'
,
'n'
,
'W'
,
'i'
,
'd'
,
't'
,
'h'
,
0
};
static
const
WCHAR
SMCAPTIONHEIGHT_VALNAME
[]
=
{
METRICS_KEY
,
'S'
,
'm'
,
'C'
,
'a'
,
'p'
,
't'
,
'i'
,
'o'
,
'n'
,
'H'
,
'e'
,
'i'
,
'g'
,
'h'
,
't'
,
0
};
static
const
WCHAR
MENUWIDTH_VALNAME
[]
=
{
METRICS_KEY
,
'M'
,
'e'
,
'n'
,
'u'
,
'W'
,
'i'
,
'd'
,
't'
,
'h'
,
0
};
static
const
WCHAR
MENUHEIGHT_VALNAME
[]
=
{
METRICS_KEY
,
'M'
,
'e'
,
'n'
,
'u'
,
'H'
,
'e'
,
'i'
,
'g'
,
'h'
,
't'
,
0
};
static
const
WCHAR
PADDEDBORDERWIDTH_VALNAME
[]
=
{
METRICS_KEY
,
'P'
,
'a'
,
'd'
,
'd'
,
'e'
,
'd'
,
'B'
,
'o'
,
'r'
,
'd'
,
'e'
,
'r'
,
'W'
,
'i'
,
'd'
,
't'
,
'h'
,
0
};
static
const
WCHAR
CAPTIONLOGFONT_VALNAME
[]
=
{
METRICS_KEY
,
'C'
,
'a'
,
'p'
,
't'
,
'i'
,
'o'
,
'n'
,
'F'
,
'o'
,
'n'
,
't'
,
0
};
static
const
WCHAR
SMCAPTIONLOGFONT_VALNAME
[]
=
{
METRICS_KEY
,
'S'
,
'm'
,
'C'
,
'a'
,
'p'
,
't'
,
'i'
,
'o'
,
'n'
,
'F'
,
'o'
,
'n'
,
't'
,
0
};
static
const
WCHAR
MENULOGFONT_VALNAME
[]
=
{
METRICS_KEY
,
'M'
,
'e'
,
'n'
,
'u'
,
'F'
,
'o'
,
'n'
,
't'
,
0
};
static
const
WCHAR
MESSAGELOGFONT_VALNAME
[]
=
{
METRICS_KEY
,
'M'
,
'e'
,
's'
,
's'
,
'a'
,
'g'
,
'e'
,
'F'
,
'o'
,
'n'
,
't'
,
0
};
static
const
WCHAR
STATUSLOGFONT_VALNAME
[]
=
{
METRICS_KEY
,
'S'
,
't'
,
'a'
,
't'
,
'u'
,
's'
,
'F'
,
'o'
,
'n'
,
't'
,
0
};
static
const
WCHAR
MINWIDTH_VALNAME
[]
=
{
METRICS_KEY
,
'M'
,
'i'
,
'n'
,
'W'
,
'i'
,
'd'
,
't'
,
'h'
,
0
};
static
const
WCHAR
MINHORZGAP_VALNAME
[]
=
{
METRICS_KEY
,
'M'
,
'i'
,
'n'
,
'H'
,
'o'
,
'r'
,
'z'
,
'G'
,
'a'
,
'p'
,
0
};
static
const
WCHAR
MINVERTGAP_VALNAME
[]
=
{
METRICS_KEY
,
'M'
,
'i'
,
'n'
,
'V'
,
'e'
,
'r'
,
't'
,
'G'
,
'a'
,
'p'
,
0
};
static
const
WCHAR
MINARRANGE_VALNAME
[]
=
{
METRICS_KEY
,
'M'
,
'i'
,
'n'
,
'A'
,
'r'
,
'r'
,
'a'
,
'n'
,
'g'
,
'e'
,
0
};
static
const
WCHAR
COLOR_SCROLLBAR_VALNAME
[]
=
{
COLORS_KEY
,
'S'
,
'c'
,
'r'
,
'o'
,
'l'
,
'l'
,
'b'
,
'a'
,
'r'
,
0
};
static
const
WCHAR
COLOR_BACKGROUND_VALNAME
[]
=
{
COLORS_KEY
,
'B'
,
'a'
,
'c'
,
'k'
,
'g'
,
'r'
,
'o'
,
'u'
,
'n'
,
'd'
,
0
};
static
const
WCHAR
COLOR_ACTIVECAPTION_VALNAME
[]
=
{
COLORS_KEY
,
'A'
,
'c'
,
't'
,
'i'
,
'v'
,
'e'
,
'T'
,
'i'
,
't'
,
'l'
,
'e'
,
0
};
static
const
WCHAR
COLOR_INACTIVECAPTION_VALNAME
[]
=
{
COLORS_KEY
,
'I'
,
'n'
,
'a'
,
'c'
,
't'
,
'i'
,
'v'
,
'e'
,
'T'
,
'i'
,
't'
,
'l'
,
'e'
,
0
};
static
const
WCHAR
COLOR_MENU_VALNAME
[]
=
{
COLORS_KEY
,
'M'
,
'e'
,
'n'
,
'u'
,
0
};
static
const
WCHAR
COLOR_WINDOW_VALNAME
[]
=
{
COLORS_KEY
,
'W'
,
'i'
,
'n'
,
'd'
,
'o'
,
'w'
,
0
};
static
const
WCHAR
COLOR_WINDOWFRAME_VALNAME
[]
=
{
COLORS_KEY
,
'W'
,
'i'
,
'n'
,
'd'
,
'o'
,
'w'
,
'F'
,
'r'
,
'a'
,
'm'
,
'e'
,
0
};
static
const
WCHAR
COLOR_MENUTEXT_VALNAME
[]
=
{
COLORS_KEY
,
'M'
,
'e'
,
'n'
,
'u'
,
'T'
,
'e'
,
'x'
,
't'
,
0
};
static
const
WCHAR
COLOR_WINDOWTEXT_VALNAME
[]
=
{
COLORS_KEY
,
'W'
,
'i'
,
'n'
,
'd'
,
'o'
,
'w'
,
'T'
,
'e'
,
'x'
,
't'
,
0
};
static
const
WCHAR
COLOR_CAPTIONTEXT_VALNAME
[]
=
{
COLORS_KEY
,
'T'
,
'i'
,
't'
,
'l'
,
'e'
,
'T'
,
'e'
,
'x'
,
't'
,
0
};
static
const
WCHAR
COLOR_ACTIVEBORDER_VALNAME
[]
=
{
COLORS_KEY
,
'A'
,
'c'
,
't'
,
'i'
,
'v'
,
'e'
,
'B'
,
'o'
,
'r'
,
'd'
,
'e'
,
'r'
,
0
};
static
const
WCHAR
COLOR_INACTIVEBORDER_VALNAME
[]
=
{
COLORS_KEY
,
'I'
,
'n'
,
'a'
,
'c'
,
't'
,
'i'
,
'v'
,
'e'
,
'B'
,
'o'
,
'r'
,
'd'
,
'e'
,
'r'
,
0
};
static
const
WCHAR
COLOR_APPWORKSPACE_VALNAME
[]
=
{
COLORS_KEY
,
'A'
,
'p'
,
'p'
,
'W'
,
'o'
,
'r'
,
'k'
,
'S'
,
'p'
,
'a'
,
'c'
,
'e'
,
0
};
static
const
WCHAR
COLOR_HIGHLIGHT_VALNAME
[]
=
{
COLORS_KEY
,
'H'
,
'i'
,
'l'
,
'i'
,
'g'
,
'h'
,
't'
,
0
};
static
const
WCHAR
COLOR_HIGHLIGHTTEXT_VALNAME
[]
=
{
COLORS_KEY
,
'H'
,
'i'
,
'l'
,
'i'
,
'g'
,
'h'
,
't'
,
'T'
,
'e'
,
'x'
,
't'
,
0
};
static
const
WCHAR
COLOR_BTNFACE_VALNAME
[]
=
{
COLORS_KEY
,
'B'
,
'u'
,
't'
,
't'
,
'o'
,
'n'
,
'F'
,
'a'
,
'c'
,
'e'
,
0
};
static
const
WCHAR
COLOR_BTNSHADOW_VALNAME
[]
=
{
COLORS_KEY
,
'B'
,
'u'
,
't'
,
't'
,
'o'
,
'n'
,
'S'
,
'h'
,
'a'
,
'd'
,
'o'
,
'w'
,
0
};
static
const
WCHAR
COLOR_GRAYTEXT_VALNAME
[]
=
{
COLORS_KEY
,
'G'
,
'r'
,
'a'
,
'y'
,
'T'
,
'e'
,
'x'
,
't'
,
0
};
static
const
WCHAR
COLOR_BTNTEXT_VALNAME
[]
=
{
COLORS_KEY
,
'B'
,
'u'
,
't'
,
't'
,
'o'
,
'n'
,
'T'
,
'e'
,
'x'
,
't'
,
0
};
static
const
WCHAR
COLOR_INACTIVECAPTIONTEXT_VALNAME
[]
=
{
COLORS_KEY
,
'I'
,
'n'
,
'a'
,
'c'
,
't'
,
'i'
,
'v'
,
'e'
,
'T'
,
'i'
,
't'
,
'l'
,
'e'
,
'T'
,
'e'
,
'x'
,
't'
,
0
};
static
const
WCHAR
COLOR_BTNHIGHLIGHT_VALNAME
[]
=
{
COLORS_KEY
,
'B'
,
'u'
,
't'
,
't'
,
'o'
,
'n'
,
'H'
,
'i'
,
'l'
,
'i'
,
'g'
,
'h'
,
't'
,
0
};
static
const
WCHAR
COLOR_3DDKSHADOW_VALNAME
[]
=
{
COLORS_KEY
,
'B'
,
'u'
,
't'
,
't'
,
'o'
,
'n'
,
'D'
,
'k'
,
'S'
,
'h'
,
'a'
,
'd'
,
'o'
,
'w'
,
0
};
static
const
WCHAR
COLOR_3DLIGHT_VALNAME
[]
=
{
COLORS_KEY
,
'B'
,
'u'
,
't'
,
't'
,
'o'
,
'n'
,
'L'
,
'i'
,
'g'
,
'h'
,
't'
,
0
};
static
const
WCHAR
COLOR_INFOTEXT_VALNAME
[]
=
{
COLORS_KEY
,
'I'
,
'n'
,
'f'
,
'o'
,
'T'
,
'e'
,
'x'
,
't'
,
0
};
static
const
WCHAR
COLOR_INFOBK_VALNAME
[]
=
{
COLORS_KEY
,
'I'
,
'n'
,
'f'
,
'o'
,
'W'
,
'i'
,
'n'
,
'd'
,
'o'
,
'w'
,
0
};
static
const
WCHAR
COLOR_ALTERNATEBTNFACE_VALNAME
[]
=
{
COLORS_KEY
,
'B'
,
'u'
,
't'
,
't'
,
'o'
,
'n'
,
'A'
,
'l'
,
't'
,
'e'
,
'r'
,
'n'
,
'a'
,
't'
,
'e'
,
'F'
,
'a'
,
'c'
,
'e'
,
0
};
static
const
WCHAR
COLOR_HOTLIGHT_VALNAME
[]
=
{
COLORS_KEY
,
'H'
,
'o'
,
't'
,
'T'
,
'r'
,
'a'
,
'c'
,
'k'
,
'i'
,
'n'
,
'g'
,
'C'
,
'o'
,
'l'
,
'o'
,
'r'
,
0
};
static
const
WCHAR
COLOR_GRADIENTACTIVECAPTION_VALNAME
[]
=
{
COLORS_KEY
,
'G'
,
'r'
,
'a'
,
'd'
,
'i'
,
'e'
,
'n'
,
't'
,
'A'
,
'c'
,
't'
,
'i'
,
'v'
,
'e'
,
'T'
,
'i'
,
't'
,
'l'
,
'e'
,
0
};
static
const
WCHAR
COLOR_GRADIENTINACTIVECAPTION_VALNAME
[]
=
{
COLORS_KEY
,
'G'
,
'r'
,
'a'
,
'd'
,
'i'
,
'e'
,
'n'
,
't'
,
'I'
,
'n'
,
'a'
,
'c'
,
't'
,
'i'
,
'v'
,
'e'
,
'T'
,
'i'
,
't'
,
'l'
,
'e'
,
0
};
static
const
WCHAR
COLOR_MENUHILIGHT_VALNAME
[]
=
{
COLORS_KEY
,
'M'
,
'e'
,
'n'
,
'u'
,
'H'
,
'i'
,
'l'
,
'i'
,
'g'
,
'h'
,
't'
,
0
};
static
const
WCHAR
COLOR_MENUBAR_VALNAME
[]
=
{
COLORS_KEY
,
'M'
,
'e'
,
'n'
,
'u'
,
'B'
,
'a'
,
'r'
,
0
};
static
const
WCHAR
AUDIODESC_LOCALE_VALNAME
[]
=
{
AUDIODESC_KEY
,
'L'
,
'o'
,
'c'
,
'a'
,
'l'
,
'e'
,
0
};
static
const
WCHAR
AUDIODESC_ON_VALNAME
[]
=
{
AUDIODESC_KEY
,
'O'
,
'n'
,
0
};
/* FIXME - real value */
static
const
WCHAR
SCREENSAVERRUNNING_VALNAME
[]
=
{
DESKTOP_KEY
,
'W'
,
'I'
,
'N'
,
'E'
,
'_'
,
'S'
,
'c'
,
'r'
,
'e'
,
'e'
,
'n'
,
'S'
,
'a'
,
'v'
,
'e'
,
'r'
,
'R'
,
'u'
,
'n'
,
'n'
,
'i'
,
'n'
,
'g'
,
0
};
DEFINE_DEVPROPKEY
(
DEVPROPKEY_GPU_LUID
,
0x60b193cb
,
0x5276
,
0x4d0f
,
0x96
,
0xfc
,
0xf1
,
0x73
,
0xab
,
0xad
,
0x3e
,
0xc6
,
2
);
DEFINE_DEVPROPKEY
(
DEVPROPKEY_MONITOR_GPU_LUID
,
0xca085853
,
0x16ce
,
0x48aa
,
0xb1
,
0x14
,
0xde
,
0x9c
,
0x72
,
0x33
,
0x42
,
0x23
,
1
);
DEFINE_DEVPROPKEY
(
DEVPROPKEY_MONITOR_OUTPUT_ID
,
0xca085853
,
0x16ce
,
0x48aa
,
0xb1
,
0x14
,
0xde
,
0x9c
,
0x72
,
0x33
,
0x42
,
0x23
,
2
);
...
...
@@ -263,12 +149,14 @@ union sysparam_all_entry;
struct
sysparam_entry
{
BOOL
(
*
get
)(
union
sysparam_all_entry
*
entry
,
UINT
int_param
,
void
*
ptr_param
,
UINT
dpi
);
BOOL
(
*
set
)(
union
sysparam_all_entry
*
entry
,
UINT
int_param
,
void
*
ptr_param
,
UINT
flags
);
BOOL
(
*
init
)(
union
sysparam_all_entry
*
entry
);
const
WCHAR
*
regval
;
const
WCHAR
*
mirror
;
BOOL
loaded
;
BOOL
(
*
get
)(
union
sysparam_all_entry
*
entry
,
UINT
int_param
,
void
*
ptr_param
,
UINT
dpi
);
BOOL
(
*
set
)(
union
sysparam_all_entry
*
entry
,
UINT
int_param
,
void
*
ptr_param
,
UINT
flags
);
BOOL
(
*
init
)(
union
sysparam_all_entry
*
entry
);
enum
parameter_key
base_key
;
const
WCHAR
*
regval
;
enum
parameter_key
mirror_key
;
const
WCHAR
*
mirror
;
BOOL
loaded
;
};
struct
sysparam_uint_entry
...
...
@@ -594,13 +482,13 @@ static DWORD load_entry( struct sysparam_entry *entry, void *data, DWORD size )
DWORD
type
,
count
;
HKEY
base_key
,
volatile_key
;
if
(
!
get_base_keys
(
entry
->
regval
[
0
]
,
&
base_key
,
&
volatile_key
))
return
FALSE
;
if
(
!
get_base_keys
(
entry
->
base_key
,
&
base_key
,
&
volatile_key
))
return
FALSE
;
count
=
size
;
if
(
RegQueryValueExW
(
volatile_key
,
entry
->
regval
+
1
,
NULL
,
&
type
,
data
,
&
count
))
if
(
RegQueryValueExW
(
volatile_key
,
entry
->
regval
,
NULL
,
&
type
,
data
,
&
count
))
{
count
=
size
;
if
(
RegQueryValueExW
(
base_key
,
entry
->
regval
+
1
,
NULL
,
&
type
,
data
,
&
count
))
count
=
0
;
if
(
RegQueryValueExW
(
base_key
,
entry
->
regval
,
NULL
,
&
type
,
data
,
&
count
))
count
=
0
;
}
/* make sure strings are null-terminated */
if
(
size
&&
count
==
size
&&
type
==
REG_SZ
)
((
WCHAR
*
)
data
)[
count
/
sizeof
(
WCHAR
)
-
1
]
=
0
;
...
...
@@ -616,17 +504,17 @@ static BOOL save_entry( const struct sysparam_entry *entry, const void *data, DW
if
(
flags
&
SPIF_UPDATEINIFILE
)
{
if
(
!
get_base_keys
(
entry
->
regval
[
0
]
,
&
base_key
,
&
volatile_key
))
return
FALSE
;
if
(
RegSetValueExW
(
base_key
,
entry
->
regval
+
1
,
0
,
type
,
data
,
size
))
return
FALSE
;
RegDeleteValueW
(
volatile_key
,
entry
->
regval
+
1
);
if
(
!
get_base_keys
(
entry
->
base_key
,
&
base_key
,
&
volatile_key
))
return
FALSE
;
if
(
RegSetValueExW
(
base_key
,
entry
->
regval
,
0
,
type
,
data
,
size
))
return
FALSE
;
RegDeleteValueW
(
volatile_key
,
entry
->
regval
);
if
(
entry
->
mirror
&&
get_base_keys
(
entry
->
mirror
[
0
]
,
&
base_key
,
NULL
))
RegSetValueExW
(
base_key
,
entry
->
mirror
+
1
,
0
,
type
,
data
,
size
);
if
(
entry
->
mirror
&&
get_base_keys
(
entry
->
mirror
_key
,
&
base_key
,
NULL
))
RegSetValueExW
(
base_key
,
entry
->
mirror
,
0
,
type
,
data
,
size
);
}
else
{
if
(
!
get_base_keys
(
entry
->
regval
[
0
]
,
NULL
,
&
volatile_key
))
return
FALSE
;
if
(
RegSetValueExW
(
volatile_key
,
entry
->
regval
+
1
,
0
,
type
,
data
,
size
))
return
FALSE
;
if
(
!
get_base_keys
(
entry
->
base_key
,
NULL
,
&
volatile_key
))
return
FALSE
;
if
(
RegSetValueExW
(
volatile_key
,
entry
->
regval
,
0
,
type
,
data
,
size
))
return
FALSE
;
}
return
TRUE
;
}
...
...
@@ -642,11 +530,11 @@ static BOOL init_entry( struct sysparam_entry *entry, const void *data, DWORD si
{
HKEY
base_key
;
if
(
!
get_base_keys
(
entry
->
regval
[
0
]
,
&
base_key
,
NULL
))
return
FALSE
;
if
(
!
RegQueryValueExW
(
base_key
,
entry
->
regval
+
1
,
NULL
,
NULL
,
NULL
,
NULL
))
return
TRUE
;
if
(
RegSetValueExW
(
base_key
,
entry
->
regval
+
1
,
0
,
type
,
data
,
size
))
return
FALSE
;
if
(
entry
->
mirror
&&
get_base_keys
(
entry
->
mirror
[
0
]
,
&
base_key
,
NULL
))
RegSetValueExW
(
base_key
,
entry
->
mirror
+
1
,
0
,
type
,
data
,
size
);
if
(
!
get_base_keys
(
entry
->
base_key
,
&
base_key
,
NULL
))
return
FALSE
;
if
(
!
RegQueryValueExW
(
base_key
,
entry
->
regval
,
NULL
,
NULL
,
NULL
,
NULL
))
return
TRUE
;
if
(
RegSetValueExW
(
base_key
,
entry
->
regval
,
0
,
type
,
data
,
size
))
return
FALSE
;
if
(
entry
->
mirror
&&
get_base_keys
(
entry
->
mirror
_key
,
&
base_key
,
NULL
))
RegSetValueExW
(
base_key
,
entry
->
mirror
,
0
,
type
,
data
,
size
);
entry
->
loaded
=
TRUE
;
return
TRUE
;
}
...
...
@@ -1041,8 +929,8 @@ static BOOL get_font_entry( union sysparam_all_entry *entry, UINT int_param, voi
break
;
default:
WARN
(
"Unknown format in key %s value %s
\n
"
,
debugstr_w
(
parameter_key_names
[
entry
->
hdr
.
regval
[
0
]
]
),
debugstr_w
(
entry
->
hdr
.
regval
+
1
));
debugstr_w
(
parameter_key_names
[
entry
->
hdr
.
base_key
]
),
debugstr_w
(
entry
->
hdr
.
regval
));
/* fall through */
case
0
:
/* use the default GUI font */
GetObjectW
(
GetStockObject
(
DEFAULT_GUI_FONT
),
sizeof
(
font
),
&
font
);
...
...
@@ -1218,138 +1106,138 @@ static BOOL set_entry( void *ptr, UINT int_param, void *ptr_param, UINT flags )
return
entry
->
hdr
.
set
(
entry
,
int_param
,
ptr_param
,
flags
);
}
#define UINT_ENTRY(name,val) \
#define UINT_ENTRY(name,val
,base,reg
) \
struct sysparam_uint_entry entry_##name = { { get_uint_entry, set_uint_entry, init_uint_entry, \
name ##_VALNAME
}, (val) }
base, reg
}, (val) }
#define UINT_ENTRY_MIRROR(name,val) \
#define UINT_ENTRY_MIRROR(name,val
,base,reg,mirror_base
) \
struct sysparam_uint_entry entry_##name = { { get_uint_entry, set_uint_entry, init_uint_entry, \
name ##_VALNAME, name ##_MIRROR
}, (val) }
base, reg, mirror_base, reg
}, (val) }
#define INT_ENTRY(name,val) \
#define INT_ENTRY(name,val
,base,reg
) \
struct sysparam_uint_entry entry_##name = { { get_uint_entry, set_int_entry, init_int_entry, \
name ##_VALNAME
}, (val) }
base, reg
}, (val) }
#define BOOL_ENTRY(name,val) \
#define BOOL_ENTRY(name,val
,base,reg
) \
struct sysparam_bool_entry entry_##name = { { get_bool_entry, set_bool_entry, init_bool_entry, \
name ##_VALNAME
}, (val) }
base, reg
}, (val) }
#define BOOL_ENTRY_MIRROR(name,val) \
#define BOOL_ENTRY_MIRROR(name,val
,base,reg,mirror_base
) \
struct sysparam_bool_entry entry_##name = { { get_bool_entry, set_bool_entry, init_bool_entry, \
name ##_VALNAME, name ##_MIRROR
}, (val) }
base, reg, mirror_base, reg
}, (val) }
#define YESNO_ENTRY(name,val) \
#define YESNO_ENTRY(name,val
,base,reg
) \
struct sysparam_bool_entry entry_##name = { { get_yesno_entry, set_yesno_entry, init_yesno_entry, \
name ##_VALNAME
}, (val) }
base, reg
}, (val) }
#define TWIPS_ENTRY(name,val) \
#define TWIPS_ENTRY(name,val
,base,reg
) \
struct sysparam_uint_entry entry_##name = { { get_twips_entry, set_twips_entry, init_int_entry, \
name ##_VALNAME
}, (val) }
base, reg
}, (val) }
#define DWORD_ENTRY(name,val) \
#define DWORD_ENTRY(name,val
,base,reg
) \
struct sysparam_dword_entry entry_##name = { { get_dword_entry, set_dword_entry, init_dword_entry, \
name ##_VALNAME
}, (val) }
base, reg
}, (val) }
#define BINARY_ENTRY(name,data) \
#define BINARY_ENTRY(name,data
,base,reg
) \
struct sysparam_binary_entry entry_##name = { { get_binary_entry, set_binary_entry, init_binary_entry, \
name ##_VALNAME
}, data, sizeof(data) }
base, reg
}, data, sizeof(data) }
#define PATH_ENTRY(name) \
#define PATH_ENTRY(name
,base,reg
) \
struct sysparam_path_entry entry_##name = { { get_path_entry, set_path_entry, init_path_entry, \
name ##_VALNAME
} }
base, reg
} }
#define FONT_ENTRY(name,weight) \
#define FONT_ENTRY(name,weight
,base,reg
) \
struct sysparam_font_entry entry_##name = { { get_font_entry, set_font_entry, init_font_entry, \
name ##_VALNAME
}, (weight) }
base, reg
}, (weight) }
#define USERPREF_ENTRY(name,offset,mask) \
struct sysparam_pref_entry entry_##name = { { get_userpref_entry, set_userpref_entry }, \
&entry_USERPREFERENCESMASK, (offset), (mask) }
static
UINT_ENTRY
(
DRAGWIDTH
,
4
);
static
UINT_ENTRY
(
DRAGHEIGHT
,
4
);
static
UINT_ENTRY
(
DOUBLECLICKTIME
,
500
);
static
UINT_ENTRY
(
FONTSMOOTHING
,
2
);
static
UINT_ENTRY
(
GRIDGRANULARITY
,
0
);
static
UINT_ENTRY
(
KEYBOARDDELAY
,
1
);
static
UINT_ENTRY
(
KEYBOARDSPEED
,
31
);
static
UINT_ENTRY
(
MENUSHOWDELAY
,
400
);
static
UINT_ENTRY
(
MINARRANGE
,
ARW_HIDE
);
static
UINT_ENTRY
(
MINHORZGAP
,
0
);
static
UINT_ENTRY
(
MINVERTGAP
,
0
);
static
UINT_ENTRY
(
MINWIDTH
,
154
);
static
UINT_ENTRY
(
MOUSEHOVERHEIGHT
,
4
);
static
UINT_ENTRY
(
MOUSEHOVERTIME
,
400
);
static
UINT_ENTRY
(
MOUSEHOVERWIDTH
,
4
);
static
UINT_ENTRY
(
MOUSESPEED
,
10
);
static
UINT_ENTRY
(
MOUSETRAILS
,
0
);
static
UINT_ENTRY
(
SCREENSAVETIMEOUT
,
300
);
static
UINT_ENTRY
(
WHEELSCROLLCHARS
,
3
);
static
UINT_ENTRY
(
WHEELSCROLLLINES
,
3
);
static
UINT_ENTRY_MIRROR
(
DOUBLECLKHEIGHT
,
4
);
static
UINT_ENTRY_MIRROR
(
DOUBLECLKWIDTH
,
4
);
static
UINT_ENTRY_MIRROR
(
MENUDROPALIGNMENT
,
0
);
static
INT_ENTRY
(
MOUSETHRESHOLD1
,
6
);
static
INT_ENTRY
(
MOUSETHRESHOLD2
,
10
);
static
INT_ENTRY
(
MOUSEACCELERATION
,
1
);
static
BOOL_ENTRY
(
BLOCKSENDINPUTRESETS
,
FALSE
);
static
BOOL_ENTRY
(
DRAGFULLWINDOWS
,
FALSE
);
static
BOOL_ENTRY
(
KEYBOARDPREF
,
TRUE
);
static
BOOL_ENTRY
(
LOWPOWERACTIVE
,
FALSE
);
static
BOOL_ENTRY
(
MOUSEBUTTONSWAP
,
FALSE
);
static
BOOL_ENTRY
(
POWEROFFACTIVE
,
FALSE
);
static
BOOL_ENTRY
(
SCREENREADER
,
FALSE
);
static
BOOL_ENTRY
(
SCREENSAVEACTIVE
,
TRUE
);
static
BOOL_ENTRY
(
SCREENSAVERRUNNING
,
FALSE
);
static
BOOL_ENTRY
(
SHOWSOUNDS
,
FALSE
);
static
BOOL_ENTRY
(
SNAPTODEFBUTTON
,
FALSE
);
static
BOOL_ENTRY_MIRROR
(
ICONTITLEWRAP
,
TRUE
);
static
BOOL_ENTRY
(
AUDIODESC_ON
,
FALSE
);
static
YESNO_ENTRY
(
BEEP
,
TRUE
);
static
TWIPS_ENTRY
(
BORDER
,
-
15
);
static
TWIPS_ENTRY
(
CAPTIONHEIGHT
,
-
270
);
static
TWIPS_ENTRY
(
CAPTIONWIDTH
,
-
270
);
static
TWIPS_ENTRY
(
ICONHORIZONTALSPACING
,
-
1125
);
static
TWIPS_ENTRY
(
ICONVERTICALSPACING
,
-
1125
);
static
TWIPS_ENTRY
(
MENUHEIGHT
,
-
270
);
static
TWIPS_ENTRY
(
MENUWIDTH
,
-
270
);
static
TWIPS_ENTRY
(
PADDEDBORDERWIDTH
,
0
);
static
TWIPS_ENTRY
(
SCROLLHEIGHT
,
-
240
);
static
TWIPS_ENTRY
(
SCROLLWIDTH
,
-
240
);
static
TWIPS_ENTRY
(
SMCAPTIONHEIGHT
,
-
225
);
static
TWIPS_ENTRY
(
SMCAPTIONWIDTH
,
-
225
);
static
DWORD_ENTRY
(
ACTIVEWINDOWTRACKING
,
0
);
static
DWORD_ENTRY
(
ACTIVEWNDTRKTIMEOUT
,
0
);
static
DWORD_ENTRY
(
CARETWIDTH
,
1
);
static
DWORD_ENTRY
(
DPISCALINGVER
,
0
);
static
DWORD_ENTRY
(
FOCUSBORDERHEIGHT
,
1
);
static
DWORD_ENTRY
(
FOCUSBORDERWIDTH
,
1
);
static
DWORD_ENTRY
(
FONTSMOOTHINGCONTRAST
,
0
);
static
DWORD_ENTRY
(
FONTSMOOTHINGORIENTATION
,
FE_FONTSMOOTHINGORIENTATIONRGB
);
static
DWORD_ENTRY
(
FONTSMOOTHINGTYPE
,
FE_FONTSMOOTHINGSTANDARD
);
static
DWORD_ENTRY
(
FOREGROUNDFLASHCOUNT
,
3
);
static
DWORD_ENTRY
(
FOREGROUNDLOCKTIMEOUT
,
0
);
static
DWORD_ENTRY
(
LOGPIXELS
,
0
);
static
DWORD_ENTRY
(
MOUSECLICKLOCKTIME
,
1200
);
static
DWORD_ENTRY
(
AUDIODESC_LOCALE
,
0
);
static
PATH_ENTRY
(
DESKPATTERN
);
static
PATH_ENTRY
(
DESKWALLPAPER
);
static
UINT_ENTRY
(
DRAGWIDTH
,
4
,
DESKTOP_KEY
,
L"DragWidth"
);
static
UINT_ENTRY
(
DRAGHEIGHT
,
4
,
DESKTOP_KEY
,
L"DragHeight"
);
static
UINT_ENTRY
(
DOUBLECLICKTIME
,
500
,
MOUSE_KEY
,
L"DoubleClickSpeed"
);
static
UINT_ENTRY
(
FONTSMOOTHING
,
2
,
DESKTOP_KEY
,
L"FontSmoothing"
);
static
UINT_ENTRY
(
GRIDGRANULARITY
,
0
,
DESKTOP_KEY
,
L"GridGranularity"
);
static
UINT_ENTRY
(
KEYBOARDDELAY
,
1
,
KEYBOARD_KEY
,
L"KeyboardDelay"
);
static
UINT_ENTRY
(
KEYBOARDSPEED
,
31
,
KEYBOARD_KEY
,
L"KeyboardSpeed"
);
static
UINT_ENTRY
(
MENUSHOWDELAY
,
400
,
DESKTOP_KEY
,
L"MenuShowDelay"
);
static
UINT_ENTRY
(
MINARRANGE
,
ARW_HIDE
,
METRICS_KEY
,
L"MinArrange"
);
static
UINT_ENTRY
(
MINHORZGAP
,
0
,
METRICS_KEY
,
L"MinHorzGap"
);
static
UINT_ENTRY
(
MINVERTGAP
,
0
,
METRICS_KEY
,
L"MinVertGap"
);
static
UINT_ENTRY
(
MINWIDTH
,
154
,
METRICS_KEY
,
L"MinWidth"
);
static
UINT_ENTRY
(
MOUSEHOVERHEIGHT
,
4
,
MOUSE_KEY
,
L"MouseHoverHeight"
);
static
UINT_ENTRY
(
MOUSEHOVERTIME
,
400
,
MOUSE_KEY
,
L"MouseHoverTime"
);
static
UINT_ENTRY
(
MOUSEHOVERWIDTH
,
4
,
MOUSE_KEY
,
L"MouseHoverWidth"
);
static
UINT_ENTRY
(
MOUSESPEED
,
10
,
MOUSE_KEY
,
L"MouseSensitivity"
);
static
UINT_ENTRY
(
MOUSETRAILS
,
0
,
MOUSE_KEY
,
L"MouseTrails"
);
static
UINT_ENTRY
(
SCREENSAVETIMEOUT
,
300
,
DESKTOP_KEY
,
L"ScreenSaveTimeOut"
);
static
UINT_ENTRY
(
WHEELSCROLLCHARS
,
3
,
DESKTOP_KEY
,
L"WheelScrollChars"
);
static
UINT_ENTRY
(
WHEELSCROLLLINES
,
3
,
DESKTOP_KEY
,
L"WheelScrollLines"
);
static
UINT_ENTRY_MIRROR
(
DOUBLECLKHEIGHT
,
4
,
MOUSE_KEY
,
L"DoubleClickHeight"
,
DESKTOP_KEY
);
static
UINT_ENTRY_MIRROR
(
DOUBLECLKWIDTH
,
4
,
MOUSE_KEY
,
L"DoubleClickWidth"
,
DESKTOP_KEY
);
static
UINT_ENTRY_MIRROR
(
MENUDROPALIGNMENT
,
0
,
DESKTOP_KEY
,
L"MenuDropAlignment"
,
VERSION_KEY
);
static
INT_ENTRY
(
MOUSETHRESHOLD1
,
6
,
MOUSE_KEY
,
L"MouseThreshold1"
);
static
INT_ENTRY
(
MOUSETHRESHOLD2
,
10
,
MOUSE_KEY
,
L"MouseThreshold2"
);
static
INT_ENTRY
(
MOUSEACCELERATION
,
1
,
MOUSE_KEY
,
L"MouseSpeed"
);
static
BOOL_ENTRY
(
BLOCKSENDINPUTRESETS
,
FALSE
,
DESKTOP_KEY
,
L"BlockSendInputResets"
);
static
BOOL_ENTRY
(
DRAGFULLWINDOWS
,
FALSE
,
DESKTOP_KEY
,
L"DragFullWindows"
);
static
BOOL_ENTRY
(
KEYBOARDPREF
,
TRUE
,
KEYBOARDPREF_KEY
,
L"On"
);
static
BOOL_ENTRY
(
LOWPOWERACTIVE
,
FALSE
,
DESKTOP_KEY
,
L"LowPowerActive"
);
static
BOOL_ENTRY
(
MOUSEBUTTONSWAP
,
FALSE
,
MOUSE_KEY
,
L"SwapMouseButtons"
);
static
BOOL_ENTRY
(
POWEROFFACTIVE
,
FALSE
,
DESKTOP_KEY
,
L"PowerOffActive"
);
static
BOOL_ENTRY
(
SCREENREADER
,
FALSE
,
SCREENREADER_KEY
,
L"On"
);
static
BOOL_ENTRY
(
SCREENSAVEACTIVE
,
TRUE
,
DESKTOP_KEY
,
L"ScreenSaveActive"
);
static
BOOL_ENTRY
(
SCREENSAVERRUNNING
,
FALSE
,
DESKTOP_KEY
,
L"WINE_ScreenSaverRunning"
);
/* FIXME - real value */
static
BOOL_ENTRY
(
SHOWSOUNDS
,
FALSE
,
SHOWSOUNDS_KEY
,
L"On"
);
static
BOOL_ENTRY
(
SNAPTODEFBUTTON
,
FALSE
,
MOUSE_KEY
,
L"SnapToDefaultButton"
);
static
BOOL_ENTRY_MIRROR
(
ICONTITLEWRAP
,
TRUE
,
DESKTOP_KEY
,
L"IconTitleWrap"
,
METRICS_KEY
);
static
BOOL_ENTRY
(
AUDIODESC_ON
,
FALSE
,
AUDIODESC_KEY
,
L"On"
);
static
YESNO_ENTRY
(
BEEP
,
TRUE
,
SOUND_KEY
,
L"Beep"
);
static
TWIPS_ENTRY
(
BORDER
,
-
15
,
METRICS_KEY
,
L"BorderWidth"
);
static
TWIPS_ENTRY
(
CAPTIONHEIGHT
,
-
270
,
METRICS_KEY
,
L"CaptionHeight"
);
static
TWIPS_ENTRY
(
CAPTIONWIDTH
,
-
270
,
METRICS_KEY
,
L"CaptionWidth"
);
static
TWIPS_ENTRY
(
ICONHORIZONTALSPACING
,
-
1125
,
METRICS_KEY
,
L"IconSpacing"
);
static
TWIPS_ENTRY
(
ICONVERTICALSPACING
,
-
1125
,
METRICS_KEY
,
L"IconVerticalSpacing"
);
static
TWIPS_ENTRY
(
MENUHEIGHT
,
-
270
,
METRICS_KEY
,
L"MenuHeight"
);
static
TWIPS_ENTRY
(
MENUWIDTH
,
-
270
,
METRICS_KEY
,
L"MenuWidth"
);
static
TWIPS_ENTRY
(
PADDEDBORDERWIDTH
,
0
,
METRICS_KEY
,
L"PaddedBorderWidth"
);
static
TWIPS_ENTRY
(
SCROLLHEIGHT
,
-
240
,
METRICS_KEY
,
L"ScrollHeight"
);
static
TWIPS_ENTRY
(
SCROLLWIDTH
,
-
240
,
METRICS_KEY
,
L"ScrollWidth"
);
static
TWIPS_ENTRY
(
SMCAPTIONHEIGHT
,
-
225
,
METRICS_KEY
,
L"SmCaptionHeight"
);
static
TWIPS_ENTRY
(
SMCAPTIONWIDTH
,
-
225
,
METRICS_KEY
,
L"SmCaptionWidth"
);
static
DWORD_ENTRY
(
ACTIVEWINDOWTRACKING
,
0
,
MOUSE_KEY
,
L"ActiveWindowTracking"
);
static
DWORD_ENTRY
(
ACTIVEWNDTRKTIMEOUT
,
0
,
DESKTOP_KEY
,
L"ActiveWndTrackTimeout"
);
static
DWORD_ENTRY
(
CARETWIDTH
,
1
,
DESKTOP_KEY
,
L"CaretWidth"
);
static
DWORD_ENTRY
(
DPISCALINGVER
,
0
,
DESKTOP_KEY
,
L"DpiScalingVer"
);
static
DWORD_ENTRY
(
FOCUSBORDERHEIGHT
,
1
,
DESKTOP_KEY
,
L"FocusBorderHeight"
);
static
DWORD_ENTRY
(
FOCUSBORDERWIDTH
,
1
,
DESKTOP_KEY
,
L"FocusBorderWidth"
);
static
DWORD_ENTRY
(
FONTSMOOTHINGCONTRAST
,
0
,
DESKTOP_KEY
,
L"FontSmoothingGamma"
);
static
DWORD_ENTRY
(
FONTSMOOTHINGORIENTATION
,
FE_FONTSMOOTHINGORIENTATIONRGB
,
DESKTOP_KEY
,
L"FontSmoothingOrientation"
);
static
DWORD_ENTRY
(
FONTSMOOTHINGTYPE
,
FE_FONTSMOOTHINGSTANDARD
,
DESKTOP_KEY
,
L"FontSmoothingType"
);
static
DWORD_ENTRY
(
FOREGROUNDFLASHCOUNT
,
3
,
DESKTOP_KEY
,
L"ForegroundFlashCount"
);
static
DWORD_ENTRY
(
FOREGROUNDLOCKTIMEOUT
,
0
,
DESKTOP_KEY
,
L"ForegroundLockTimeout"
);
static
DWORD_ENTRY
(
LOGPIXELS
,
0
,
DESKTOP_KEY
,
L"LogPixels"
);
static
DWORD_ENTRY
(
MOUSECLICKLOCKTIME
,
1200
,
DESKTOP_KEY
,
L"ClickLockTime"
);
static
DWORD_ENTRY
(
AUDIODESC_LOCALE
,
0
,
AUDIODESC_KEY
,
L"Locale"
);
static
PATH_ENTRY
(
DESKPATTERN
,
DESKTOP_KEY
,
L"Pattern"
);
static
PATH_ENTRY
(
DESKWALLPAPER
,
DESKTOP_KEY
,
L"Wallpaper"
);
static
BYTE
user_prefs
[
8
]
=
{
0x30
,
0x00
,
0x00
,
0x80
,
0x12
,
0x00
,
0x00
,
0x00
};
static
BINARY_ENTRY
(
USERPREFERENCESMASK
,
user_prefs
);
static
BINARY_ENTRY
(
USERPREFERENCESMASK
,
user_prefs
,
DESKTOP_KEY
,
L"UserPreferencesMask"
);
static
FONT_ENTRY
(
CAPTIONLOGFONT
,
FW_BOLD
);
static
FONT_ENTRY
(
ICONTITLELOGFONT
,
FW_NORMAL
);
static
FONT_ENTRY
(
MENULOGFONT
,
FW_NORMAL
);
static
FONT_ENTRY
(
MESSAGELOGFONT
,
FW_NORMAL
);
static
FONT_ENTRY
(
SMCAPTIONLOGFONT
,
FW_NORMAL
);
static
FONT_ENTRY
(
STATUSLOGFONT
,
FW_NORMAL
);
static
FONT_ENTRY
(
CAPTIONLOGFONT
,
FW_BOLD
,
METRICS_KEY
,
L"CaptionFont"
);
static
FONT_ENTRY
(
ICONTITLELOGFONT
,
FW_NORMAL
,
METRICS_KEY
,
L"IconFont"
);
static
FONT_ENTRY
(
MENULOGFONT
,
FW_NORMAL
,
METRICS_KEY
,
L"MenuFont"
);
static
FONT_ENTRY
(
MESSAGELOGFONT
,
FW_NORMAL
,
METRICS_KEY
,
L"MessageFont"
);
static
FONT_ENTRY
(
SMCAPTIONLOGFONT
,
FW_NORMAL
,
METRICS_KEY
,
L"SmCaptionFont"
);
static
FONT_ENTRY
(
STATUSLOGFONT
,
FW_NORMAL
,
METRICS_KEY
,
L"StatusFont"
);
static
USERPREF_ENTRY
(
MENUANIMATION
,
0
,
0x02
);
static
USERPREF_ENTRY
(
COMBOBOXANIMATION
,
0
,
0x04
);
...
...
@@ -1376,38 +1264,38 @@ static USERPREF_ENTRY( SPEECHRECOGNITION, 4, 0x20 );
static
struct
sysparam_rgb_entry
system_colors
[]
=
{
#define RGB_ENTRY(name,val
) { { get_rgb_entry, set_rgb_entry, init_rgb_entry, name ##_VALNAME
}, (val) }
RGB_ENTRY
(
COLOR_SCROLLBAR
,
RGB
(
212
,
208
,
200
)
),
RGB_ENTRY
(
COLOR_BACKGROUND
,
RGB
(
58
,
110
,
165
)
),
RGB_ENTRY
(
COLOR_ACTIVECAPTION
,
RGB
(
10
,
36
,
106
)
),
RGB_ENTRY
(
COLOR_INACTIVECAPTION
,
RGB
(
128
,
128
,
128
)
),
RGB_ENTRY
(
COLOR_MENU
,
RGB
(
212
,
208
,
200
)
),
RGB_ENTRY
(
COLOR_WINDOW
,
RGB
(
255
,
255
,
255
)
),
RGB_ENTRY
(
COLOR_WINDOWFRAME
,
RGB
(
0
,
0
,
0
)
),
RGB_ENTRY
(
COLOR_MENUTEXT
,
RGB
(
0
,
0
,
0
)
),
RGB_ENTRY
(
COLOR_WINDOWTEXT
,
RGB
(
0
,
0
,
0
)
),
RGB_ENTRY
(
COLOR_CAPTIONTEXT
,
RGB
(
255
,
255
,
255
)
),
RGB_ENTRY
(
COLOR_ACTIVEBORDER
,
RGB
(
212
,
208
,
200
)
),
RGB_ENTRY
(
COLOR_INACTIVEBORDER
,
RGB
(
212
,
208
,
200
)
),
RGB_ENTRY
(
COLOR_APPWORKSPACE
,
RGB
(
128
,
128
,
128
)
),
RGB_ENTRY
(
COLOR_HIGHLIGHT
,
RGB
(
10
,
36
,
106
)
),
RGB_ENTRY
(
COLOR_HIGHLIGHTTEXT
,
RGB
(
255
,
255
,
255
)
),
RGB_ENTRY
(
COLOR_BTNFACE
,
RGB
(
212
,
208
,
200
)
),
RGB_ENTRY
(
COLOR_BTNSHADOW
,
RGB
(
128
,
128
,
128
)
),
RGB_ENTRY
(
COLOR_GRAYTEXT
,
RGB
(
128
,
128
,
128
)
),
RGB_ENTRY
(
COLOR_BTNTEXT
,
RGB
(
0
,
0
,
0
)
),
RGB_ENTRY
(
COLOR_INACTIVECAPTIONTEXT
,
RGB
(
212
,
208
,
200
)
),
RGB_ENTRY
(
COLOR_BTNHIGHLIGHT
,
RGB
(
255
,
255
,
255
)
),
RGB_ENTRY
(
COLOR_3DDKSHADOW
,
RGB
(
64
,
64
,
64
)
),
RGB_ENTRY
(
COLOR_3DLIGHT
,
RGB
(
212
,
208
,
200
)
),
RGB_ENTRY
(
COLOR_INFOTEXT
,
RGB
(
0
,
0
,
0
)
),
RGB_ENTRY
(
COLOR_INFOBK
,
RGB
(
255
,
255
,
225
)
),
RGB_ENTRY
(
COLOR_ALTERNATEBTNFACE
,
RGB
(
181
,
181
,
181
)
),
RGB_ENTRY
(
COLOR_HOTLIGHT
,
RGB
(
0
,
0
,
200
)
),
RGB_ENTRY
(
COLOR_GRADIENTACTIVECAPTION
,
RGB
(
166
,
202
,
240
)
),
RGB_ENTRY
(
COLOR_GRADIENTINACTIVECAPTION
,
RGB
(
192
,
192
,
192
)
),
RGB_ENTRY
(
COLOR_MENUHILIGHT
,
RGB
(
10
,
36
,
106
)
),
RGB_ENTRY
(
COLOR_MENUBAR
,
RGB
(
212
,
208
,
200
)
)
#define RGB_ENTRY(name,val
,reg) { { get_rgb_entry, set_rgb_entry, init_rgb_entry, COLORS_KEY, reg
}, (val) }
RGB_ENTRY
(
COLOR_SCROLLBAR
,
RGB
(
212
,
208
,
200
)
,
L"Scrollbar"
),
RGB_ENTRY
(
COLOR_BACKGROUND
,
RGB
(
58
,
110
,
165
)
,
L"Background"
),
RGB_ENTRY
(
COLOR_ACTIVECAPTION
,
RGB
(
10
,
36
,
106
)
,
L"ActiveTitle"
),
RGB_ENTRY
(
COLOR_INACTIVECAPTION
,
RGB
(
128
,
128
,
128
)
,
L"InactiveTitle"
),
RGB_ENTRY
(
COLOR_MENU
,
RGB
(
212
,
208
,
200
)
,
L"Menu"
),
RGB_ENTRY
(
COLOR_WINDOW
,
RGB
(
255
,
255
,
255
)
,
L"Window"
),
RGB_ENTRY
(
COLOR_WINDOWFRAME
,
RGB
(
0
,
0
,
0
)
,
L"WindowFrame"
),
RGB_ENTRY
(
COLOR_MENUTEXT
,
RGB
(
0
,
0
,
0
)
,
L"MenuText"
),
RGB_ENTRY
(
COLOR_WINDOWTEXT
,
RGB
(
0
,
0
,
0
)
,
L"WindowText"
),
RGB_ENTRY
(
COLOR_CAPTIONTEXT
,
RGB
(
255
,
255
,
255
)
,
L"TitleText"
),
RGB_ENTRY
(
COLOR_ACTIVEBORDER
,
RGB
(
212
,
208
,
200
)
,
L"ActiveBorder"
),
RGB_ENTRY
(
COLOR_INACTIVEBORDER
,
RGB
(
212
,
208
,
200
)
,
L"InactiveBorder"
),
RGB_ENTRY
(
COLOR_APPWORKSPACE
,
RGB
(
128
,
128
,
128
)
,
L"AppWorkSpace"
),
RGB_ENTRY
(
COLOR_HIGHLIGHT
,
RGB
(
10
,
36
,
106
)
,
L"Hilight"
),
RGB_ENTRY
(
COLOR_HIGHLIGHTTEXT
,
RGB
(
255
,
255
,
255
)
,
L"HilightText"
),
RGB_ENTRY
(
COLOR_BTNFACE
,
RGB
(
212
,
208
,
200
)
,
L"ButtonFace"
),
RGB_ENTRY
(
COLOR_BTNSHADOW
,
RGB
(
128
,
128
,
128
)
,
L"ButtonShadow"
),
RGB_ENTRY
(
COLOR_GRAYTEXT
,
RGB
(
128
,
128
,
128
)
,
L"GrayText"
),
RGB_ENTRY
(
COLOR_BTNTEXT
,
RGB
(
0
,
0
,
0
)
,
L"ButtonText"
),
RGB_ENTRY
(
COLOR_INACTIVECAPTIONTEXT
,
RGB
(
212
,
208
,
200
)
,
L"InactiveTitleText"
),
RGB_ENTRY
(
COLOR_BTNHIGHLIGHT
,
RGB
(
255
,
255
,
255
)
,
L"ButtonHilight"
),
RGB_ENTRY
(
COLOR_3DDKSHADOW
,
RGB
(
64
,
64
,
64
)
,
L"ButtonDkShadow"
),
RGB_ENTRY
(
COLOR_3DLIGHT
,
RGB
(
212
,
208
,
200
)
,
L"ButtonLight"
),
RGB_ENTRY
(
COLOR_INFOTEXT
,
RGB
(
0
,
0
,
0
)
,
L"InfoText"
),
RGB_ENTRY
(
COLOR_INFOBK
,
RGB
(
255
,
255
,
225
)
,
L"InfoWindow"
),
RGB_ENTRY
(
COLOR_ALTERNATEBTNFACE
,
RGB
(
181
,
181
,
181
)
,
L"ButtonAlternateFace"
),
RGB_ENTRY
(
COLOR_HOTLIGHT
,
RGB
(
0
,
0
,
200
)
,
L"HotTrackingColor"
),
RGB_ENTRY
(
COLOR_GRADIENTACTIVECAPTION
,
RGB
(
166
,
202
,
240
)
,
L"GradientActiveTitle"
),
RGB_ENTRY
(
COLOR_GRADIENTINACTIVECAPTION
,
RGB
(
192
,
192
,
192
)
,
L"GradientInactiveTitle"
),
RGB_ENTRY
(
COLOR_MENUHILIGHT
,
RGB
(
10
,
36
,
106
)
,
L"MenuHilight"
),
RGB_ENTRY
(
COLOR_MENUBAR
,
RGB
(
212
,
208
,
200
)
,
L"MenuBar"
)
#undef RGB_ENTRY
};
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment