Change com port in my application

Hello,

First of all, I use USB-Serial port converter…

I’ve an application that I want to add a good functionality : change
virtual com port manually without going in device manager.

How can I notify the OS to change a com port.

For example, I assigned COM X… and later only change for COM Y in my
application.

I want to avoid to access Device Manager.

Is there application note or src code available?

Regards

Christian

Look at the ComDB functions exported from msports.dll in msports.h. You
will need to rebuild the device friendly name and the stack on your own
through SetupDi calls.

d

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of CG
Sent: Tuesday, June 01, 2004 1:44 PM
To: Windows System Software Devs Interest List
Subject: [ntdev] Change com port in my application

Hello,

First of all, I use USB-Serial port converter…

I’ve an application that I want to add a good functionality : change
virtual com port manually without going in device manager.

How can I notify the OS to change a com port.

For example, I assigned COM X… and later only change for COM Y in my
application.

I want to avoid to access Device Manager.

Is there application note or src code available?

Regards

Christian


Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256

You are currently subscribed to ntdev as: xxxxx@windows.microsoft.com
To unsubscribe send a blank email to xxxxx@lists.osr.com