Click to return to the Networking, Protocols     
FtpGetFile Function     FtpOpenFile Function     FTP Functions    
Web Workshop  |  Networking, Protocols & Data Formats

FtpGetFileSize Function


Retrieves the file size of the requested FTP resource.

Syntax

DWORD FtpGetFileSize(
    IN HINTERNET hFile,
    OUT LPDWORD lpdwFileSizeHigh
);

Parameters

hFile
HINTERNET handle returned from a call to FtpOpenFile.
lpdwFileSizeHigh
Address of an unsigned long integer that contains the high-order unsigned long integer of the file size in TCHAR.

Return Value

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

Function Information

Windows NT Use version 4.0. Implemented as ANSI and Unicode functions.
Windows Use Windows 95 and later. Implemented as ANSI and Unicode functions.
Header Wininet.h
Import Library Wininet.lib
Minimum availability Internet Explorer 5

See Also

Microsoft Win32 Internet Functions Overview, FTP Sessions, Microsoft Win32 Internet Functions Reference, FTP Functions



Back to topBack to top

Did you find this topic useful? Suggestions for other topics? Write us!

© 1999 Microsoft Corporation. All rights reserved. Terms of use.