BOOL GetWindowRect( HWND hWnd, // handle of window LPRECT lpRect // address of structure for window coordinates );