public unsafe void GetCommConfig() { using (SafeFileHandle handle = Communications.CreateComPortFileHandle(@"\\.\COM4")) { CommunicationsConfig config = Communications.GetCommunicationsConfig(handle); } }
public unsafe void GetCommProperties() { using (SafeFileHandle handle = Communications.CreateComPortFileHandle(@"\\.\COM4")) { CommunicationsProperties properties = Communications.GetCommunicationsProperties(handle); } }