initialized length param for getwindowplacement