From what I know, people inside Microsoft make sure they don't get in to any legal trouble before they make use of any code or idea that's already available.
Anyways, this episode is a blatant disrespect for IP. Copying the code is something awful. I believe this case deserves the attention of authorities at Microsoft.