/// <summary> /// 注册热键 /// </summary> /// <param name="hwnd">窗口句柄</param> /// <param name="hotKeyId">热键ID</param> /// <param name="combinationKeys">组合键</param> /// <param name="key">热键代码</param> public static bool RegisterKey(IntPtr hwnd, int hotKeyId, CombinationKeys combinationKeys, Keys key) { return(RegisterHotKey(hwnd, hotKeyId, combinationKeys, key)); }
private static extern bool RegisterHotKey(IntPtr hWnd, int id, CombinationKeys combinationKeys, Keys key);