I am writing an application that needs to continuously monitor the position of another program's window. So I need to get the position of the main window of this other program and I need to know if that window is moved. Code samples would be nice. I am writing my application in C#. Any suggestion how to do this?