如何判断E盘是否可用?
rt 问题点数:50、回复次数:1Top
1 楼chenziteng(陈子腾)回复于 2006-03-12 11:02:06 得分 50
TDriveInfo driveInfo;
TInt error = fs.Drive(driveInfo, EDriveE);
User::LeaveIfError(error);
if (driveInfo.iDriveAtt == KDriveAbsent)
{
// drive E is absent
}
Reference: "How to retrieve drive and volume information"
http://www.symbian.com/developer/techlib/v8.1adocs/doc_source/guide/Base-subsystem-guide/N1007E/FileServerClientSide/FileServerClientSideGuide2/DriveAndVolumeExample.guide.htmlTop




