Click here to Skip to main content
15,887,214 members
Please Sign up or sign in to vote.
4.00/5 (1 vote)
I'm trying to convert a device name of the form
"\Device\HarddiskVolumeXX" to a name of the form "\
\?\Volume{GUID}. How can I do this in C# ?
Posted
Updated 14-Aug-11 10:00am
v3

1 solution

To start with, run:
mountvol /?
mountvol /L


You will see available mount points for your system.

See http://technet.microsoft.com/en-us/library/cc772586%28WS.10%29.aspx[^].

Read this CodeProject article: Inside Mountvol.exe[^] about volume mount points and SDK APIs.

See also:
http://msdn.microsoft.com/en-us/library/dd541832%28PROT.10%29.aspx[^],
http://msdn.microsoft.com/en-us/library/cc225342%28v=PROT.10%29.aspx[^],
http://msdn.microsoft.com/en-us/library/dd303455%28v=PROT.10%29.aspx[^].

—SA
 
Share this answer
 
v5

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900