Confined windows-specific code to one place