Added base code for the common and win32 window.