extern int (__stdcall *DetourRecv)(SOCKET Socket, char *Buffer, int Length, int Flags); extern int __stdcall FilterRecv(SOCKET Socket, char* Buffer,int iLenght, int iFlags);
extern unsigned long Chat_add; extern unsigned long MiniChat_add;
} int (__stdcall *DetourRecv)(SOCKET Socket, char *Buffer, int Length, int Flags); int ASyncPos = 0; int FinalSize = 0; int __stdcall FilterRecv(SOCKET Socket,char *Buffer, int iLength, int iFlags) { if (ASyncPos == FinalSize && FinalSize > 0) { MyRecv(Buffer, ASyncPos);
Yeah I diddn't checked the includes already had know there are useless one's. c&p from a other Project I had left here.
thx for tip with std::string I will change it for sure.
uhm nah it's not ZeroTen's source.
Baah, 'k.
Now I look like the bad guy <:
So, if you want to gear up on efficiency a bit, you should read some , and see how you can use it.
It's there to be used.
Also, like RunzelEier already said, using reinterpret_cast will do exactly the same as C-style cast, it just makes the code more confusing overall, if you overuse it.
And in the end, type-casting doesn't exist in ASM (unless you change from signed/unsigned or change the container width).
You should also learn some , to have a clear understanding of calling conventions and what they imply, the stack and how it reacts upon push/pop, et cetera.
Detouring functions using direct JMP's toward declspec(naked) functions is just a bad design. (that's how ZeroTen does it)
You shouldn't do that unless it's absolutely necessary.
It is always better to reserve a few bytes ahead, and push the necessary variables on the stack, and then call your hook, this way, you can create your own local variables, and use whichever calling convention you like, without having to worry where to jump back.
And it will look a lot better. (because yes, people should care about style)
Detouring class functions should be linked toward __fastcall hooks, and those hooks should NOT be in a class, not even static. It is better to leave them in a namespace, to keep things ordered.
The reason I'm saying this, is because forcing calling conventions on member functions will confuse the compiler, and cause undefined behaviour. (like moving edx into ecx in a __fastcall member function).
Declaring class instances using extern and using static member functions are also a bad design.
The "extern" keyword might be the "approved" way to declare globals, but that's not something you should rely on.
Classes are meant to be used for object-oriented programming, not to be used as a wrapper.
Therefore, static members should only be used within a class if you use a singleton patterning.
LaTale OpenSource 09/22/2014 - Private Server - 11 Replies If anybody is interested in making their own Latale Private Server here are some files that I found to get started on your server. LaTaleServer.rar
*Must know how to code in C#
[Aion] OpenSource C++ 06/16/2012 - Private Server - 7 Replies Heey liebe Elitepvpers-Community
Letztens habe ich nach einem Aion Emulator gesucht, und nur Aion Galaxy Emu für die Spielversion 2.7 gefunden. Diese Emu ist in Java geschrieben. Ich persönlich mag Java gar nicht, vor allem im Bereich der Emulatoren Entwicklung. Daher wollte ich fragen, ob sich ein paar Leute finden würden um eine Aion Core auf C++ zu coden.
Ich dachte an ACE als Socket Library, Mysql als DB, Github für den Source Code.
Vom Aufbau her, dachte ich an Trinitycore....
[S] Opensource WoW-Core in C#! 08/13/2011 - WoW Private Server - 6 Replies Hi,
ich suche ein komplettes World of Warcraft Repack, das zum einen Open-Source ist und zum anderen zu 100% in C# und SQL geschrieben!
Welche Version es ist, ist mir vollkommen egal, denn ich will mich einfach mal mit der Materie auseinandersetzen.
Danke schonmal :)
OpenSource-Server 05/12/2010 - Metin2 Private Server - 27 Replies Hi,
morgen beginnt das verlängerte Wochenende für viele. Deshalb starte ich morgen ein neues kleines Projekt.
Einen OpenSource-Metin2-Server. Ich zahle einen kleinen Server (max. 100 Spieler). Die Files dieses Server sind öffentlich, einzige Ausnahme: Account-DB.
Itemshop wird es natürlich nicht geben!
Vielleicht gibt es ja ein paar nette Leute, die Lust hätten zu helfen. :)
Der Servername wird "Syrka" (Syrka.net) lauten.
MfG,
WowSharp wird Opensource! 06/29/2007 - World of Warcraft - 34 Replies Today is a big day in the history of WoWSharp, most of it bad, some of it good.
In the past 9 months since development started, WoWSharp has been a milestone in WoW-bot development. First starting out with WoWRadar and WoWFisher, then other utilities like WoWBot, SharpSeer, WoWPartyBot, where created.
Everyone knows that since about a bit over a month, Blizzard has been using the WardenClient to detect 3rd party utilities. This WardenClient has put the World of Warcraft hacking on its...