The current version does not support COM ports from managed code.
If you know the Win32 API calls that are required, you can call these from
..NET using Platform Invoke.
The only way that I know is to P/Invoke (Platform Invoke) the Windows32
EnumPorts APIs. There isn't anything in the .NET Framework that provides
this information.
I tried this and cannot get VB.NET 2003 to work with this. I even find
references to :
Imports System.Management
in the Help files. But, still adding that outside the module in a Console
app. it still generates an error.
(sorry to jump in here but, this looked like an easy way to find the
commports.)
So, I am curious how you are getting this to work.
james
Umm, whoops, I forgot to give credit where credit is due. Sorry. That code
was actually posted by a Mr. Ken Tucker on another Microsoft group (can't
remember where). Apologies, Ken. There's a glitch or two depending on the
OS, apparently.
Umm, whoops, I forgot to give credit where credit is due. Sorry. That code
was actually posted by a Mr. Ken Tucker on another Microsoft group (can't
remember where). Apologies, Ken. There's a glitch or two depending on the
OS, apparently.
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.