全局键鼠钩子类


Imports System.Reflection, System.Threading, System.ComponentModel, System.Runtime.InteropServices

Public Class Hotkey

”’ <summary>本类可以在.NET环境下使用系统键盘与鼠标钩子</summary>
Public Class SystemHook

#Region “定义结构”

Private Structure MouseHookStruct
Dim PT As Point
Dim Hwnd As Integer
Dim WHitTestCode As Integer
Dim DwExtraInfo As Integer
End Structure

阅读更多