I'm trying to read the memory about a process, this is what i have so far. It takes a snapshot of all the processes running and tries to get and return the memory about a certain one. The ReadProcessMemory function doesn't seem to work however, when i try to debug it, it just exits when it gets to the function. Does anyone have any tips on what needs to be done here?
using
namespace
{
[
};
#region
#endregion
p.Start(envVars);
}
res = MQGetEnvironmentVariables(serveProc.Id, envVars);
pe32.szExeFile = sb.ToString();
pe32.dwSize = 548;
SnapProcess();
CloseHandle(hProcessSnap);
hProcess = OpenProcess(PROCESS_VM_READ | PROCESS_VM_OPERATION | PROCESS_QUERY_INFORMATION,
GetEnvironment(hProcess, envVars);
check = Process32Next(hProcessSnap,
hProcessSnap = CreateToolhelp32Snapshot(TH32CS_SNAPPROCESS, 0);
GetSystemInfo(