what did Microsoft do to prevent viruses like Melissa virus?

I don't know if this will answer your question or not.

http://www.microsoft.com/security/portal/mmpc/shared/prevention.aspx