Using Win32 functions in Visual FoxPro Image Gallery
URL Monikers
..msdn
CreateURLMonikerEx
FindMediaType
IsValidURL
ObtainUserAgentString
URLDownloadToCacheFile
URLDownloadToFile
UrlMkGetSessionOption
Code examples:
How to download a file from HTTP server using URL Monikers functions
The DetectAutoProxyUrl function identifies the auto-config script location
URLDownloadToFile
..msdn    Add comment     W32 Constants      Translate this page
Downloads bits from the Internet and saves them to a file.
Code examples:
How to download a file from HTTP server using URL Monikers functions
The DetectAutoProxyUrl function identifies the auto-config script location
Declaration:
 
HRESULT URLDownloadToFile(
    LPUNKNOWN pCaller,
    LPCTSTR szURL,
    LPCTSTR szFileName,
    DWORD dwReserved,
    LPBINDSTATUSCALLBACK lpfnCB
);
 
FoxPro declaration:
 
DECLARE INTEGER URLDownloadToFile IN urlmon.dll;
    INTEGER pCaller,;
    STRING  szURL,;
    STRING  szFileName,;
    INTEGER dwReserved,;
    INTEGER lpfnCB
 
Parameters:
pCaller
Pointer to the controlling IUnknown interface of the calling Microsoft® ActiveX® component (if the caller is an ActiveX component). If the calling application is not an ActiveX component, this value can be set to NULL.

szURL
Pointer to a string value containing the URL to be downloaded. Cannot be set to NULL.

szFileName
Pointer to a string value containing the name of the file to create for bits that come from the download.

dwReserved
Reserved. Must be set to 0.

lpfnCB
Pointer to the caller"s IBindStatusCallback interface.
Return value:
Returns one of the following values: E_OUTOFMEMORY, S_OK
Translate this page:
  Spanish    Portuguese    German    French    Italian  
FreeTranslation.com offers instant, free translations of text or web pages.
•
Created: 2001-10-26 18:55:36
Modified: 2001-11-26 16:03:49
Visited in last 7 days: 30
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.37), the Open Source standard SQL database, AceHTML Freeware Version 4, freeware HTML Editor of choice.   Hosted by Korax Online Inc.
Last Topics Visited (54.166.203.76)
3 sec.
Function group: 'HTTP Functions (WinHTTP)'
5 sec.Function: 'CeCreateFile'
8 sec.Function: 'GetWorldTransform'
12 sec.Function: 'GdipCreateFont'
15 sec.Function: 'SHQueryRecycleBin'
18 sec.Function: 'URLDownloadToCacheFile'
21 sec.Function: 'UrlMkSetSessionOption'
24 sec.Function: 'MapVirtualKey'
27 sec.Function: 'GetDiskFreeSpace'
31 sec.Function: 'CreateCompatibleDC'
Google
Advertise here!