MS-DOS device names are global. Once defined, an MS-DOS device name remains visible to all processes until either it is explicitly removed or the system reboots.
The DefineDosDevice function is used to create and modify the symbolic links used to implement the MS-DOS device namespace. To obtains a list of all MS-DOS devices known to the system, use the QueryDosDevice function.