Windows System Software -- Consulting, Training, Development -- Unique Expertise, Guaranteed Results

Before Posting...
Please check out the Community Guidelines in the Announcements and Administration Category.

More Info on Driver Writing and Debugging

The free OSR Learning Library has more than 50 articles on a wide variety of topics about writing and debugging device drivers and Minifilters. From introductory level to advanced. All the articles have been recently reviewed and updated, and are written using the clear and definitive style you've come to expect from OSR over the years.

Check out The OSR Learning Library at:

Change driver DOS name

remyavu10remyavu10 Member Posts: 58

I want to change serial port device's symbolic link (DOS name) and its same listed name from DevManager from another application.
Is it possible through SetupAPIs or devcon?


  • Doron_HolanDoron_Holan Member - All Emails Posts: 10,536

    The actual dos device name (symbolic link) is changed with the DefineDosDevice API. You can get the existing device name mapping (i.e. what \Device\Xxxx name to create the new link for) by calling QueryDosDevice first. For the driver to pick up the new symbolic link name the next time it restarts, you need to write the new name to the "PortName" value in the dev node. To change the name shown in device manager you need to set the device's friendly name property (query the device description property and then append the new symbolic link name to the string).

  • remyavu10remyavu10 Member Posts: 58

    I tested that DefineDosDevice can be used to delete the existing DOS Name and create a new DOS Name for the device name.
    But the newly defined DOSName is not listed as a port in TeraTerm. Is there any way for this?

    I did some experiments; i changed "PortName" in devnode and when the device is restarted, it appeared in TeraTerm. Because device init execute IoCreateSymbolicLink.

    I am expecting similar behaviour with DefineDosDevice. May i know if i am correct?

    Thanks in advance!

  • Doron_HolanDoron_Holan Member - All Emails Posts: 10,536
    You probably need to update the SERIALCOMM key with the newly named port value.
  • remyavu10remyavu10 Member Posts: 58

    Ok thanks!

Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Upcoming OSR Seminars
OSR has suspended in-person seminars due to the Covid-19 outbreak. But, don't miss your training! Attend via the internet instead!
Writing WDF Drivers 7 Dec 2020 LIVE ONLINE
Internals & Software Drivers 25 Jan 2021 LIVE ONLINE
Developing Minifilters 8 March 2021 LIVE ONLINE