Hello,
A few remarks:
1) this patch is too huge You need to split it in several patches. I advice you to do a patch for - d3dx9effect.h -an another one for d3dx9shader.h -an another one for D3DXCreateEffect -an another one for D3DXCreateEffectExW and D3DXCreateEffectExW
2) for the patch D3DXCreateEffect you need to stub not only this function but also, all the methods coming with this function
David