.NET Dll Injection.
First of all this is not any bot/cheat program nor a tutorial or anything like that, this is just proof of concept that it is possible to inject managed code into native.
This is an open source project which injects a managed (.net) dll into native code (in this case the Tibia client). The end product consists of 3 compiled files, 2 files written in c++ (it is possible to write them in c#) is for injecting and the last file is the actual .net dll.
The .net dll file while injected can read, write and execute memory just like any native injected dll. This program reads player information from the battlelist and also has a send message function which uses Tibias internal functions.
How it works:
It injects a native dll into Tibia which then from the inside of Tibia setups the .NET runtimehost, loads and executes the managed dll file.
You can read everything about it at http://msdn.microsoft.com/en-us/library/dd409341.aspx.
To get this program to work you must use the latest .NET Framework v4.0.30319.
http://www.microsoft.com/downloads/e...5-b386f32c0992
I hope you guys finds this information useful.
#EDIT 2010-10-08
Added a working textoutput hook, it now prints out "Hello World!" under fps. I also fixed a small memory leak.