int DokanGetDiskFreeSpace(
PULONGLONG FreeBytesAvailable,
PULONGLONG TotalNumberOfBytes,
PULONGLONG TotalNumberOfFreeBytes,
PDOKAN_FILE_INFO DokanFileInfo)
{
*FreeBytesAvailable = 512*1024*1024;
*TotalNumberOfBytes = 1024*1024*1024;
*TotalNumberOfFreeBytes = 512*1024*1024;
return 0;
}
Why is the data hard coded??? Its fairly trivial to add a struct to the global
context:
typedef struct {
LPWSTR VolumeNameBuffer;
DWORD VolumeNameSize;
LPDWORD VolumeSerialNumber;
LPDWORD MaximumComponentLength;
LPDWORD FileSystemFlags;
LPWSTR FileSystemNameBuffer;
DWORD FileSystemNameSize;
LONGLONG FreeBytesAvailable;
LONGLONG TotalNumberOfBytes;
LONGLONG TotalNumberOfFreeBytes;
} DokanDiskDriveInfo;
And then populate from that! (The same goes for DokanGetVolumeInformation)
Original issue reported on code.google.com by chacham1...@gmail.com on 28 Dec 2010 at 9:51
Original issue reported on code.google.com by
chacham1...@gmail.com
on 28 Dec 2010 at 9:51