c#串口说明加串口通讯控件!using System; using System.Collections.Generic; using System.Text; using System.Runtime.InteropServices; namespace stoneCom.ComClass { class CommPort { public string PortNum; public int BaudRate; public byte ByteSize; public byte Parity; public byte StopBits; public int ReadTimeout; private int hComm = -1; public bool Opened = false; private const uint GENERIC_READ = 0x80000000; private const uint GENERIC_WRITE = 0x40000000; private const int OPEN_EXISTING = 3;