我查了,有相关的api函数,也是检测个大概。但是再改原来软件的定位就改变了。
int WINAPI GetKeyboardType(
__in int nTypeFlag
);
值 含意
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