[ros-diffs] [greatlrd] 27665: wrong spi value in allot SPI_ Rewrote all SPI_ to make sure no one got wrong value hopply this prevent wax crash in spi.

greatlrd at svn.reactos.org greatlrd at svn.reactos.org
Sat Jul 14 18:47:49 CEST 2007


Author: greatlrd
Date: Sat Jul 14 20:47:48 2007
New Revision: 27665

URL: http://svn.reactos.org/svn/reactos?rev=27665&view=rev
Log:
wrong spi value in allot SPI_ 
Rewrote all SPI_ to make sure no one got wrong value
hopply this prevent wax crash in spi. 


Modified:
    trunk/reactos/include/psdk/winuser.h

Modified: trunk/reactos/include/psdk/winuser.h
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/include/psdk/winuser.h?rev=27665&r1=27664&r2=27665&view=diff
==============================================================================
--- trunk/reactos/include/psdk/winuser.h (original)
+++ trunk/reactos/include/psdk/winuser.h Sat Jul 14 20:47:48 2007
@@ -1252,188 +1252,210 @@
 #define GET_MOUSEORKEY_LPARAM   GET_DEVICE_LPARAM
 #define GET_FLAGS_LPARAM(lParam)    (LOWORD(lParam))
 #define GET_KEYSTATE_LPARAM(lParam) GET_FLAGS_LPARAM(lParam)
-#endif /* _WIN32_WINNT >= 0x0500 */
+#endif
 
