private void BroadcastMessage(SystemWin32.WindowMessage wmsg) { foreach (IntPtr sink in Sinks) { SystemWin32.PostMessage(sink, wmsg.msg, wmsg.wParam, wmsg.lParam); } }
private void DispatchWindowMessage(SystemWin32.WindowMessage wmsg) { if (BroadcastKeys.Contains((Keys)wmsg.wParam)) { BroadcastMessage(wmsg); } if (ConditionalBroadcastOn && ConditionalBroadcastKeys.Contains((Keys)wmsg.wParam)) { BroadcastMessage(wmsg); } }