title: How to detect if a HWND belong to my application?
body: <p>My application creates multiple windows and I want to enforce a Z order in-between these windows, i.e, if two windows happen to overlap, a window with a higher priority should be painted over the window with lower priority.</p>
  
  <p>I am getting the handles of different (invisible/visible) windows wrt to a window using the <a href="https://msdn.microsoft.com/en-us/library/windows/desktop/ms633515(v=vs.85).aspx" rel="nofollow">GetWindow</a> function. I want to know if a particular window returned by this function is created by my application. Any ideas on how can I get that information?     </p>