How To Determine When a 32-bit Process has Completed (191584)
The information in this article applies to:
- Microsoft Visual FoxPro for Windows 3.0
- Microsoft Visual FoxPro for Windows 3.0b
- Microsoft Visual FoxPro for Windows 5.0
- Microsoft Visual FoxPro for Windows 5.0a
- Microsoft Visual FoxPro for Windows 6.0
This article was previously published under Q191584 SUMMARY
Executing the RUN/! command in a Visual FoxPro program starts another
executable program asynchronously and returns control to the Visual FoxPro
application. This shelled program continues to run independently of the
parent Visual FoxPro application until the user closes it.
However, if your Visual FoxPro application needs to wait for the child
process to terminate, you can use the Win32 CreateProcess and
WaitForSingleObject API functions. CreateProcess starts the child process
and populates a PROCESS_INFORMATION structure with its process handle.
WaitForSingleObject accepts this process handle as an argument, and puts
the processor in an extremely efficient wait state until the child process
terminates.
REFERENCES
Modification Type: | Minor | Last Reviewed: | 7/1/2004 |
---|
Keywords: | kbhowto KB191584 |
---|
|