14 lines
413 B
C#
14 lines
413 B
C#
using System;
|
|
using System.Runtime.InteropServices;
|
|
|
|
namespace NHotkey
|
|
{
|
|
static class NativeMethods
|
|
{
|
|
[DllImport("user32.dll", SetLastError = true)]
|
|
internal static extern bool RegisterHotKey(IntPtr hWnd, int id, HotkeyFlags fsModifiers, uint vk);
|
|
|
|
[DllImport("user32.dll", SetLastError = true)]
|
|
internal static extern bool UnregisterHotKey(IntPtr hWnd, int id);
|
|
}
|
|
} |