Needing CE Help :D

03/15/2014 20:36 .S1mpl3*#16
:facepalm: Learn basics of C++,then start hacking. But
Code:
#include <iostream>
#include <windows.h>

int main() 
{
	HWND hWnd = FindWindow(0, "Window Name");
  	if(hWnd == 0)
	{
    		MessageBox(0, "Error cannot find window.", "Error", MB_OK|MB_ICONERROR);
  	} 
	else 
	{
    		DWORD proccess_ID;
    		GetWindowThreadProcessId(hWnd, &proccess_ID);
    		HANDLE hProcess = OpenProcess(PROCESS_ALL_ACCESS, FALSE, proccess_ID);
    		if(!hProcess)
		{
      			MessageBox(0, "Could not open the process!", "Error!", MB_OK|MB_ICONERROR);
    		} 
		else 
		{
      			int newdata = [B]Here your Value[/B];
     		 	DWORD newdatasize = sizeof(newdata);
      			if(WriteProcessMemory(hProcess, (LPVOID)[B]Here the address[/B], &newdata, newdatasize, NULL))
			{
        				MessageBox(NULL, "WriteProcessMemory worked.", "Success", MB_OK + MB_ICONINFORMATION);
      			} 
			else 
			{
        				MessageBox(NULL, "Error cannot WriteProcessMemory!", "Error", MB_OK + MB_ICONERROR);
      			}
      			CloseHandle(hProcess);
    		}
  	}
  	return 0;
}
03/15/2014 21:40 Hybrid~#17
Quote:
Originally Posted by .S1mpl3* View Post
:facepalm: Learn basics of C++,then start hacking. But
Code:
#include <iostream>
#include <windows.h>

int main() 
{
	HWND hWnd = FindWindow(0, "Window Name");
  	if(hWnd == 0)
	{
    		MessageBox(0, "Error cannot find window.", "Error", MB_OK|MB_ICONERROR);
  	} 
	else 
	{
    		DWORD proccess_ID;
    		GetWindowThreadProcessId(hWnd, &proccess_ID);
    		HANDLE hProcess = OpenProcess(PROCESS_ALL_ACCESS, FALSE, proccess_ID);
    		if(!hProcess)
		{
      			MessageBox(0, "Could not open the process!", "Error!", MB_OK|MB_ICONERROR);
    		} 
		else 
		{
      			int newdata = [B]Here your Value[/B];
     		 	DWORD newdatasize = sizeof(newdata);
      			if(WriteProcessMemory(hProcess, (LPVOID)[B]Here the address[/B], &newdata, newdatasize, NULL))
			{
        				MessageBox(NULL, "WriteProcessMemory worked.", "Success", MB_OK + MB_ICONINFORMATION);
      			} 
			else 
			{
        				MessageBox(NULL, "Error cannot WriteProcessMemory!", "Error", MB_OK + MB_ICONERROR);
      			}
      			CloseHandle(hProcess);
    		}
  	}
  	return 0;
}
Just don't.
He will just c&p, nothing will be learned from this source.
You have to let him do it, let him work and search like we all did.
03/16/2014 13:01 Forbidi#18
Quote:
Originally Posted by .S1mpl3* View Post
:facepalm: Learn basics of C++,then start hacking. But
Code:
#include <iostream>
#include <windows.h>

int main() 
{
	HWND hWnd = FindWindow(0, "Window Name");
  	if(hWnd == 0)
	{
    		MessageBox(0, "Error cannot find window.", "Error", MB_OK|MB_ICONERROR);
  	} 
	else 
	{
    		DWORD proccess_ID;
    		GetWindowThreadProcessId(hWnd, &proccess_ID);
    		HANDLE hProcess = OpenProcess(PROCESS_ALL_ACCESS, FALSE, proccess_ID);
    		if(!hProcess)
		{
      			MessageBox(0, "Could not open the process!", "Error!", MB_OK|MB_ICONERROR);
    		} 
		else 
		{
      			int newdata = [B]Here your Value[/B];
     		 	DWORD newdatasize = sizeof(newdata);
      			if(WriteProcessMemory(hProcess, (LPVOID)[B]Here the address[/B], &newdata, newdatasize, NULL))
			{
        				MessageBox(NULL, "WriteProcessMemory worked.", "Success", MB_OK + MB_ICONINFORMATION);
      			} 
			else 
			{
        				MessageBox(NULL, "Error cannot WriteProcessMemory!", "Error", MB_OK + MB_ICONERROR);
      			}
      			CloseHandle(hProcess);
    		}
  	}
  	return 0;
}
[Only registered and activated users can see links. Click Here To Register...]