|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.|
This function is a prototype of a function that retrieves information about the current keyboard.
typedef int (*PFN_LAYOUT_MGR_GET_KEYBOARD_TYPE)( int nTypeFlag );
[in] Keyboard information to retrieve.
The following table shows the values and the corresponding information they retrieve.
Number of function keys
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.
This function must be re-entrant because the input system exposes it through the GetKeyboardTypefunction and multiple threads can call it.
|Windows Embedded CE||Windows CE .NET 4.2 and later|
|Windows Mobile||Windows Mobile Version 5.0 and later|