摘要:
while (WaitForSingleObject(g_pMainFrame->m_hEventStopCheckNet,0) == WAIT_TIMEOUT)//为0,对象没有被触发信号,函数不会进入一个等待状态,它总是立即返回(一直循环) { DWORD dwFlags = 0; bool bNetConnected = ::IsNetworkAlive(&dwFlags); if (bNetConnected != g_pMainFrame->IsNetConnected()) { g_pMainFrame->SetNetConnected(bNetConne 阅读全文