int SetSpeed(int Rate);
Sets the repeat rate of the keyboard. This function is intended to be used by Control Panel and by the initialization of Windows.
If Rate is a repeat rate (not -1), the return value is the repeat rate actually set on the keyboard if it is successful. If it could not set a new rate, the return value is -1.
If Rate is -1, the return value is 0 if the repeat rate speed can be set. Otherwise, it is -1.
Rate
Repeat rate. The lowest 5 bits define the desired repeat rate. If Rate is -1, the return value is a value indicating speed-setting capability.
The export ordinal for this function is 7.
This function is used in conjunction with Control Panel for setting the keyboard repeat rate.
If the keyboard speed cannot be set from software, this function may be reduced to a stub which always returns -1. In that case, Control Panel will not display a menu selection for setting keyboard speed.