Compartir a través de


GetKeyboardType (Windows CE 5.0)

Send Feedback

This function retrieves information about the current keyboard.

int GetKeyboardType(  int nTypeFlag);

Parameters

  • nTypeFlag
    [in] Type of keyboard information to be retrieved. The following table shows the possible values for this parameter. You can choose only one.
    Value Description
    0 Keyboard type.
    1 Keyboard subtype.
    2 Number of function keys on the keyboard.

Return Values

If the function succeeds, the return value specifies the requested information.

If the function fails and nTypeFlag is not one, the return value is zero; zero is a valid return value when nTypeFlag is one, which specifies a keyboard subtype.

To obtain extended error information, call GetLastError.

Remarks

These values are based on the current input language and are used by the RDP client.

The following table shows how Windows CE supported keyboards map to types and subtypes.

Keyboard Type Subtype
US 4 0
Jpn1 7 2
Jpn2 7 2
Kor 8 3

Requirements

OS Versions: Windows CE .NET 4.2 and later.
Header: Winuser.h.
Link Library: Coredll.lib.

See Also

Keyboard Drivers | Layout Manager

Send Feedback on this topic to the authors

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.