스레드 생성

DWORD WINAPI ThreadFunc(LPVOID temp)

{

printf("dd");

return 0;

}


void main()

{

HANDLE hHandle;

DWORD ThreadID;


hHandle = CreateThread(NULL, 0, ThreadFun, NULL, 0 &ThreadID);


Sleep(10000)

}