stdcall 関数名 "TestFunction" をパラメーターとして ExecuteLocalThread に渡し、beginthreadex で使用することができません
unsigned __stdcall TestFunction(void* timerPointer)
{
unsigned result =0;
printf("thread is running\n");
return result;
}
void ExecuteLocalThread(unsigned int (_stdcall *_StartAddress)(void *))
{
HANDLE heartBeatThread;
unsigned int hbThreadID;
heartBeatThread = (HANDLE)_beginthreadex(NULL, 0 , unsigned int (_stdcall *_StartAddress)(void *)/*&TestFunction*/, (void*)this, CREATE_SUSPENDED, &hbThreadID);
ResumeThread( heartBeatThread );
}