Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
a32dc917
Commit
a32dc917
authored
Jun 28, 2002
by
Philipp Wollermann
Committed by
Alexandre Julliard
Jun 28, 2002
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Implemented SPI_GETDESKWALLPAPER action, fixed SPI_SETDESKWALLPAPER.
parent
9859606e
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
44 additions
and
1 deletion
+44
-1
sysparams.c
dlls/user/tests/sysparams.c
+19
-0
sysparams.c
windows/sysparams.c
+25
-1
No files found.
dlls/user/tests/sysparams.c
View file @
a32dc917
...
...
@@ -82,6 +82,8 @@ static int has_unicode(void) { return 1; }
#define SPI_SETFASTTASKSWITCH_VALNAME "CoolSwitch"
#define SPI_SETDRAGFULLWINDOWS_REGKEY "Control Panel\\Desktop"
#define SPI_SETDRAGFULLWINDOWS_VALNAME "DragFullWindows"
#define SPI_SETDESKWALLPAPER_REGKEY "Control Panel\\Desktop"
#define SPI_SETDESKWALLPAPER_VALNAME "Wallpaper"
/* FIXME - don't have access to Windows with this action (W95, NT5.0). Set real values */
#define SPI_SETKEYBOARDPREF_REGKEY "Control Panel\\Desktop"
#define SPI_SETKEYBOARDPREF_VALNAME "WINE_WorkArea"
...
...
@@ -984,6 +986,22 @@ static void test_SPI_SETSCREENREADER( void ) /* 71 */
/* TODO!!! - don't have version of Windows which has this */
}
static
void
test_SPI_SETWALLPAPER
(
void
)
/* 115 */
{
char
oldval
[
260
];
char
newval
[
260
];
trace
(
"testing SPI_{GET,SET}DESKWALLPAPER
\n
"
);
SystemParametersInfoA
(
SPI_GETDESKWALLPAPER
,
260
,
oldval
,
0
);
test_reg_key
(
SPI_SETDESKWALLPAPER_REGKEY
,
SPI_SETDESKWALLPAPER_VALNAME
,
oldval
);
strcpy
(
newval
,
""
);
SystemParametersInfoA
(
SPI_SETDESKWALLPAPER
,
0
,
newval
,
SPIF_UPDATEINIFILE
|
SPIF_SENDCHANGE
);
test_change_message
(
SPI_SETDESKWALLPAPER
,
""
);
SystemParametersInfoA
(
SPI_SETDESKWALLPAPER
,
0
,
oldval
,
SPIF_UPDATEINIFILE
);
}
/*
* Registry entries for the system parameters.
* Names are created by 'SET' flags names.
...
...
@@ -1013,6 +1031,7 @@ static DWORD WINAPI SysParamsThreadFunc( LPVOID lpParam )
test_SPI_SETSHOWSOUNDS
();
/* 57 */
test_SPI_SETKEYBOARDPREF
();
/* 69 */
test_SPI_SETSCREENREADER
();
/* 71 */
test_SPI_SETWALLPAPER
();
/* 115 */
SendMessageA
(
ghTestWnd
,
WM_DESTROY
,
0
,
0
);
return
0
;
}
...
...
windows/sysparams.c
View file @
a32dc917
...
...
@@ -109,6 +109,8 @@ WINE_DEFAULT_DEBUG_CHANNEL(system);
#define SPI_SETWORKAREA_VALNAME "WINE_WorkArea"
#define SPI_SETSHOWSOUNDS_REGKEY "Control Panel\\Accessibility\\ShowSounds"
#define SPI_SETSHOWSOUNDS_VALNAME "On"
#define SPI_SETDESKWALLPAPER_REGKEY "Control Panel\\Desktop"
#define SPI_SETDESKWALLPAPER_VALNAME "Wallpaper"
/* FIXME - real values */
#define SPI_SETKEYBOARDPREF_REGKEY "Control Panel\\Desktop"
#define SPI_SETKEYBOARDPREF_VALNAME "WINE_KeyboardPref"
...
...
@@ -836,6 +838,7 @@ BOOL WINAPI SystemParametersInfoA( UINT uiAction, UINT uiParam,
}
case
SPI_SETDESKWALLPAPER
:
/* 20 */
SYSPARAMS_Save
(
SPI_SETDESKWALLPAPER_REGKEY
,
SPI_SETDESKWALLPAPER_VALNAME
,
pvParam
,
fWinIni
);
ret
=
SetDeskWallPaper
(
(
LPSTR
)
pvParam
);
break
;
case
SPI_SETDESKPATTERN
:
/* 21 */
...
...
@@ -1661,7 +1664,28 @@ BOOL WINAPI SystemParametersInfoA( UINT uiAction, UINT uiParam,
*
(
BOOL
*
)
pvParam
=
screensaver_running
;
break
;
WINE_SPI_FIXME
(
SPI_GETDESKWALLPAPER
);
/* 115 _WIN32_WINNT >= 0x500 || _WIN32_WINDOW > 0x400 */
case
SPI_GETDESKWALLPAPER
:
/* 115 _WIN32_WINNT >= 0x500 || _WIN32_WINDOW > 0x400 */
{
char
buf
[
MAX_PATH
];
if
(
uiParam
>
MAX_PATH
)
{
uiParam
=
MAX_PATH
;
}
if
(
SYSPARAMS_Load
(
SPI_SETDESKWALLPAPER_REGKEY
,
SPI_SETDESKWALLPAPER_VALNAME
,
buf
))
{
strncpy
((
char
*
)
pvParam
,
buf
,
uiParam
);
}
else
{
/* Return an empty string */
memset
((
char
*
)
pvParam
,
0
,
uiParam
);
}
break
;
}
WINE_SPI_FIXME
(
SPI_GETACTIVEWINDOWTRACKING
);
/* 0x1000 _WIN32_WINNT >= 0x500 || _WIN32_WINDOW > 0x400 */
WINE_SPI_FIXME
(
SPI_SETACTIVEWINDOWTRACKING
);
/* 0x1001 _WIN32_WINNT >= 0x500 || _WIN32_WINDOW > 0x400 */
WINE_SPI_FIXME
(
SPI_GETMENUANIMATION
);
/* 0x1002 _WIN32_WINNT >= 0x500 || _WIN32_WINDOW > 0x400 */
...
...
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