Using Win32 functions in Visual FoxPro Image Gallery
Code examples:
Testing an ODBC connection for supporting specific functionality
Obtaining Shell32.dll version
Pocket PC: retrieving data from the Contacts Database
Pocket PC: System Registry Viewer
Removing FTP directory
Retrieving the IP-to-physical address mapping table
Retrieving the System Time adjustment
The window and its ancestors
Using Font and Text functions
Using GetNearestColor
Using named pipes for interprocess communication
Enumerating MIDI output devices
Quering a waveform-audio input device
Retrieving the name of the network resource associated with a local device
Using SQLBrowseConnect to connect to a data source through a number of iterative calls (SQL Server)
Winsock: changing the byte ordering
Controlling master audio volume by sending WM_APPCOMMAND messages
How to fill a buffer with random bytes using Cryptography API Functions
Retrieving configuration information for the specified server (Win98/Me)
Retrieving IP statistics for the computer
Accessing LSA Policy object (Local Security Authority)
Basic Volume information
Form Magnifier
Locking the workstation
Opening access to the Microsoft Internet functions for the application

User rating: 0/10 (0 votes)
Rate this code sample:
  • ~
More code examples    Listed functions    Add comment     W32 Constants      Translate this page Printer friendly version of this code sample

DECLARE INTEGER InternetOpen IN wininet;
    STRING sAgent, INTEGER lAccessType,;
    STRING sProxyName, STRING sProxyBypass,;
    STRING lFlags

DECLARE INTEGER InternetCloseHandle IN wininet INTEGER hInet

sAgent = "w32inetopen"  && you can choose any name, say "John Dow"
sProxyName = Chr(0)     && no proxy
sProxyBypass = Chr(0)   && nothing to bypass
lFlags = 0              && no flags used

hOpen = InternetOpen(sAgent, INTERNET_OPEN_TYPE_DIRECT,;
    sProxyName, sProxyBypass, lFlags)

IF hOpen <> 0
* close the access
    ? "Handle retrieved:", hOpen
    = InternetCloseHandle (hOpen)
    ? "Failed to access the WinINet library"

User rating: 0/10 (0 votes)
Rate this code sample:
  • ~
943 bytes  
Created: 2001-07-15 12:00:00  
Modified: 2006-01-05 13:22:03  
Visits in 7 days: 31  
Listed functions:
Printer friendly API declarations
My comment:
Actually this code does nothing. It just shows how to put your hands on the Internet functions to access HTTP, FTP etc.
Word Index links for this example:
Translate this page:
  Spanish    Portuguese    German    French    Italian offers instant, free translations of text or web pages.
User Contributed Notes:
There are no notes on this subject.

Copyright 2001-2014 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.1.68), the Open Source standard SQL database, AceHTML Freeware Version 4, freeware HTML Editor of choice.   Hosted by Korax Online Inc.
Last Topics Visited (
30 sec.Example: 'Dragging files from Explorer window and dropping them on FoxPro control (requires VFP9)'
1.97 min.Function: 'GetTextFace'
3.18 min.Example: 'Retrieving graphic capabilities of your display'
8.12 min.Function: 'JetSetColumn'
Function group: 'Extensible Storage Engine (ESE, Jet Blue)'
4 day(s)Example: 'Using WM_COPYDATA for interprocess communication (VFP9)'
Language: 'C#'
 Example: 'Winsock: reading email messages (POP3, port 110)'
 Function: 'CryptUnprotectData'
Function group: 'Cryptography Reference'
 Example: 'Peer-to-peer LAN messenger built with Mailslot API functions'
 Function: 'GdipNewInstalledFontCollection'
10 day(s)Function: 'FreeEnvironmentStrings'
Function group: 'Process and Thread'
Advertise here!