Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class RWmemory()
- {
- public:
- RWmemory() //Constructor?
- {
- //Start Preperation
- HWND hwnd; // Holding the window title
- HANDLE handle; // Holding the handle to the process
- DWORD pid; // Holding the PID of the process
- hwnd = FindWindow(0, "Solitaire");
- GetWindowThreadProcessId(hwnd, &pid);
- handle = OpenProcess(PROCESS_ALL_ACCESS, FALSE, pid);
- //END Preperation
- }
- }
Add Comment
Please, Sign In to add comment