include <windows.h> // We include our windows header file.
#define ADR_PLAYERPOINTER 0x9E57D4
#define ADR_SERVERPOINTER 0x8B0000
void source_codes(){ // We define our 'Source Codes' in here.
DWORD *dwPlayerPtr = (DWORD*)ADR_PLAYERPOINTER;
DWORD *dwServerPtr = (DWORD*)ADR_SERVERPOINTER;
//Hack here
} // Make sure your stay before this line, else it will lead to errors as result.
void Module_Thread(){// We define our 'Modules' in here, So it will run the feathurs included into our project.
for( ; ; ){ //for 'nothing' we going to run the following functions:
source_codes(); // We are going to run the 'source codes' module, it will run all the items added into 'source codes'.
} // End the include of our Modules.
Sleep(200); // Prevents the CPU from overrunning.
} // End our Module_Thread.
BOOL WINAPI DllMain(HINSTANCE hMODULE,DWORD Basic_Base,LPVOID lpvReserved)
{ // Begin our module running
if(Basic_Base /*Our defention*/ == DLL_PROCESS_ATTACH) // If our dll is attached to a process were are going to run a thread.
{ // Begin our Thread Running
CreateThread(0,0,(LPTHREAD_START_ROUTINE)Module_Th read/*We run our ModuleThread to start the whole process*/,0,0,0);
} // End our Thread Running
return TRUE; // We let the process run over again, if we dont do this, the dll will not work.
} // End our Module Running