如何确定媒体是否未格式化,使用LFS格式化还是使用MFS格式化? [英] How to determine whether media is unformatted, formatted using LFS or formated using MFS?

查看:192
本文介绍了如何确定媒体是否未格式化,使用LFS格式化还是使用MFS格式化?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好,


我正在开发一个具有文件导出功能的桌面应用程序。


我正在使用IMAPIv2和我能够使用Mastered格式化选项使用空白媒体和媒体格式刻录媒体。


但我希望能够确定媒体是否已使用实时文件系统进行了格式化,以便我可以使用标准的File API将文件写入驱动器。


有没有人有办法确定这个?


我试图使用IFileSystemImage: :来自IMAPIv2的IdentifyFileSystemsOnDisc方法,但是对于LFS和未格式化的媒体都返回None。


亲切的问候


Lee 

解决方案

这是一个小技巧,但使用File API,您将能够区分未格式化的媒体和LFS,因为只有LFS才允许您列出根目录内容。 / BLOCKQUOTE>

Hello,

I am developing a desktop application that has a file export functionality.

I am using the IMAPIv2 and am able to burn media with blank media and media formatted using the Mastered formatting option.

However I would like to be able to determine if media have been formatted using the live file system so that I can use the standard File API to write file to the drive.

Does anyone have a method of determining this?

I have tried to used IFileSystemImage::IdentifyFileSystemsOnDisc method from IMAPIv2, however this returns None for both LFS and unformatted media.

Kind regards

Lee 

解决方案

It's a little bit of a trick, but using File API you will be able to distinguish unformatted media from LFS as only LFS will allow you to list the root directory content.


这篇关于如何确定媒体是否未格式化,使用LFS格式化还是使用MFS格式化?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