Using Win32 functions in Visual FoxPro Image Gallery
Function Groups:
All Functions 1306
Atom 1
Authentication 14
Authorization 6
Bitmap 9
Brush 2
Clipboard 20
Color 1
Common Dialog Box 12
Console 12
Coordinate Space and Transformation 9
Cryptography Reference 28
Cursor 5
Data Decompression Library 3
Debugging 2
Desktop Window Manager (DWM) 1
Device Context 13
Device Input and Output 1
Dialog Box 6
DNS Functions 1
Dynamic-Link Library 6
Error Handling 10
Event Logging 10
Extensible Storage Engine (ESE, Jet Blue) 23
File Management 49
File Mapping 4
File System 19
Filled Shape 2
Font and Text 13
GDI+ 6
GDI+ Bitmap 10
GDI+ Brush 4
GDI+ Font 9
GDI+ Graphics 28
GDI+ Image 20
GDI+ ImageAttributes 3
GDI+ Matrix 10
GDI+ PathGradient Brush 3
GDI+ Pen 2
GDI+ StringFormat 2
GDI+ Text 2
Handle and Object 4
Hook 2
HTTP Functions (WinHTTP) 12
Icon 7
Internet Functions (WinInet) 49
IP Helper 24
Kernel Transaction Manager 3
Keyboard Input 22
Mailslot 3
Memory Management 26
Menu 18
Message and Message Queue 12
Metafile 6
Monitor Configuration (Vista) 8
Mouse Input 8
MSHTML Reference 1
Multilingual User Interface 4
Multiple Display Monitors 2
National Language Support 20
Network Management 34
Painting and Drawing 17
Path 3
Performance Monitoring 12
Pipe 5
PnP Configuration Manager 6
Power Management 6
Printing and Print Spooler 35
Process and Thread 31
Raw Input 4
Region 7
Registry 21
Remote Access Service (RAS) 5
Remote Application Programming (RAPI) 49
Remote Procedure Call (RPC) 7
Resource 10
Security 22
Service 11
Setup API functions 7
Shell Functions 39
Shell Lightweight Utility APIs -- misc. functions 2
Shell Lightweight Utility APIs -- Path Functions 20
Shell Lightweight Utility APIs -- string functions 4
Simple MAPI 9
String 10
Synchronization 13
System Information 23
System Shutdown 5
Terminal Services 10
Time 16
Unicode and Character Set 2
URL Monikers 7
Version Information 2
Virtual Hard Disk (Win7) 4
Window 37
Window Class 8
Window Procedure 3
Window Property 3
Window Station and Desktop 7
Windows Controls 8
Windows Multimedia 76
Windows Networking 18
Windows Sockets 2 (Winsock) 38
Internet Functions (WinInet)            ..msdn    Add comment
CreateMD5SSOHash Obtains the default Microsoft Passport password for a specified account or realm, creates an MD5 hash from it using a specified wide-character challenge string, and returns the result as a string of hexadecimal digit bytes.
DeleteUrlCacheEntry Removes the file associated with the source name from the cache, if the file exists.
DetectAutoProxyUrl Attempts to determine the location of a WPAD autoproxy script.
FindCloseUrlCache Closes the specified cache enumeration handle.
FindFirstUrlCacheEntry Begins the enumeration of the Internet cache.
FindFirstUrlCacheGroup Initiates the enumeration of the cache groups in the Internet cache.
FindNextUrlCacheEntry Retrieves the next entry in the Internet cache.
FindNextUrlCacheGroup Retrieves the next cache group in a cache group enumeration started by FindFirstUrlCacheGroup.
FtpCommand Sends commands directly to an FTP server.
FtpCreateDirectory Creates a new directory on the FTP server
FtpDeleteFile Deletes a file stored on the FTP server.
FtpFindFirstFile Searches the specified directory of the given FTP session
FtpGetCurrentDirectory Retrieves the current directory for the specified FTP session
FtpGetFile Retrieves a file from the FTP server and stores it under the specified file name, creating a new local file in the process.
FtpGetFileSize Retrieves the file size of the requested FTP resource.
FtpOpenFile Initiates access to a remote file on an FTP server for reading or writing.
FtpPutFile Stores a file on the FTP server.
FtpRemoveDirectory Removes the specified directory on the FTP server.
FtpRenameFile Renames a file stored on the FTP server.
FtpSetCurrentDirectory Changes to a different working directory on the FTP server
GetUrlCacheEntryInfo Retrieves information about a cache entry.
HttpOpenRequest This function opens an HTTP request handle.
HttpQueryInfo Retrieves header information associated with an HTTP request.
HttpSendRequest This function sends the specified request to the HTTP server.
InternetAttemptConnect Attempts to make a connection to the Internet.
InternetAutodial Causes the modem to automatically dial the default Internet connection.
InternetAutodialHangup Disconnects an automatic dial-up connection.
InternetCanonicalizeUrl Canonicalizes a URL, which includes converting unsafe characters and spaces into escape sequences.
InternetCheckConnection Allows an application to check if a connection to the Internet can be established.
InternetCloseHandle Closes a single Internet handle
InternetConnect Opens an FTP, Gopher, or HTTP session for a given site
InternetCrackUrl Cracks a URL into its component parts.
InternetDial Initiates a connection to the Internet using a modem.
InternetFindNextFile Continues a file search started as a result of a previous call to FtpFindFirstFile or GopherFindFirstFile
InternetGetConnectedState Retrieves the connected state of the local system.
InternetGetConnectedStateEx Retrieves the connected state of the specified Internet connection.
InternetGetCookie This function retrieves the cookie for the specified URL.
InternetGetLastResponseInfo Retrieves the last Microsoft® Win32® Internet function error description or server response on the thread calling this function.
InternetGoOnline Prompts the user for permission to initiate connection to a URL.
InternetOpen Initializes an application"s use of the Microsoft® Win32® Internet functions
InternetOpenUrl Opens a resource specified by a complete FTP, Gopher, or HTTP URL.
InternetQueryDataAvailable This function queries the amount of data available.
InternetQueryOption Queries an Internet option on the specified handle
InternetReadFile Reads data from a handle opened by the InternetOpenUrl, FtpOpenFile, FtpCommand, GopherOpenFile, or HttpOpenRequest function
InternetSetCookie This function creates a cookie associated with the specified URL.
InternetSetFilePointer Sets a file position for InternetReadFile.
InternetTimeFromSystemTime Formats a date and time according to the HTTP version 1.0 specification.
InternetTimeToSystemTime Converts an HTTP time/date string to a SYSTEMTIME structure.
InternetWriteFile Writes data to an open Internet file.
Code examples:
Custom FTP Class for Visual FoxPro application
Downloading files from the FTP server using InternetReadFile
Retrieving list of files on the FTP directory
Custom HttpRequest class (WinINet)
Reading list of folders and files on FTP server
Using FtpCommand
Uploading local file to FTP server with FtpPutFile
Using InternetSetFilePointer when resuming interrupted download from the Internet
How to enumerate cookies and URL History entries in the cache of the local computer
Creating a directory on the FTP
How to retrieve the size of a remote file (FTP)
How to delete IE cookies, clear IE history and delete files in Temporary Internet Files directory
Uploading file to the FTP server using InternetWriteFile
How to download a file from the FTP server using FtpGetFile
How to download this reference`s archive through WinInet functions using InternetOpenUrl
How to delete file on FTP server
How to remove FTP directory
Reading Internet Query options
Dial the Net Automatically
Converting an HTTP time/date string to a SYSTEMTIME structure
How to retrieve information about a cache entry (Internet Explorer)
Retrieving the state of your Internet connection
Opening access to the Microsoft Internet functions for the application
Managing Cookies
Testing if a connection to an Url can be established
Wininet last error description
The DetectAutoProxyUrl function identifies the auto-config script location
Initiating Inet connection using a modem
URL: splitting into its component parts
Another way to go online (it is not about choosing an ISP)
Using InternetGoOnline function
URL: converting unsafe characters and spaces into escape sequences
User Contributed Notes:
A.M. | 2001-10-01 09:33:29
Look at this article "Building distributed Web Applications with Visual FoxPro" at (West Wind Technologies). HTTP, WinInet, some VFP source code.
A.M. | 2001-10-01 09:33:30
West Wind Internet Protocols 3.50 (wwIPStuff)

Provides a number of common Internet Protocols in an easy use to use Visual FoxPro class library. This product is distributed as fully functional shareware. Supports:
- SMTP Email
- HTTP - Access Web content from VFP
- Advanced HTTP support
- Powerful HTTP Application Server classes
- FTP - Transfer files
- Dial up Networking
- IP Address validation
- Fast C based Conversion Routines
Paolo Piergentili | 2005-07-30 11:20:40
I am an amateur with FoxPro, but I find it very useful, and I developed some code writing skill.

Now I whish to use it to develop Web Page with database management funtionality. I visited many sites (incliding MSDN library), but I am lost. Where can I find beginner clear and simple instructions to develop my web funcionality? Can anyone help me?


Paolo from Venice, Italy | 2005-09-20 05:51:43
its better if u gonna put the functions of string such as
Hi Anatoliy

I am looking to send a request for a web page - say, and save the html to a file for data extraction. What is the best way to handle this?

What about HTTPS? Can WinInet handle this?


A.M. | 2005-12-01 18:54:59
A simple way is to use URLDownloadToCacheFile call, or its cousin, URLDownloadToFile. Search "RemoteToLocal" in this reference for an example. This API works with HTTP and HTTPS.

Another interesting option is using the MSXML2.ServerXMLHTTP object.

And of course, a solution can be based on each of the API libraries, WinINet, WinHTTP and WinSock. You can find corresponding examples here.

Copyright © 2001-2018 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.39), the Open Source standard SQL database, AceHTML Freeware Version 4, freeware HTML Editor of choice.   Hosted by Korax Online Inc.
Last Topics Visited (
21 sec.Function: 'SQLConnect'
41 sec.Function: 'GetTextCharacterExtra'
1.02 min.Function: 'FillConsoleOutputAttribute'
1.32 min.Function: 'DragQueryFile'
1.68 min.Function: 'StrCmpC'
2.05 min.Function: 'AVIStreamGetFrameClose'
2.38 min.Function: 'SQLAllocEnv'
2.7 min.Function: 'inet_addr'
3.05 min.Function: 'RtlCompressBuffer'
3.37 min.Function: 'RemoveDirectory'
Advertise here!