创建线程的基本模式如下:
#include <stdio.h>
DWORD WINAPI ThreadFunction(LPVOID Param)
{
//Add your code here
return 0;
}
int main(int argc, char* argv[])
{
//Add your code here
DWORD threadid;
CreateThread(NULL,0,ThreadFunction,NULL,0,&threadid);
//Add your code here
return 0;
}