클리엘
CLIEL LAB
클리엘
전체 방문자
오늘
어제
  • 분류 전체보기 (514)
    • Mobile (47)
      • Kotlin (47)
    • Web (84)
      • NestJS (9)
      • HTML5 & CSS3 (38)
      • Javascript (20)
      • TypeScript (6)
      • JQuery (11)
    • .NET (301)
      • C# (84)
      • ASP.NET (67)
      • Windows API for .NET (128)
    • Server (53)
      • SQL Server (10)
      • MariaDB (18)
      • Windows Server (6)
      • node.js (19)
    • System (12)
      • 작업LOG (12)
    • Review (11)
    • ETC (6)

블로그 메뉴

  • 홈
  • 태그
  • 방명록

공지사항

  • 블로그 정리

인기 글

태그

  • ASP.NET
  • Kotlin
  • Entity Framework
  • android studio
  • asp.net core web api
  • NestJS
  • LINQ
  • c#
  • .NET
  • android
  • jQuery
  • node.js
  • JavaScript
  • asp.net core
  • CSS3
  • MariaDB
  • exception
  • Windows API
  • HTML5
  • 변수

최근 댓글

최근 글

티스토리

hELLO · Designed By 정상우.
클리엘

CLIEL LAB

.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
저작자표시 비영리 변경금지 (새창열림)

'.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
    '.NET/Windows API for .NET' 카테고리의 다른 글
    • GetWindowsDirectory - 운영체제 설치경로
    • GetUseName - 현재 윈도우 사용자 이름 구하기
    • SetCaretBlinkTime - Caret깜빡임 속도 지정
    • CopyCursor / CopyIcon - Cursor의 Handle 복사
    클리엘
    클리엘
    누구냐 넌?

    티스토리툴바