.NET
GetCursorPos - Mouse Pointer의 현재위치 반환
GetCursorPos함수는 현재 화면상에서 Mouse Pointer의 위치를 반환합니다. Declare Function GetCursorPos Lib "user32" Alias "GetCursorPos" (ByRef lpPoint As POINTAPI) As Integer - VB.NET 선언 Public Structure POINTAPI Public x As Integer Public y As Integer End Structure Dim pntapi As POINTAPI GetCursorPos(pntapi) pntapi.x pntapi.y - VB.NET 호출 [DllImport("user32.dll")] public static extern int GetCursorPos(ref POINTAPI l..
LoadkeyboardLayout - Keyboard 배열 가져오기
LoadKeyboardLayout함수는 함수가 호출된 현재 Process에 인수로 지정한 Keyboard Layout을 가져올 수 있도록 합니다. Declare Function LoadKeyboardLayout Lib "user32" Alias "LoadKeyboardLayoutA" (ByVal pwszKLID As String, ByVal flags As Integer) As Integer ▶VB.NET 선언 'flag 상수 Private Const KLF_ACTIVATE As Integer = &H1 Private Const KLF_NOTELLSHELL As Integer = &H80 Private Const KLF_REORDER As Integer = &H8 Private Const KLF_REPL..
GetKeyboardLayoutName - Keyboard Layout 이름 반환
GetKeyboardLayout 함수는 현재 함수가 실행되고 있거나 인수로 전달된 Thread에서 사용되고 있는 Keyboard Layout의 이름을 반환하지만 GetKeyboardLayoutName함수는 System에 기본적으로 설정되어 있는 Layout의 이름을 반환합니다. Declare Function GetKeyboardLayoutName Lib "user32" Alias "GetKeyboardLayoutNameA" (ByVal pwszKLID As String) As Integer VB.NET 선언 Dim kbln As String = Space(8) GetKeyboardLayoutName(kbln) VB.NET 호출 [System.Runtime.InteropServices.DllImport("..