 |
GetDiskFreeSpaceEx ..msdn Add comment W32 Constants Translate this page |
 |
 |
|
Retrieves information about the amount of space available on a disk volume: the total amount of space, the total amount of free space, and the total amount of free space available to the user associated with the calling thread. |
 |
 |
| Code examples: |
 |
|
|
 |
 |
| Declaration: |
 |
 |
BOOL GetDiskFreeSpaceEx(
LPCTSTR lpDirectoryName, // directory name
PULARGE_INTEGER lpFreeBytesAvailable, // bytes available to caller
PULARGE_INTEGER lpTotalNumberOfBytes, // bytes on disk
PULARGE_INTEGER lpTotalNumberOfFreeBytes // free bytes on disk
);
|
 |
 |
 |
| FoxPro declaration: |
 |
 |
DECLARE SHORT GetDiskFreeSpaceEx IN kernel32;
STRING lpDirectoryName,;
STRING @ lpFreeBytesAvailable,;
STRING @ lpTotalNumberOfBytes,;
STRING @ lpTotalNumberOfFreeBytes
|
 |
 |
 |
| Parameters: |
 |
lpDirectoryName
[in] Pointer to a null-terminated string that specifies a directory on the disk of interest.
lpFreeBytesAvailable
[out] Pointer to a variable that receives the total number of free bytes on the disk that are available to the user associated with the calling thread.
lpTotalNumberOfBytes
[out] Pointer to a variable that receives the total number of bytes on the disk that are available to the user associated with the calling thread.
lpTotalNumberOfFreeBytes
[out] Pointer to a variable that receives the total number of free bytes on the disk. |
 |
 |
| Return value: |
 |
| If the function succeeds, the return value is nonzero. |
 |
 |
| My comment: |
 |
| Before VFP version 7 this function returns more accurate results for large devices comparing to native SYS(2020) and DiskSpace() |
 |
 |
| Word Index links for the GetDiskFreeSpaceEx : |
 |
|
|
 |
 |
| Translate this page: |
 |
|
 |
 |
| • |
 |
| Created: | 2001-08-13 12:00:00 | | Modified: | 2002-01-26 11:55:36 | Visited in last 7 days: 20 |