How to distinguish (programmatically) a virtual drive?

R

Rob

If I have a drive M: that I've mapped to say C:\Some\path, it will
show up in the enumeration of drive roots (using
GetLogicalDriveStrings). However, there does not seem to be any way to
know that M:\ IS a virtual drive, GetFileAttributes say nothing
special (actually returns the same value as for C:\).

So.. how can I tell if a drive letter is a virtual one or not??

TIA
/Rob
 
U

Uwe Sieber

Rob said:
If I have a drive M: that I've mapped to say C:\Some\path, it will
show up in the enumeration of drive roots (using
GetLogicalDriveStrings). However, there does not seem to be any way to
know that M:\ IS a virtual drive, GetFileAttributes say nothing
special (actually returns the same value as for C:\).

So.. how can I tell if a drive letter is a virtual one or not??

In a programmers group as comp.os.ms-windows.programmer.win32
you have better chances to get an answer...

QueryDosDevice("M:\\", szDosDevName, sizeof(szDosDevName));

http://www.uwe-sieber.de/drivetools_e.html#listdosdevices
http://msdn.microsoft.com/en-us/library/aa365461(VS.85).aspx


Uwe
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top