A European Union court ruled Wednesday that Microsoft Corp. must immediately divulge some trade secrets to competitors and produce a version of its flagship Windows operating system stripped of the program that plays music and video.

The 91-page ruling effectively thwarts Microsoft’s attempt to delay, pending appeal, implementation of the EU’s landmark antitrust decision in March that demanded changes in the software giant’s business practices.