void CSuperSerialCard::CloseComm() { CommThUninit(); // Kill CommThread before closing COM handle if (m_hCommHandle != -1) close(m_hCommHandle); // close device (port?) m_hCommHandle = -1; m_dwCommInactivity = 0; }
void CSuperSerialCard::CloseComm() { CommTcpSerialCleanup(); // Shut down Winsock CommThUninit(); // Kill CommThread before closing COM handle if (m_hCommHandle != INVALID_HANDLE_VALUE) CloseHandle(m_hCommHandle); m_hCommHandle = INVALID_HANDLE_VALUE; m_dwCommInactivity = 0; }