It would be nice to followup with more patches handling the hresult argument (see my test to D3DX10PreprocessShaderFromMemory() from b996a969818685878f1dbe04b773bc4c5f4fd5c4 or Piotr's for the texture functions and implementation) and thread pump (again, see the relevant, recent commits from Piotr).