Using Win32 functions in Visual FoxPro Image Gallery
Code examples:
Start an executable from VFP application by using the CreateProcess
Winsock: retrieving directory listing from an FTP server using passive data connection (FTP, port 21)
Compressing and decompressing files with Windows API Runtime Library routines
Creating a unique filename based on existing filename
GDI+: cropping images
How to block the PrintScreen key
Analyzing character types in a specified string
Using Shell for performing operations on files
Dial the Net Automatically
How to make application automatically close all documents it opened
How to retrieve network parameters for the local computer (including Host name, Domain name, and DNS Server)
How to retrieve the number of print jobs queued for the printer
How to position the GETPRINTER() dialog
GDI+: custom Clock Control
How to access a file using not its name but an alias (hard link)
How to start the screen saver and how to find whether the screen saver is active
Using FrameRgn for displaying system colors
GDI+: sending image of FoxPro form to printer
How to download a file from the FTP server using FtpGetFile
MSMQ: how to open a queue
Custom HttpRequest class (WinINet)
Drawing a rectangle using Windows regular edges and borders
How to block the ALT+TAB shortcut (WinXP)
How to delete IE cookies, clear IE history and delete files in Temporary Internet Files directory
Start an executable from VFP application by using the CreateProcess

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
click to open
Before you begin:
Other code samples you might be interested in:
  • Running external applications from VFP using WinExec
  • Using ShellExecute for performing operations on files
  • Running an external program from FoxPro and waiting for its termination
  • How to Start a Process as Another User (NT/XP/2K)
  • Running MSDOS Shell as a child process with redirected input and output

      Members area. Log in to view this example.
      User name:
      Forgot your password?
      Sign up for
    the Membership

    User rating: 0/10 (0 votes)
    Rate this code sample:
    • ~
    1760 bytes  
    Created: 2001-07-12 12:00:00  
    Modified: 2011-12-10 09:20:22  
    Visits in 7 days: 208  
    Listed functions:
    Printer friendly API declarations
    My comment:
    According to the Microsoft all WinExec calls are translated directly into corresponding CreateProcess calls.

    Microsoft Knowledge Base Article - 175986
    Understanding CreateProcess_and Command-line Arguments.

    * * *
    Note overloaded Run methods in C# code.
    Word Index links for this example:
    Translate this page:
      Spanish    Portuguese    German    French    Italian 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 (
    4 sec.Example: 'Custom GDI+ class'
    11 sec.Function: 'JetOpenTable'
    Function group: 'Extensible Storage Engine (ESE, Jet Blue)'
    16 sec.Example: 'How to view icons stored in executable files (Icon Viewer) - II'
    22 sec.Function: 'GetMonitorBrightness'
    Function group: 'Monitor Configuration (Vista)'
    28 sec.Function: 'GdipCreateImageAttributes'
    Function group: 'GDI+ ImageAttributes'
    37 sec.Function: 'NetSessionEnum'
    Function group: 'Network Management'
    5.74 hrs.Function: 'CeRegEnumKeyEx'
     Function: 'CryptCreateHash'
     Function: 'CreateVirtualDisk'
     Function: 'CeReadFile'
    Advertise here!