internal static InteropValues.WINDOWPLACEMENT GetWindowPlacement(IntPtr hwnd) { InteropValues.WINDOWPLACEMENT wINDOWPLACEMENT = new InteropValues.WINDOWPLACEMENT(); if (GetWindowPlacement(hwnd, wINDOWPLACEMENT)) { return(wINDOWPLACEMENT); } throw new Win32Exception(Marshal.GetLastWin32Error()); }
private static extern bool GetWindowPlacement(IntPtr hwnd, InteropValues.WINDOWPLACEMENT lpwndpl);