title: How to detect is a window of another process minimized or maximized?
body: <p>Currently I'm making a small gadget that made in WPF. It shows and hides according to another window's state.</p>
  
  <p>So, let me name that another window be A. When A get shown or maximized, my gadget shows. When A minimized, my gadget hides.</p>
  
  <p>So, how can I detect the change in state of a window of another process which is not in .NET? Btw sorry for my bad English :P</p>