Compartilhar via


GetKeyboardType (Compact 2013)

3/28/2014

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

The following table shows how Windows Embedded Compact 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

See Also

Reference

Keyboard Functions