Test-ready maximize func on windows