471,337 Members | 1,151 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,337 software developers and data experts.

going from Win32_SerialPort to port index

Hello,

I am able to get a list of ports using the System.Management classes.
Win32_SerialPort has data members for port name, baud rate, etc, etc...
but no entry for port index number.

I need to map Win32_SerialPort's to indicies to set
AxMSCommLib.AxMSComm.CommPort for read/write port access. How can I get
a port number given a Win32_SerialPort? One way I can think of is to
parse the deviceid string for trailing numerals and use that as the
port number. But is "COM1" always guaranteed to be port 1 for
AxMSCommLib.AxMSComm.CommPort purposes?

Dec 8 '05 #1
0 1482

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

4 posts views Thread by Dave | last post: by
2 posts views Thread by Steve Norman | last post: by
13 posts views Thread by Al the programmer | last post: by
2 posts views Thread by ValK | last post: by
3 posts views Thread by pcm | last post: by
7 posts views Thread by ucfcpegirl06 | last post: by
30 posts views Thread by albert.neu | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.