Using Win32 functions in Visual FoxPro Image Gallery
Code examples:
How to create MD-5 and SHA-1 hash values from a string
How to prevent users from accessing the Windows Desktop and from switching to other applications
Obtaining information about all user accounts on a server (WinNT only)
Sending a standard message with one or more attached files using default email client
Using Beep and Sleep functions to make the old tin buzz sing (WinNT only?)
Creating a window using CreateWindowEx function
How to play MIDI notes
Accessing Adobe Reader 7.0 main menu from VFP application
GDI+: how to make VFP controls visually shake and shudder
Retrieving file information for the VFP executable running
Storing screen shot of a form to bitmap file
WAV file player
Winsock: connecting to a news server (NNTP, port 119)
Getting a bit more than the _CLIPTEXT offers
How to display picture stored in enhanced-format metafile (*.emf)
OS version and revision
Disconnecting USB Mass Storage Device programmatically
How to copy the image of a form to the Clipboard using Bitmap API functions
How to upload a local file to FTP server using FtpPutFile
Reading entries from Event logs
Using Common Controls: the Header Control
Using InternetSetFilePointer when resuming interrupted download from the Internet
Loading a string resource from an executable file
How to build UDP responder
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: 102  
    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 (50.16.132.180)
    3 sec.Example: 'How to display a dialog box with which the user can add a data source (DSN)'
    6 sec.Example: 'Initiating Inet connection using a modem'
    3.25 hrs.Example: 'Starting a dialog box for connecting to network resources and passing input parameters'
     Function: 'GetFocus'
    Function group: 'Keyboard Input'
    3.96 hrs.Function: 'IsWellKnownSid'
     Example: 'Comparing dimensions of the VFP main window with _SCREEN properties'
    5.28 hrs.Function: 'ExpandEnvironmentStrings'
    Function group: 'System Information'
    6.25 hrs.Example: 'Setting the date and time that a file was created'
     Example: 'Retrieving the names of all sections in an initialization file'
    8.34 hrs.Function: 'RasPhonebookDlg'
    Google
    Advertise here!