title: WinAPI - Need CreateThread()'s thread function to send additional parameters
body: <p>I need the CreateThread() function's thread function, processClient(LPVOID) in my case, to accept additional parameters when it creates the thread (ie: processClient(LPVOID,someADTorARRAY)). </p>
  
  <p>My current code:</p>
  
  <pre><code>...function declaration
  DWORD WINAPI processClient(LPVOID lpParam){
      ...do stuff with socket
  }
  
  ...in main
  CreateThread(
                  NULL,                       // don't inherit handle
                  0,                          // use default size for the executable
                  processClient,
                  (LPVOID)ClientSocket,       // thread data
                  0,                          // run right away
                  &amp;i );
  </code></pre>