LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

is it possible to kill a *.exe with a LabWindows dll

hello

Is it possible to write a LabWindows programm compiled as *.dll with which I can kill (close) a *.exe?

If Yes, Can anyone tell me the command or send me a code example?

regards samuel

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

Hi,

In CVI,

You could have a dll function that launches your executable and returns a handle back to TestStand. The function would make a call LaunchExecutableEX() to start your exe file.

When you want to terminate that executable, you could have another dll function which you pass the handle to the executable, which was returned by the first dll function. The terminate function would make the call TerminateExecuteable(handle) you would then call RetireExecutableHandle(handle) to release the memory.

Hope this is of some help

Regards

Ray Farmer

Regards
Ray Farmer
0 Kudos
Message 2 of 2
(3,341 Views)