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(); } } } }
source share