re: d3dx9: Implementation of D3DXGetDeclLength