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. |
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 nTypeFlagis not one, the return value is zero; zero is a valid return value when nTypeFlagis one, which specifies a keyboard subtype.
To obtain extended error information, call GetLastError.
Remarks
These values are based on the current input language and are used by the RDP client.
The following table shows how Windows Embedded CE 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 |
Windows Embedded CE | Windows CE .NET 4.2 and later |
Windows Mobile | Windows Mobile Version 5.0 and later |