SystemParametersInfo / GetSystemMetrics

Andriy P apa3a at yahoo.com
Wed Oct 10 15:01:25 CDT 2001


This patch provides infrastructure for
GetSystemMetrics and SystemParametersInfo functions. 
Now system parameters/metrics can be saved/retrieved
from registry.
Added broadcasting notifications about system
parameters changes.

I used this new functionality to implement processing
for 
SPI_GET/SETBEEP, SPI_GET/SETSHOWSOUNDS system
parameters.
These parameters belong to two different classes:
BEEP - is processed directly.
SHOWSOUNDS - relies on SM_SHOWSOUNDS system metric.
Using these two system parameters allows to test
SystemParametersInfo
for both classes, test GetSystemMetrics, interaction
between them.

New files:
include/sysparams.h	- wine functions for system
parameters processing
libtest/sysparamstest.c - new functionality test suite
libtest/sysparamstest.readme - description
libtest/sysparamstest.spec -
libtest/sysparamstest-nt4.log - test output for nt4.
System parameters
        processing differs between platforms. I'll add
output for other
        windows platforms later.

Updated files:
dlls/user/user_main.c  - Params/Metrics
initialization.
        Note, metrics initialization is called from
Params one.
include/sysmetrics.h - added definition of new
functions,
        registry key constants.
libtest/Makefile.in - added sysparamstest build
information
windows/sysmetrics.c - added new logic
windows/sysparams.c - added new logic.
        Replaced calls to the ANSI version of
SystemParametersInfo with macro.
	Added broadcast of notification change to this macro.

Will be glad to get comments, suggestions.

Andriy Palamarchuk


__________________________________________________
Do You Yahoo!?
Make a great connection at Yahoo! Personals.
http://personals.yahoo.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: sysparams.tar.gz
Type: application/x-gzip
Size: 7083 bytes
Desc: sysparams.tar.gz
Url : http://www.winehq.org/pipermail/wine-patches/attachments/20011010/eb450ccb/sysparams.tar.bin


More information about the wine-patches mailing list