Please help!

Posts 1–6 of 6 · Page 1 of 1
Please help!
What do you need to have the project's language to Unicode or Multi-Byte?
Could you please help me debug this? Well I mean nothing is actually writing to the address.
Code:
#include "windows.h"
#include <iostream>
#include "string.h"


DWORD proc_id;
HANDLE hProcess;

void GetWarrockID()
{
	HWND hWnd = NULL;
	hWnd = FindWindow( 0, "Warrock" );
	if ( hWnd != NULL )
	{
		GetWindowThreadProcessId( hWnd, &proc_id );
		hProcess = OpenProcess( PROCESS_ALL_ACCESS|PROCESS_VM_OPERATION|PROCESS_VM_READ|PROCESS_VM_WRITE|PROCESS_QUERY_INFORMATION, FALSE, proc_id );
	}
	else
		std::cout <<  "Unable to find process" ;
}

void WriteLong( long adress, long value )
{
	GetWarrockID();
	WriteProcessMemory( hProcess, (LPVOID*)(DWORD)adress, &value, sizeof( value ), NULL );
}

void WritePointerFloat( long baseAdress, short offset, float value )
{
	long mAdress;
	long sAdress;
	GetWarrockID();
	ReadProcessMemory( hProcess, (LPVOID*)(DWORD)baseAdress, &mAdress, sizeof( mAdress ), NULL );
	sAdress = mAdress + offset;
	WriteProcessMemory( hProcess, (LPVOID*)(DWORD)sAdress, &value, sizeof( value ), NULL );
}

void BoxsOn()
{
	WriteLong(0x943A16, 1);
}

int main()
{
	while(true)
	{
		system("pause");
		BoxsOn();
	}
	return 0;
}
Thanks .
cmon, anyone? :d ^^
1. Multi-Byte
2. PB blocks it
Thanks Gordon
gordon pls make a new hack
Posts 1–6 of 6 · Page 1 of 1
This thread is closed for replies.

Similar Threads

Tags for this Thread

None

Talk with us