Share via


PFN_LAYOUT_MGR_GET_KEYBOARD_TYPE (Windows Embedded CE 6.0)

1/6/2010

This function is a prototype of a function that retrieves information about the current keyboard.

Syntax

typedef int (*PFN_LAYOUT_MGR_GET_KEYBOARD_TYPE)(
  int nTypeFlag
);

Parameters

  • nTypeFlag
    [in] Keyboard information to retrieve.

    The following table shows the values and the corresponding information they retrieve.

    Value Description

    0

    Keyboard type

    1

    Keyboard subtype

    2

    Number of function keys

Return Value

If the function succeeds, the return value specifies the requested information. If the function fails and nTypeFlag is not 1, the return value is zero; zero is a valid return value when nTypeFlag is 1. To obtain extended error information, call GetLastError.

Remarks

This function must be re-entrant because the input system exposes it through the GetKeyboardType function and multiple threads can call it.

Requirements

Header keybddr.h
Library layoutmanager.lib
Windows Embedded CE Windows CE .NET 4.2 and later

See Also

Reference

Keyboard Driver MDD Functions

Concepts

Layout Manager

Other Resources

GetKeyboardType