i use to create a custom function like winexec(...):Hwnd that will retun the handle of executed application.
i did use the findwindow() but having problem if it change w
There is function named EnumWindows. I think it will be useful to you.
Check the following links for more information
http://delphi.about.com/od/windowsshellapi/l/aa080304a.htm
http://www.swissdelphicenter.ch/torry/showcode.php?id=327