There is function in MFC/WIN32 API - GetWindowText(...). And there is a function - EnumWindows(...), which you can use to retrieve all desktop windows. So once you retrieve each window, you can use GetWindowText to see the caption of the window.
Hope it helps.
|