Exemple #1
0
 private static extern bool GetWindowPlacement(IntPtr hwnd, WINDOWPLACEMENT lpwndpl);
Exemple #2
0
 public static WINDOWPLACEMENT GetWindowPlacement(IntPtr hwnd)
 {
     var wndpl = new WINDOWPLACEMENT();
     if (GetWindowPlacement(hwnd, wndpl))
     {
         return wndpl;
     }
     throw new Win32Exception();
 }