Group: Internet Functions (WinInet) - Library: wininet
How to retrieve the size of a remote file (FTP)
DWORD FtpGetFileSize(
HINTERNET hFile,
LPDWORD lpdwFileSizeHigh
);
DECLARE INTEGER FtpGetFileSize IN wininet;
INTEGER hFile,;
INTEGER @ lpdwFileSizeHigh
hFile [in] HINTERNET handle returned from a call to FtpOpenFile.
lpdwFileSizeHigh [out] Pointer to the high-order unsigned long integer of the file size of the requested FTP resource.
Returns the low-order unsigned long integer of the file size of the requested FTP resource.