GetKeyboardPreferences
int GetKeyboardPreferences (int *keyboardType, int *numFunctionKeys, unsigned long *repeatDelay, unsigned long *speed);
Purpose
This function gets the type and timing attributes of the currently installed Windows keyboard.
(Linux) This function is not supported.
Parameters
Output | ||
Name | Type | Description |
keyboardType | int | 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 | int | 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. |
Return Value
Name | Type | Description |
status | int | 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. |
Additional Information
Library: Programmer's Toolbox
Include file: toolbox\toolbox.h
LabWindows/CVI compatibility: LabWindows/CVI 5.5 and later