title: WinApi SendMessage/PostMessage doesn't work on my Computer?
body: <p>I wrote some test code in c# (using WPF Form) to check if sendMessage/PostMessage will work.
  Here is:</p>
  
  <pre><code>        Process x = Process.GetProcessesByName("Any Apps")[0];
          if (x == null) return;
          MessageBox.Show(x.Id.ToString()); // always works
          NativeMethods.SendMessage(x.MainWindowHandle, 0x100, 0x70, 0);//F1
          NativeMethods.SendMessage(x.MainWindowHandle, 0x101, 0x70, 0);
  </code></pre>
  
  <p>Finding process work anywhere, but sendingMessage/postingMessage have never worked when I run the app with via VS debug key. Sometimes it works when I start the program from desktop, sometimes not. But... what's intresting: On any avaiable machines (VM with XP, Another computer with 64bit Windows 7, friends computer with 32bit Windows 7) works fast and fine. </p>
  
  <p>Have anyone the same problem? Maby someone know the solution?
  Thanks in advance.  </p>