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