Andre Andre - 1 month ago 20
C++ Question

List the content of the Win32 device namespace

From the microsoft-doku:


The
"\\.\"
prefix will access the Win32 device namespace instead of
the Win32 file namespace. This is how access to physical disks and
volumes is accomplished directly, without going through the file
system, if the API supports this type of access. You can access many
devices other than disks this way (using the CreateFile and
DefineDosDevice functions, for example).

For example, if you want to open the system's serial communications
port 1, you can use "COM1" in the call to the CreateFile function.
This works because COM1–COM9 are part of the reserved names in the NT
namespace, although using the
"\\.\"
prefix will also work with these
device names.


My Question is, what is available in this namespace. Is there a list of devices and where can I get it ?
(I think I did not understand this topic. When I hear device I think of some sort of file in a directory.)

EDIT:

Ok, I will answer my own question. There is a software called WinObj , with which one can see the information .

Answer

Ok, I will answer my own question. There is a software called WinObj , with which one can see the information .

Comments