Original Post
Hello, I wrote a hack for a game and I am trying to figure out how to hook the texture part of Direct3D9. This texture hook will work if and only if all textutures created in the game are created through m_pD3Dev->CreateTexture (where m_pD3Dev is the IDirect3DDevice9 device...). So, my question is, what happens if the game calls one of these functions: D3DXCreateTexture, D3DXCreateTextureFromFile, D3DXCreateTextureFromFileEx, D3DXCreateTextureFromFileInMemory, D3DXCreateTextureFromFileInMemoryEx, D3DXCreateTextureFromResource, or D3DXCreateTextureFromResourceEx? Will these functions in return call m_pD3Dev->CreateTexture or will they create the texture via some other method? If you know for certain you can save me lots of time trying to figure this out, thanks!