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:
Passing data records between VFP applications via the Clipboard
Using GetFileSize
Using InternetSetFilePointer when resuming interrupted download from the Internet
GetFileSize
..msdn    Add comment     W32 Constants      Translate this page
Retrieves the size of a specified file.
Code examples:
Passing data records between VFP applications via the Clipboard
Using InternetSetFilePointer when resuming interrupted download from the Internet
Using GetFileSize
Declaration:
DWORD GetFileSize(
  HANDLE hFile,           // handle to file
  LPDWORD lpFileSizeHigh  // high-order word of file size
);
FoxPro declaration:
DECLARE INTEGER GetFileSize IN kernel32;
    INTEGER   hFile,;
    INTEGER @ lpFileSizeHigh
Parameters:
hFile
[in] Handle to the file whose size is to be returned.

lpFileSizeHigh
[out] Pointer to the variable where the high-order word of the file size is returned.
Return value:
If the function succeeds, the return value is the low-order doubleword of the file size, and, if lpFileSizeHigh is non-NULL, the function puts the high-order doubleword of the file size into the variable pointed to by that parameter.
My comment:
This function stores the file size in two DWORD values. To retrieve a file size stored in a LARGE_INTEGER structure, use the GetFileSizeEx function (WinNT only).
Word Index links for the GetFileSize :
Translate this page:
  Spanish    Portuguese    German    French    Italian  
FreeTranslation.com offers instant, free translations of text or web pages.
Created: 2001-08-23 12:00:00
Modified: 2002-01-26 12:00:16
Visited in last 7 days: 30
User Contributed Notes:
There are no notes on this subject.


Copyright 2001-2017 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.6.37), the Open Source standard SQL database, AceHTML Freeware Version 4, freeware HTML Editor of choice.   Hosted by Korax Online Inc.
Last Topics Visited (54.166.150.10)
7 sec.Function: 'GetSubMenu'
12 sec.
Function group: 'Printing and Print Spooler'
19 sec.Function: 'FindClosePrinterChangeNotification'
26 sec.Function: 'GetLastError'
32 sec.Function: 'CeRegQueryValueEx'
39 sec.Function: 'SetCapture'
46 sec.Function: 'GdipSetPageScale'
54 sec.Function: 'capGetDriverDescription'
1 min.Function: 'FtpCreateDirectory'
1.13 min.Function: 'ReadProcessMemory'
Google
Advertise here!