How do i make this a dll file using visual c++ 2010?
Code:
#include <windows.h>
#include <stdio.h>
#define ADR_PlayerPointer 0x00A86B88
#define ADR_ServerPointer 0x00A85B30
DWORD *ingame= (DWORD*) ADR_PlayerPointer;
DWORD *outgame= (DWORD*)ADR_ServerPointer;
//Player Hacks
void PlayerHacks()
{
DWORD dwPlayerPtr = *(DWORD*)ADR_PlayerPointer;
if(dwPlayerPtr != 0)
{
}
}
//-------------------------------------------------
void GlassWall()
{
if(GetKeyState(VK_MBUTTON))
*(int*)ADR_GlassWalls = 1;
else
{
*(int**)ADR_GlassWalls = 0;
}
}
//-------------------------------------------------
void HackThread()
{
for(;; )
{
if(*ingame)
{
PlayerHacks();
GlassWall();
}
if(*outgame)
{
}
Sleep(200); //prevent for overloading the cpu
}
}
//----------------------------------------------------------
BOOL WINAPI DllMain(HINSTANCE hModule, DWORD dwReason, LPVOID lpvReserved)
{
if(dwReason == DLL_PROCESS_ATTACH)
{
MessageBoxA(NULL, "Made By: l_M_l `D` L U F F Y ", "", MB_OK);
MessageBoxA(NULL, "Hack Injected", "ENJOY", MB_OK);
CreateThread(0, 0, (LPTHREAD_START_ROUTINE)HackThread, 0, 0, 0);
}
return TRUE;
}





ganto po lumalabas