I want to get the handle of an windows application which was launched using ShellExecute so that later I can use the SetForegroundWindow to show it again instead of launching another instance. I dont want to use the GetWindowText api call to get the handle of that aplpication. I know there is an instance handle that gets returned but it isn't the same as the actual handle of the application. Just note I am talking about launching other windows appliactions which are not delphi apps i.e. like notepad for instance. So I want to launch notepad using ShellExecute get the handle for that instance of notepad, use SetForegroundWindow to show that instance of Notepad without searching the desktop windows for a title of 'notepad' to get the handle. How do I do this? Thanx in advance!