Using Win32 functions in Visual FoxPro Image Gallery
File System
..msdn
DeleteVolumeMountPoint
FindFirstVolume
FindFirstVolumeMountPoint
FindNextVolume
FindNextVolumeMountPoint
FindVolumeClose
FindVolumeMountPointClose
GetCompressedFileSize
GetDiskFreeSpace
GetDiskFreeSpaceEx
GetFileSize
GetFileSizeEx
GetLogicalDrives
GetLogicalDriveStrings
GetVolumeInformation
GetVolumeNameForVolumeMountPoint
GetVolumePathNamesForVolumeName
SetVolumeLabel
SetVolumeMountPoint
Code examples:
DiskFreeSpace class
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:
DiskFreeSpace class
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:
  Spanish    Portuguese    German    French    Italian  
FreeTranslation.com offers instant, free translations of text or web pages.
Created: 2001-08-13 12:00:00
Modified: 2002-01-26 11:55:36
Visited in last 7 days: 27
User Contributed Notes:
There are no notes on this subject.


Copyright 2001-2014 News2News, Inc. Before reproducing or distributing any data from this site please ask for an approval from its owner. Unless otherwise specified, this page is for your personal and non-commercial use. The information on this page is presented AS IS, meaning that you may use it at your own risk. Microsoft Visual FoxPro and Windows are trade marks of Microsoft Corp. All other trademarks are the property of their respective owners. 

Privacy policy
Credits: PHP (4.4.9), an HTML-embedded scripting language, MySQL (5.1.68), the Open Source standard SQL database, AceHTML Freeware Version 4, freeware HTML Editor of choice.   Hosted by Korax Online Inc.
Last Topics Visited (54.81.166.199)
27 sec.Function: 'MAPISendDocuments'
Function group: 'Simple MAPI'
1.05 min.Function: 'ReadFile'
Function group: 'File Management'
1.83 min.Function: 'SCardEstablishContext'
3.07 min.Function: 'TextOut'
8.37 min.Example: 'How to display Windows On-Screen Keyboard'
Language: 'C++'
43.17 min.Example: 'How to change display settings: screen resolution, screen refresh rate'
Language: 'C++'
43.55 min.Function: 'mmioCreateChunk'
Function group: 'Windows Multimedia'
44.12 min.Function: 'waveOutSetVolume'
44.78 min.Example: 'Using the DeleteFile'
45.77 min.Example: 'How to retrieve adapter information for the local computer (including MAC address)'
Google
Advertise here!