PC Review


Reply
Thread Tools Rate Thread

How to distinguish (programmatically) a virtual drive?

 
 
Rob
Guest
Posts: n/a
 
      24th Mar 2009
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
 
Reply With Quote
 
 
 
 
Uwe Sieber
Guest
Posts: n/a
 
      25th Mar 2009
Rob wrote:
> 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_...listdosdevices
http://msdn.microsoft.com/en-us/library/aa365461(VS.85).aspx


Uwe



 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Create FTP virtual directory programmatically Lan H. Nguyen Microsoft C# .NET 0 1st Sep 2004 06:55 PM
create a IIS virtual directory programmatically Silvia Microsoft Dot NET 1 17th Dec 2003 08:17 AM
how to create an IIS virtual directory programmatically? Matt Microsoft ASP .NET 1 10th Nov 2003 09:45 AM
How do I programmatically mark a virtual directory as an ASP.NET application? Danny Microsoft ASP .NET 1 3rd Nov 2003 07:35 AM
Virtual Partition / Virtual Disk Drive Andrew Microsoft Windows 2000 Hardware 4 16th Oct 2003 01:48 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 02:28 AM.