Hi,
I have a thread set up as follows:
Now the thread takes about 5 seconds to execute, which is a problem because the WaitForSingleObject function pauses the program for a few seconds.Code:hThread = CreateThread(NULL, 0, (LPTHREAD_START_ROUTINE) CheckingThreadProc, mailsettings, 0, &dwThreadId); WaitForSingleObject(hThread, INFINITE); CloseHandle(hThread);
Now if i dont call the WaitForSingleObject() function, is there any kind of function i can call to check if the thread is still active? Specifically code within WM_TIMER can only be executed if the thread has finished execution.
And i need to do this without causing a program pause effect.
Thanks
Jack



LinkBack URL
About LinkBacks




CornedBee