HANDLE hThread;

hThread = (HANDLE)_beginthreadex( NULL, 0, &SecondThreadFunc, NULL, 0, &threadID );


    WaitForSingleObject( hThread, INFINITE );
 

以上内容来自MSDN