RLib  5.7
RLib - an opensource, lightweight and multi-platform framework for cpp programming
System::IO::MemoryAllocator Class Reference

Static Public Member Functions

static RLIB_RESTRICT_RETURN LPVOID Allocate (HANDLE ProcessHandle, PVOID BaseAddress, SIZE_T RegionSize, ULONG AllocationType, ULONG Protect)
 
static LPVOID Free (HANDLE ProcessHandle, PVOID BaseAddress, SIZE_T RegionSize, ULONG FreeType)
 
static ULONG Protect (HANDLE ProcessHandle, PVOID BaseAddress, SIZE_T RegionSize, ULONG NewAccessProtection)
 changes the access protection on a region of committed pages in the virtual address space of the calling process return OldAccessProtection, and zero if failed More...
 
static struct MEMORY_INFORMATIONQuery (HANDLE ProcessHandle, PVOID BaseAddress)
 retrieves parameters of queried memory block(thread-unsafe) and returns nullptr if failed More...
 
static size_t GetPageSize ()
 
static size_t GetPhysicalPages ()
 

Member Function Documentation

ULONG MemoryAllocator::Protect ( HANDLE  ProcessHandle,
PVOID  BaseAddress,
SIZE_T  RegionSize,
ULONG  NewAccessProtection 
)
static

changes the access protection on a region of committed pages in the virtual address space of the calling process return OldAccessProtection, and zero if failed

PMEMORY_INFORMATION MemoryAllocator::Query ( HANDLE  ProcessHandle,
PVOID  BaseAddress 
)
static

retrieves parameters of queried memory block(thread-unsafe) and returns nullptr if failed


The documentation for this class was generated from the following files: