title: VS2010 - C - process.h - "joining" threads started with _beginthread
body: <p>I'm trying to use the threading library of Windows (in VS2010) for the first time. But I think I'm missing something... How do I join the created threads? How do I prevent the main()-Programm (or other "higher" function) from exiting, when there are threads still running?
  Hope someone can help me with an answer or a link (msdn and a few others weren't helpful).
  thanks! </p>