mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-04-05 02:36:19 +02:00
24 lines
532 B
Plaintext
24 lines
532 B
Plaintext
|
|
namespace PowerToys
|
||
|
|
{
|
||
|
|
namespace Interop
|
||
|
|
{
|
||
|
|
struct Hotkey
|
||
|
|
{
|
||
|
|
Boolean Win;
|
||
|
|
Boolean Ctrl;
|
||
|
|
Boolean Shift;
|
||
|
|
Boolean Alt;
|
||
|
|
UInt8 Key;
|
||
|
|
};
|
||
|
|
delegate void HotkeyCallback();
|
||
|
|
|
||
|
|
[default_interface] runtimeclass HotkeyManager : Windows.Foundation.IClosable
|
||
|
|
{
|
||
|
|
HotkeyManager();
|
||
|
|
UInt16 RegisterHotkey(Hotkey _hotkey, HotkeyCallback _callback);
|
||
|
|
void UnregisterHotkey(UInt16 _handle);
|
||
|
|
}
|
||
|
|
|
||
|
|
}
|
||
|
|
}
|