Read the DirectX SDK documentation.