static unsafe D3D8.IDirect3D8 *Direct3DCreate8_Hooked(uint SDKVersion) { Mithos This = (Mithos)HookRuntimeInfo.Callback; This.d3d8 = new IDirect3D8(SDKVersion, Interface); return(This.d3d8.Context); }
static unsafe int DirectInput8Create_Hooked(IntPtr hInst, UInt32 dwVersion, IntPtr riidltf, DirectInput8.IDirectInput8 **ppvOut, IntPtr punkOuter) { Mithos This = (Mithos)HookRuntimeInfo.Callback; int rv; This.di8 = new IDirectInput8(hInst, dwVersion, riidltf, ppvOut, punkOuter, Interface, out rv); return(rv); }