public static Structures.CCleaner_Rectangle GetWindowRectangle(IntPtr hWnd) { try { Structures.CCleaner_Rectangle LowRectangle = new Structures.CCleaner_Rectangle(); GetWindowRect(hWnd, out LowRectangle); return(LowRectangle); } catch (Exception ExceptionString) { string ExceptionMessage = Convert.ToString(ExceptionString); } return(new Structures.CCleaner_Rectangle()); }
public static extern bool GetWindowRect(IntPtr hwnd, out Structures.CCleaner_Rectangle lpRect);