public RECT? GetWindowRect(POINT mouse) { RECT ret = new RECT(); if(GetWindowRect(WindowFromPoint(mouse), out ret)) { return ret; } return null; }
private static extern bool GetWindowRect(IntPtr hWnd, out RECT lpRect);