| 77 | })(); |
| 78 | |
| 79 | __forceinline auto get_file_header(void* base_addr) -> PIMAGE_FILE_HEADER |
| 80 | { |
| 81 | PIMAGE_DOS_HEADER dos_headers = |
| 82 | reinterpret_cast<PIMAGE_DOS_HEADER>(base_addr); |
| 83 | |
| 84 | PIMAGE_NT_HEADERS nt_headers = |
| 85 | reinterpret_cast<PIMAGE_NT_HEADERS>( |
| 86 | reinterpret_cast<DWORD_PTR>(base_addr) + dos_headers->e_lfanew); |
| 87 | |
| 88 | return &nt_headers->FileHeader; |
| 89 | } |
| 90 | |
| 91 | __forceinline auto get_kmodule_base(const char* module_name) -> std::uintptr_t |
| 92 | { |
nothing calls this directly
no outgoing calls
no test coverage detected