Get Window State on other programs

Jul 6 2009 2:48 PM
Is it possible to check the WindowState on another program?

I need to check if a certin program is running and maximsed.
Its a game and i need to se if the user is playing or its laying down in the taskbar.