--- a/filesystemuis/memscaneng/serversrc/mseng.cpp Tue Apr 27 16:25:17 2010 +0300
+++ b/filesystemuis/memscaneng/serversrc/mseng.cpp Tue May 11 16:01:48 2010 +0300
@@ -24,6 +24,7 @@
// SYSTEM INCLUDES
#include <mseng.rsg>
#include <bautils.h>
+#include <driveinfo.h>
// USER INCLUDES
#include "mseng.h"
@@ -563,5 +564,26 @@
return ETrue;
}
+// -----------------------------------------------------------------------------
+// CMseng::IsMassStorageDrive
+// -----------------------------------------------------------------------------
+//
+TBool CMseng::IsMassStorageDrive( RFs& aFs, TInt aDrv )
+ {
+
+ TUint drvStatus( 0 );
+ TInt err( DriveInfo::GetDriveStatus( aFs, aDrv, drvStatus ) );
+ if ( err != KErrNone )
+ {
+ return EFalse;
+ }
+
+ if ( ( drvStatus & DriveInfo::EDriveInternal ) &&
+ ( drvStatus & DriveInfo::EDriveExternallyMountable ) )
+ {
+ return ETrue;
+ }
+ return EFalse;
+ }
// End of File