C#如何设置全局热键?
C#如何设置全局热键?
日期:2021-11-14 18:19:53 人气:1
[System.Runtime.InteropServices.DllImport("user32.dll")] //申明API函数
public static extern bool RegisterHotKey(
IntPtr hWnd, // handle to window
int id, // hot key identifier
public static extern bool RegisterHotKey(
IntPtr hWnd, // handle to window
int id, // hot key identifier