Adapt to Windows