I am trying to create a small app whereby I can monitor what is going on in a desktop. What I'm currently stuck on is how to find out what is the topmost app running in the system. For example is Internet Explorer the topmost? Or Visual Studio, etc.
I figure I may need a hook but I'm not sure where to begin on that. Or how to actually find out what is the top most!