I would imagine that if try to open a com port through the WIndows API it
will fail (I hope) if the port does not exist.
There is some COM port stuff on the Delphi Super Page (async32.zip) for
reading and writing to COM ports through the WinAPI - it's supposed to work
on Win95 & NT.
FHandle := CreateFile(PCHAR(FDeviceName),
GENERIC_READ or GENERIC_WRITE, 0, nil,
OPEN_EXISTING, FILE_FLAG_OVERLAPPED, 0);
> -----Original Message-----
> From: Paul Lowman [SMTP:[EMAIL PROTECTED]]
> Sent: Tuesday, August 24, 1999 5:08 PM
> To: Multiple recipients of list delphi
> Subject: Re: [DUG]: Detecting Free Com ports
>
> Bugger.
>
> Well you may have to do as you suggested and poll around each com port
> looking for an OK response to AT<cr> - as for busy then can't say I can
> think of any way OTTOMH.
> Possibly it may be simpler to make sure TAPI is there ?
>
> --------------------------------------------------------------------------
> -
> New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
> Website: http://www.delphi.org.nz
---------------------------------------------------------------------------
New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
Website: http://www.delphi.org.nz