🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.nativeapi
Article #17736

Re: Comm Port Status

#17736
From: Vladimir Afanasyev
Date: Tue, 04 Mar 2003 09:18
25 lines
1719 bytes
Hi,

"Gareth" <gbh_2@hotmail.com> wrote:
>
>Is there a method to use that will alow me to query a comm port to find out its status, such if it exists or if it is in use or not.
>
>
>Thanks

You can use WMI for this. One of the samples in my download 
do it:
http://codecentral.borland.com/codecentral/ccweb.exe/listing?id=19443

You can use "old way" via setupapi.dll and cfgmgr32.dll.
You can see how TDevInfoPnP do it:
http://codecentral.borland.com/codecentral/ccweb.exe/listing?id=19049

At last the system keep all these information in Registry.

About day or two I plan to put in the codecentral the new
version of TPortControl with enumeration possibility (design 
time and run time) and FIFO (UART 16550)conrolling.

Vladimir.
Technical Details
Message-ID: <3e646f83$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-09!supernews.com!iad-peer.news.verio.net!news.verio.net!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mail
References: <3e645ec8$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10cc67,ab210ad5b0a6ab35,start
X-Google-Attributes: gid10cc67,public
X-Google-ArrivalTime: 2003-03-04 13:14:00 PST
From: "Vladimir Afanasyev" <avv@systema.kiev.ua>
Sender: "Vladimir Afanasyev" <avv@systema.kiev.ua>
Reply-To: "Vladimir Afanasyev" <avv@systema.kiev.ua>
Subject: Re: Comm Port Status
Newsgroups: borland.public.cppbuilder.nativeapi
X-User-Info: 62.244.14.114 62.244.14.114    
X-Forwarded-For: 192.168.0.147
References:  <3e645ec8$1@newsgroups.borland.com>
NNTP-Posting-Host: 207.105.83.65
Message-ID: <3e646f83$1@newsgroups.borland.com>
Date: 4 Mar 2003 01:18:59 -0800
X-Trace: newsgroups.borland.com 1046769539 207.105.83.65 (4 Mar 2003 01:18:59 -0800)
Lines: 27
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-09!supernews.com!iad-peer.news.verio.net!news.verio.net!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mail