 |
GetDiskFreeSpace ..msdn Add comment W32 Constants Translate this page |
 |
 |
[Obsolete] Retrieves information about the specified disk, including the amount of free space on the disk.
|
 |
 |
| Code examples: |
 |
|
|
 |
 |
| Declaration: |
 |
 |
BOOL GetDiskFreeSpace(
LPCTSTR lpRootPathName, // root path
LPDWORD lpSectorsPerCluster, // sectors per cluster
LPDWORD lpBytesPerSector, // bytes per sector
LPDWORD lpNumberOfFreeClusters, // free clusters
LPDWORD lpTotalNumberOfClusters // total clusters
);
|
 |
 |
 |
| FoxPro declaration: |
 |
 |
DECLARE SHORT GetDiskFreeSpace IN kernel32;
STRING lpRootPathName,;
INTEGER @ lpSectorsPerCluster,;
INTEGER @ lpBytesPerSector,;
INTEGER @ lpNumberOfFreeClusters,;
INTEGER @ lpTotalNumberOfClusters
|
 |
 |
 |
| Parameters: |
 |
lpRootPathName
[in] Pointer to a null-terminated string that specifies the root directory of the disk to return information about.
lpSectorsPerCluster
[out] Pointer to a variable for the number of sectors per cluster.
lpBytesPerSector
[out] Pointer to a variable for the number of bytes per sector.
lpNumberOfFreeClusters
[out] Pointer to a variable for the total number of free clusters on the disk that are available to the user associated with the calling thread. |
 |
 |
| Return value: |
 |
| If the function succeeds, the return value is nonzero. |
 |
 |
| My comment: |
 |
The GetDiskFreeSpace function cannot report volume sizes that are greater than 2 GB. To ensure that your application works with large capacity hard drives, use the GetDiskFreeSpaceEx function.
|
 |
 |
| Word Index links for the GetDiskFreeSpace : |
 |
|
|
 |
 |
| Translate this page: |
 |
|
 |
 |
| • |
 |
| Created: | 2001-08-13 12:00:00 | | Modified: | 2004-09-09 18:38:45 | Visited in last 7 days: 37 |