forked from jankowskib/D2Ex2
-
Notifications
You must be signed in to change notification settings - Fork 0
/
ExMemory.h
28 lines (22 loc) · 877 Bytes
/
ExMemory.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#ifndef __EXMEMORY_H__
#define __EXMEMORY_H__
#define WIN32_LEAN_AND_MEAN
#include <Windows.h>
#include <cstdio>
using namespace std;
namespace ExMemory
{
int GetPoolsCount();
int GetMemUsage();
void Release();
void LogLeaks();
void* __fastcall Alloc_STUB(int MemSize, int* MemPool, char* szFile, int Line);
void* __stdcall Realloc_STUB(int NewSize);
void __fastcall Free_STUB(int* Pool, int* MemPool, char* szFile, int Line);
void* __fastcall Alloc(int MemSize, char* szFile, int Line, int aNull);
void* __stdcall Realloc(void* MemPool, void *pMem, int MemSize, char* szFile, int Line);
void __fastcall Free(void* MemPool, char* szFile, int Line, int aNull);
// void* __fastcall AllocPool(void* pMemPool, int MemSize, char* szFile, int Line, int aNull);
// void __fastcall FreePool (void* pMemPool, void* Memory, char* szFile, int Line, int aNull);
}
#endif