Is there any special API in Windows 8 for mounting ISO files?

As you know, Windows Explorer allows you to mount ISO files on a virtual disk. Is there any API that can be used for this?

+5
source share
1 answer

Native function call AttachVirtualDisk .

However, if you use C # like your tags, it might be easier for you to simply call PowerShell and use its wrapper around this Mount-DiskImage

 using System.Management.Automation; namespace IsoMountTest { internal class Program { private static void Main(string[] args) { var isoPath = @"C:\Foo\bar.iso"; using (var ps = PowerShell.Create()) { ps.AddCommand("Mount-DiskImage").AddParameter("ImagePath", isoPath).Invoke(); } } } } 
+7
source

All Articles