LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Discover another running application

Hello,
how can i find out if another application (eg Excel) is still running? Is there a simple method?
 
I use CVI 7.1 and Windows XP.
 
Many thanks
Jürgen
0 Kudos
Message 1 of 6
(3,437 Views)
---ExcelRpt_WriteData--if it is not writeable then let us say application is running ...may be it works
 
0 Kudos
Message 2 of 6
(3,423 Views)
The application is not Excel. It was only an example.
 
Has anyone an idea?
0 Kudos
Message 3 of 6
(3,419 Views)
This is traditionally done by searching for a window owned by the process. The Windows API function FindWindow() can be used to do this, but you will need to know either the registered class name of the window (unlikely) or the window name (i.e. the caption text for the window - more likely).
 
You can find more information about FindWindow here.
 
Martin.
--
Martin
Certified CVI Developer
0 Kudos
Message 4 of 6
(3,408 Views)

Hello Martin,

many thanks!

0 Kudos
Message 5 of 6
(3,409 Views)

Hello Jürgen.

Assuming you know the name of the executable, it may be better to use the psapi functions.

Check this thread.

Regards,
Colin.

 

Message Edited by cdk52 on 09-16-2005 09:57 AM

0 Kudos
Message 6 of 6
(3,379 Views)