Tag: imapi

.NET中的IMAPI2 MsftFileSystemImage在创建ISO时不释放文件

我成功创建了iso映像,但是在调用此Create方法返回后,我尝试删除rootFolderPath中的文件时出现’文件正在使用’IO错误。 我错过了Marshal.ReleaseComObject调用吗? 谢谢, CW /// /// Create iso image from rootFolderPath and write to isoImageFilePath. Does not include the actual rootFolder itself /// public void Create() { IFileSystemImage ifsi = new MsftFileSystemImage(); try { ifsi.ChooseImageDefaultsForMediaType(IMAPI_MEDIA_PHYSICAL_TYPE.IMAPI_MEDIA_TYPE_DISK); ifsi.FileSystemsToCreate = FsiFileSystems.FsiFileSystemJoliet | FsiFileSystems.FsiFileSystemISO9660; ifsi.VolumeName = this.volumeName; ifsi.Root.AddTree(rootFolderPath, false);//use a valid folder //this will implement the Write method for […]

如何从c#刻录videoDVD?

我需要在C#应用程序中从我的网络摄像头刻录videoDVD吗? 这样做的正确方法是什么? 需要什么步骤? 我想我必须使用正确的文件夹结构和MPEG2video创建图像,然后将其刻录到DVD? IMAPI2?