Guest User

Untitled

a guest
Jul 17th, 2018
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.41 KB | None | 0 0
  1. class RWmemory()
  2. {
  3. public:
  4.    RWmemory()  //Constructor?
  5. {    
  6.  
  7. //Start Preperation
  8.     HWND hwnd;       // Holding the window title
  9.     HANDLE handle;   // Holding the handle to the process
  10.     DWORD pid;       // Holding the PID of the process
  11.  
  12.     hwnd = FindWindow(0, "Solitaire");
  13.     GetWindowThreadProcessId(hwnd, &pid);
  14.     handle = OpenProcess(PROCESS_ALL_ACCESS, FALSE, pid);
  15.     //END Preperation
  16. }
  17. }
Add Comment
Please, Sign In to add comment