protected override void Triggered(NativeWrapper.NativeEnvironment env) { var pResult = env.GetParameterP(6); var ret = _Original( env.GetParameterP(0), env.GetParameterI(1), env.GetParameterI(2), env.GetParameterP(3), env.GetParameterI(4), env.GetParameterP(5), pResult); env.SetReturnValue((IntPtr)ret); Direct3DHelper.OnDeviceCreated(Marshal.ReadIntPtr(pResult)); }
protected override void Triggered(NativeWrapper.NativeEnvironment env) { var p0 = env.GetParameterP(0); var p1 = env.GetParameterP(1); var p2 = env.GetParameterI(2); var p3 = env.GetParameterP(3); var p4 = env.GetParameterP(4); var ret = _Original(p0, p1, p2, p3, p4); env.SetReturnValue(ret); if (p2 == 0x17) { new InjectCreateDevice().InjectSelf(Marshal.ReadIntPtr(p4)); } }
protected override void Triggered(NativeWrapper.NativeEnvironment env) { var obj = _Original(env.GetParameterI(0)); new InjectD3DCreateDevice().InjectSelf(obj); env.SetReturnValue(obj); }
protected override void Triggered(NativeWrapper.NativeEnvironment env) { var p0 = env.GetParameterP(0); var p1 = env.GetParameterP(1); var p2 = env.GetParameterI(2); var p3 = env.GetParameterI(3); var p4 = env.GetParameterP(4); var p5 = env.GetParameterP(5); var ret = _Original(p0, p1, p2, p3, p4, p5); env.SetReturnValue(ret); if (ret >= 0) { StringBuilder sb = new StringBuilder(); for (int i = 0; i < ret; ++i) { sb.Append(Marshal.ReadByte(p1, i).ToString("X2")); sb.Append(' '); } _Form.Append("Recv", sb.ToString()); } }
protected override void Triggered(NativeWrapper.NativeEnvironment env) { System.Windows.Forms.MessageBox.Show("draw"); var p0 = env.GetParameterP(0); var p1 = env.GetParameterI(1); var p2 = env.GetParameterI(2); var p3 = env.GetParameterP(3); var p4 = env.GetParameterI(4); Marshal.Copy(p3, _Buffer, 0, _Buffer.Length); for (int i = 0; i < 4; ++i) { _Buffer[i * 7] += _OffsetX; _Buffer[i * 7 + 1] += _OffsetY; } Marshal.Copy(_Buffer, 0, p3, _Buffer.Length); env.SetReturnValue(_Original(p0, p1, p2, p3, p4)); }
protected override void Triggered(NativeWrapper.NativeEnvironment env) { var p0 = env.GetParameterP(0); var p1 = env.GetParameterI(1); var p2 = env.GetParameterP(2); InputManager.ZeroInputData(p2, p1); var ret = _Original(p0, p1, p2); if (p0 == _InjectedInstance && InputManager.HandleAll(p2)) { env.SetReturnValue(ret); } else { env.SetReturnValue(ret); } }