Hi,
Just to make the qustion more clear-
Here is my code-
-----------------------------------------------------------------------------------------------------------
Code:
#include "stdafx.h"
int _tmain(int argc, _TCHAR* argv[])
{
DWORD SectorsPerCluster, BytesPerSector, FreeClusters, TotalClusters;
if (GetDiskFreeSpace(argv[1], &SectorsPerCluster, &BytesPerSector, &FreeClusters, &TotalClusters))
{
printf ("GetDiskFreeSpace Success\n");
}
else
{
printf ("GetDiskFreeSpace Failed : '%d'\n", GetLastError ());
}
return 0;
}
----------------------------------------------------------------------------------------------------------
basically, using win2k host , i am trying to access file/directory resided on netapp volume from using UNC path.
argv[1] is my case is " \\?\UNC\netapp2704\aniket\tempQtree\" for which the API is failing(error code 144).
whereas, I am able to access " \\netapp2704\aniket\tempQtree\" from file explorer.
"tempQtree" is qtree on share "aniket".
The GetDiskFreeSpace API succeeds on the path " \\?\UNC\netapp2704\aniket\ ".
Hope this clears my question. Please let me know if any additional inputs required.