Réponse acceptée !
Définition d'un thread :
[ Lien ]Comment créer un thread sous windows :
DWORD WINAPI monthread(LPVOID lpParam)
{
// corps de ma fonction
}
INT APIENTRY WinMain(...)
{
DWORD threadid;
HANDLE hThread = CreateThread(NULL, 0, monthread, NULL, 0, &threadid);
WaitForSingleObject(hThread, INFINITE); // attend la fin de l'execution du thread
CloseHandle(hThread);
}
Plus d'info :
Voir doc MSDN avec mot clef CreateThread