Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void WriteToMemory(DWORD pAddress, void* pBuffer, int iSize)
- {
- DWORD Protect = NULL;
- VirtualProtect((void*)pAddress, iSize, PAGE_EXECUTE_READWRITE, &Protect);
- WriteProcessMemory(GetCurrentProcess(), (void*)pAddress, pBuffer, iSize, NULL );
- VirtualProtect((void*)pAddress, iSize, Protect, &Protect);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement