Hi, how can implement GetVolumeInformation function?
I have this code:
tatic int (DOKAN_CALLBACK
from_Dokan_GetVolumeInformation) (
LPWSTR VolumeNameBuffer,
DWORD VolumeNameSize,
LPDWORD VolumeSerialNumber,
LPDWORD MaximumComponentLength,
LPDWORD FileSystemFlags,
LPWSTR FileSystemNameBuffer,
DWORD FileSystemNameSize,
PDOKAN_FILE_INFO DokanFileInfo)
{
VolumeNameBuffer = L"riky";
VolumeNameSize = sizeof("riky");
VolumeSerialNumber = NULL;
MaximumComponentLength = NULL;
FileSystemFlags = NULL;
FileSystemNameBuffer = L"RDFS";
FileSystemNameSize = sizeof("RDFS");
return 0;
}
but when i mount my virtual file system, the name of volume is nothing
and the file system name is RAW.
And the return value, in case the operation is successful you should
need to return zero, as described in the readme, or a nonzero value
as described in the MSDN documentation:
http://msdn.microsoft.com/en-us/library/aa364993
(VS .85). aspx ?