Hello, I am using a thread, my problem is that I need to both pass a character buffer to the thread and recieve an event notifying me when the thread is done with its task.
I create the thread with
unsigned long m_ulIDThread;
HANDLE m_hThread;
m_hThread = CreateThread(NULL,0, WriteToFile,(void*)OutputBuffer,0,&m_ulIDThread);
this allows me to pass in the buffer, the problem is though that I also need to pass in a handle to an event so that it can be set when the thread is done. any ideas.
thanks for the help.
I create the thread with
unsigned long m_ulIDThread;
HANDLE m_hThread;
m_hThread = CreateThread(NULL,0, WriteToFile,(void*)OutputBuffer,0,&m_ulIDThread);
this allows me to pass in the buffer, the problem is though that I also need to pass in a handle to an event so that it can be set when the thread is done. any ideas.
thanks for the help.