Exemplo n.º 1
0
DWORD WINAPI Runner(void* arg)
{
	DWORD			dwResult;
	CThread*		t;

	t = (CThread*)arg;
	dwResult = t->Run();

	t->m_hThread	= NULL;
	t->m_dwThreadID	= 0;

	t->OnTerminate();
	return dwResult;
}