Advertisement
Guest User

Functions.h

a guest
Nov 19th, 2019
135
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.51 KB | None | 0 0
  1. #pragma once
  2. #include <Windows.h>
  3. #include <Tlhelp32.h>
  4. #include "Globals.h"
  5.  
  6. template <class dataType>
  7. void wpm(dataType value, DWORD addy)
  8. {
  9. WriteProcessMemory(pHandle, (PVOID)addy, &value, sizeof(dataType), 0);
  10. }
  11. template <class dataType>
  12. dataType rpm(DWORD addy)
  13. {
  14. dataType data;
  15. bool state = ReadProcessMemory(pHandle, (PVOID)addy, &data, sizeof(dataType), 0);
  16. if (state)
  17. return data;
  18. }
  19.  
  20. bool AttachProcess(const char* processName);
  21. DWORD GetModule(const char* moduleName);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement