[refactor api] Clean-up the Windows integration.