Answer the question
In order to leave comments, you need to log in
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
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 questionAsk a Question
731 491 924 answers to any question