13.6.6 串口关闭函数的实现
关闭串口函数ClosePort(),调用SetEvent()函数设置关闭串口事件的状态为有标记,实现如下:
- 01 void CMySerial::ClosePort()
- 02 {
- 03 SetEvent(m_hShutdownEvent);
- 04 }
13.6.6 串口关闭函数的实现
关闭串口函数ClosePort(),调用SetEvent()函数设置关闭串口事件的状态为有标记,实现如下:
- 01 void CMySerial::ClosePort()
- 02 {
- 03 SetEvent(m_hShutdownEvent);
- 04 }