-#define SPI_GETACCESSTIMEOUT 60
-#define SPI_GETACTIVEWNDTRKTIMEOUT 8194
-#define SPI_GETANIMATION 72
-#define SPI_GETBEEP 1
-#define SPI_GETBORDER 5
-#define SPI_GETDEFAULTINPUTLANG 89
-#define SPI_GETDRAGFULLWINDOWS 38
-#define SPI_GETFASTTASKSWITCH 35
-#define SPI_GETFILTERKEYS 50
-#define SPI_GETFONTSMOOTHING 74
-#define SPI_GETGRIDGRANULARITY 18
-#define SPI_GETHIGHCONTRAST 66
-#define SPI_GETICONMETRICS 45
-#define SPI_GETICONTITLELOGFONT 31
-#define SPI_GETICONTITLEWRAP 25
-#define SPI_GETKEYBOARDDELAY 22
-#define SPI_GETKEYBOARDPREF 68
-#define SPI_GETKEYBOARDSPEED 10
-#define SPI_GETLOWPOWERACTIVE 83
-#define SPI_GETLOWPOWERTIMEOUT 79
-#define SPI_GETMENUDROPALIGNMENT 27
-#define SPI_GETMENUSHOWDELAY 106
-#define SPI_GETMINIMIZEDMETRICS 43
-#define SPI_GETMOUSE 3
-#define SPI_GETMOUSEKEYS 54
-#define SPI_GETMOUSEHOVERHEIGHT 100
-#define SPI_GETMOUSEHOVERTIME 102
-#define SPI_GETMOUSEHOVERWIDTH 98
-#define SPI_GETMOUSETRAILS 94
-#define SPI_GETNONCLIENTMETRICS 41
-#define SPI_GETPOWEROFFACTIVE 84
-#define SPI_GETPOWEROFFTIMEOUT 80
-#define SPI_GETSCREENREADER 70
-#define SPI_GETSCREENSAVEACTIVE 16
-#define SPI_GETSCREENSAVETIMEOUT 14
-#define SPI_GETSERIALKEYS 62
-#define SPI_GETSHOWIMEUI 110
-#define SPI_GETSHOWSOUNDS 56
-#define SPI_GETSNAPTODEFBUTTON 95
-#define SPI_GETSOUNDSENTRY 64
-#define SPI_GETSTICKYKEYS 58
-#define SPI_GETTOGGLEKEYS 52
-#define SPI_GETWHEELSCROLLLINES 104
-#define SPI_GETWHEELSCROLLCHARS 108
-#define SPI_GETWINDOWSEXTENSION 92
-#define SPI_GETWORKAREA 48
-#define SPI_ICONHORIZONTALSPACING 13
-#define SPI_ICONVERTICALSPACING 24
-#define SPI_LANGDRIVER 12
-#define SPI_SCREENSAVERRUNNING 97
-#define SPI_SETACCESSTIMEOUT 61
-#define SPI_SETACTIVEWINDOWTRACKING 4097
-#define SPI_SETACTIVEWNDTRKZORDER 4109
-#define SPI_SETACTIVEWNDTRKTIMEOUT 8195
-#define SPI_SETANIMATION 73
-#define SPI_SETBEEP 2
-#define SPI_SETBORDER 6
-#define SPI_SETCURSORS 87
-#define SPI_SETICONS 88
-#define SPI_SETDEFAULTINPUTLANG 90
-#define SPI_SETDESKPATTERN 21
-#define SPI_SETDESKWALLPAPER 20
-#define SPI_SETDOUBLECLICKTIME 32
-#define SPI_SETDOUBLECLKHEIGHT 30
-#define SPI_SETDOUBLECLKWIDTH 29
-#define SPI_SETDRAGFULLWINDOWS 37
-#define SPI_SETDRAGHEIGHT 77
-#define SPI_SETDRAGWIDTH 76
-#define SPI_SETFASTTASKSWITCH 36
-#define SPI_SETFILTERKEYS 51
-#define SPI_SETFONTSMOOTHING 75
-#define SPI_SETGRIDGRANULARITY 19
-#define SPI_SETHANDHELD 78
-#define SPI_SETHIGHCONTRAST 67
-#define SPI_SETICONMETRICS 46
-#define SPI_SETICONTITLELOGFONT 34
-#define SPI_SETICONTITLEWRAP 26
-#define SPI_SETKEYBOARDDELAY 23
-#define SPI_SETKEYBOARDPREF 69
-#define SPI_SETKEYBOARDSPEED 11
-#define SPI_SETLANGTOGGLE 91
-#define SPI_SETLOWPOWERACTIVE 85
-#define SPI_SETLOWPOWERTIMEOUT 81
-#define SPI_SETMENUDROPALIGNMENT 28
-#define SPI_SETMENUSHOWDELAY 107
-#define SPI_SETMINIMIZEDMETRICS 44
-#define SPI_SETMOUSE 4
-#define SPI_SETMOUSEBUTTONSWAP 33
-#define SPI_SETMOUSEHOVERHEIGHT 101
-#define SPI_SETMOUSEHOVERTIME 103
-#define SPI_SETMOUSEHOVERWIDTH 99
-#define SPI_SETMOUSEKEYS 55
-#define SPI_SETMOUSETRAILS 93
-#define SPI_SETNONCLIENTMETRICS 42
-#define SPI_SETPENWINDOWS 49
-#define SPI_SETPOWEROFFACTIVE 86
-#define SPI_SETPOWEROFFTIMEOUT 82
-#define SPI_SETSCREENREADER 71
-#define SPI_SETSCREENSAVEACTIVE 17
-#define SPI_SETSCREENSAVERRUNNING 97
-#define SPI_SETSCREENSAVETIMEOUT 15
-#define SPI_SETSERIALKEYS 63
-#define SPI_SETSHOWIMEUI 111
-#define SPI_SETSHOWSOUNDS 57
-#define SPI_SETSNAPTODEFBUTTON 96
-#define SPI_SETSOUNDSENTRY 65
-#define SPI_SETSTICKYKEYS 59
-#define SPI_SETTOGGLEKEYS 53
-#define SPI_SETWHEELSCROLLLINES 105
-#define SPI_SETWORKAREA 47
-#if (WINVER >= 0x0500)
-#define SPI_GETDESKWALLPAPER 115
-#define SPI_GETMOUSESPEED 112
-#define SPI_GETSCREENSAVERRUNNING 114
-#define SPI_GETACTIVEWINDOWTRACKING 0x1000
-#define SPI_GETACTIVEWNDTRKZORDER 0x100C
-#define SPI_GETCARETWIDTH 0x2006
-#define SPI_GETCOMBOBOXANIMATION 0x1004
-#define SPI_GETCURSORSHADOW 0x101A
-#define SPI_GETDROPSHADOW 0x1024
-#define SPI_GETFOREGROUNDFLASHCOUNT 0x2004
-#define SPI_GETFOREGROUNDLOCKTIMEOUT 0x2000
-#define SPI_GETGRADIENTCAPTIONS 0x1008
-#define SPI_GETHOTTRACKING 0x100E
-#define SPI_GETKEYBOARDCUES 0x100A
-#define SPI_GETLISTBOXSMOOTHSCROLLING 0x1006
-#define SPI_GETMENUANIMATION 0x1002
-#define SPI_GETMENUFADE 0x1012
-#define SPI_GETMENUUNDERLINES 0x100A
-#define SPI_GETSELECTIONFADE 0x1014
-#define SPI_GETTOOLTIPANIMATION 0x1016
-#define SPI_GETTOOLTIPFADE 0x1018
-#define SPI_SETCARETWIDTH 0x2007
-#define SPI_SETCOMBOBOXANIMATION 0x1005
-#define SPI_SETCURSORSHADOW 0x101B
-#define SPI_SETDROPSHADOW 0x1025
-#define SPI_SETFOREGROUNDFLASHCOUNT 0x2005
-#define SPI_SETFOREGROUNDLOCKTIMEOUT 0x2001
-#define SPI_SETGRADIENTCAPTIONS 0x1009
-#define SPI_SETHOTTRACKING 0x100F
-#define SPI_SETKEYBOARDCUES 0x100B
-#define SPI_SETLISTBOXSMOOTHSCROLLING 0x1007
-#define SPI_SETMENUANIMATION 0x1003
-#define SPI_SETMENUFADE 0x1013
-#define SPI_SETMENUUNDERLINES 0x100B
-#define SPI_SETMOUSESPEED 113
-#define SPI_SETSELECTIONFADE 0x1015
-#define SPI_SETTOOLTIPANIMATION 0x1017
-#define SPI_SETTOOLTIPFADE 0x1019
-#if (WINVER >= 0x0501)
-#define FE_FONTSMOOTHINGORIENTATIONBGR 0
-#define FE_FONTSMOOTHINGORIENTATIONRGB 1
-#define FE_FONTSMOOTHINGSTANDARD 1
-#define FE_FONTSMOOTHINGCLEARTYPE 2
-#define FE_FONTSMOOTHINGDOCKING 32768
-#define SPI_GETBLOCKSENDINPUTRESETS 0x1026
-#define SPI_SETBLOCKSENDINPUTRESETS 0x1027
-#define SPI_GETUIEFFECTS 0x103E
-#define SPI_SETUIEFFECTS 0x103F
-#define SPI_GETMOUSECLICKLOCK  4126
-#define SPI_SETMOUSECLICKLOCK  4127
-#define SPI_GETMOUSECLICKLOCKTIME 8200
-#define SPI_SETMOUSECLICKLOCKTIME 8201
-#define SPI_GETMOUSESONAR 0x101C
-#define SPI_SETMOUSESONAR 0x101D
-#define SPI_GETMOUSEVANISH 0x1020
-#define SPI_SETMOUSEVANISH 0x1021
-#define SPI_GETFLATMENU 0x1022
-#define SPI_SETFLATMENU 0x1023
-#define SPI_GETFONTSMOOTHINGTYPE 8202
-#define SPI_SETFONTSMOOTHINGTYPE 8203
-#define SPI_GETFONTSMOOTHINGCONTRAST 8204
-#define SPI_SETFONTSMOOTHINGCONTRAST 8205
-#define SPI_GETFOCUSBORDERWIDTH 8206
-#define SPI_SETFOCUSBORDERWIDTH 8207
-#define SPI_GETFOCUSBORDERHEIGHT 8208
-#define SPI_SETFOCUSBORDERHEIGHT 8209
-#define SPI_GETFONTSMOOTHINGORIENTATION 8210
-#define SPI_SETFONTSMOOTHINGORIENTATION 8211
-#endif
+
+
+#define SPI_GETBEEP 0x0001
+#define SPI_SETBEEP 0x0002
+#define SPI_GETMOUSE 0x0003
+#define SPI_SETMOUSE 0x0004
+#define SPI_GETBORDER 0x0005
+#define SPI_SETBORDER 0x0006
+#define SPI_GETKEYBOARDSPEED 0x000A
+#define SPI_SETKEYBOARDSPEED 0x000B
+#define SPI_LANGDRIVER 0x000C
+#define SPI_ICONHORIZONTALSPACING 0x000D
+#define SPI_GETSCREENSAVETIMEOUT 0x000E
+#define SPI_SETSCREENSAVETIMEOUT 0x000F
+#define SPI_GETSCREENSAVEACTIVE 0x0010
+#define SPI_SETSCREENSAVEACTIVE 0x0011
+#define SPI_GETGRIDGRANULARITY 0x0012
+#define SPI_SETGRIDGRANULARITY 0x0013
+#define SPI_SETDESKWALLPAPER 0x0014
+#define SPI_SETDESKPATTERN 0x0015
+#define SPI_GETKEYBOARDDELAY 0x0016
+#define SPI_SETKEYBOARDDELAY 0x0017
+#define SPI_ICONVERTICALSPACING 0x0018
+#define SPI_GETICONTITLEWRAP 0x0019
+#define SPI_SETICONTITLEWRAP 0x001A
+#define SPI_GETMENUDROPALIGNMENT 0x001B
+#define SPI_SETMENUDROPALIGNMENT 0x001C
+#define SPI_SETDOUBLECLKWIDTH 0x001D
+#define SPI_SETDOUBLECLKHEIGHT 0x001E
+#define SPI_GETICONTITLELOGFONT 0x001F
+#define SPI_SETDOUBLECLICKTIME 0x0020
+#define SPI_SETMOUSEBUTTONSWAP 0x0021
+#define SPI_SETICONTITLELOGFONT 0x0022
+#define SPI_GETFASTTASKSWITCH 0x0023
+#define SPI_SETFASTTASKSWITCH 0x0024
+#define SPI_GETFILTERKEYS 0x0032
+#define SPI_SETFILTERKEYS 0x0033
+#define SPI_GETTOGGLEKEYS 0x0034
+#define SPI_SETTOGGLEKEYS 0x0035
+#define SPI_GETMOUSEKEYS 0x0036
+#define SPI_SETMOUSEKEYS 0x0037
+#define SPI_GETSHOWSOUNDS 0x0038
+#define SPI_SETSHOWSOUNDS 0x0039
+#define SPI_GETSTICKYKEYS 0x003A
+#define SPI_SETSTICKYKEYS 0x003B
+#define SPI_GETACCESSTIMEOUT 0x003C
+#define SPI_SETACCESSTIMEOUT 0x003D
+#define SPI_GETSOUNDSENTRY 0x0040
+#define SPI_SETSOUNDSENTRY 0x0041
+
+#if(WINVER >= 0x0400)
+    #define SPI_SETDRAGFULLWINDOWS 0x0025
+    #define SPI_GETDRAGFULLWINDOWS 0x0026
+    #define SPI_GETNONCLIENTMETRICS 0x0029
+    #define SPI_SETNONCLIENTMETRICS 0x002A
+    #define SPI_GETMINIMIZEDMETRICS 0x002B
+    #define SPI_SETMINIMIZEDMETRICS 0x002C
+    #define SPI_GETICONMETRICS 0x002D
+    #define SPI_SETICONMETRICS 0x002E
+    #define SPI_SETWORKAREA 0x002F
+    #define SPI_GETWORKAREA 0x0030
+    #define SPI_SETPENWINDOWS 0x0031
+    #define SPI_GETHIGHCONTRAST 0x0042
+    #define SPI_SETHIGHCONTRAST 0x0043
+    #define SPI_GETKEYBOARDPREF 0x0044
+    #define SPI_SETKEYBOARDPREF 0x0045
+    #define SPI_GETSCREENREADER 0x0046
+    #define SPI_SETSCREENREADER 0x0047
+    #define SPI_GETANIMATION 0x0048
+    #define SPI_SETANIMATION 0x0049
+    #define SPI_GETFONTSMOOTHING 0x004A
+    #define SPI_SETFONTSMOOTHING 0x004B
+    #define SPI_SETDRAGWIDTH 0x004C
+    #define SPI_SETDRAGHEIGHT 0x004D
+    #define SPI_SETHANDHELD 0x004E
+    #define SPI_GETLOWPOWERTIMEOUT 0x004F
+    #define SPI_GETPOWEROFFTIMEOUT 0x0050
+    #define SPI_SETLOWPOWERTIMEOUT 0x0051
+    #define SPI_SETPOWEROFFTIMEOUT 0x0052
+    #define SPI_GETLOWPOWERACTIVE 0x0053
+    #define SPI_GETPOWEROFFACTIVE 0x0054
+    #define SPI_SETLOWPOWERACTIVE 0x0055
+    #define SPI_SETPOWEROFFACTIVE 0x0056
+    #define SPI_SETCURSORS 0x0057
+    #define SPI_SETICONS 0x0058
+    #define SPI_GETDEFAULTINPUTLANG 0x0059
+    #define SPI_SETDEFAULTINPUTLANG 0x005A
+    #define SPI_SETLANGTOGGLE 0x005B
+    #define SPI_GETWINDOWSEXTENSION 0x005C
+    #define SPI_SETMOUSETRAILS 0x005D
+    #define SPI_GETMOUSETRAILS 0x005E
+    #define SPI_SCREENSAVERRUNNING 0x0061
+    #define SPI_SETSCREENSAVERRUNNING SPI_SCREENSAVERRUNNING
+    #define SPI_GETSERIALKEYS 0x003E
+    #define SPI_SETSERIALKEYS 0x003F
+#endif
+
+#if(_WIN32_WINNT >= 0x0400)
+    #define SPI_GETSNAPTODEFBUTTON 0x005F
+    #define SPI_SETSNAPTODEFBUTTON 0x0060
+#endif
+
+#if (_WIN32_WINNT >= 0x0400) || (_WIN32_WINDOWS > 0x0400)
+    #define SPI_GETMOUSEHOVERWIDTH 0x0062
+    #define SPI_SETMOUSEHOVERWIDTH 0x0063
+    #define SPI_GETMOUSEHOVERHEIGHT 0x0064
+    #define SPI_SETMOUSEHOVERHEIGHT 0x0065
+    #define SPI_GETMOUSEHOVERTIME 0x0066
+    #define SPI_SETMOUSEHOVERTIME 0x0067
+    #define SPI_GETWHEELSCROLLLINES 0x0068
+    #define SPI_SETWHEELSCROLLLINES 0x0069
+    #define SPI_GETMENUSHOWDELAY 0x006A
+    #define SPI_SETMENUSHOWDELAY 0x006B
+    #define SPI_GETSHOWIMEUI 0x006E
+    #define SPI_SETSHOWIMEUI 0x006F
+    /* Correct ? */
+    #define SPI_GETWHEELSCROLLCHARS 0x006C
+#endif
+
+#if(WINVER >= 0x0500)
+    #define SPI_GETMOUSESPEED 0x0070
+    #define SPI_SETMOUSESPEED 0x0071
+    #define SPI_GETSCREENSAVERRUNNING 0x0072
+    #define SPI_GETDESKWALLPAPER 0x0073
+#endif
+
+#if(WINVER >= 0x0500)
+    #define SPI_GETACTIVEWINDOWTRACKING 0x1000
+    #define SPI_SETACTIVEWINDOWTRACKING 0x1001
+    #define SPI_GETMENUANIMATION 0x1002
+    #define SPI_SETMENUANIMATION 0x1003
+    #define SPI_GETCOMBOBOXANIMATION 0x1004
+    #define SPI_SETCOMBOBOXANIMATION 0x1005
+    #define SPI_GETLISTBOXSMOOTHSCROLLING 0x1006
+    #define SPI_SETLISTBOXSMOOTHSCROLLING 0x1007
+    #define SPI_GETGRADIENTCAPTIONS 0x1008
+    #define SPI_SETGRADIENTCAPTIONS 0x1009
+    #define SPI_GETKEYBOARDCUES 0x100A
+    #define SPI_SETKEYBOARDCUES 0x100B
+    #define SPI_GETMENUUNDERLINES SPI_GETKEYBOARDCUES
+    #define SPI_SETMENUUNDERLINES SPI_SETKEYBOARDCUES
+    #define SPI_GETACTIVEWNDTRKZORDER 0x100C
+    #define SPI_SETACTIVEWNDTRKZORDER 0x100D
+    #define SPI_GETHOTTRACKING 0x100E
+    #define SPI_SETHOTTRACKING 0x100F
+    #define SPI_GETMENUFADE 0x1012
+    #define SPI_SETMENUFADE 0x1013
+    #define SPI_GETSELECTIONFADE 0x1014
+    #define SPI_SETSELECTIONFADE 0x1015
+    #define SPI_GETTOOLTIPANIMATION 0x1016
+    #define SPI_SETTOOLTIPANIMATION 0x1017
+    #define SPI_GETTOOLTIPFADE 0x1018
+    #define SPI_SETTOOLTIPFADE 0x1019
+    #define SPI_GETCURSORSHADOW 0x101A
+    #define SPI_SETCURSORSHADOW 0x101B
+    #define SPI_GETUIEFFECTS 0x103E
+    #define SPI_SETUIEFFECTS 0x103F
+    #define SPI_GETFOREGROUNDLOCKTIMEOUT 0x2000
+    #define SPI_SETFOREGROUNDLOCKTIMEOUT 0x2001
+    #define SPI_GETACTIVEWNDTRKTIMEOUT 0x2002
+    #define SPI_SETACTIVEWNDTRKTIMEOUT 0x2003
+    #define SPI_GETFOREGROUNDFLASHCOUNT 0x2004
+    #define SPI_SETFOREGROUNDFLASHCOUNT 0x2005
+    #define SPI_GETCARETWIDTH 0x2006
+    #define SPI_SETCARETWIDTH 0x2007
+
+    #if(_WIN32_WINNT >= 0x0501)
+        #define SPI_GETMOUSESONAR 0x101C
+        #define SPI_SETMOUSESONAR 0x101D
+        #define SPI_GETMOUSECLICKLOCK 0x101E
+        #define SPI_SETMOUSECLICKLOCK 0x101F
+        #define SPI_GETMOUSEVANISH 0x1020
+        #define SPI_SETMOUSEVANISH 0x1021
+        #define SPI_GETFLATMENU 0x1022
+        #define SPI_SETFLATMENU 0x1023
+        #define SPI_GETDROPSHADOW 0x1024
+        #define SPI_SETDROPSHADOW 0x1025
+        #define SPI_GETBLOCKSENDINPUTRESETS 0x1026
+        #define SPI_SETBLOCKSENDINPUTRESETS 0x1027
+    #endif
+
+    #if(_WIN32_WINNT >= 0x0501)
+        #define SPI_GETMOUSECLICKLOCKTIME 0x2008
+        #define SPI_SETMOUSECLICKLOCKTIME 0x2009
+        #define SPI_GETFONTSMOOTHINGTYPE 0x200A
+        #define SPI_SETFONTSMOOTHINGTYPE 0x200B
+
+        #define SPI_GETFONTSMOOTHINGCONTRAST 0x200C
+        #define SPI_SETFONTSMOOTHINGCONTRAST 0x200D
+        #define SPI_GETFOCUSBORDERWIDTH 0x200E
+        #define SPI_SETFOCUSBORDERWIDTH 0x200F
+        #define SPI_GETFOCUSBORDERHEIGHT 0x2010
+        #define SPI_SETFOCUSBORDERHEIGHT 0x2011
+        #define SPI_GETFONTSMOOTHINGORIENTATION 0x2012
+        #define SPI_SETFONTSMOOTHINGORIENTATION 0x2013
+
+        #define FE_FONTSMOOTHINGSTANDARD 0x0001
+        #define FE_FONTSMOOTHINGCLEARTYPE 0x0002
+        #define FE_FONTSMOOTHINGDOCKING 0x8000
+        #define FE_FONTSMOOTHINGORIENTATIONBGR 0x0000
+        #define FE_FONTSMOOTHINGORIENTATIONRGB 0x0001
+    #endif
 #endif
 
 #define SPIF_UPDATEINIFILE 1




More information about the Ros-diffs mailing list