| 71 | } |
| 72 | |
| 73 | static ULONG64 get_module_base_address(const char* module_name) |
| 74 | { |
| 75 | NULL_MEMORY instructions = { 0 }; |
| 76 | instructions.pid = process_id; |
| 77 | instructions.req_base = TRUE; |
| 78 | instructions.read = FALSE; |
| 79 | instructions.write = FALSE; |
| 80 | instructions.draw_box = FALSE; |
| 81 | instructions.module_name = module_name; |
| 82 | call_hook(&instructions); |
| 83 | |
| 84 | ULONG64 base = NULL; |
| 85 | base = instructions.base_address; |
| 86 | return base; |
| 87 | } |
| 88 | template <class T> |
| 89 | T Read(UINT_PTR read_address) |
| 90 | { |
nothing calls this directly
no test coverage detected