mirror of
https://github.com/accelerator74/l4dtoolz.git
synced 2025-01-03 16:13:36 +08:00
16 lines
491 B
C
16 lines
491 B
C
|
#ifndef _INCLUDE_SIGNATURE_
|
||
|
#define _INCLUDE_SIGNATURE_
|
||
|
|
||
|
struct base_addr_t{
|
||
|
void *addr;
|
||
|
unsigned int len;
|
||
|
};
|
||
|
|
||
|
void *find_signature(const char* mask, struct base_addr_t* base_addr, int pure);
|
||
|
int find_base(const char* name, struct base_addr_t * base_addr);
|
||
|
int write_signature(const void* addr, const void* signature);
|
||
|
int read_signature(const void *addr, void *signature);
|
||
|
int get_original_signature(const void *offset, const void *new_sig, void** org_sig);
|
||
|
|
||
|
#endif //_INCLUDE_SIGNATURE_
|