public unsafe void GetCommConfig() { using (SafeFileHandle handle = CommunicationsMethods.CreateComFileHandle(@"\\.\COM4")) { COMMCONFIG config = CommunicationsMethods.GetCommConfig(handle); } }
public unsafe void GetCommProperties() { using (SafeFileHandle handle = CommunicationsMethods.CreateComFileHandle(@"\\.\COM4")) { COMMPROP properties = CommunicationsMethods.GetCommProperties(handle); } }