title: Windows C++ Thread Parameter Passing
body: <p>In Windows c++, the following creates a thread:</p>
  
  <pre><code>CreateThread(NULL, NULL, function, parameter, NULL, &amp;threadID);
  </code></pre>
  
  <p>This will run "function" in a new thread and pass it "parameter" as a void* or LPVOID.</p>
  
  <p>Suppose I want to pass two parameters into "function", is there a better looking way of doing it besides creating a data structure that contains two variables and then casting the data structure as an LPVOID?</p>