Using Win32 functions in Visual FoxPro Image Gallery
Code examples:
Disabling mouse and keyboard input for the main VFP window (with the app still running)
Enumerating devices installed on the local machine
Quering Audio Mixer Device
Winsock: connecting to a news server (NNTP, port 119)
How to assemble an array of strings and pass it to external function
Programmatically removing submenus from VFP main menu
Using the SystemParametersInfo function
How to detect if additional monitor is connected and active
Storing screen shot of a form to bitmap file
Using MessageBeep
Converting an HTTP time/date string to a SYSTEMTIME structure
How to create MD-5 and SHA-1 hash values from a string
Moving shortcut to a specified position on the Windows Desktop
Drawing Windows predefined bitmaps using the LoadBitmap functions
Adding an ODBC data source with the SQLConfigDataSource; use automatic or interactive mode
Enumerating ports that are available for printing on a specified server
Adding user-defined items to the Control Menu of VFP form (requires VFP9)
Converting image file to .ICO file
Creating a mailslot
Getting a bit more than the _CLIPTEXT offers
Reading the structure of VFP main menu
Retrieving size of a remote file
Using Change Notification Objects to monitor changes to the printer or print server
Accessing Adobe Reader 7.0 main menu from VFP application
Starting external program from VFP and waiting for its termination

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
Versions:
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 external applications from VFP using CreateProcess
  • 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:
      Password:
     
     
      Forgot your password?
     
      Sign up for
    the Membership
     
     


    User rating: 0/10 (0 votes)
    Rate this code sample:
    • ~
    1585 bytes  
    Created: 2003-01-28 18:23:26  
    Modified: 2011-12-10 09:20:22  
    Visits in 7 days: 116  
    Listed functions:
    CloseHandle
    CreateProcess
    GetLastError
    WaitForSingleObject
    Printer friendly API declarations
    My comment:
    Microsoft Knowledge Base Article - 191584: How To Determine When a 32-bit Process has Completed.

    * * *
    Another option is starting external program in a different desktop. With no calls to the WaitForSingleObject made, the host VFP program stays active. Though it becomes invisible and is cut off from keyboard and mouse input.

    See also:
  • How to prevent users from accessing the Windows Desktop and from switching to other applications

    * * *
    C#: This is asynchronous notification that relies on the Exited event (EnableRaisingEvents must be set to true for the Process instance). Synchronous notification relies on calling the WaitForExit method.
  • Word Index links for this example:
    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.72.184.104)
    3.94 hrs.
    Function group: 'Painting and Drawing'
     Function: 'FindWindow'
    4.52 hrs.Example: 'How to put a horizontal text scrolling on the form (a news line)'
     Function: 'FindNextPrinterChangeNotification'
    8.26 hrs.Function: 'CeCreateProcess'
     Example: 'How to ping a remote site using IP Helper API calls'
    11.25 hrs.Function: 'WinHttpConnect'
    11.95 hrs.Function: 'WinExec'
     Example: 'Retrieving various system metrics'
    13.15 hrs.Example: 'How to play a waveform sound (a WAV file in particular)'
    Language: 'C#'
    Google
    Advertise here!