Пример #1
0
 private static extern bool GetWindowInfo(IntPtr hwnd, ref WINDOWINFO pwi);
Пример #2
0
 public static Nullable<WINDOWINFO> GetWindowInfo(IntPtr hwnd)
 {
     WINDOWINFO windowInfo = new WINDOWINFO(true);
     if (GetWindowInfo(hwnd, ref windowInfo))
     {
         return windowInfo;
     }
     return null;
 }