Пример #1
0
 /// <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));
 }
Пример #2
0
 private static extern bool RegisterHotKey(IntPtr hWnd, int id, CombinationKeys combinationKeys, Keys key);