title: PostMessage(hwnd, WM_SETTEXT,..) does not work while PostMessage(hwnd, WM_QUIT,..) does
body: <p>I have 2 apps,one is hidden window ("hW"), another is console app ("CA"),from 
  which i suppose to send commands to hW.
  In console app i'm getting hW handle,and here is a question:
  if i'm running:</p>
  
  <pre><code>PostMessage(hwnd, WM_QUIT, NULL, NULL);
  </code></pre>
  
  <p>everything works fine, message gets to hW and turns it off .But if i'm sending </p>
  
  <pre><code>PostMessage(hwnd, WM_SETTEXT, NULL, (LPARAM)"texttext");
  </code></pre>
  
  <p>message does not get to hW at all. Spy++ also shows that message does not get to hW. Is there something specific about WM_SETTEXT , which prevents it? Thanks in advance.</p>
  
  <p>OK. found answer here <a href="http://cboard.cprogramming.com/windows-programming/72589-wm_settext-postmessage.html" rel="noreferrer">http://cboard.cprogramming.com/windows-programming/72589-wm_settext-postmessage.html</a></p>
  
  <pre>
  Turns out the API tries to protect me against scope issues; PostMessage() 
  always fails with WM_SETTEXT, or any other system-defined message that has
  a pointer as a parameter.Which gets me to SendMessage(), which is not good,
  because i wanted asynchronous messaging....</pre>
  
  <p><br>
  P.P.S.<br>
  Also, looks like <br></p>
  
  <pre><code>SendMessage(hwnd, WM_QUIT, NULL, NULL);
  </code></pre>
  
  <p>does not do anything to target app.Even in simple test app like </p>
  
  <pre><code> HWND hNote;
   if (!(hNote=FindWindow(L"Notepad",NULL)))
          exit(1);
   SendMessage(hNote, WM_QUIT, NULL, NULL);
  </code></pre>
  
  <p>while </p>
  
  <pre><code>PostMessage(hNote, WM_QUIT, NULL, NULL);
  </code></pre>
  
  <p>works.<br> All that looks so not logical for me... Is there some universal function which works properly with any kind of message?</p>