int InquireEx(WORD wAction, LPKBINFO lpKBInfo, int nCount)
Sets and retrieves keyboard information.
wAction
Action flag. Can be one of these values:
Value | Meaning and return value |
INQEX_KBDINFO (1) | Retrieves keyboard information. Returns, in AX, the number of bytes copied to the buffer. |
INQEX_NLCID (2) | Retrieves the number of layouts currently in the driver. Returns the number in AX. |
INQEX_LPLCID (3) | Retrieves the list of layouts currently installed in the driver. Returns the number of layouts in in the list. |
INQEX_KEYBOARDTYPE (4) | Retrieves the keyboard type. |
INQEX_KEYBOARDSUBTYPE(5) | Retrieves the keyboard sub-type. |
INQEX_NFUNCKEYS(6) | Retrieves the number of function keys. |
INQEX_SETBASELOCALE (7) | Sets the current locale. No return value. |
INQEX_SETSYSLOCALE (8) | Sets the system locale. No return value. |
lpKBInfo
Value depends on wAction. Can be one of these values:
Value of wAction | Meaning of lpKBInfo |
INQEX_KBDINFO (1) | Address of a KBINFO structure that that receives the information. |
INQEX_LPLCID (3) | Address of a buffer containing an array of layout identifiers. |
INQEX_SETBASELOCALE (7) | Locale identifier. |
INQEX_SETSYSLOCALE (8) | Locale identifier |
The lpKBInfo parameter is not used if wAction specifies any other value.
nCount
Number of layout identifiers in the lpKBInfo buffer. This parameter is used only if wAction specifies INQEX_LPLCID.
The export ordinal for this function is 9.
New keyboard drivers should support both the InquireEx and Inquire functions.
See also Inquire