In our application, we would like to restrict user to fire the same job agian unless he comes out of it first. This means if the process PROGRAM_A.EXE is there in the NT Task Manager window, he can not start PROGRAM_A.EXE again. How do we do that? In other words, given a program name (ABCD.EXE for example), how do we check whether it is up there or not?

Any quick help is highly appreciated.

rgds.