PowerToys/src/common
Ivan Stošić b266e336b5
[Launcher] Use a keyboard hook in the runner to invoke the Launcher (#6660)
* Added a keyboard hook to the runner

* Update RootKeyboardHook

* Enable reading the whole JsonObject property

* Renamed RootKeyboardHook to CentralizedKeyboardHook

* Fixed build break, changed callback return type to bool

* Added Hotkey struct which somehow went missing

+ Cherry-pick fixes

* Reorganized the kb hook

* Basic version works

* Various fixes

* Finishing touches

* Fix potential threading issue

* int -> size_t

* Add default initializers to the Hotkey struct

* Added a suggested comment

* Unified a constant

* Use C# classes instead of native calls for sync

* Added a claryfing comment

* Use std::move

* Renamed a method

* Possible fix for compilation errors

* Fix a regression

* Show a message on failure

* Added DISABLE_LOWLEVEL_HOOK support

* Allow running Launcher as standalone

* Rename string constants
2020-09-21 12:44:16 +02:00
..
common-md-flag chore: enable multiprocessor compilation (#5272) 2020-07-28 17:20:01 +03:00
interop [Launcher] Use a keyboard hook in the runner to invoke the Launcher (#6660) 2020-09-21 12:44:16 +02:00
interop-tests Getting FxCop online (#6668) 2020-09-16 12:26:58 -07:00
ManagedCommon [chore] fix line endings (#6307) 2020-09-03 11:44:46 +02:00
ManagedTelemetry/Telemetry Revert "[FxCop] Telemetry.csproj" (#6690) 2020-09-17 14:02:25 -07:00
notifications updated to Microsoft.Windows.CppWinRT.2.0.200729.8 (#5306) 2020-07-30 11:37:15 -07:00
notifications_winrt updated to Microsoft.Windows.CppWinRT.2.0.200729.8 (#5306) 2020-07-30 11:37:15 -07:00
Telemetry Revert "[FxCop] Telemetry.csproj" (#6690) 2020-09-17 14:02:25 -07:00
UnitTests-CommonLib common: do not accept invalid input in VersionHelper and add negative unit tests 2020-08-28 16:37:12 +03:00
updating installer: reduce notification spam 2020-09-09 12:50:31 +03:00
animation.cpp Formatting chores (#1441) 2020-03-05 13:07:06 +03:00
animation.h Spelling: ... (#3398) 2020-05-26 17:02:36 +02:00
appMutex.h Autoupdate: implement updating bootstrapper utility (#5204) 2020-07-27 19:53:29 +03:00
async_message_queue.h Formatting chores (#1441) 2020-03-05 13:07:06 +03:00
com_object_factory.h Formatting chores (#1441) 2020-03-05 13:07:06 +03:00
common.cpp Add in verbose error message and telemetry for SetWindowsHookEx failure (#6454) 2020-09-09 14:27:40 -07:00
common.h Add in verbose error message and telemetry for SetWindowsHookEx failure (#6454) 2020-09-09 14:27:40 -07:00
common.vcxproj common: do not accept invalid input in VersionHelper and add negative unit tests 2020-08-28 16:37:12 +03:00
common.vcxproj.filters common: do not accept invalid input in VersionHelper and add negative unit tests 2020-08-28 16:37:12 +03:00
comUtils.cpp runner: initialize COM security, so toast notifications work in elevated context from non-admin account (#5314) 2020-08-05 19:06:50 +03:00
comUtils.h runner: initialize COM security, so toast notifications work in elevated context from non-admin account (#5314) 2020-08-05 19:06:50 +03:00
d2d_svg.cpp common: do not accept invalid input in VersionHelper and add negative unit tests 2020-08-28 16:37:12 +03:00
d2d_svg.h Formatting chores (#1441) 2020-03-05 13:07:06 +03:00
d2d_text.cpp Spelling: ... common (#3781) 2020-05-27 16:58:47 +02:00
d2d_text.h Spelling: ... common (#3781) 2020-05-27 16:58:47 +02:00
d2d_window.cpp Shortcut guide: add support for hotkeys + comments (#4517) 2020-07-01 12:37:50 +03:00
d2d_window.h Shortcut guide: add support for hotkeys + comments (#4517) 2020-07-01 12:37:50 +03:00
debug_control.h fixup! forgot to rename 2020-06-19 13:27:29 +03:00
dpi_aware.cpp [FancyZones] Restore size of zoned windows (#4463) 2020-07-01 15:36:05 +02:00
dpi_aware.h Warning fix: removed additional dependencies in common project (#5930) 2020-08-13 15:25:36 +03:00
icon_helpers.cpp Shifted three functions to common (#1101) 2020-01-15 23:06:22 -08:00
icon_helpers.h Shifted three functions to common (#1101) 2020-01-15 23:06:22 -08:00
json.cpp Enable non-ascii chars (#1669) 2020-03-25 11:11:27 +01:00
json.h Move from sdk-provided cppwinrt-1.x to cppwinrt-2.x nuget package (#2246) 2020-04-29 22:02:18 +02:00
keyboard_layout_impl.h PowerToys interface: remove powertoys events and system_menu_helper functionality (#5323) 2020-07-31 14:06:13 +03:00
keyboard_layout.cpp Updated menu key name, and added missing IME key codes (#5110) 2020-07-22 12:57:13 -07:00
keyboard_layout.h Display Unicode character for keys in HotkeySettingsControl (#2249) 2020-04-20 21:01:21 -07:00
LowlevelKeyboardEvent.h PowerToys interface: remove powertoys events and system_menu_helper functionality (#5323) 2020-07-31 14:06:13 +03:00
monitors.cpp Introduce ZoneWindowDrawing files and move stuff to better place (#6142) 2020-08-25 18:55:29 +02:00
monitors.h Spelling: ... common (#3781) 2020-05-27 16:58:47 +02:00
notifications.cpp bootstrapper: handle the unhandled 2020-09-09 12:50:31 +03:00
notifications.h notifications: provide default app id to fix FZ toast crashes (#5551) 2020-08-04 11:12:49 +03:00
on_thread_executor.cpp Formatting chores (#1441) 2020-03-05 13:07:06 +03:00
on_thread_executor.h Potential fix for a crash in OnThreadExecutor (#5840) 2020-08-11 10:39:18 +02:00
os-detect.cpp Move OS detection to common and PowerToysInterop (#5120) 2020-07-21 12:01:59 -07:00
os-detect.h Move OS detection to common and PowerToysInterop (#5120) 2020-07-21 12:01:59 -07:00
packages.config updated to Microsoft.Windows.CppWinRT.2.0.200729.8 (#5306) 2020-07-30 11:37:15 -07:00
pch.cpp FancyZones and Shortcut Guide initial commit 2019-09-05 18:12:40 +02:00
pch.h common: do not accept invalid input in VersionHelper and add negative unit tests 2020-08-28 16:37:12 +03:00
processApi.h bootstrapper: handle the unhandled 2020-09-09 12:50:31 +03:00
RcResource.cpp CDPx: do not use span header (#5268) 2020-07-28 14:26:30 +03:00
RcResource.h CDPx: do not use span header (#5268) 2020-07-28 14:26:30 +03:00
RestartManagement.cpp Autoupdate: implement updating bootstrapper utility (#5204) 2020-07-27 19:53:29 +03:00
RestartManagement.h [Installer] Restart explorer.exe programatically after successful update (#4215) 2020-06-11 10:09:06 +02:00
settings_helpers.cpp Formatting chores (#1441) 2020-03-05 13:07:06 +03:00
settings_helpers.h Formatting chores (#1441) 2020-03-05 13:07:06 +03:00
settings_objects.cpp [Launcher] Use a keyboard hook in the runner to invoke the Launcher (#6660) 2020-09-21 12:44:16 +02:00
settings_objects.h [Launcher] Use a keyboard hook in the runner to invoke the Launcher (#6660) 2020-09-21 12:44:16 +02:00
shared_constants.h [Launcher] Use a keyboard hook in the runner to invoke the Launcher (#6660) 2020-09-21 12:44:16 +02:00
start_visible.cpp Shortcut guide: add support for hotkeys + comments (#4517) 2020-07-01 12:37:50 +03:00
start_visible.h Formatting chores (#1441) 2020-03-05 13:07:06 +03:00
string_utils.h common: fix trim functions for wchar_t 2020-09-18 13:33:02 +03:00
tasklist_positions.cpp Spelling: ... common (#3781) 2020-05-27 16:58:47 +02:00
tasklist_positions.h Formatting chores (#1441) 2020-03-05 13:07:06 +03:00
timeutil.h runner: periodically check if there's a new version available on github and offer a visit 2020-02-26 23:06:44 +03:00
two_way_pipe_message_ipc_impl.h Deprecate ATL based IPC wrapper library (#2248) 2020-04-23 17:11:02 -07:00
two_way_pipe_message_ipc.cpp Spelling: ... common (#3781) 2020-05-27 16:58:47 +02:00
two_way_pipe_message_ipc.h Deprecate ATL based IPC wrapper library (#2248) 2020-04-23 17:11:02 -07:00
version.cpp runner: initial automatic update (#2141) 2020-04-21 10:30:12 +03:00
version.h Added info to projects inside root, tests and common folders (#4413) 2020-06-23 16:53:16 +03:00
VersionHelper.cpp [FancyZones] HEX to RGB util (#6275) 2020-09-02 18:34:17 +03:00
VersionHelper.h common: do not accept invalid input in VersionHelper and add negative unit tests 2020-08-28 16:37:12 +03:00
window_helpers.cpp FZ: warn w/ a toast if an elevated window cannot be dragged and offer learning more 2020-03-27 13:23:37 +03:00
window_helpers.h FZ: warn w/ a toast if an elevated window cannot be dragged and offer learning more 2020-03-27 13:23:37 +03:00
windows_colors.cpp Formatting chores (#1441) 2020-03-05 13:07:06 +03:00
windows_colors.h Formatting chores (#1441) 2020-03-05 13:07:06 +03:00
WinHookEvent.h PowerToys interface: remove powertoys events and system_menu_helper functionality (#5323) 2020-07-31 14:06:13 +03:00
winstore.cpp Runner: fix startup task state setting for MSIX (#1181) 2020-01-31 20:35:21 +03:00
winstore.h Formatting chores (#1441) 2020-03-05 13:07:06 +03:00