2015-06-30 12:46:07 +03:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include "osconfig.h"
|
|
|
|
|
2015-08-02 20:45:57 +03:00
|
|
|
extern size_t OffsetToRebase(size_t addr);
|
|
|
|
extern bool GetAddressUsingHook(size_t addr);
|
|
|
|
extern VirtualTableRef *GetVirtualTableRefAddr(const char *szClassName);
|
|
|
|
extern void *GetFunctionEntity(const char *szClassName);
|
2015-06-30 12:46:07 +03:00
|
|
|
extern void printAddrRebase(size_t addr,const char *funcName);
|
2015-07-05 14:05:26 +03:00
|
|
|
extern FunctionHook *GetFunctionPtrByName(const char *funcName);
|
2015-06-30 12:46:07 +03:00
|
|
|
extern void *GetOriginalFuncAddrOrDie(const char *funcName);
|
|
|
|
extern void *GetOriginalFuncAddrOrDefault(const char *funcName, void *def);
|
|
|
|
extern void *GetFuncRefAddrOrDie(const char *funcName);
|
|
|
|
extern void *GetFuncRefAddrOrDefault(const char *funcName, void *def);
|
2015-09-16 23:19:21 +03:00
|
|
|
|
2017-07-01 23:40:10 +03:00
|
|
|
extern FunctionHook g_FunctionHooks[];
|
|
|
|
extern VirtualTableRef g_TableRefs[];
|
|
|
|
extern AddressRef g_FunctionRefs[];
|
|
|
|
extern AddressRef g_DataRefs[];
|
|
|
|
|
2016-02-23 02:13:52 +03:00
|
|
|
#ifdef _WIN32
|
2015-09-16 23:19:21 +03:00
|
|
|
|
2017-07-01 23:40:10 +03:00
|
|
|
void *malloc_wrapper(size_t size);
|
|
|
|
void *_nh_malloc_wrapper(size_t n);
|
|
|
|
void *realloc_wrapper(void *orig, size_t newSize);
|
|
|
|
void free_wrapper(void *mem);
|
|
|
|
void *calloc_wrapper(size_t count, size_t size);
|
|
|
|
char *strdup_wrapper(const char *s);
|
|
|
|
int rand_wrapper();
|
2015-09-16 23:19:21 +03:00
|
|
|
|
2016-02-23 02:13:52 +03:00
|
|
|
#endif // _WIN32
|