Using Win32 functions in Visual FoxPro Image Gallery
Code examples:
Retrieving various system metrics
StrDup returns a pointer to the duplicate of a source VFP string
Using Multimedia Command Strings to play MIDI files
Accessing examples contained in this reference from a VFP application
Enhanced GetFont dialog
How to release and renew a lease on an IP address previously obtained through Dynamic Host Configuration Protocol (DHCP)
Retrieving the command line for the VFP session
Setting and retrieving the double-click time for the mouse
Converting characters to upper or lower case
How to check whether the system is 32-bit or 64-bit
Locking the workstation
Retrieving the name of the network resource associated with a local device
Using an Event Object. Part A: running an application that creates an Event object
Using the Semaphore object to allow only one instance of VFP application running
Another way to go online (it is not about choosing an ISP)
Current directory of the application
Enumerating the subkeys of a user-specific key
Disabling drawing in the VFP form
PocketPC: creating directories and files
Retrieving information about all users currently logged on to the workstation (WinNT only)
Retrieving national language settings
Retrieving the state of your Internet connection
Searching for the specified file using the SearchPath
Using MessageBeep
Initiating Inet connection using a modem

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_AUTODIAL_FORCE_ONLINE         1 
#DEFINE INTERNET_AUTODIAL_FORCE_UNATTENDED     2 
#DEFINE INTERNET_AUTODIAL_FAILIFSECURITYCHECK  4 
 
DECLARE INTEGER GetActiveWindow IN user32
 
DECLARE INTEGER InternetDial IN wininet;
    INTEGER hwndParent, STRING lpszConnectoid, INTEGER dwFlags,;
    INTEGER @lpdwConnection, INTEGER dwReserved
 
LOCAL hConnection
hConnection = 0
 
? InternetDial (GetActiveWindow(), "MyProvider",;
    INTERNET_AUTODIAL_FORCE_ONLINE, @hConnection, 0)
 
? "Number associated with the connection:", hConnection
 

User rating: 0/10 (0 votes)
Rate this code sample:
  • ~
553 bytes  
Created: 2002-06-14 18:01:20  
Modified: 2002-06-14 18:02:23  
Visits in 7 days: 67  
Listed functions:
GetActiveWindow
InternetDial
Printer friendly API declarations
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-2013 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.55-log), the Open Source standard SQL database, AceHTML Freeware Version 4, freeware HTML Editor of choice.   Hosted by Korax Online Inc.
Last Topics Visited (50.16.132.180)
3.24 hrs.Example: 'Starting a dialog box for connecting to network resources and passing input parameters'
3.25 hrs.Function: 'GetFocus'
Function group: 'Keyboard Input'
3.96 hrs.Function: 'IsWellKnownSid'
 Example: 'Comparing dimensions of the VFP main window with _SCREEN properties'
5.28 hrs.Function: 'ExpandEnvironmentStrings'
Function group: 'System Information'
6.25 hrs.Example: 'Setting the date and time that a file was created'
 Example: 'Retrieving the names of all sections in an initialization file'
8.34 hrs.Function: 'RasPhonebookDlg'
 Function: 'SetEvent'
Function group: 'Synchronization'
8.89 hrs.Example: 'Adding supplementary data to AVI files'
Google
Advertise here!