| 31 | } |
| 32 | template <typename T> |
| 33 | T* ReadStruct(const DWORD_PTR Address) |
| 34 | { |
| 35 | T ret; |
| 36 | if (!g_winapiApiTable->ReadProcessMemory(m_hProcess, (LPCVOID)Address, &ret, sizeof(T), nullptr)) |
| 37 | return nullptr; |
| 38 | return &ret; |
| 39 | } |
| 40 | template <typename T> |
| 41 | bool ReadStruct(const DWORD_PTR Address, T& data) |
| 42 | { |
nothing calls this directly
no outgoing calls
no test coverage detected