| 46 | |
| 47 | template<class T> |
| 48 | T Read(uint64_t read_address) { |
| 49 | readd Data; |
| 50 | T response = { }; |
| 51 | Data.output = (ULONG64)&response; |
| 52 | |
| 53 | Data.address = read_address; |
| 54 | |
| 55 | Data.size = sizeof(response); |
| 56 | |
| 57 | STRUCT_OFFSET_ADDRESS = &Data; |
| 58 | STATUS_CODE = 4; |
| 59 | if (Await_Approval()) { |
| 60 | return response; |
| 61 | } |
| 62 | return response; |
| 63 | } |
| 64 | |
| 65 | |
| 66 | void Connect() { |
nothing calls this directly
no test coverage detected