How to distinguish (programmatically) a virtual drive?

  • Thread starter Thread starter Rob
  • Start date Start date
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
 
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
 
Back
Top