PWEB-4742 - Extract common windows things and place them in a toplevel file