13.5.4 关闭串口
利用API函数关闭串口非常简单,只需使用CreateFile()函数返回的句柄作为参数调用CloseHandle()函数即可,CloseHandle()函数如下:
BOOL CloseHandle( HANDLE hObject; );