public void Run(RemoteHooking.IContext InContext, String InChannelName)
{
Device dev;
dev = new Device(new Direct3D(), 0, DeviceType.Hardware, IntPtr.Zero, CreateFlags.HardwareVertexProcessing, new PresentParameters() { BackBufferWidth = 1, BackBufferHeight = 1 });
IntPtr addy = dev.ComPointer;
addy = (IntPtr)Marshal.ReadInt32(addy);
addy = (IntPtr)((int)addy + 0xA8);
addy = (IntPtr)Marshal.ReadInt32(addy);
EndSceneHooker = LocalHook.Create((IntPtr)addy, new DEndScene(EndSceneHook), this);
EndSceneHooker.ThreadACL.SetExclusiveACL(new Int32[] { 0 });
while (true)
{
}
}