The information in this article applies to:
SYMPTOMSWhen a program uses the SystemParametersInfo() function with the SPI_SETMOUSEBUTTONSWAP and SPIF_UPDATEINIFILE flags to reverse the mouse buttons' orientation and modify WIN.INI, the appropiate changes to WIN.INI are not made. The next time Windows starts, the buttons are back to the default orientation. CAUSE
Calling SystemParametersInfo (SPI_SETMOUSEBUTTONSWAP, TRUE, NULL,
SPIF_UPDATEINIFILE), modifies or creates the SwapMouseButtons entry in
the "Windows" section of WIN.INI. However, the value this function writes
is "1", unlike the Control Panel's mouse applet which writes "Yes".
RESOLUTIONAn alternative way to swap the mouse buttons and modify the entry correctly is to use both SwapMouseButton() and WriteProfileString() to alter the mouse button orientation and explicitly modify the initialization file. The following code shows the method explained:
STATUSMicrosoft has confirmed this to be a bug in the Microsoft Windows SDK version 3.1. Additional query words:
Keywords : kb16bitonly kbSysSettings kbGrpUser kbWinOS310bug |
Last Reviewed: November 10, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |