patchfinder64.h 595 B

12345678910111213141516171819202122232425262728
  1. #ifndef PATCHFINDER64_H_
  2. #define PATCHFINDER64_H_
  3. #define CACHED_FIND(type, name) \
  4. type __##name(void);\
  5. type name(void) { \
  6. type cached = 0; \
  7. if (cached == 0) { \
  8. cached = __##name(); \
  9. } \
  10. return cached; \
  11. } \
  12. type __##name(void)
  13. int init_kernel(uint64_t base, const char *filename);
  14. void term_kernel(void);
  15. // Fun part
  16. uint64_t find_allproc(void);
  17. uint64_t find_add_x0_x0_0x40_ret(void);
  18. uint64_t find_OSBoolean_True(void);
  19. uint64_t find_OSBoolean_False(void);
  20. //uint64_t find_zone_map_ref(void);
  21. uint64_t find_osunserializexml(void);
  22. uint64_t find_smalloc(void);
  23. #endif