Using Win32 functions in Visual FoxPro Image Gallery
Code examples:
How to hot-track menu item selection in top-level form (requires VFP9)
Using the GetTempFileName
Animating a transition of the VFP form (a wire-frame rectangle)
Get the power status of your laptop computer
Obtaining addresses for the adapters on the local computer (Win XP/2003/Vista)
Validating URLs using moniker functions
OS version and revision
Reading and setting explicit Application User Model ID for the current process (Win7)
Retrieving long values associated with the class of the VFP window
Using Path functions from Shell Lightweight Utility APIs (shlapi.dll)
Winsock: retrieving the host information corresponding to a network address
DiskFreeSpace class
Simple MAPI: how to resolve a name to unique address list entry
Starting a dialog box for connecting to network resources and passing input parameters
Testing Transparent Menu Class with top-level form (requires VFP9)
Using the Semaphore object
Displaying all TCP connections for the local system
Loading a string resource from an executable file
Obtaining I/O counts for the current process
Determining if an Active Network Connection is Available
Enumerating servers of the specified type (e.g. SQL Server) in the primary domain
Converting twips to pixels and vice versa
Displaying the drive type value
String representation for disk or memory capacity
Dial the Net Automatically

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
 
* Source: http://www.vb-world.net/tips/tip478.html
* Author: http://www.vb-world.net/php-bin/authorbio.php?
*         authorid=3&associd=478&assoctype=3
 
#DEFINE INTERNET_AUTODIAL_FORCE_ONLINE      1
#DEFINE INTERNET_AUTODIAL_FORCE_UNATTENDED  2
 
DECLARE INTEGER InternetAutodial IN wininet.dll;
    INTEGER dwFlags, INTEGER dwReserved
 
DECLARE INTEGER InternetAutodialHangup IN wininet.dll;
    INTEGER dwReserved
 
* To prompt the user to establish a Net connection
= InternetAutodial (INTERNET_AUTODIAL_FORCE_ONLINE, 0)
 
* To automatically start dialling
= InternetAutodial (INTERNET_AUTODIAL_FORCE_UNATTENDED, 0)
 
* To disconnect an automatically dialled connection
= InternetAutodialHangup(0)
 

User rating: 0/10 (0 votes)
Rate this code sample:
  • ~
710 bytes  
Created: 2001-09-08 12:00:00  
Modified: 2003-02-05 19:37:10  
Visits in 7 days: 109  
Listed functions:
InternetAutodial
InternetAutodialHangup
Printer friendly API declarations
My comment:
With my cable connection to the Net I have no chance to test this code. Have no dial-up modem either.

Whoever could test it, please let me know if any corrections needed to this code.
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 (107.22.156.205)
4 sec.Example: 'How to print FoxPro form -- II'
1.28 hrs.Example: 'How to retrieve version information for the specified file'
 Example: 'Using GetNearestColor'
3.02 hrs.Function: 'CeDeleteFile'
4.4 hrs.Example: 'Loading a string resource from an executable file'
 Example: 'Class library providing access to the System Registry'
5.32 hrs.Function: 'ShowHTMLDialog'
 Function: 'CountClipboardFormats'
Function group: 'Clipboard'
8.21 hrs.Function: 'NetMessageBufferSend'
 Example: 'Changing pitch and speed of a wave file'
Google
Advertise here!