[ros-kernel] Re: [ros-cvs] CVS Update: reactos (CursorBlinkRate)

Thomas Weidenmueller info at w3seek.de
Sat Nov 22 10:46:47 CET 2003


Richard Campbell wrote:

>
>   SetCaretBlinkTime Function
>
> ------------------------------------------------------------------------
>
> The *SetCaretBlinkTime* function sets the caret blink time to the 
> specified number of milliseconds. The blink time is the elapsed time, 
> in milliseconds, required to invert the caret's pixels.
>
> Syntax
>
>BOOL SetCaretBlinkTime(      
>    UINT /uMSeconds/
>);
>
> Parameters
>
>     /uMSeconds/
>         [in] Specifies the new blink time, in milliseconds. 
>
> Return Value
>
>     If the function succeeds, the return value is nonzero.
>
>     If the function fails, the return value is zero. To get extended
>     error information, call GetLastError
>     <http://msdn.microsoft.com/library/en-us/debug/base/getlasterror.asp>.
>
>
>
> Remarks
>
>     The user can set the blink time using the Control Panel.
>     Applications should respect the setting that the user has chosen.
>     The *SetCaretBlinkTime* function should only be used by
>     application that allow the user to set the blink time, *such as a
>     Control Panel applet*. (wouldn't this suggest that the control
>     panel applet uses this call?  this is what i based my changes off
>     from, msdn.)
>
>     If you change the blink time, subsequently activated applications
>     will use the modified blink time, even if you restore the previous
>     blink time when you lose the keyboard focus or become inactive.
>     This is due to the multithreaded environment, where deactivation
>     of your application is not synchronized with the activation of
>     another application. This feature allows the system to activate
>     another application even if the current application is hung.
>
> Function Information
>
>     Header 	Declared in Winuser.h, include Windows.h
>     Import library 	User32.lib
>     Minimum operating systems 	Windows 95, Windows NT 3.1
>
> See Also
>
>     Carets Overview
>     <http://msdn.microsoft.com/library/en-us/winui/WinUI/WindowsUserInterface/Resources/Carets.asp>,
>     GetCaretBlinkTime
>     <http://msdn.microsoft.com/library/en-us/winui/WinUI/WindowsUserInterface/Resources/Carets/CaretReference/CaretFunctions/GetCaretBlinkTime.asp>
>
>
>
> Thomas Weidenmueller wrote:
>
>> Richard Campbell wrote:
>>
>>> CVSROOT:    /CVS/ReactOS
>>> Module name:    reactos
>>> Repository:    reactos/subsys/win32k/ntuser/
>>> Changes by:    rcampbell at mok.osexperts.com.(none)    03/11/21 17:49:39
>>>
>>> Modified files:
>>>     reactos/subsys/win32k/ntuser/: caret.c
>>> Log message:
>>>     CursorBlinkRate is now loaded via the registry.
>>>
>>> _______________________________________________
>>> Ros-cvs mailing list
>>> Ros-cvs at reactos.com
>>> http://reactos.geldorp.nl:8080/mailman/listinfo/ros-cvs
>>>
>>>
>>>  
>>>
>> Windows doesn't change the value in the registry if you call 
>> SetCaretBlinkTime() and it also doesn't query the registry if you 
>> call GetCaretBlinkTime(). The value is loaded after login (i guess 
>> through winlogon.exe) from the registry and it is only saved to the 
>> registry if you change it with the control panel.
>>
>> Regards
>> Thomas
>>
>> _______________________________________________
>> Ros-kernel mailing list
>> Ros-kernel at reactos.com
>> http://reactos.geldorp.nl:8080/mailman/listinfo/ros-kernel
>>
>
>------------------------------------------------------------------------
>
>_______________________________________________
>Ros-kernel mailing list
>Ros-kernel at reactos.com
>http://reactos.geldorp.nl:8080/mailman/listinfo/ros-kernel
>
I know the definition of SetCaretBlinkTime and GetCaretBlinkTime, they 
only change the window stations value but not save or read them from the 
registry! I'll implement it so it only queries the value from the 
registry the first call.

Regards
Thomas



More information about the Ros-kernel mailing list