Thread: Please help!

Results 1 to 6 of 6
  1. #1
    Lynie's Avatar
    Join Date
    Jun 2008
    Gender
    male
    Posts
    27
    Reputation
    10
    Thanks
    2

    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 .

  2. #2
    Lynie's Avatar
    Join Date
    Jun 2008
    Gender
    male
    Posts
    27
    Reputation
    10
    Thanks
    2
    cmon, anyone? :d ^^

  3. #3
    Gordon`'s Avatar
    Join Date
    Dec 2007
    Gender
    male
    Posts
    283
    Reputation
    24
    Thanks
    325
    1. Multi-Byte
    2. PB blocks it


  4. The Following User Says Thank You to Gordon` For This Useful Post:

    Lynie (10-11-2008)

  5. #4
    Lynie's Avatar
    Join Date
    Jun 2008
    Gender
    male
    Posts
    27
    Reputation
    10
    Thanks
    2
    Thanks Gordon

  6. The Following User Says Thank You to Lynie For This Useful Post:

    leonardomc (10-11-2008)

  7. #5
    leonardomc's Avatar
    Join Date
    Oct 2008
    Posts
    1
    Reputation
    10
    Thanks
    0
    ???????????

  8. #6
    bubi's Avatar
    Join Date
    Jan 2009
    Gender
    male
    Location
    i live in german
    Posts
    44
    Reputation
    10
    Thanks
    2
    My Mood
    Dead
    gordon pls make a new hack

Similar Threads

  1. [Help Request] PLEASE HELP ME !!!
    By gusde07 in forum CrossFire Help
    Replies: 7
    Last Post: 09-10-2012, 08:26 PM
  2. [Help Request] Please Help
    By tongakilo in forum CrossFire Help
    Replies: 12
    Last Post: 05-22-2011, 03:02 AM
  3. [Help Request] Black Cipher Help [please help]
    By zubni in forum Combat Arms Help
    Replies: 25
    Last Post: 05-14-2011, 07:50 PM
  4. [Help Request] please help me
    By 0wninglolz in forum Combat Arms Help
    Replies: 2
    Last Post: 05-08-2011, 06:03 AM
  5. [Help Request] please help !
    By noaznoaz in forum Combat Arms EU Help
    Replies: 0
    Last Post: 05-03-2011, 06:11 AM