/ src / runner / centralized_kb_hook.h
centralized_kb_hook.h
 1  #include "pch.h"
 2  
 3  #include "../modules/interface/powertoy_module_interface.h"
 4  
 5  namespace CentralizedKeyboardHook
 6  {
 7      using Hotkey = PowertoyModuleIface::Hotkey;
 8  
 9      void Start() noexcept;
10      void Stop() noexcept;
11      void SetHotkeyAction(const std::wstring& moduleName, const Hotkey& hotkey, std::function<bool()>&& action) noexcept;
12      void AddPressedKeyAction(const std::wstring& moduleName, const DWORD vk, const UINT milliseconds, std::function<bool()>&& action) noexcept;
13      void ClearModuleHotkeys(const std::wstring& moduleName) noexcept;
14      void RegisterWindow(HWND hwnd) noexcept;
15  };