WriteProcessMemory(ProcessHandle,(LPVOID*)(DWORD)address, &value , MY QUESTION,NULL);
void GetProcess(LPSTR windowname)
HANDLE GetProcess( LPSTR windowname )
{
// Keep everything as it is but at the end :
return processHandle;
}
void ModifyAddr(int address, int value)
// change it to
void ModifyAddr( HANDLE handle, int address, int value )
{
WriteProcessMemory(handle,(LPVOID*)address, &value , sizeof(value) ,NULL);
}
HANDLE handle = GetProcess(....); ModifyAddr( handle, ...... );
C:Dev-Cpptester.cpp In function `void* GetProcess(CHAR*)': 21 C:Dev-Cpptester.cpp `ProcessHandle' undeclared (first use this function) (Each undeclared identifier is reported only once for each function it appears in.) C:Dev-CppMakefile.win [Build Error] [venom.o] Error 1
