[DllImport("coredll.dll")]
[return: MarshalAs(UnmanagedType.Bool)]
static extern bool UnregisterFunc1(uint fsModifiers, uint id);
TODO
None.
Do you know one? Please contribute it!
None.
Please add some!
[DllImport("coredll.dll")]
[return: MarshalAs(UnmanagedType.Bool)]
static extern bool UnregisterFunc1(uint fsModifiers, uint id);
private const int MOD_ALT = 0x1;
private const int MOD_CONTROL = 0x2;
private const int MOD_SHIFT = 0x4;
private const int MOD_WIN = 0x8;
private const int WM_HOTKEY = 0x312;
private void BlockKey(HardwareKeys key)
{
if(!UnregisterFunc1(MOD_WIN, (uint)key))
System.Console.WriteLine("Could not block key: " + key.ToString());
}