Windows NT ( 2)




- 10


strcpy((pdi + i)->szFileSystemName, "?");

(pdi + i)->dwFreeSpace = 0;

(pdi + i)->dwTotalSpace = 0;

break;

}

//

case DRIVE_FIXED:

{

(pdi + i)->iImage = 1;

GetVolumeInformation(lpTemp,

(pdi + i)->szVolumeName, 30,

&((pdi + i)->dwVolumeSerialNumber),

&((pdi + i)->dwMaxFileNameLength),

&((pdi + i)->dwFileSystemFlags),

(pdi + i)->szFileSystemName, 10);

GetDiskFreeSpace(lpTemp, &dwSectors, &dwBytes,

&dwFreeClusters, &dwClusters);

(pdi + i)->dwFreeSpace =

dwSectors * dwBytes * dwFreeClusters;

(pdi + i)->dwTotalSpace =

dwSectors * dwBytes * dwClusters;

break;

}

//

case DRIVE_REMOTE:

{

(pdi + i)->iImage = 3;

GetVolumeInformation(lpTemp,

(pdi + i)->szVolumeName, 30,

&((pdi + i)->dwVolumeSerialNumber),

&((pdi + i)->dwMaxFileNameLength),

&((pdi + i)->dwFileSystemFlags),

(pdi + i)->szFileSystemName, 10);

GetDiskFreeSpace(lpTemp, &dwSectors, &dwBytes,

&dwFreeClusters, &dwClusters);

(pdi + i)->dwFreeSpace =

dwSectors * dwBytes * dwFreeClusters;

(pdi + i)->dwTotalSpace =

dwSectors * dwBytes * dwClusters;

break;

}

//

default:

{

(pdi + i)->iImage = 1;

GetVolumeInformation(lpTemp,

(pdi + i)->szVolumeName, 30,

&((pdi + i)->dwVolumeSerialNumber),

&((pdi + i)->dwMaxFileNameLength),

&((pdi + i)->dwFileSystemFlags),