home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 11 Util
/
11-Util.zip
/
KBSPEEDU.ZIP
/
SPEED.C
next >
Wrap
C/C++ Source or Header
|
1990-04-11
|
668b
|
36 lines
/******************************************************************************
*
* speed.exe, kick the keyboard in the butt!
*
* TIm Purves, MichTron Inc 04/10/90
*****************************************************************************/
#define INCL_DOSDEVICES
#define INCL_SUB
#define INCL_DOS
#include <os2.h>
struct _f54Info
{
unsigned DelayMS;
unsigned RepeatRate;
};
main()
{
struct _f54Info f54Info;
HFILE handle;
unsigned action;
if(!DosOpen("KBD$",&handle,&action,0L,0,1,0x42,0L))
{
f54Info.DelayMS = 250;
f54Info.RepeatRate = 30;
DosDevIOCtl(0L,&f54Info,0x54,4,handle);
DosClose(handle);
}
}