This is a method of the IDirect3dDevice Interface.
public void getCaps(D3dDeviceDesc HWDesc, D3dDeviceDesc HELDesc);