You need to learn the DirectX SDK.
Get it here http://msdn.microsoft.com/directx/