title: How to pass a Window Handle to a sub-process?
body: <p>I am working on a special project with an unusual design.</p>
  
  <p>In my application/process, I will create a sub process to do some work. In my process, I need to get the feedback from sub process. I want to pass the Windows handle of my application/process to this sub process, so I am post message from this sub process.</p>
  
  <p>How can I pass Window Handle to sub process? My sub process is an command line application without Window UI and with the main function like this:</p>
  
  <pre><code>int APIENTRY _tWinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance,
                     LPTSTR lpCmdLine, int nCmdShow)
  </code></pre>
  
  <p>Should I pass Window Handle to the main function? How?</p>
  
  <p>Thanks</p>