HwndSourceHook
HwndSourceHook is a method in the Windows Presentation Foundation (WPF) framework that allows developers to intercept and process window messages before they are handled by the standard WPF message processing system. This mechanism is part of the HwndSource class, which represents a WPF element hosted within a native Windows window.
When a window message is sent to a WPF window, the HwndSource object associated with it receives
Common use cases for HwndSourceHook include implementing custom input handling, such as intercepting specific keyboard shortcuts