C# 클래스 Utilities.globalKeyboardHook

A class that manages a global low level keyboard hook
파일 보기 프로젝트 열기: Afkbio/diabloitemcapture 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
HookedKeys List

공개 메소드들

메소드 설명
globalKeyboardHook ( ) : System

Initializes a new instance of the globalKeyboardHook class and installs the keyboard hook.

hook ( ) : void

Installs the global hook

hookProc ( int code, int wParam, keyboardHookStruct &lParam ) : int

The callback for the keyboard hook

unhook ( ) : void

Uninstalls the global hook

비공개 메소드들

메소드 설명
CallNextHookEx ( IntPtr idHook, int nCode, int wParam, keyboardHookStruct &lParam ) : int
LoadLibrary ( string lpFileName ) : IntPtr
SetWindowsHookEx ( int idHook, keyboardHookProc callback, IntPtr hInstance, uint threadId ) : IntPtr
UnhookWindowsHookEx ( IntPtr hInstance ) : bool

메소드 상세

globalKeyboardHook() 공개 메소드

Initializes a new instance of the globalKeyboardHook class and installs the keyboard hook.
public globalKeyboardHook ( ) : System
리턴 System

hook() 공개 메소드

Installs the global hook
public hook ( ) : void
리턴 void

hookProc() 공개 메소드

The callback for the keyboard hook
public hookProc ( int code, int wParam, keyboardHookStruct &lParam ) : int
code int The hook code, if it isn't >= 0, the function shouldn't do anyting
wParam int The event type
lParam keyboardHookStruct The keyhook event information
리턴 int

unhook() 공개 메소드

Uninstalls the global hook
public unhook ( ) : void
리턴 void

프로퍼티 상세

HookedKeys 공개적으로 프로퍼티

The collections of keys to watch for
public List HookedKeys
리턴 List