I'm looking for a way to kill an application in Windows NT. I found the code for killing a process, but this kills more than I want.
Here is my underlying problem:
I'm running an application in batch. Because my flexlm license is about to expire, the application sends out a warning message window. When running the application interactively it is a simple thing to just click on the OK button and procede. However, when I'm running in batch it can't always be at my computer to do that, which means my job hangs. My batch job calls this application several times with different input files, so I need to keep killing the warning message about every 15 minutes. So I'm wanting to write a simple program that will look for the application that displays the warning message and kill it if it exists. I can then put this program in the scheduled tasks and just have it look every minute or so. My basic problem is that I don't know the Win32 system calls to obtain the applications list and to kill the application. I assume it is similar to obtaining and killing a process.
Any assistance in this regard would be greatly apprecaited.
the rookie