I would like to retrieve the title of the application that was active at the time when my inactive application gets focus. All I need is the window handle of the previously active app. Once I have it I can retrieve the title.
Scenario: my application is running but inactive. I have other applications started but the currently active is Netscape Messenger. When my inactive app gets the focus or gets reactivated I would like to display the title: Netscape Messanger or whatever happens to be in the Messenger's main window title bar.