SunQuest
           FTP Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsSystem AdministrationFTP Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
Stay one step ahead of the competition. Evaluate and give feedback on some of the hottest web development tools on the market today. Make your opinion heard! Click Here
  #1  
Old December 2nd, 2003, 06:52 PM
Berberer Berberer is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Dec 2003
Posts: 5 Berberer User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 44 sec
Reputation Power: 0
FtpGetFileSize

Hi Guys,
So my problem is, how do I implement FtpGetFileSize from the wininet.dll.. i'll write down real quick what i have till now:

Private Declare Function FtpGetFileSize Lib "wininet.dll"_ Alias "FtpGetFileSize" (ByVal hFtpSession As Integer, ByVal_ lpszRemoteFile As String) As Integer

and thats how i want to get the filesize:

Dim size As Integer
size = FtpGetFileSize(hSession, "ftp.zip")
MsgBox(size)

But as soon as i get the size i'm just getting a "-1", but i know, that this file exists..
i can you also show what i found on microsofts page, which is kind a encrypted for my knowledge:

DWORD FtpGetFileSize(
HINTERNET hFile,
LPDWORD lpdwFileSizeHigh
);

Parameters
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.
Return Values
Returns the low-order unsigned long integer of the file size of the requested FTP resource.

so please,if somebody can help me, either answer here or contact me through email: Morpheus@myghf.de

Thanks, I really appreciate your help, guys!!

Reply With Quote
Reply

Viewing: Dev Shed ForumsSystem AdministrationFTP Help > FtpGetFileSize


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 6 hosted by Hostway