HOWTO: VB Can Determine if Specific Windows Program Is Running (72918)
The information in this article applies to:
- Microsoft Visual Basic Standard Edition for Windows 2.0
- Microsoft Visual Basic Standard Edition for Windows 3.0
- Microsoft Visual Basic Professional Edition for Windows 2.0
- Microsoft Visual Basic Professional Edition for Windows 3.0
- Microsoft Visual Basic Standard Edition for Windows 1.0
This article was previously published under Q72918 SUMMARY
To determine if a specific program is running, call the Windows API
function FindWindow.
FindWindow returns the handle of the window whose class is given by the
lpClassname parameter and whose window name (caption), is given by the
lpCaption parameter. If the returned value is zero, the application is
not running.
NOTE: Only 16-bit implementations of VBA support the sample code in this
article.
Modification Type: | Major | Last Reviewed: | 12/12/2003 |
---|
Keywords: | kbhowto kbProgramming KB72918 kbAudDeveloper |
---|
|