Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / Compact Framework / November 2007

Tip: Looking for answers? Try searching our database.

count COM Ports

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Rainer Borchmann - 29 Nov 2007 20:34 GMT
Hi,

how can i count how many COM ports avaible on a Device ?
I have here on may table a Dell who has COM 0 to COM9 =10 ports
and some ports are named GPD1 to GPD9 , i dont know whats that.
And a  Toshiba e 800 who has also 8 COM Ports.

how can i count how many COM ports avaible on a Device with
C# ?

by
Rainer
Paul G. Tobey [eMVP] - 29 Nov 2007 20:53 GMT
There's no way to do that with 100% reliability on 100% of devices.  Of
course, you can enumerate through the registry branch at HKLM/Drivers/Active
and see which ones named COMx: there are.

Some of our devices are capable of being extended beyond 9 COM ports and I
chose SER as the prefix for the next 10 and ASY for the 10 after that, but
those were just strings that I came up with.

Here's an older thread where there is some code I wrote, not managed code,
of course, to count up COM ports.  There's also a suggestion there from
Steve Maillet about checking with RAS for serial ports, so maybe that will
help you.

http://groups.google.com/group/microsoft.public.windowsce.app.development/browse
_thread/thread/f433e66bd91dfeef/36e85220f7a2cfc4?hl=en&lnk=st&q=#36e85220f7a2cfc
4


Paul T.

> Hi,
>
[quoted text clipped - 8 lines]
> by
> Rainer

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
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



©2008 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.