mirror of
https://github.com/reactos/reactos.git
synced 2025-02-24 17:34:57 +00:00
CursorBlinkRate is now loaded via the registry.
svn path=/trunk/; revision=6747
This commit is contained in:
parent
3efc298356
commit
a1c96638c6
1 changed files with 17 additions and 3 deletions
|
@ -1,4 +1,4 @@
|
|||
/* $Id: caret.c,v 1.3 2003/10/17 20:31:56 weiden Exp $
|
||||
/* $Id: caret.c,v 1.4 2003/11/22 01:49:39 rcampbell Exp $
|
||||
*
|
||||
* COPYRIGHT: See COPYING in the top level directory
|
||||
* PROJECT: ReactOS kernel
|
||||
|
@ -47,10 +47,24 @@ IntSetCaretBlinkTime(UINT uMSeconds)
|
|||
return FALSE;
|
||||
}
|
||||
|
||||
UINT FASTCALL
|
||||
UINT
|
||||
IntGetCaretBlinkTime(VOID)
|
||||
{
|
||||
return 500;
|
||||
HKEY hKey;
|
||||
BYTE dwValue[4];
|
||||
DWORD dwType;
|
||||
DWORD dwLen;
|
||||
|
||||
|
||||
if (RegOpenKeyEx( HKEY_CURRENT_USER, "Control Panel\\Desktop", 0, KEY_READ, &hKey) == ERROR_SUCCESS)
|
||||
{
|
||||
|
||||
if (RegQueryValueEx(hKey,"CursorBlinkRate",NULL,&dwType,dwValue,&dwLen) == ERROR_SUCCESS)
|
||||
{
|
||||
return atoi( (char *)dwValue );
|
||||
}
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
||||
BOOL FASTCALL
|
||||
|
|
Loading…
Reference in a new issue