This is probably the place to start:
http://msdn.microsoft.com/en-gb/library/cc811599.aspx