PortIsAvailable Method

  The PortIsAvailable method returns information about serial port availability.
 
BOOL PortIsAvailable (
  BSTR PortName  
);
 Parameters
  PortName
    Port name which availability should be verified.

Return Values
  The PortIsAvailable method returns TRUE if serial port is available, FALSE if the port is already used by another application or does not exist.