Log in

View Full Version : IDA Pro - Generate TIL for directX headers


majin
October 2nd, 2013, 09:26
I'm trying to generate a TIL for the directx api since i have a lot of calls like this

((*(int (__stdcall **)(_DWORD, _DWORD))(*(_DWORD *)globalLPDIRECT3DDEVICE7
+ 52))
globalLPDIRECT3DDEVICE7,
&viewport))

i know this is for example IDirect3DDevice7_SetViewport(p,a) - but its a hassle to lookup the method index every time.

The problem is the SDK uses other includes, i tried

tilib -c -hd3dxcore.h -btil/pc/vc6win.til d3dxcore.til

to us the default for windows.h - but i get the error of "Error d3dxcore.h,14: Can't open include file 'limits.h'"

I cant supply more than one base TIL - im not sure how to help the tilib with all needed header files.

I need to get this header as til https://www.assembla.com/code/lightningstools/subversion/nodes/213/trunk/D3D_DDraw_Proxy/ddraw.h

Anyone has a good idea how to create a TIL for such a large SDK ?

Thanks