Err - DirectX is quite different from OpenGL.
In reply to Re^2: Capture opengl screen by Corion in thread Capture opengl screen by iea