project64/Source/Common/MemoryManagement.h

16 lines
456 B
C
Raw Normal View History

2016-01-13 09:39:23 +00:00
#pragma once
enum MEM_PROTECTION
{
MEM_NOACCESS,
MEM_READONLY,
MEM_READWRITE,
MEM_EXECUTE_READWRITE,
};
2017-08-18 05:08:22 +00:00
void* AllocateAddressSpace(size_t size, LPVOID lpAddress = NULL);
2016-01-13 09:39:23 +00:00
bool FreeAddressSpace(void* addr, size_t size);
void* CommitMemory(void* addr, size_t size, MEM_PROTECTION memProtection);
bool DecommitMemory(void* addr, size_t size);
bool ProtectMemory(void* addr, size_t size, MEM_PROTECTION memProtection, MEM_PROTECTION * OldProtect = NULL);