Share via


PFN_LAYOUT_MGR_GET_KEYBOARD_TYPE (Compact 2013)

3/26/2014

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

See Also

Reference

Keyboard Driver MDD Functions

Other Resources

GetKeyboardType