Exemplo n.º 1
0
 private void BroadcastMessage(SystemWin32.WindowMessage wmsg)
 {
     foreach (IntPtr sink in Sinks)
     {
         SystemWin32.PostMessage(sink, wmsg.msg, wmsg.wParam, wmsg.lParam);
     }
 }
Exemplo n.º 2
0
 private void MessageDispatcher(IntPtr hWnd, uint msg, IntPtr wParam, IntPtr lParam)
 {
     if (BroadcastKeys.Contains((Keys)wParam))
     {
         foreach (IntPtr sink in Sinks)
         {
             SystemWin32.PostMessage(sink, msg, wParam, lParam);
         }
     }
 }