Author: greatlrd
Date: Sat Jul 14 17:56:24 2007
New Revision: 27656
URL: http://svn.reactos.org/svn/reactos?rev=27656&view=rev
Log:
fixing the limit of hover maxium time for SPI_SETMOUSEHOVERTIME
see msdn : http://msdn2.microsoft.com/en-us/library/ms724947.aspx
Modified:
trunk/reactos/subsystems/win32/win32k/ntuser/misc.c
Modified: trunk/reactos/subsystems/win32/win32k/ntuser/misc.c
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/subsystems/win32/win32k/nt…
==============================================================================
--- trunk/reactos/subsystems/win32/win32k/ntuser/misc.c (original)
+++ trunk/reactos/subsystems/win32/win32k/ntuser/misc.c Sat Jul 14 17:56:24 2007
@@ -1062,13 +1062,24 @@
*((UINT*)pvParam) = CurInfo->MouseHoverTime;
break;
case SPI_SETMOUSEHOVERTIME:
+ /* see http://msdn2.microsoft.com/en-us/library/ms724947.aspx
+ * copy text from it, if some agument why xp and 2003 behovir diffent
+ * only if they do not have SP install
+ * " Windows Server 2003 and Windows XP: The operating system does not
+ * enforce the use of USER_TIMER_MAXIMUM and USER_TIMER_MINIMUM until
+ * Windows Server 2003 SP1 and Windows XP SP2 "
+ */
CurInfo = IntGetSysCursorInfo(WinStaObject);
CurInfo->MouseHoverTime = uiParam;
if(CurInfo->MouseHoverTime < USER_TIMER_MINIMUM)
{
CurInfo->MouseHoverTime = USER_TIMER_MINIMUM;
}
- /* FIXME limit the maximum time to 1000 ms? */
+ if(CurInfo->MouseHoverTime > USER_TIMER_MAXIMUM)
+ {
+ CurInfo->MouseHoverTime = USER_TIMER_MAXIMUM;
+ }
+
break;
case SPI_GETMOUSEHOVERWIDTH:
CurInfo = IntGetSysCursorInfo(WinStaObject);
Author: dreimer
Date: Sat Jul 14 17:31:45 2007
New Revision: 27655
URL: http://svn.reactos.org/svn/reactos?rev=27655&view=rev
Log:
Changed back to C:\RosBE as default folder. NonAdmin Account users need to set another one.
Tried to simplify WriteEnvStr.nsh a bit.
Modified:
trunk/tools/RosBE-Windows/RosBE.nsi
trunk/tools/RosBE-Windows/WriteEnvStr.nsh
Modified: trunk/tools/RosBE-Windows/RosBE.nsi
URL: http://svn.reactos.org/svn/reactos/trunk/tools/RosBE-Windows/RosBE.nsi?rev=…
==============================================================================
--- trunk/tools/RosBE-Windows/RosBE.nsi (original)
+++ trunk/tools/RosBE-Windows/RosBE.nsi Sat Jul 14 17:31:45 2007
@@ -10,7 +10,7 @@
;;
Name "${PRODUCT_NAME} ${PRODUCT_VERSION}"
OutFile "RosBE-${PRODUCT_VERSION}.exe"
-InstallDir "$PROFILE\RosBE"
+InstallDir "C:\RosBE"
InstallDirRegKey HKCU "${PRODUCT_DIR_REGKEY}" ""
ShowInstDetails show
ShowUnInstDetails show
@@ -252,7 +252,7 @@
Return
${else}
messageBox MB_OK|MB_ICONEXCLAMATION \
- "You do not have administrative privileges. Installing on NonAdmin Account is working now, but it's not tested well yet. NO Vista Support possible!"
+ "You do not have administrative privileges. You need to set a folder with writing rights to install your BE and Code to. NO Vista Support possible!"
Return
${EndIf}
FunctionEnd
Modified: trunk/tools/RosBE-Windows/WriteEnvStr.nsh
URL: http://svn.reactos.org/svn/reactos/trunk/tools/RosBE-Windows/WriteEnvStr.ns…
==============================================================================
--- trunk/tools/RosBE-Windows/WriteEnvStr.nsh (original)
+++ trunk/tools/RosBE-Windows/WriteEnvStr.nsh Sat Jul 14 17:31:45 2007
@@ -26,7 +26,13 @@
Call IsNT
Pop $2
${if} $2 == "1"
- goto WriteEnvStr_NT
+ WriteRegExpandStr ${WriteEnvStr_RegKey} $0 $1
+ SendMessage ${HWND_BROADCAST} ${WM_WININICHANGE} \
+ 0 "STR:Environment" /TIMEOUT=5000
+ Pop $2
+ Pop $0
+ Pop $1
+ Return
${endif}
; Not on NT
StrCpy $2 $WINDIR 2 ; Copy drive of windows (c:)
@@ -35,14 +41,6 @@
FileWrite $2 "$\r$\nSET $0=$1$\r$\n"
FileClose $2
SetRebootFlag true
- Goto WriteEnvStr_done
-
- WriteEnvStr_NT:
- WriteRegExpandStr ${WriteEnvStr_RegKey} $0 $1
- SendMessage ${HWND_BROADCAST} ${WM_WININICHANGE} \
- 0 "STR:Environment" /TIMEOUT=5000
-
- WriteEnvStr_done:
Pop $2
Pop $0
Pop $1
@@ -67,7 +65,16 @@
Call un.IsNT
Pop $1
${if} $1 == "1"
- goto DeleteEnvStr_NT
+ DeleteRegValue ${WriteEnvStr_RegKey} $0
+ SendMessage ${HWND_BROADCAST} ${WM_WININICHANGE} \
+ 0 "STR:Environment" /TIMEOUT=5000
+ Pop $5
+ Pop $4
+ Pop $3
+ Pop $2
+ Pop $1
+ Pop $0
+ Return
${endif}
; Not on NT
StrCpy $1 $WINDIR 2
@@ -97,14 +104,6 @@
Delete "$1\autoexec.bat"
CopyFiles /SILENT $4 "$1\autoexec.bat"
Delete $4
- Goto DeleteEnvStr_done
-
- DeleteEnvStr_NT:
- DeleteRegValue ${WriteEnvStr_RegKey} $0
- SendMessage ${HWND_BROADCAST} ${WM_WININICHANGE} \
- 0 "STR:Environment" /TIMEOUT=5000
-
- DeleteEnvStr_done:
Pop $5
Pop $4
Pop $3
Author: dreimer
Date: Sat Jul 14 17:03:40 2007
New Revision: 27653
URL: http://svn.reactos.org/svn/reactos?rev=27653&view=rev
Log:
Forget thoese gotos
Modified:
trunk/tools/RosBE-Windows/RosBE.nsi
Modified: trunk/tools/RosBE-Windows/RosBE.nsi
URL: http://svn.reactos.org/svn/reactos/trunk/tools/RosBE-Windows/RosBE.nsi?rev=…
==============================================================================
--- trunk/tools/RosBE-Windows/RosBE.nsi (original)
+++ trunk/tools/RosBE-Windows/RosBE.nsi Sat Jul 14 17:03:40 2007
@@ -227,53 +227,42 @@
"Software\Microsoft\Windows\CurrentVersion\Uninstall\${PRODUCT_NAME}" \
"DisplayVersion"
${If} $R1 == "${PRODUCT_VERSION}"
- goto SameVersion
+ messageBox MB_OK|MB_ICONEXCLAMATION \
+ "You already have the ${PRODUCT_NAME} v${PRODUCT_VERSION} installed. Please manually uninstall the ${PRODUCT_NAME} v${PRODUCT_VERSION} if you want to reinstall."
+ Quit
${EndIf}
${If} $R0 == ""
- goto NoPreviousVersion
+ Return
${EndIf}
MessageBox MB_YESNO|MB_ICONQUESTION \
"A previous version of the ${PRODUCT_NAME} was found. You must uninstall it before installing this version.$\n$\nDo you want to do that now?" \
IDNO UninstallPrevious_no \
IDYES UninstallPrevious_yes
Abort
- SameVersion:
- messageBox MB_OK|MB_ICONEXCLAMATION \
- "You already have the ${PRODUCT_NAME} v${PRODUCT_VERSION} installed. Please manually uninstall the ${PRODUCT_NAME} v${PRODUCT_VERSION} if you want to reinstall."
- Quit
UninstallPrevious_no:
Quit
UninstallPrevious_yes:
ExecWait '$R0 _?=$INSTDIR'
- NoPreviousVersion:
FunctionEnd
Function CheckAdminOrCurrent
userInfo::getAccountType
pop $R0
${If} $R0 == "Admin"
- goto IsAdmin
+ Return
${else}
- goto IsNotAdmin
- ${EndIf}
- IsAdmin:
- Return
- IsNotAdmin:
messageBox MB_OK|MB_ICONEXCLAMATION \
- "You do not have administrative privileges. Installing on NonAdmin Account is working now, but it's not tested well yet. NO Vista Support possible!"
- Return
+ "You do not have administrative privileges. Installing on NonAdmin Account is working now, but it's not tested well yet. NO Vista Support possible!"
+ Return
+ ${EndIf}
FunctionEnd
Function un.CheckAdminOrCurrent
userInfo::getAccountType
pop $R0
${If} $R0 == "Admin"
- goto IsAdmin
+ Return
${else}
- goto IsNotAdmin
- ${EndIf}
- IsAdmin:
- Return
- IsNotAdmin:
- Return
-FunctionEnd
+ Return
+ ${EndIf}
+FunctionEnd