10-18-2006 01:46 AM
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
10-18-2006 05:24 AM
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