Ok Im New To C++ But Im Making A Code That Should Hopefuly Make Me Able To Write Into A Program's Memory
I Get These Error's
error C2059: syntax error : '.'
error C2447: '{' : missing function header (old-style formal list?)
My Code Is
.void WriteMem(DWORD MemOffset, DWORD DataPtr, DWORD dataLen) ;{
DWORD OldProt;
VirtualProtect((void*) MemOffset, dataLen, PAGE_EXECUTE_READWRITE, &OldProt);
RtlMoveMemory((void*) MemOffset, (const void*) DataPtr, dataLen);
VirtualProtect((void*) MemOffset, dataLen, OldProt, &OldProt);
}
If Anyone Can Help, It Would Be Great!