diff -r 9c352d34f5aa -r 683f4b1f08ce libraries/ltkutils/src/ltkhal.cpp --- a/libraries/ltkutils/src/ltkhal.cpp Thu Sep 09 15:38:45 2010 +0100 +++ b/libraries/ltkutils/src/ltkhal.cpp Thu Sep 09 15:47:34 2010 +0100 @@ -9,9 +9,12 @@ // Initial Contributors: // Accenture - Initial contribution // +#include #include #include +#include #include +#include LtkUtils::CHalAttribute::CHalAttribute(TInt aAttribute, TInt aDeviceNumber, TInt aValue, TInt aError, const TDesC& aAttributeName, HBufC* aDescription) : iAttribute(aAttribute), iDeviceNumber(aDeviceNumber), iValue(aValue), iError(aError), iAttributeName(aAttributeName), iDescription(aDescription) @@ -341,3 +344,16 @@ CleanupStack::Pop(&buf); // attrib now owns its HBufC* return attrib; } + +EXPORT_C char LtkUtils::GetSystemDrive() + { +#ifdef FSHELL_9_1_SUPPORT + TInt ch = EDriveC; + HAL::Get(HAL::ESystemDrive, ch); + return 'a' + ch; +#else + TChar systemDrive = 'c'; + RFs::DriveToChar(RFs::GetSystemDrive(), systemDrive); + return (char)(TUint)systemDrive; +#endif + }