Important:
This is retired content. This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This content may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist.
A version of this page is also available for
Windows Mobile Supported Windows Embedded CE Supported
4/14/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 nTypeFlagis not 1, the return value is zero; zero is a valid return value when nTypeFlagis 1. To obtain extended error information, call GetLastError.

Remarks

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

Requirements

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

See Also

Concepts

Layout Manager

Other Resources

GetKeyboardType