|Microsoft DirectX 9.0|
The ThreadProc method is the thread procedure.
virtual DWORD ThreadProc(void) = 0;
Returns a DWORD value whose meaning is defined by the derived class.
This is a pure virtual method. Implement this method in your derived class to supply a thread procedure. When the CAMThread::Create method creates a thread, it gives the address of the CAMThread::InitialThreadProc method, which in turn calls your ThreadProc method.
Typically, your ThreadProc method will enter a loop that retrieves requests (by calling the CAMThread::GetRequest or CAMThread::CheckRequest methods) and processes data.
When this method returns, the thread exits.