Using Win32 functions in Visual FoxPro Image Gallery
Code examples:
Custom GDI+ class
How to change display settings: screen resolution, screen refresh rate
GDI+: Implementing image scrolling with inertia
Obtaining names and positions for shortcuts located on the Windows Desktop
Vertical Label control
Displaying dimmed window behind VFP top-level form
Enumerating devices installed on the local machine
How to generate GUID values
Printing Image File, programmatically set print page orientation to landscape
Disconnecting USB Mass Storage Device programmatically
Storing content of the Clipboard to a bitmap file
Monitoring clipboard content changes (VFP9)
Subclassing CommandButton control to create BackColor property
Adding a background image to VFP report (VFP9, ReportListener)
Browsing Windows Known Folders (Special Folders)
Compressing and decompressing files with Windows API Runtime Library routines
Splash Screen for the VFP application
How to load a user profile
How to put a vertical text scrolling on the form (a movie cast)
How to control Adobe Reader 9.0 (SDI mode) from VFP application
Generating random cryptographic keys
GDI+ fun: roach-infested desktop
How to put a horizontal text scrolling on the form (a news line, marquee)
Detecting changes in connections to removable drives (VFP9)
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
#DEFINE INTERNET_OPEN_TYPE_PRECONFIG 0
#DEFINE INTERNET_OPEN_TYPE_DIRECT 1
#DEFINE INTERNET_OPEN_TYPE_PROXY 3
#DEFINE INTERNET_FLAG_ASYNC 0x10000000
#DEFINE INTERNET_FLAG_FROM_CACHE 0x1000000
#DEFINE INTERNET_FLAG_OFFLINE 0x1000000
#DEFINE INTERNET_FLAG_CACHE_IF_NET_FAIL 0x10000

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)
ELSE
    ? "Failed to access the WinINet library"
ENDIF



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: 36  
Listed functions:
InternetCloseHandle
InternetOpen
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  
FreeTranslation.com offers instant, free translations of text or web pages.
User Contributed Notes:
There are no notes on this subject.


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 (54.92.197.82)
22 sec.Function: 'FindCloseChangeNotification'
Function group: 'File Management'
43 sec.Function: 'GdipCreateFromHDC'
Function group: 'GDI+ Graphics'
1.05 min.Function: 'GdipSetPageUnit'
Function group: 'GDI+ Graphics'
1.4 min.Function: 'GdipSaveImageToFile'
Function group: 'GDI+ Image'
1.75 min.Function: 'InternetGetConnectedStateEx'
Function group: 'Internet Functions (WinInet)'
2.1 min.Function: 'CryptBinaryToString'
Function group: 'Cryptography Reference'
2.45 min.Function: 'TrackPopupMenuEx'
Function group: 'Menu'
2.8 min.Function: 'HttpQueryInfo'
Function group: 'Internet Functions (WinInet)'
3.17 min.Function: 'SCardListCards'
Function group: 'Authentication'
3.53 min.Updates
Google
Advertise here!