FtpGetFileSize function (wininet.h)

Retrieves the file size of the requested FTP resource.

Syntax

DWORD FtpGetFileSize(
  [in]  HINTERNET hFile,
  [out] LPDWORD   lpdwFileSizeHigh
);

Parameters

[in] hFile

Handle returned from a call to FtpOpenFile.

[out] lpdwFileSizeHigh

Pointer to the high-order unsigned long integer of the file size of the requested FTP resource.

Return value

Returns the low-order unsigned long integer of the file size of the requested FTP resource.

Remarks

Note  WinINet does not support server implementations. In addition, it should not be used from a service. For server implementations or services use Microsoft Windows HTTP Services (WinHTTP).
 

Requirements

Requirement Value
Minimum supported client Windows 2000 Professional [desktop apps only]
Minimum supported server Windows 2000 Server [desktop apps only]
Target Platform Windows
Header wininet.h
Library Wininet.lib
DLL Wininet.dll

See also

FTP Sessions

WinINet Functions