I found this article, but is there an easier way of doing this?

http://msdn2.microsoft.com/en-us/library/x66s8zcd.aspx