🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: borland.public.cppbuilder.nativeapi
2 messages
2 total messages Started by Gareth Tue, 04 Mar 2003 08:07
Comm Port Status
#17747
Author: Gareth
Date: Tue, 04 Mar 2003 08:07
5 lines
1083 bytes
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
Re: Comm Port Status
#17736
Author: 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.
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads