Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Declare FtpGetFileSize in WinINet.dll
Message
From
06/02/2002 12:58:09
 
 
To
06/02/2002 12:43:51
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Miscellaneous
Thread ID:
00616161
Message ID:
00616169
Views:
24
>I just started using the WinINet.dll in one of my programs but I can't declare the FtpGetFileSize function. I am using VFP7SP1 with Win2000Pro. While looking for help I found the following:
>FoxPro declaration:
>DECLARE INTEGER FtpGetFileSize IN wininet.dll ;
>    INTEGER hFile, ;
>    STRING @ lpdwFileSizeHigh
>
>When I use this declaration I get the error "Command Contains Unrecognized Phrase/Keyword"
>Can anyone tell me how to declare this correctly?
>Thanks in advance,
>Brian

Brian,
declare integer FtpGetFileSize IN WinINet.dll integer, integer @

local FileSize, fs1, fs2, HaveFileSize
fs2 = 0

fs1 = FtpGetFileSize( fd_ftp, @fs2)

FileSize = fs2 * 2^32 + fs1

HaveFileSize = !(FileSize < 0 )
Gregory
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform