Пример #1
0
 public MountedWindowsImage(DismMountedImageInfo img)
 {
     this._mountPath         = img.MountPath;
     this._imageFilePath     = img.ImageFilePath;
     this._imageIndex        = img.ImageIndex;
     this._isMountedReadOnly = img.MountMode == DismMountMode.DismReadOnly;
     this._status            = img.MountStatus;
 }
Пример #2
0
        public WimMountedImage(DismMountedImageInfo info)
        {
            SYSTEM   = new SYSTEM(_mountPath);
            SOFTWARE = new SOFTWARE(_mountPath);
            USER     = new USER(_mountPath);
            ADMIN    = new ADMIN(_mountPath);

            _type      = Type.Mounted;
            _index     = info.ImageIndex;
            _wimPath   = info.ImageFilePath;
            _mountPath = _description = info.MountPath;

            _stat = info.MountStatus;

            GetState();

            if (info.MountStatus == DismMountStatus.NeedsRemount)
            {
                DismApi.RemountImage(_mountPath);
            }
        }