public WINDOWPLACEMENT GetWindowPlacement(IntPtr windowPtr) { WINDOWPLACEMENT placement = new WINDOWPLACEMENT(); placement.length = Marshal.SizeOf(placement); WinApi.GetWindowPlacement(windowPtr, out placement); return placement; }
internal static extern bool GetWindowPlacement(IntPtr hWnd, out WINDOWPLACEMENT lpwndpl);