Code from Windows.