Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Declare FtpGetFileSize in WinINet.dll
Message
From
06/02/2002 13:16:48
 
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Miscellaneous
Thread ID:
00616161
Message ID:
00616185
Views:
22
>How about:
>DECLARE INTEGER FtpGetFileSize IN wininet;
> INTEGER hFile, STRING @lpdwFileSizeHigh
>Example at: http://www.news2news.com/vfp/?function=-1&example=69
>>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

Either the example is wrong or you missed the comment at the end
FtpGetFileSize Function  Internet Development Index 

--------------------------------------------------------------------------------

Retrieves the file size of the requested FTP resource.

Syntax

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 Value

Returns the low-order unsigned long integer of the file size of the requested FTP resource.
Gregory
Previous
Reply
Map
View

Click here to load this message in the networking platform