C# reading ALL of a process' memory -


ello!

trying read memory of running process, , work, somewhat. issue here found out end address, intptr endoffset = intptr.add(startoffset, getprocess.mainmodule.modulememorysize);, gives me amount of memory required load module.

thus giving me lot of unread memory of process allocated later on. code have written not interesting @ all, how startaddress , endaddress, endaddress not including of later allocated memory.

        process getprocess = process.getprocessesbyname("processname")[0];         intptr processhandle = openprocess(process_wm_read, false, getprocess.id);         intptr startoffset = getprocess.mainmodule.baseaddress;         intptr endoffset = intptr.add(startoffset, getprocess.mainmodule.modulememorysize); 

my "solution" atm add high decimal number end address, naturally makes read lot of other memory not of process want , of course slows reading down lot.

so need guys how ensure of process' memory read? know sorted out in chunks in memory not sure how can pinpoint later start addresses , end addresses @ ever located in memory.

thank you!


Comments

Popular posts from this blog

inversion of control - Autofac named registration constructor injection -

verilog - Systemverilog dynamic casting issues -

ios - Change Storyboard View using Seague -