IntPtr p = System.Diagnostics.Process.GetCurrentProcess().MainWindowHandle; System.Windows.Interop.HwndSource source =System.Windows.Interop.HwndSource.FromHwnd(p); source.AddHook(new System.Windows.Interop.HwndSourceHook(WndProc));
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)