RootPath = Name.c_str();\r
RootPath += L"\\";\r
\r
- Handle = CreateFile\r
+ Handle = CreateFileW\r
(\r
FileName,\r
MAXIMUM_ALLOWED, // access\r
BOOL Result;\r
\r
ReturnVal = true;\r
- Result = GetVolumeInformation\r
+ Result = GetVolumeInformationW\r
(\r
RootPath.c_str(),\r
VolName,\r
DWORD FreeClusters;\r
DWORD TotalClusters;\r
\r
- Result = GetDiskFreeSpace\r
+ Result = GetDiskFreeSpaceW\r
(\r
RootPath.c_str(),\r
&SectorsPerCluster,\r
\r
VolInfo.ClusterSize = SectorsPerCluster * BytesPerSector;\r
\r
- Result = GetDiskFreeSpaceEx\r
+ Result = GetDiskFreeSpaceExW\r
(\r
RootPath.c_str(),\r
(PULARGE_INTEGER)&nan,\r
\r
bool DriveVolume::ScanDirectory (wstring DirPrefix, ScanCallback Callback, void *UserData)\r
{\r
- WIN32_FIND_DATA FindData;\r
+ WIN32_FIND_DATAW FindData;\r
HANDLE FindHandle;\r
wstring SearchString;\r
uint32 DirIndice;\r
SearchString = DirPrefix;\r
SearchString += L"*.*";\r
ZeroMemory (&FindData, sizeof (FindData));\r
- FindHandle = FindFirstFile (SearchString.c_str(), &FindData);\r
+ FindHandle = FindFirstFileW (SearchString.c_str(), &FindData);\r
\r
if (FindHandle == INVALID_HANDLE_VALUE)\r
return (false);\r
ScanDirectory (Dir, Callback, UserData);\r
}\r
\r
- } while (FindNextFile (FindHandle, &FindData) == TRUE);\r
+ } while (FindNextFileW (FindHandle, &FindData) == TRUE);\r
\r
FindClose (FindHandle);\r
return (false);\r
\r
FullName = GetDBDir (Info.DirIndice) + Info.Name;\r
\r
- Handle = CreateFile\r
+ Handle = CreateFileW\r
(\r
FullName.c_str(),\r
0, //GENERIC_READ,\r
*/\r
\r
// Open file\r
- FileHandle = CreateFile\r
+ FileHandle = CreateFileW\r
(\r
FullName.c_str (),\r
GENERIC_READ,\r