Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsVB SyntaxEnterprise DevelopmentDatabase AccessControlsCOMWin APICrystal ReportDeploymentGeneralGeneral 2
Related Topics
VB.NET / ASP.NETMS SQL ServerMS AccessOther Database ProductsMore Topics ...

VB Forum / Win API / February 2007



Tip: Looking for answers? Try searching our database.

Enumerate COM ports in VB.NET, getting the name of the driver ?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Kay-Christian Wessel - 21 Feb 2007 21:10 GMT
I'm trying to get the driver names of my serial ports, but I can't get this
working. I tried EnumPorts but it will not give me the name of the comport
like it is shown under Ports in Device Manager>Ports. Here I can see names
like Promag USB232(COM3). If I use the API, I only get COM3, Local Port.

How to get the name like Promag USB232 ?

I'm using VB.NET 2005.

Thanks
Kay
Bob Butler - 21 Feb 2007 22:07 GMT
> I'm using VB.NET 2005.

Signature

try asking in a group with "dotnet" in the name; this group is for VB 6.0
and earlier
VB.Net and VB 200x are Not.VB

Kay-Christian Wessel - 22 Feb 2007 07:59 GMT
Same problem in VB6, I only need to know which API to use to get this
information. This is the only API group as far as I know.

Kay

> > I'm using VB.NET 2005.
J French - 22 Feb 2007 10:28 GMT
>Same problem in VB6, I only need to know which API to use to get this
>information. This is the only API group as far as I know.

Search this NG there has been some stuff on this recently

DeviceIoControl  and  IOCTL_STORAGE_QUERY_PROPERTY  are key words to
look for.
Thorsten Albers - 22 Feb 2007 10:29 GMT
Kay-Christian Wessel <KayHanse@Netcom.no> schrieb im Beitrag
<uL4M7elVHHA.1208@TK2MSFTNGP03.phx.gbl>...
> Same problem in VB6, I only need to know which API to use to get this
> information. This is the only API group as far as I know.

It is the only (maybe) group which has "winapi" in its name. Other groups
like e.g. the dotnet groups are covering all aspects of developing with the
language including Windows API coding. Just give it a try there!

Signature

----------------------------------------------------------------------
THORSTEN ALBERS                       Universität Freiburg
                                               albers@
                                                      uni-freiburg.de
----------------------------------------------------------------------

Dick Grier - 22 Feb 2007 19:04 GMT
Hi Kay,

What is returned with the SerialPort PortNames method?  BTW, I suspect that
this may be the same as EnumPorts.

I "think" that the Control Panel /Device Manager uses details in the
Registry that are not exposed by a published API.

Dick

Signature

Richard Grier, MVP
Hard & Software
Author of Visual Basic Programmer's Guide to Serial Communications, Fourth
Edition,
ISBN 1-890422-28-2 (391 pages, includes CD-ROM). July 2004, Revised March
2006.
See www.hardandsoftware.net for details and contact information.

 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.