Exemplo n.º 1
0
 /// <summary>
 /// Associates an offline Windows image with a DISMSession.
 /// </summary>
 /// <param name="imagePath">An absolute or relative path to the root directory of an offline Windows image or an absolute or relative path to the root directory of a mounted Windows image.</param>
 /// <param name="windowsDirectory">A relative or absolute path to the Windows directory. The path is relative to the mount point.</param>
 /// <param name="systemDrive">The letter of the system drive that contains the boot manager. If SystemDrive is NULL, the default value of the drive containing the mount point is used.</param>
 /// <returns>A <see cref="DismSession"/> object.</returns>
 /// <exception cref="DismException">When a failure occurs.</exception>
 public static DismSession OpenOfflineSession(string imagePath, string windowsDirectory, string systemDrive)
 {
     return(DismApi.OpenSession(imagePath, windowsDirectory, systemDrive));
 }