title: pass more than one parameter to _beginThreadEx
body: <p>Is it possible to pass more than one parameter to beginthreadex?</p>
  
  <p>I know I can create a class or structure, but what if I have unrelated pieces of data that I don't want to combine into a class or structure?</p>
  
  <p>Boost libraries seem to allow for multiple parameters, but how would I do multiple parameters for standard c++ _beginThreadEx?</p>
  
  <pre><code>#include &lt;iostream&gt;
  #include &lt;process.h&gt;
  
  unsigned __stdcall myThread(void *data)
  {
      //C:\dev\default threads\_threads.cpp|6|error: invalid conversion from 'int*' to 'int' [-fpermissive]|
      int *x = static_cast&lt;int*&gt;(data);
  
      //int *x = (int*)data;
  
      std::cout &lt;&lt; "Hello World! " &lt;&lt; x;
  }
  
  int main()
  {
  
      int x = 10;
      _beginthreadex(NULL, 0, myThread, &amp;x, 0, NULL);
      while(true);
  }
  </code></pre>