Compartilhar via


GetKeyboardType

A version of this page is also available for

Windows Embedded CE 6.0 R3

4/8/2010

This function retrieves information about the current keyboard.

Syntax

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 Value

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 Embedded CE supported keyboards map to types and subtypes.

Keyboard Type Subtype

US

4

0

Jpn1

7

2

Jpn2

7

2

Kor

8

3

Requirements

Header winuser.h
Library coredll.lib
Windows Embedded CE Windows CE .NET 4.2 and later
Windows Mobile Windows Mobile Version 5.0 and later

See Also

Other Resources

Keyboard Drivers
Layout Manager