Initial commit
This commit is contained in:
@@ -0,0 +1,38 @@
|
||||
#pragma once
|
||||
|
||||
namespace dyn_addr
|
||||
{
|
||||
struct entry_t
|
||||
{
|
||||
enum
|
||||
{
|
||||
DYN_ADDR_TYPE_NONE = 0,
|
||||
|
||||
DYN_ADDR_TYPE_CODE,
|
||||
DYN_ADDR_TYPE_PTR,
|
||||
} type;
|
||||
|
||||
struct
|
||||
{
|
||||
uint32_t offset_to_instr;
|
||||
uint32_t length_of_instr;
|
||||
} ptr;
|
||||
|
||||
uint32_t offset;
|
||||
uintptr_t result;
|
||||
|
||||
char name[128];
|
||||
wchar_t pattern[128];
|
||||
};
|
||||
|
||||
inline stl::c_linked_list<entry_t> _list;
|
||||
|
||||
extern void add_dynamic_address_code(const char* name, const wchar_t* pattern, uint32_t offset);
|
||||
|
||||
extern void add_dynamic_address_ptr(const char* name, const wchar_t* pattern,
|
||||
uint32_t offset, uint32_t offset_to_instr, uint32_t length_of_instr);
|
||||
|
||||
extern bool grab_all();
|
||||
|
||||
extern uintptr_t get_dynamic_address(const char* name);
|
||||
}
|
||||
Reference in New Issue
Block a user