European Union regulators have fined Microsoft Corporation $ 357 million for failing to share programming code with its rivals , as demanded by a 2004 antitrust ruling .