hasnain_razwi
Member
hi. im using an API to calculate the free space on my hard disk. this is the line that i use to call the API: -
lngReturn = GetDiskFreeSpace(strDrive, lngSectorPerCluster, lngBytesPerSector, lngFreeClusters, lngTotalClusters)
where the value of strDrive is "C:/ ". the trouble is no matter what value i put in strDrive, i keep getting the same result for the rest of the parameters i.e 0,0,0,0. (ofcourse thats not right ) and since there isnt any error, i cant tell where the mistake is.
one more thing, is there an API viewer like application like the one available in VB 6 where we could copy the declaration code from the viewer window and paste it into the code?
lngReturn = GetDiskFreeSpace(strDrive, lngSectorPerCluster, lngBytesPerSector, lngFreeClusters, lngTotalClusters)
where the value of strDrive is "C:/ ". the trouble is no matter what value i put in strDrive, i keep getting the same result for the rest of the parameters i.e 0,0,0,0. (ofcourse thats not right ) and since there isnt any error, i cant tell where the mistake is.
one more thing, is there an API viewer like application like the one available in VB 6 where we could copy the declaration code from the viewer window and paste it into the code?