Exemple #1
0
 internal PageInfo(MEMORY_BASIC_INFORMATION mbi)
 {
     _address         = mbi.BaseAddress;
     _size            = mbi.RegionSize;
     _protectionFlags = (MemoryProtectionFlags)mbi.Protect;
     _typeFlags       = (MemoryTypeFlags)mbi.Type;
 }
		internal static bool FreeMemoryInternal(IntPtr processHandle, IntPtr address, uint size, MemoryTypeFlags freeFlags) => VirtualFreeEx(processHandle, address, size, (uint)freeFlags);
		public bool FreeMemory(IntPtr address, uint size, MemoryTypeFlags freeTyp) {
			QuickDemand(PROCESS_VM_OPERATION);
			return FreeMemoryInternal(_handle, address, size, freeTyp);
		}