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
'.NET > Windows API for .NET' 카테고리의 다른 글
| GetWindowsDirectory - 운영체제 설치경로 (0) | 2019.08.09 |
|---|---|
| GetUseName - 현재 윈도우 사용자 이름 구하기 (0) | 2019.08.09 |
| SetCaretBlinkTime - Caret깜빡임 속도 지정 (0) | 2019.08.09 |
| CopyCursor / CopyIcon - Cursor의 Handle 복사 (0) | 2019.08.09 |
| UnloadKeyboardLayout - 지정한 Keyboard배열제거 (0) | 2019.08.09 |