| 104 | } |
| 105 | |
| 106 | bool write_memory(UINT_PTR write_address, UINT_PTR source_address, SIZE_T write_size) |
| 107 | { |
| 108 | NULL_MEMORY instructions; |
| 109 | instructions.address = write_address; |
| 110 | instructions.pid = process_id; |
| 111 | instructions.write = TRUE; |
| 112 | instructions.read = FALSE; |
| 113 | instructions.req_base = FALSE; |
| 114 | instructions.draw_box = FALSE; |
| 115 | instructions.buffer_address = (void*)source_address; |
| 116 | instructions.size = write_size; |
| 117 | |
| 118 | call_hook(&instructions); |
| 119 | |
| 120 | return true; |
| 121 | } |
| 122 | |
| 123 | bool draw_box(int x, int y, int w, int h, int t, int r, int g, int b) |
| 124 | { |