2024年3月20日发(作者:)

break;

}

c(ref m );

}

------- using HOTKEYs in a C# application ------- */

[DllImport("", SetLastError=true)]

public static extern bool RegisterHotKey( IntPtr hWnd, // handle to window

int id, // hot key identifier

KeyModifiers fsModifiers, // key-modifier options

Keys vk // virtual-key code

);

[DllImport("", SetLastError=true)]

public static extern bool UnregisterHotKey( IntPtr hWnd, // handle to window

int id // hot key identifier

);

[Flags()]

public enum KeyModifiers

{

None = 0,

Alt = 1,

Control = 2,

Shift = 4,

Windows = 8

}

}

}