V
V
vision-bk2015-11-24 18:11:48
C++ / C#
vision-bk, 2015-11-24 18:11:48

C# How to reserve a region of memory using the virtualalloc function?

Hello, can you help me figure out how to reserve a memory region using the Virtualalloc() function? What parameters and how to pass to the function if I need to reserve, for example, 50*2*1024 bytes of memory? I know about www.pinvoke.net/default.aspx/kernel32.VirtualAlloc , but I can't figure out how to use it. I hope also for example code.
And just in case, I will emphasize that it is necessary in C #.

Answer the question

In order to leave comments, you need to log in

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

Detailed description https://msdn.microsoft.com/ru-ru/library/windows/d... - the first link in Google.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question