SHARE
TWEET

Functions.h

a guest Nov 19th, 2019 97 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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);
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top