The on-line MSDN (Microsoft Developer Network) library is available at http://msdn.microsoft.com/library/default.asp . This covers pretty much everything you'd ever want to know about what you're asking, although it isn't stunningly easy to navigate.