'How to insert the title of a third-party application in the TLabel?

I need to launch a third-party application and display its title(TaskBar content) in TLabel. How is this possible to implement? Unfortunately, I cannot modify the application that needs to intercept the header.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source