Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #pragma once
- #include <Windows.h>
- #include <Tlhelp32.h>
- #include "Globals.h"
- template <class dataType>
- void wpm(dataType value, DWORD addy)
- {
- WriteProcessMemory(pHandle, (PVOID)addy, &value, sizeof(dataType), 0);
- }
- template <class dataType>
- dataType rpm(DWORD addy)
- {
- dataType data;
- bool state = ReadProcessMemory(pHandle, (PVOID)addy, &data, sizeof(dataType), 0);
- if (state)
- return data;
- }
- bool AttachProcess(const char* processName);
- DWORD GetModule(const char* moduleName);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement