using System.Runtime.InteropServices; using System.Collections.Generic; using System; using System.Windows.Forms; namespace Phoenix { //注册系统按键消息 class HotKeys { [DllImport("user32.dll")] private static extern bool RegisterHotKey(IntPtr hWnd, int…
1.新建一个类 HotkeyHelper using System; using System.Runtime.InteropServices; using System.Windows.Forms; using System.Collections; namespace 黄聪 { public delegate void HotkeyEventHandler(int hotKeyID); public class HotkeyHelper : IMessageFilter { public…