| 87 | } |
| 88 | template <class T> |
| 89 | T Read(UINT_PTR read_address) |
| 90 | { |
| 91 | T response{}; |
| 92 | NULL_MEMORY instructions; |
| 93 | instructions.pid = process_id; |
| 94 | instructions.size = sizeof(T); |
| 95 | instructions.address = read_address; |
| 96 | instructions.read = TRUE; |
| 97 | instructions.write = FALSE; |
| 98 | instructions.req_base = FALSE; |
| 99 | instructions.draw_box = FALSE; |
| 100 | instructions.output = &response; |
| 101 | call_hook(&instructions); |
| 102 | |
| 103 | return response; |
| 104 | } |
| 105 | |
| 106 | bool write_memory(UINT_PTR write_address, UINT_PTR source_address, SIZE_T write_size) |
| 107 | { |
nothing calls this directly
no test coverage detected