Group: File System - Library: kernel32
Using GetFileSize
Using InternetSetFilePointer when resuming interrupted download from the Internet
Passing data records between VFP applications via the Clipboard
DWORD GetFileSize(
HANDLE hFile, // handle to file
LPDWORD lpFileSizeHigh // high-order word of file size
);
DECLARE INTEGER GetFileSize IN kernel32;
INTEGER hFile,;
INTEGER @ lpFileSizeHigh
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.
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.
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).