Logic for windows specific code