Microsoft is telling the tale of a major software piracy investigation that weaved through 22 countries, hoping would-be pirates will think twice if they know how far the company will go to protect its computer code worth billions in revenue each quarter. Near-perfect knockoffs of 21 different Microsoft programs began surfacing around the world just over a decade ago. Soon, PCs in more than a dozen countries were running illegal copies of Windows and Office, turning unwitting consumers into criminals.