如何恢复《和我信》的程序正常运转.
发布网友
发布时间:2022-04-20 23:24
我来回答
共2个回答
热心网友
时间:2023-06-28 07:18
//出现结束事件
SetEvent (m_hKeepThreadDestroyEvent ) ;
//等待至Thread结束为止
WaitForSingleObject (m_hKeepThread, INFINITE) ;
//关闭句柄
CloseHandle(m_hKeepThread) ; m_hKeepThread = NULL;
}
//如果KeepAlive结束事件不是NULL的话
if (m_hKeepThreadDestroyEvent )
{
//关闭事件
CloseHandle(m_hKeepThreadDestroyEvent ) ; m_hKeepThreadDestroyEvent = NULL;
热心网友
时间:2023-06-28 07:19
我要恢复和我信