Adapted SpEnvironment class >>onWindows method to Cuis.