Click here to Skip to main content
15,918,889 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Binary Tree from preorder traversal [modified] Pin
oobimoo19-Sep-08 1:59
oobimoo19-Sep-08 1:59 
QuestionTransparent control over Mobile screen Pin
akash00718-Sep-08 18:40
akash00718-Sep-08 18:40 
QuestionVirual memory Pin
jinijinu18-Sep-08 17:42
jinijinu18-Sep-08 17:42 
AnswerRe: Virual memory Pin
Rane18-Sep-08 19:05
Rane18-Sep-08 19:05 
AnswerRe: Virual memory Pin
Hamid_RT18-Sep-08 20:01
Hamid_RT18-Sep-08 20:01 
AnswerRe: Virual memory Pin
Naveen18-Sep-08 20:52
Naveen18-Sep-08 20:52 
QuestionVirtual memory Pin
jinijinu18-Sep-08 17:39
jinijinu18-Sep-08 17:39 
AnswerRe: Virtual memory Pin
Rane18-Sep-08 19:07
Rane18-Sep-08 19:07 
Use OpenProcess() to get a handle to the process that you want to monitor.Then use CreateToolhelp32Snapshot() API which will give you lists of the modules (DLLs) that are a part of your process image which you can then iterate using Module32First/Module32Next() and obtain the load addresses and extents.

It will also give you a list of the heaps, runtime allocated memory used by alloc/free and stacks. You then use Heap32ListFirst/Heap32ListNext to iterate those and obtain their start addresses and extents. You then use those addresses with ReadProcessMemory() to actually read the Random Access Memory.

Also, be sure to suspend the target process otherwise things could change the moment after you obtain your information.


Regards,
Rane
QuestionEdit mode problem Pin
followait18-Sep-08 16:46
followait18-Sep-08 16:46 
AnswerRe: Edit mode problem Pin
Malli_S18-Sep-08 20:19
Malli_S18-Sep-08 20:19 
GeneralRe: Edit mode problem Pin
followait18-Sep-08 23:31
followait18-Sep-08 23:31 
GeneralRe: Edit mode problem Pin
Malli_S19-Sep-08 1:24
Malli_S19-Sep-08 1:24 
GeneralRe: Edit mode problem Pin
followait19-Sep-08 1:30
followait19-Sep-08 1:30 
GeneralRe: Edit mode problem Pin
Malli_S19-Sep-08 1:41
Malli_S19-Sep-08 1:41 
GeneralRe: Edit mode problem Pin
followait19-Sep-08 2:12
followait19-Sep-08 2:12 
AnswerRe: Edit mode problem Pin
Mark Salsbery19-Sep-08 6:46
Mark Salsbery19-Sep-08 6:46 
GeneralRe: Edit mode problem [modified] Pin
followait19-Sep-08 14:14
followait19-Sep-08 14:14 
QuestionPrint after add view Pin
Max++18-Sep-08 15:46
Max++18-Sep-08 15:46 
AnswerRe: Print after add view [modified] Pin
followait18-Sep-08 16:52
followait18-Sep-08 16:52 
QuestionManifest File Pin
Bram van Kampen18-Sep-08 15:08
Bram van Kampen18-Sep-08 15:08 
QuestionMulti Threaded debug question Pin
monsieur_jj18-Sep-08 14:29
monsieur_jj18-Sep-08 14:29 
AnswerRe: Multi Threaded debug question Pin
Saurabh.Garg18-Sep-08 15:03
Saurabh.Garg18-Sep-08 15:03 
QuestionVisual Studio 6 - helpful debugger? Pin
charlieg18-Sep-08 12:18
charlieg18-Sep-08 12:18 
AnswerRe: Visual Studio 6 - helpful debugger? Pin
Mark Salsbery19-Sep-08 6:49
Mark Salsbery19-Sep-08 6:49 
GeneralRe: Visual Studio 6 - helpful debugger? Pin
charlieg21-Sep-08 2:54
charlieg21-Sep-08 2:54 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.