Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3346012
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T01:15:12+00:00 2026-05-18T01:15:12+00:00

This article explains how to Query logical DOS names for their NT naming convention

  • 0

This article explains how to Query logical DOS names for their NT naming convention using QueryDosDevice. It explains how to add and remove Logical Device names using their NT naming convention using DefineDosDevice. The article explains that a DOS name is required to access various devices.

“Win32 programs cannot use internal
Windows NT device names to access
devices because the Win32 subsystem
and Win32 API require the more
familiar drive letters and MS-DOS
device names, such as A:, C:, COM1:,
and LPT1”

I found this interesting article that gets all the available DOS Names and then queries for the NT Name using the function GetLogicalDriveString. This article does not explain how to return all defined DOS names for devices, just drives.

However, I would like to know how to do the reverse. How would I get a list of NT device names. I am not looking for just drives but all devices. For example LPT1 and COM1 are reserved DOS names that correspond to specific NT names. I would like to map additional devices they may not have a DOS name so that I can use the WINAPI function CreateFile.

How do I get a list of all NT device names oppose to DOS Names?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-18T01:15:12+00:00Added an answer on May 18, 2026 at 1:15 am

    Well underneath the hood the DosDevice’s are symbolic links in the NT Object Manager database pointing to the underlying devices. I would recommend playing with WinObj to get a feel for how things are put together.

    Unfortunately to do the enumeration yourself and to add your own custom symbolic links you would need to use the native NT apis (see this for abit on enumerating stuff). You can sometimes play some tricks with the DefineDosDevice function to do some mappings, however you don’t actually need to do that if you just want to access objects through CreateFile. You can use the NT native escape syntax to access anything in the NT Object Manager database, just prefix your native path with \\?\GLOBALROOT and pass that to the CreateFile, e.g. if you want to access the floppy drive use CreateFile(L"\\?\GLOBALROOT\Device\Floppy0", ...);

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I've found this MSDN article that explains how to monitor processes and services with
This article gives a good overview on why structured exception handling is bad. Is
This article describes a way, in C#, to allow the addition of arbitrary value
This article here suggests to use -XX:+UseParNewGC To enable a parallel young generation GC
This article states that If your site is run on a shared Web server,
Taking this article on classes and structs as an example: http://msdn.microsoft.com/en-us/library/ms173109.aspx namespace ProgrammingGuide {
I came across this article written by Andrei Alexandrescu and Petru Marginean many years
I was reading this article about Double-Checked locking and out of the main topic
I read in this article that a company has created a software capable of
According to this article Silverlight 2 Beta 2 supports the DataContractJsonSerializer object. But, when

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.