It can be answer in C# or C++ or WinAPI (I know how to pInvoke).
What I want to achieve. I want to get number of windows that are opened by another applicatoin. For example I have Chat application. I want to get number of windows because I wan't to detect if someone send me message (New incoming message = one more window).
So in short. How to get number of windows opened by another process.