public void RunTask(uint taskID, COPYDATASTRUCT cds)
 {
     foreach (TaskBrowser2 browser in this._taskBrowsers)
     {
         if (browser.IsEmptyWindow())
         {
             IntPtr mainWindowHandle = browser.GetMainWindowHandle();
             if (mainWindowHandle != IntPtr.Zero)
             {
                 browser.RunTask(taskID);
                 WindowUtil.SendMessage(mainWindowHandle, 0x4a, 0, ref cds);
             }
         }
     }
 }
Beispiel #2
0
 public static extern int SendMessage(IntPtr hwnd, int wMsg, int wParam, ref COPYDATASTRUCT lParam);