title: How to open COM port using USB to RS232 converter?
body: <p>So I have USB port and converter cable on one side, and RS232 cable on other side. 
  I am trying to open COM port using CreateFile() API, and so far I managed to do this:</p>
  
  <pre><code>HANDLE dev = CreateFile(devicePath, (GENERIC_READ | GENERIC_WRITE), 0,  NULL, OPEN_EXISTING, FILE_ATTRIBUTE_NORMAL, NULL);
      ShowError("connectCOM()");
      if (dev == INVALID_HANDLE_VALUE)
      {
          return false;
      }
  </code></pre>
  
  <p>But I get <strong>AccessDenied</strong> error. I am now stuck because I am new to C programming and device communication. </p>
  
  <p>What is the necessary step before calling CreateFile API in case of virtual COM port?</p>