Using Win32 functions in Visual FoxPro Image Gallery
Code examples:
Get the power status of your laptop computer
Printing text on the client area of the main VFP window
Reading the state of mouse buttons within DO WHILE loop
Returning some basic information for the specified INF file
The DetectAutoProxyUrl function identifies the auto-config script location
Using the GetTempFileName
Adding printer to the list of supported printers for the specified server
How to download this reference`s archive through WinInet functions using InternetOpenUrl
How to view system icons for the classes installed on the local machine
Retrieveing information about the active window (even if it is not owned by the calling process)
Verifying a file using the Authenticode policy provider
A procedure for setting file times
Copying strings through the global memory block
Obtaining I/O counts for the current process
Obtaining names of local and global groups for current user (WinNT/XP/2K)
Obtaining physical parameters for a drive: sectors, clusters, cylinders...
Retrieving list of available disk drives
Using vendor-neutral SQL constructs
Current keyboard type
Extracting the name and extension parts of a path string
How to get Special Folders paths
Obtaining heap handles and enumerating memory blocks for the current VFP session (WinNT only)
Obtaining OS memory performance information
Removing FTP directory
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: 63  
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 (184.73.7.143)
4 sec.Function: 'DrawMenuBar'
2.1 hrs.Function: 'SCardReleaseContext'
 Example: 'Using the IsWindowEnabled function'
2.32 hrs.Example: 'Converting characters to upper or lower case'
 Function: 'WNetCloseEnum'
Function group: 'Windows Networking'
2.44 hrs.Example: 'How to convert a bitmap file to monochrome format (1 bpp)'
 Function: 'RtlCompressBuffer'
 Function: 'DrawAnimatedRects'
4.15 hrs.Example: 'Copying files as a transacted operation (Vista)'
 Example: 'Minimizing all running applications'
Google
Advertise here!