int GetKeyboardPreferences (int *keyboardType, int *numFunctionKeys, unsigned long *repeatDelay, unsigned long *speed);
This function gets the type and timing attributes of the currently installed Windows keyboard.
Output | ||
Name | Type | Description |
keyboardType | integer * | Returns an integer indicating the type of currently installed keyboard. You may pass NULL for this parameter. Possible output values: 1 KYBD_IBM_PCXT 2 KYBD_OLIVETTI_ICO 3 KYBD_IBM_PCAT 4 KYBD_IBM_Enh 5 KYBD_NOKIA_1050 6 KYBD_NOKIA_9140 7 KYBD_JAPANESE |
numFunctionKeys | integer * | Returns an integer indicating the number of function keys on the currently installed keyboard. You may pass NULL for this parameter. |
repeatDelay | unsigned long * | Returns an integer indicating the repeat delay of the currently installed keyboard (0–3 increasing). You may pass NULL for this parameter. |
speed | unsigned long * | Returns an integer containing the speed of the currently installed keyboard (0–31 increasing). You may pass NULL for this parameter. |
Name | Type | Description |
status | integer | The status code that the function returns. 0 indicates success. A negative value indicates an error. This function may return a Programmer's Toolbox or UI Library error code. Call GetGeneralErrorString to obtain a text description of the error. |