Using Win32 functions in Visual FoxPro Image Gallery
Code examples:
Retrieving the priority class for the current process
Terminating VFP application using the FatalAppExit
Using GetBinaryType (WinNT only) to determine the type of an executable file
Using the Semaphore object
Dynamic strings implemented through VFP Custom class
Enumerating ODBC drivers available on the local computer
Retrieving geometrical parameters of the system desktop window
Enumerating connections made to a shared resource for the local computer (WinNT only)
How to drag a Form not using its Titlebar or Caption
Retrieving the System Time adjustment
Another way to go online (it is not about choosing an ISP)
Displaying the main Dial-Up Networking dialog box
PocketPC: creating directories and files
Searching for the specified file using the SearchPath
An alternative way of setting Form.Closable to False
GDI+: Using Scale and Shear transformations
How to test file attributes (key method for FileExists and DirectoryExists routines)
Converting path to original case
How to fill a buffer with random bytes using Cryptography API Functions
How to intercept window messages sent to VFP form
Using the GetLogicalDriveStrings
GDI+: converting text strings to images and saving in a graphics file
Power capabilities of the system: battery, UPS, sleep and hibernation modes, processor throttling
Reading STARTUPINFO structure for the current VFP session
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: 57  
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 (107.22.25.119)
4 sec.Example: 'Retrieving the name and type of all available RAS-capable devices'
27.82 min.Example: 'How to intercept window messages sent to VFP form'
1.03 hrs.Example: 'Drawing a rectangle using Windows regular edges and borders'
 Function: 'InternetDial'
Function group: 'Internet Functions (WinInet)'
Google
Advertise here!