GetKeyboardType

WORD GetKeyboardType(
  WORD wWhich
 );
 

Identifies the type of keyboard.

wWhich
Flag that specifies whether the function returns a keyboard type or an OEM subtype. If the parameter is 0, the function returns the basic type. If the parameter is 1, the function returns the OEM subtype.

The export ordinal for this function is 130.

If a keyboard type is requested (wWhich is 0), the function returns one of these keyboard types:

Value Meaning
1 IBM PC, XT or compatible (83 key)
2 Olivetti M24 "ICO" (102 key)
3 IBM AT (84 keys) or similar
4 IBM Enhanced (101 or 102 keys)
5 Nokia 1050
6 Nokia

If a keyboard subtype is requested (wWhich is 1), the function returns a nonzero OEM-dependent subtype or zero to indicate that no subtypes are available.