I am trying to execute calc.exe and I only want one copy to be running at a time. I am using WinExec("calc") to execute the program, but I don't want multiple copies. If calc.exe is already running I want to show the running copy and not start a new copy.
Does anyone know the procedure for checking if a copy is running and if so then show it rather than executing another copy?
Dan