public WindowsDriver(DismDriver drv) { this._manufacturerName = drv.ManufacturerName; this._hardwareDescription = drv.HardwareDescription; this._hardwareId = drv.HardwareId; this._architecture = drv.Architecture; this._serviceName = drv.ServiceName; this._compatibleIds = drv.CompatibleIds; this._excludeIds = drv.ExcludeIds; }
public WindowsImage(DismImageInfo info) { this._imageType = info.ImageType; this._imageIndex = info.ImageIndex; this._imageName = info.ImageName; this._imageDescription = info.ImageDescription; this._imageSize = info.ImageSize; this._architecture = info.Architecture; this._productName = info.ProductName; this._editionId = info.EditionId; this._installationType = info.InstallationType; this._hal = info.Hal; this._productType = info.ProductType; this._productSuite = info.ProductSuite; this._version = new Version( (int)info.MajorVersion, (int)info.MinorVersion, (int)info.Build ); this._spBuild = info.SpBuild; this._spLevel = info.SpLevel; this._bootable = info.Bootable; this._systemRoot = info.SystemRoot; this._languages = new Collection <string>( Utilites.PtrToArray <DismString>( info.Language, info.LanguageCount ) .Select(l => l.Value) .ToList() ); this._defaultLanguageIndex = info.DefaultLanguageIndex; this._customizedInfo = info.CustomizedInfo == IntPtr.Zero ? null : new WimCustomizedInfo( Marshal.PtrToStructure <DismWimCustomizedInfo>(info.CustomizedInfo) ); }