Using Win32 functions in Visual FoxPro Image Gallery
Internet Functions (WinInet)
..msdn
CreateMD5SSOHash
DeleteUrlCacheEntry
DetectAutoProxyUrl
FindCloseUrlCache
FindFirstUrlCacheEntry
FindFirstUrlCacheGroup
FindNextUrlCacheEntry
FindNextUrlCacheGroup
FtpCommand
FtpCreateDirectory
FtpDeleteFile
FtpFindFirstFile
FtpGetCurrentDirectory
FtpGetFile
FtpGetFileSize
FtpOpenFile
FtpPutFile
FtpRemoveDirectory
FtpRenameFile
FtpSetCurrentDirectory
GetUrlCacheEntryInfo
HttpOpenRequest
HttpQueryInfo
HttpSendRequest
InternetAttemptConnect
InternetAutodial
InternetAutodialHangup
InternetCanonicalizeUrl
InternetCheckConnection
InternetCloseHandle
InternetConnect
InternetCrackUrl
InternetDial
InternetFindNextFile
InternetGetConnectedState
InternetGetConnectedStateEx
InternetGetCookie
InternetGetLastResponseInfo
InternetGoOnline
InternetOpen
InternetOpenUrl
InternetQueryDataAvailable
InternetQueryOption
InternetReadFile
InternetSetCookie
InternetSetFilePointer
InternetTimeFromSystemTime
InternetTimeToSystemTime
InternetWriteFile
Code examples:
Custom FTP Class for Visual FoxPro application
Uploading file to the FTP server using InternetWriteFile
InternetWriteFile
    Add comment     W32 Constants      Translate this page
Writes data to an open Internet file.
Code examples:
Custom FTP Class for Visual FoxPro application
Uploading file to the FTP server using InternetWriteFile
Declaration:
BOOL InternetWriteFile(
    HINTERNET hFile,
    LPCVOID lpBuffer,
    DWORD dwNumberOfBytesToWrite,
    LPDWORD lpdwNumberOfBytesWritten
);

FoxPro declaration:
DECLARE INTEGER InternetWriteFile IN wininet;
    INTEGER   hFile,;
    STRING  @ sBuffer,;
    INTEGER   lNumBytesToWrite,;
    INTEGER @ dwNumberOfBytesWritten
Parameters:
hFile
[in] Valid HINTERNET handle returned from a previous call to FtpOpenFile or an HINTERNET handle sent by HttpSendRequestEx.

lpBuffer
[in] Pointer to a buffer that contains the data to be written to the file.

dwNumberOfBytesToWrite
[in] Unsigned long integer value that contains the number of bytes to write to the file.

lpdwNumberOfBytesWritten
[out] Pointer to an unsigned long integer variable that receives the number of bytes written to the buffer.
Return value:
Returns TRUE if the function succeeds, or FALSE otherwise.
My comment:
This function is convenient when you want to store a local file on the FTP copying it as a series of relatively small pieces. In this case you can stop, suspend or abort the process and display its progress using the intervals between sending pieces.
Word Index links for the InternetWriteFile :
Translate this page:
  Spanish    Portuguese    German    French    Italian  
FreeTranslation.com offers instant, free translations of text or web pages.
Created: 2001-07-24 12:00:00
Modified: 2001-11-26 16:02:38
Visited in last 7 days: 15
User Contributed Notes:
There are no notes on this subject.


Copyright 2001-2017 News2News, Inc. Before reproducing or distributing any data from this site please ask for an approval from its owner. Unless otherwise specified, this page is for your personal and non-commercial use. The information on this page is presented AS IS, meaning that you may use it at your own risk. Microsoft Visual FoxPro and Windows are trade marks of Microsoft Corp. All other trademarks are the property of their respective owners. 

Privacy policy
Credits: PHP (4.4.9), an HTML-embedded scripting language, MySQL (5.6.38), the Open Source standard SQL database, AceHTML Freeware Version 4, freeware HTML Editor of choice.   Hosted by Korax Online Inc.
Last Topics Visited (54.92.141.211)
3 sec.Function: 'SQLDataSources'
7 sec.Function: 'GetOpenClipboardWindow'
10 sec.Links
15 sec.Function: 'CeWriteRecordProps'
19 sec.Function: 'waveOutSetVolume'
24 sec.Function: 'WideCharToMultiByte'
29 sec.Function: 'RegisterRawInputDevices'
33 sec.Function: 'ReportEvent'
37 sec.Function: 'FtpRenameFile'
41 sec.Function: 'ChooseFont'
Google
Advertise here!