Might as well reuse hwnd here instead of calling getWindowHandle() again.