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