Re: Enumerates COM Port
From: Martin Maurer (capiman_at_clibb.de)
Date: 03/24/04
- Next message: R.A.: "dispose method"
- Previous message: R.A.: "Printing support in .net"
- In reply to: Thomas Lutz: "Re: Enumerates COM Port"
- Next in thread: cyrille: "Re: Enumerates COM Port"
- Messages sorted by: [ date ] [ thread ]
Date: Wed, 24 Mar 2004 20:32:14 +0100
> The easiest way to determine what ports are installed is to try to
> open each port in a loop (say COM1 to COM32) and if the port opens,
> immediately close it and mark it as being available. If it does not
> open then trap the error and mark the port as unavailable.
This could take a very long time, when you have a bluetooth card inside the
PC...
They install multiple COM-Ports, and if already paired, built up a
connection and timeout. This could take 20 seconds per COM-Port...
Regards,
Martin
- Next message: R.A.: "dispose method"
- Previous message: R.A.: "Printing support in .net"
- In reply to: Thomas Lutz: "Re: Enumerates COM Port"
- Next in thread: cyrille: "Re: Enumerates COM Port"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|