The GetKeyboardType function retrieves information about the current keyboard.
int GetKeyboardType(
int nTypeFlag |
// type of information to retrieve |
); |
Value |
Meaning |
0 |
Keyboard type |
1 |
Keyboard subtype |
2 |
Number of function keys on the keyboard |
If the function succeeds, the return value specifies the requested information.
If the function fails, the return value is zero. To get extended error information, call GetLastError.
The subtype is an original equipment manufacturer (OEM)-dependent value. The type may be one of the following values:
Value |
Meaning |
1 |
IBM PC/XT or compatible (83-key) keyboard |
2 |
Olivetti “ICO” (102-key) keyboard |
3 |
IBM PC/AT (84-key) or similar keyboard |
4 |
IBM enhanced (101- or 102-key) keyboard |
5 |
Nokia 1050 and similar keyboards |
6 |
Nokia 9140 and similar keyboards |
7 |
Japanese keyboard |
The application can also determine the number of function keys on a keyboard from the keyboard type. Following are the number of function keys for each keyboard type:
Type |
Number of function keys |
1 |
10 |
2 |
12 (sometimes 18) |
3 |
10 |
4 |
12 |
5 |
10 |
6 |
24 |
7 |
Hardware dependent and specified by the OEM |
file: /Techref/os/win/api/win32/func/src/f33_10.htm, 5KB, , updated: 2000/4/7 11:19, local time: 2024/11/14 13:32,
44.211.24.175:LOG IN
|
©2024 These pages are served without commercial sponsorship. (No popup ads, etc...).Bandwidth abuse increases hosting cost forcing sponsorship or shutdown. This server aggressively defends against automated copying for any reason including offline viewing, duplication, etc... Please respect this requirement and DO NOT RIP THIS SITE. Questions? <A HREF="http://www.piclist.com/techref/os/win/api/win32/func/src/f33_10.htm"> GetKeyboardType</A> |
Did you find what you needed? |
PICList 2024 contributors:
o List host: MIT, Site host massmind.org, Top posters @none found - Page Editors: James Newton, David Cary, and YOU! * Roman Black of Black Robotics donates from sales of Linistep stepper controller kits. * Ashley Roll of Digital Nemesis donates from sales of RCL-1 RS232 to TTL converters. * Monthly Subscribers: Gregg Rew. on-going support is MOST appreciated! * Contributors: Richard Seriani, Sr. |
Welcome to www.piclist.com! |
.