|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
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
|
|||
|
|||
|
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!! |
![]() |
| Viewing: Dev Shed Forums > System Administration > FTP Help > FtpGetFileSize |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|