LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to know if an application is running on XP or not

Is there any simple command, script or API can check if an application is still running on XP?

 

Firstly, the aaa.exe will exit, but it will take a bit time to terminate. bbb.exe need to check if aaa.exe has really exit.

After aaa.exe really exit, bbb.exe will overwrite aaa.exe with new copy and call aaa.exe again.

0 Kudos
Message 1 of 3
(2,318 Views)

Hi turbot,

this link can help. You can also try to get a handle to your application. There is a Win API call "Get Handle by Name". It's part of user32.dll.

 

Mike

Message Edited by MikeS81 on 02-19-2009 09:48 AM
0 Kudos
Message 2 of 3
(2,313 Views)

Here is a VI using LabVIEW .net functions to get all process names.  Same as using the task manager to get the processes.

 

 

Visualize the Solution

CLA

LabVIEW, LabVIEW FPGA
Download All
Message 3 of 3
(2,289 Views)