Added SYSMETRICS_Set.
Implemented SPI_SETSHOWSOUNDS action.
diff --git a/windows/sysmetrics.c b/windows/sysmetrics.c
index 6c274a1..c94ca37 100644
--- a/windows/sysmetrics.c
+++ b/windows/sysmetrics.c
@@ -260,6 +260,23 @@
/***********************************************************************
+ * SYSMETRICS_Set
+ *
+ * Sets system metrics.
+ */
+INT SYSMETRICS_Set( INT index, INT value )
+{
+ if ((index < 0) || (index > SM_WINE_CMETRICS)) return 0;
+ else
+ {
+ INT prev = sysMetrics[index];
+ sysMetrics[index] = value;
+ return prev;
+ }
+}
+
+
+/***********************************************************************
* GetSystemMetrics (USER.179)
*/
INT16 WINAPI GetSystemMetrics16( INT16 index )
@@ -274,5 +291,5 @@
INT WINAPI GetSystemMetrics( INT index )
{
if ((index < 0) || (index > SM_WINE_CMETRICS)) return 0;
- else return sysMetrics[index];
+ return sysMetrics[index];
}