.NET/Windows API for .NET
GetkeyboardType - 키보드 관련 정보확인
클리엘
2019. 8. 9. 17:00
728x90
Declare Function GetKeyboardType Lib "user32" Alias "GetKeyboardType" (ByVal nTypeFlag As Integer) As Integer
▶VB.NET 선언
GetkeyboardType(0)
GetkeyboardType(1)
GetkeyboardType(2)
▶VB.NET 호출
[System.Runtime.InteropServices.DllImport("user32.dll")]
private static extern int GetKeyboardType(int nTypeFlag);
▶C# 선언
GetKeyboardType(0).ToString();
GetKeyboardType(1).ToString();
GetKeyboardType(2).ToString();
▶C# 호출
인수 | 설명 |
0 | keyboard 종류 |
1 | keyboard subtype |
2 | keyboard function key 수 |
GetKeyboardType 인수
반환값 | 설명 |
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 |
- | 그 외값 알수없음 |
GetKeyboardType호출시 인수가 1일경우 반환값
728x90