Beispiel #1
0
unsigned int __stdcall _MyThreadFunction(void* arg)
{
    MyThread* pThread = static_cast<MyThread*>(arg);

    try
    {
        pThread->dwResult = pThread->Process(pThread->hStopSignalPtr.get());
    }
    catch(std::exception&)
    {
        pThread->dwResult = ~(DWORD)0;
    }

    return 0;
}