V
V
vision-bk2015-11-17 20:35:53
C++ / C#
vision-bk, 2015-11-17 20:35:53

How to print process memory map and memory region map information in c#?

The crux of the issue is in the title. What has been done now: connected to the kernel32 project, so far everything useful has been deduced:

public struct MEMORY_BASIC_INFORMATION
{
            public IntPtr BaseAddress;      
            public IntPtr AllocationBase;   
            public int AllocationProtect;   
            public IntPtr RegionSize;       
            public int State;             
            public int Protect;             
            public int Type;  
}

Is there any other structure that can be used to find out the number of memory blocks and information about page access rights?
In case I do something wrong, I would very much like to know how it is then.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vladimir Martyanov, 2015-11-17
@vision-bk

"I would really like to know how it costs then. " - I would not write this in C # from the very beginning.
Regarding process memory: what do you want? Which process did it allocate through Global/Virtual/HeapAlloc or the one given to it by the loader?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question